Diana Software
QGPlotListWindow.hh
Go to the documentation of this file.
1 #ifndef _QG_PLOT_LIST_WINDOW_HH_
2 #define _QG_PLOT_LIST_WINDOW_HH_
3 
11 #include "QGWindow.hh"
12 #include <map>
13 
14 class QGPlot;
16 class TGCanvas;
17 class TGVerticalFrame;
18 
19 class QGPlotListWindow : public QGWindow {
20 public:
22  static QGPlotListWindow *Instance();
23 
25  virtual ~QGPlotListWindow();
26 
28  void AddEntry(QGPlot *plot);
29 
31  void Clear(Option_t* opt = "");
32 
34  void GeneratePlotList();
35 
37  static bool IsVisible() {return fMe != 0;}
38 
40  void Refresh();
41 
43  void RemoveEntry(QGPlot *plot);
44 
46  static void Update();
47 
48 private:
51 
53  QGPlotListWindow(const TGWindow *p = 0, UInt_t w = 450, UInt_t h = 300);
54 
56  TGVerticalFrame *fContainerFrame;
57 
59  std::map<QGPlot*, QGPlotListEntryFrame*> fEntries;
60 
62  TGCanvas *fScrollableFrame;
63 
64  ClassDef(QGPlotListWindow, 0)
65 };
66 
67 #endif
Class for entries in the plot list.
Singleton class for plot list window.
std::map< QGPlot *, QGPlotListEntryFrame * > fEntries
Map from plots to entries.
TGCanvas * fScrollableFrame
Scrollable frame.
void RemoveEntry(QGPlot *plot)
Remove entry for plot.
static bool IsVisible()
Returns true if the plot list window exists.
void AddEntry(QGPlot *plot)
Add entry for plot.
QGPlotListWindow(const TGWindow *p=0, UInt_t w=450, UInt_t h=300)
Private constructor.
void Refresh()
Refresh the contents of the window.
virtual ~QGPlotListWindow()
Destructor.
static QGPlotListWindow * Instance()
Singleton.
static void Update()
Update the plot list.
static QGPlotListWindow * fMe
Singleton.
void GeneratePlotList()
Generate list of plots.
void Clear(Option_t *opt="")
Clear the plot list.
TGVerticalFrame * fContainerFrame
Container frame for scrollable frame.
Base class for GUI plots including histograms, scatter plots, pulses, and graphical cuts.
Definition: QGPlot.hh:21
Base class for GUI windows.
Definition: QGWindow.hh:15