Diana Software
QGPulseParametersFrame.hh
Go to the documentation of this file.
1 #ifndef _QG_PULSE_PARAMETERS_FRAME_HH_
2 #define _QG_PULSE_PARAMETERS_FRAME_HH_
3 
11 #include <string>
12 #include "TGFrame.h"
13 
14 class QGDropDownBox;
15 class QGPulseEditWindow;
16 class TGCheckButton;
17 class TGLabel;
18 class TGNumberEntryField;
19 class TGPictureButton;
20 
21 class QGPulseParametersFrame : public TGCompositeFrame {
22 public:
24  QGPulseParametersFrame(QGPulseEditWindow *p = 0, UInt_t w = 100, UInt_t h = 100);
25 
27  virtual ~QGPulseParametersFrame();
28 
30  Long_t GetEventIndex() const;
31 
34 
37 
39  std::string GetOrderVariable() const;
40 
42  std::string GetSamplesLabel() const;
43 
45  void HandleNextButton();
46 
48  void HandlePreviousButton();
49 
51  void HandlePulseNumberBox();
52 
54  bool IsSuperimposeSet();
55 
57  bool IsUseADCUnitsSet();
58 
60  bool IsShowLegendsSet();
61 
63  bool IsZeroOffsetSet();
64 
66  bool IsUnitarySet();
67 
69  void SetEventIndex(Long_t index);
70 
72  void SetNumberOfEvents(Long_t number);
73 
75  void SetOrderVariable(std::string orderVariable);
76 
78  void SetSamplesLabel(std::string samplesVariable);
79 
81  void SetSuperimpose(bool flag = true);
82 
84  void SetUseADCUnits(bool flag = true);
85 
87  void SetShowLegends(bool flag = true);
88 
90  void SetZeroOffset(bool flag = true);
91 
93  void SetUnitary(bool flag = true);
94 
95 private:
97  TGPictureButton *fNextButton;
98 
100  TGNumberEntryField *fNumberOfPulsesBox;
101 
103  TGHorizontalFrame *fOptionsFrame;
104 
106  TGHorizontalFrame *fOptionsFrame2;
107 
110 
113 
115  TGHorizontalFrame *fOrderedByFrame;
116 
118  TGHorizontalFrame *fSamplesLabelFrame;
119 
121  TGLabel *fOrderedByLabel;
122 
124  TGLabel *fSamplesLabel;
125 
127  TGPictureButton *fPreviousButton;
128 
130  TGHorizontalFrame *fPreviousNextFrame;
131 
134 
136  TGNumberEntryField *fPulseNumberBox;
137 
139  TGCheckButton *fSuperimposeBox;
140 
142  TGCheckButton *fUseADCUnitsBox;
143 
145  TGCheckButton *fShowLegendsBox;
146 
148  TGCheckButton *fZeroOffsetBox;
149 
151  TGCheckButton *fUnitaryBox;
152 
153  ClassDef(QGPulseParametersFrame, 0)
154 };
155 
156 #endif
Drop down box with tab-complete.
Class for pulse edit window.
Part of a pulse edit window for inputting parameters.
TGHorizontalFrame * fOrderedByFrame
Horizontal frame for ordered-by.
TGNumberEntryField * fNumberOfPulsesBox
Number of pulses box.
std::string GetOrderVariable() const
Get ordered-by variable.
TGLabel * fOrderedByLabel
Ordered-by label.
TGCheckButton * fUseADCUnitsBox
Use ADC Units check box.
void SetShowLegends(bool flag=true)
Set whether the legends box is checked.
void SetSuperimpose(bool flag=true)
Set whether the superimpose box is checked.
TGCheckButton * fSuperimposeBox
Superimpose check box.
TGHorizontalFrame * fOptionsFrame2
Secondary Horizontal frame for options boxes.
QGDropDownBox * GetSamplesLabelDropDownBox()
Get pointer to the samples label drop down box.
bool IsUseADCUnitsSet()
Return true if use ADC units box is checked.
QGPulseEditWindow * fPulseEditWindow
Pointer to parent pulse edit window.
bool IsZeroOffsetSet()
Return true if zero offset box is checked.
void SetUnitary(bool flag=true)
Set whether the unitary box is checked.
void HandlePreviousButton()
Handle previous button.
TGHorizontalFrame * fOptionsFrame
Horizontal frame for options boxes.
Long_t GetEventIndex() const
Get event index.
void SetOrderVariable(std::string orderVariable)
Set ordered-by variable.
TGCheckButton * fShowLegendsBox
Show Legends check box.
QGDropDownBox * GetOrderedByDropDownBox()
Get pointer to the ordered-by drop down box.
void SetNumberOfEvents(Long_t number)
Set number of events.
void SetZeroOffset(bool flag=true)
Set whether the zero offset box is checked.
TGLabel * fSamplesLabel
sampleslabel
virtual ~QGPulseParametersFrame()
Destructor.
TGNumberEntryField * fPulseNumberBox
Pulse number box.
void SetEventIndex(Long_t index)
Set event index.
bool IsShowLegendsSet()
Return true if legends box is checked.
TGHorizontalFrame * fPreviousNextFrame
Horizontal frame for previous/next buttons.
QGPulseParametersFrame(QGPulseEditWindow *p=0, UInt_t w=100, UInt_t h=100)
Constructor.
QGDropDownBox * fSamplesLabelDropDownBox
samples label box
void HandlePulseNumberBox()
Handle pulse number box.
TGCheckButton * fZeroOffsetBox
ZeroOffset check box.
bool IsUnitarySet()
Return true if unitary box is checked.
QGDropDownBox * fOrderedByDropDownBox
Ordered-by box.
TGCheckButton * fUnitaryBox
Unitary check box.
TGHorizontalFrame * fSamplesLabelFrame
Horizontal frame for samples.
void SetUseADCUnits(bool flag=true)
Set whether the use ADC units box is checked.
bool IsSuperimposeSet()
Return true if superimpose box is checked.
TGPictureButton * fPreviousButton
Previous button.
TGPictureButton * fNextButton
Next button.
std::string GetSamplesLabel() const
Get samples label.
void HandleNextButton()
Handle next button.
void SetSamplesLabel(std::string samplesVariable)
Set samples label.