Diana Software
QGSessionHandler.hh
Go to the documentation of this file.
1 #ifndef _QG_SESSION_HANDLER_HH_
2 #define _QG_SESSION_HANDLER_HH_
3 
11 #include <map>
12 #include <string>
13 #include <Rtypes.h>
14 #include "QGTextFileKeys.hh"
15 
17 class QGCanvasWindow;
18 class QGPlot;
19 
21 public:
24 
26  virtual ~QGSessionHandler();
27 
29  void OpenSession(QGCanvasWindow *window = 0);
30 
32  void OpenSession(std::string filename, QGCanvasWindow *window = 0);
33 
35  void SaveSession();
36 
38  void SaveSession(std::string filename);
39 
40 private:
42  std::map<std::string, QGCanvasWindow*> fCanvasWindowsMap;
43 
46 
49 
52 
53  ClassDef(QGSessionHandler, 0)
54 };
55 
56 #endif
Used to select amplitude windows for calibration peaks.
Window containing a ROOT canvas.
Base class for GUI plots including histograms, scatter plots, pulses, and graphical cuts.
Definition: QGPlot.hh:21
Class to handle saving and opening sessions.
QGCanvasWindow * fCurrentCanvasWindow
Current canvas window being created by OpenSession.
void OpenSession(std::string filename, QGCanvasWindow *window=0)
Open session.
virtual ~QGSessionHandler()
Destructor.
QGCalibrationWindow * fCurrentCalibrationWindow
Current calibration window being created by OpenSession.
QGSessionHandler()
Constructor.
std::map< std::string, QGCanvasWindow * > fCanvasWindowsMap
Collection of canvas windows created by OpenSession.
void SaveSession()
Save session.
void SaveSession(std::string filename)
Save session.
void OpenSession(QGCanvasWindow *window=0)
Open session.
QGPlot * fCurrentPlot
Current plot being created by OpenSession.