SliceButtonBar.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file SliceButtonBar.h
3 // \brief Controls for navigating between slices
4 // \author Christopher Backhouse - bckhouse@caltech.edu
5 ////////////////////////////////////////////////////////////////////////
6 
7 #ifndef EVD_SLICEBUTTONBAR_H
8 #define EVD_SLICEBUTTONBAR_H
9 
10 #include "RQ_OBJECT.h"
11 
12 #include "TGFrame.h"
13 
14 class TGCheckButton;
15 class TGTextButton;
16 class TGLabel;
17 class TGTextEntry;
18 
19 namespace evd
20 {
21  /// Controls for navigating between slices
22  class SliceButtonBar: public TGCompositeFrame
23  {
24  RQ_OBJECT("evd::SliceButtonBar")
25  public:
26  SliceButtonBar(const TGWindow* p);
27  virtual ~SliceButtonBar();
28 
29  // Signal handlers
30  void Enable();
31  void Previous();
32  void Next();
33  Bool_t HandleTimer(TTimer* t);
34  void AutoAdvance();
35  void GoTo();
36  void Update();
37 
38  protected:
39  TTimer* fTimer; ///< Timer to handle slice-level auto-advancing
40  TGTextButton* fPrevButton;
41  TGTextButton* fNextButton;
42  TGTextButton* fAutoAdvanceButton; ///< Start to auto advance
43  TGCheckButton* fEnableButton;
44  TGTextEntry* fSliceTextEntry;
45  TGLabel* fNSlicesLabel;
46 
48  };
49 }
50 
51 #endif
Bool_t HandleTimer(TTimer *t)
Controls for navigating between slices.
const char * p
Definition: xmltok.h:285
TTimer * fTimer
Timer to handle slice-level auto-advancing.
TGTextButton * fPrevButton
TGTextButton * fNextButton
nova event display
SliceButtonBar(const TGWindow *p)
TGTextEntry * fSliceTextEntry
TGCheckButton * fEnableButton
ClassDef(SliceButtonBar, 0)
TGTextButton * fAutoAdvanceButton
Start to auto advance.