ButtonBank.h
Go to the documentation of this file.
1 #ifndef OM_BUTTONBANK_H
2 #define OM_BUTTONBANK_H
3 #include "RQ_OBJECT.h"
4 #include "TGFrame.h"
6 
7 class TGPictureButton;
8 class TGLayoutHints;
9 class TTimer;
10 
11 namespace om
12 {
13  class ButtonBank : public TGCompositeFrame, public GUIModelSubscriber
14  {
15  RQ_OBJECT("om::ButtonBank")
16 
17  public:
18  ButtonBank(TGWindow* w);
19  ~ButtonBank();
20 
21  void Back();
22  void Forward();
23  void Pause();
24  void Resume();
25  void Update();
26  void Histo();
27  void PrintPlot();
28 
29  Bool_t HandleTimer(TTimer *t);
30 
31  ///
32  /// Complete the GUIModelDataSubscriber interface
33  ///
34  void GUIModelDataIssue(const GUIModelData& d, unsigned int which);
35 
36  private:
37  TGLayoutHints* fLhint; ///< Layout hints
38  TGPictureButton* fBack; ///< Move back in plot history
39  TGPictureButton* fForward; ///< Move forward in plot history
40  TGPictureButton* fUpdate; ///< Update current plot
41  TGPictureButton* fPause; ///< Pause automatic updates
42  TGPictureButton* fResume; ///< Resume automatic updates
43  TGPictureButton* fHisto; ///< Show histogram of 2D contents
44  TGPictureButton* fPrint; ///< Print plot to file
45 
46  TTimer* fTimer; ///< The timer to issue plot auto-refresh
47 
48  ClassDef(ButtonBank, 0)
49  };
50 }
51 
52 #endif
53 ////////////////////////////////////////////////////////////////////////
void GUIModelDataIssue(const GUIModelData &d, unsigned int which)
Definition: ButtonBank.cxx:152
TGPictureButton * fForward
Move forward in plot history.
Definition: ButtonBank.h:39
TGPictureButton * fBack
Move back in plot history.
Definition: ButtonBank.h:38
TTimer * fTimer
The timer to issue plot auto-refresh.
Definition: ButtonBank.h:46
ButtonBank(TGWindow *w)
Definition: ButtonBank.cxx:14
TGPictureButton * fPause
Pause automatic updates.
Definition: ButtonBank.h:41
TGLayoutHints * fLhint
Layout hints.
Definition: ButtonBank.h:37
Float_t d
Definition: plot.C:236
TGPictureButton * fResume
Resume automatic updates.
Definition: ButtonBank.h:42
Bool_t HandleTimer(TTimer *t)
Definition: ButtonBank.cxx:126
TGPictureButton * fUpdate
Update current plot.
Definition: ButtonBank.h:40
TGPictureButton * fHisto
Show histogram of 2D contents.
Definition: ButtonBank.h:43
TGPictureButton * fPrint
Print plot to file.
Definition: ButtonBank.h:44
Float_t w
Definition: plot.C:20
Online Monitoring package header.