Diana Software
QGuiSession.hh
Go to the documentation of this file.
1 #ifndef _QGUISESSION_HH_
2 #define _QGUISESSION_HH_
3 
60 #include <map>
61 #include <string>
62 #include "QGuiCalibrationWindow.hh"
63 #include "QGuiHistogram.hh"
64 #include "QGuiScatterPlot.hh"
65 #include "QObject.hh"
66 
67 using namespace Diana;
68 
69 class QGuiSession : public QObject {
70 public:
72  QGuiSession(const std::string& name = "GUI Session");
73 
75  virtual ~QGuiSession();
76 
77  void Clear() {
78  // MV FIXME (implement it)
79 
80 
81  }
82 
84  QGuiCalibrationWindow& CalibrationWindow(std::string name);
85 
87  void Dump(std::ostream& o) const;
88 
90  //const std::string& GetName() const {return fName;}
91 
93  bool GetUseReaderFileList() const {return fUseReaderFileList;}
94 
96  QGuiHistogram& Histogram(std::string name);
97 
99  QGuiScatterPlot& ScatterPlot(std::string name);
100 
102  void SetName(const std::string& name) {fName = name;}
103 
105  void SetUseReaderFileList(const bool flag = true) {fUseReaderFileList = flag;}
106 
107 private:
109  std::map<std::string, QGuiCalibrationWindow> fCalibrationWindow;
110 
112  std::map<std::string, QGuiHistogram> fHistogram;
113 
115  std::string fName;
116 
118  std::map<std::string, QGuiScatterPlot> fScatterPlot;
119 
123 
125 
126 };
127 
128 #endif
dm Dump(cout)
Calibration window for GUI session.
Histogram data for GUI session.
Scatter plot data for GUI session.
Class to generate session files for the GUI from a Diana module.
Definition: QGuiSession.hh:69
std::map< std::string, QGuiCalibrationWindow > fCalibrationWindow
Calibration windows.
Definition: QGuiSession.hh:109
std::map< std::string, QGuiHistogram > fHistogram
Histograms.
Definition: QGuiSession.hh:112
bool fUseReaderFileList
Flag to use file list from the reader (default is to use file list from the writer)
Definition: QGuiSession.hh:122
std::string fName
Name.
Definition: QGuiSession.hh:115
void SetName(const std::string &name)
Set name of session, becomes canvas window name.
Definition: QGuiSession.hh:102
QObjectDef(QGuiSession, 1)
std::map< std::string, QGuiScatterPlot > fScatterPlot
Scatter plots.
Definition: QGuiSession.hh:118
bool GetUseReaderFileList() const
Get name MV FIXME (commented out)
Definition: QGuiSession.hh:93
void Clear()
Definition: QGuiSession.hh:77
void SetUseReaderFileList(const bool flag=true)
Set a flag to use file list from the reader.
Definition: QGuiSession.hh:105
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...