1 #ifndef _QG_HISTOGRAM_PARAMETERS_FRAME_HH_
2 #define _QG_HISTOGRAM_PARAMETERS_FRAME_HH_
104 void SetXUnits(
const std::string& units);
double min(const Diana::QVector &v)
Drop down box with tab-complete.
Class for histogram edit window.
Part of a histogram edit window for inputting parameters.
TGHorizontalFrame * fXFrame
Horizontal frame for x-axis variable.
QGTextEntry * fNumberOfBinsBox
Number of bins box.
TGHorizontalFrame * fMinMaxFrame
Horizontal frame for x-axis minimum and maximum.
Double_t GetXMax()
Get x-axis maximum.
void SetNumberOfBins(Int_t n)
Set the number of bins.
QGTextEntry * fXMaxBox
X-axis maximum box.
void HandleXMinEvent(Event_t *event)
Handle event in x-axis minimum box.
TGLabel * fUnitsLabel
Units label.
void SetXMin(Double_t min)
Set the x-axis minimum.
TGHorizontalFrame * fBinsFrame
Horizontal frame for bins parameters.
void AutoSetBinWidth()
Set bin width automatically.
void HandleNumberOfBinsEvent(Event_t *event)
Handle event in number of bins box.
TGLabel * fXLabel
X label.
void SetXVariable(const std::string &x)
Set the x-axis variable.
std::string GetXUnits()
Get x-axis units.
QGHistogramParametersFrame(QGHistogramEditWindow *p=0, UInt_t w=100, UInt_t h=100)
Constructor.
QGDropDownBox * fXDropDownBox
X-axis variable drop down box.
void SetSuperimpose(bool flag=true)
Set whether the superimpose box is checked.
void HandleXMaxEvent(Event_t *event)
Handle event in x-axis maximum box.
void SetBinWidth(Double_t width)
Set the bin width.
bool IsXMaxSet()
Return true if x-axis maximum is set.
Int_t GetNumberOfBins()
Get number of bins.
void SetXUnits(const std::string &units)
Set the x-axis units.
TGCheckButton * fSuperimposeBox
Superimpose check box.
Double_t GetXMin()
Get x-axis minimum.
bool IsBinWidthSet()
Handle event in x-axis units box.
QGDropDownBox * GetXDropDownBox()
Get pointer to x-axis variable drop down box.
QGTextEntry * fBinWidthBox
Bin width box.
void HandleBinWidthEvent(Event_t *event)
Handle event in bin width box.
virtual ~QGHistogramParametersFrame()
Destructor.
bool IsNumberOfBinsSet()
Return true if number of bins is set.
void SetXMax(Double_t max)
Set the x-axis maximum.
QGTextEntry * fXMinBox
X-axis minimum box.
QGTextEntry * fXUnitsBox
X-axis units box.
QGHistogramEditWindow * fHistogramEditWindow
Pointer to parent histogram edit window.
bool IsSuperimposeSet()
Return true if superimpose box is checked.
bool IsXMinSet()
Return true if x-axis minimum is set.
std::string GetXVariable()
Get x-axis variable.
Double_t GetBinWidth()
Get bin width.
void AutoSetNumberOfBins()
Set number of bins automatically.
TGLabel * fBinWidthLabel
Bin width label.
TGLabel * fNumberOfBinsLabel
Number of bins label.
Extension of ROOT's basic text box TGTextEntry.