QGuiSession.hh

Go to the documentation of this file.
00001 #ifndef _QGUISESSION_HH_
00002 #define _QGUISESSION_HH_
00003 
00060 #include <map>
00061 #include <string>
00062 #include "QGuiCalibrationWindow.hh"
00063 #include "QGuiHistogram.hh"
00064 #include "QGuiScatterPlot.hh"
00065 #include "QObject.hh"
00066 
00067 using namespace Cuore;
00068 
00069 class QGuiSession : public QObject {
00070 public:
00072     QGuiSession(const std::string& name = "GUI Session");
00073     
00075     virtual ~QGuiSession();
00076     
00078     QGuiCalibrationWindow& CalibrationWindow(std::string name);
00079     
00081     std::string Dump() const;
00082     
00084     const std::string& GetName() const {return fName;}
00085     
00087     bool GetUseReaderFileList() const {return fUseReaderFileList;}
00088     
00090     QGuiHistogram& Histogram(std::string name);
00091     
00093     QGuiScatterPlot& ScatterPlot(std::string name);
00094     
00096     void SetName(const std::string& name) {fName = name;}
00097     
00099     void SetUseReaderFileList(const bool flag = true) {fUseReaderFileList = flag;}
00100     
00101 private:
00103     std::map<std::string, QGuiCalibrationWindow> fCalibrationWindow;
00104     
00106     std::map<std::string, QGuiHistogram> fHistogram;
00107     
00109     std::string fName;
00110     
00112     std::map<std::string, QGuiScatterPlot> fScatterPlot;
00113     
00116     bool fUseReaderFileList;
00117 
00118 };
00119 
00120 #endif

Generated on Tue Nov 16 10:49:57 2010 for CUORE Software by  doxygen 1.5.6