7 #include "TGNumberEntry.h"
9 #include "TGTextEntry.h"
12 #include "ImageLeftArrow.xpm"
13 #include "ImageRightArrow.xpm"
19 using std::stringstream;
22 TGCompositeFrame(p, w, h),
25 SetCleanup(kDeepCleanup);
35 fPreviousButton->Connect(
"Clicked()",
"QGPulseParametersFrame",
this,
"HandlePreviousButton()");
43 fPulseNumberBox->SetToolTipText(
"Number of event ordered by variable below");
44 fPulseNumberBox->Connect(
"ReturnPressed()",
"QGPulseParametersFrame",
this,
"HandlePulseNumberBox()");
57 fNextButton->Connect(
"Clicked()",
"QGPulseParametersFrame",
this,
"HandleNextButton()");
70 AddFrame(
fOrderedByFrame,
new TGLayoutHints(kLHintsExpandX, 0, 0, 2, 0));
81 AddFrame(
fOptionsFrame,
new TGLayoutHints(kLHintsExpandX, 0, 0, 2, 0));
85 fSuperimposeBox->SetToolTipText(
"Check to superimpose pulse on existing pulse");
93 fShowLegendsBox->SetToolTipText(
"Check to show pulse info legends on the plot");
96 AddFrame(
fOptionsFrame2,
new TGLayoutHints(kLHintsExpandX, 0, 0, 2, 0));
101 fZeroOffsetBox->SetToolTipText(
"Check to subtract the value of first sample to the entire pulse");
105 fUnitaryBox->SetToolTipText(
"Check to normalize to the pulse amplitude");
Drop down box with tab-complete.
void EnableTabCompletion()
Enable tab completion.
virtual void Plot()
Plot this in the associated canvas window, generating it if necessary.
Class for pulse edit window.
QGPlot * GetPlot()
Get pointer to the pulse plot.
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.
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.
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.