7 #include <TGTextEntry.h>
13 using std::stringstream;
16 TGCompositeFrame(p, w, h),
17 fScatterPlotEditWindow(p)
19 SetCleanup(kDeepCleanup);
21 fXFrame =
new TGHorizontalFrame(
this, w, 25);
22 AddFrame(
fXFrame,
new TGLayoutHints(kLHintsExpandX, 0, 0, 0, 0));
25 fXFrame->AddFrame(
fXLabel,
new TGLayoutHints(kLHintsCenterY, 0, 0, 0, 0));
28 fXFrame->AddFrame(
fXDropDownBox,
new TGLayoutHints(kLHintsExpandX | kLHintsCenterY, 2, 0, 0, 0));
31 fXDropDownBox->GetTextEntry()->SetToolTipText(
"Enter x-axis variable");
37 fXUnitsBox->SetToolTipText(
"Enter x-axis units");
40 fYFrame =
new TGHorizontalFrame(
this, w, 25);
41 AddFrame(
fYFrame,
new TGLayoutHints(kLHintsExpandX | kLHintsCenterY, 0, 0, 0, 0));
44 fYFrame->AddFrame(
fYLabel,
new TGLayoutHints(kLHintsCenterY, 0, 0, 0, 0));
47 fYFrame->AddFrame(
fYDropDownBox,
new TGLayoutHints(kLHintsExpandX | kLHintsCenterY, 2, 0, 0, 0));
50 fYDropDownBox->GetTextEntry()->SetToolTipText(
"Enter y-axis variable");
56 fYUnitsBox->SetToolTipText(
"Enter y-axis units");
61 fSuperimposeBox->SetToolTipText(
"Check to superimpose scatter plot on existing scatter plots");
Drop down box with tab-complete.
void SetReturnTarget(TGTextEntry *textBox)
Set return target.
void EnableTabCompletion()
Enable tab completion.
Class for scatter plot edit window.
Part of a scatter plot edit window for inputting parameters.
QGTextEntry * fXUnitsBox
x-axis units box
TGLabel * fYLabel
Y label.
TGLabel * fXLabel
X label.
std::string GetXVariable()
Get x-axis variable.
void SetXUnits(const std::string &units)
Set the x-axis units.
QGDropDownBox * fXDropDownBox
x-axis variable drop down box
std::string GetYUnits()
Get y-axis units.
void SetYUnits(const std::string &units)
Set the y-axis units.
void SetYVariable(const std::string &y)
Set the y-axis variable.
QGTextEntry * fYUnitsBox
y-axis units box
void SetSuperimpose(bool flag=true)
Set whether the superimpose box is checked.
virtual ~QGScatterPlotParametersFrame()
Destructor.
bool IsSuperimposeSet()
Handle event in x-axis units box.
void SetXVariable(const std::string &x)
Set the x-axis variable.
TGHorizontalFrame * fXFrame
Horizontal frame for x-axis variable.
QGScatterPlotParametersFrame(QGScatterPlotEditWindow *p=0, UInt_t w=100, UInt_t h=100)
Constructor.
std::string GetYVariable()
Get y-axis variable.
std::string GetXUnits()
Get x-axis units.
QGDropDownBox * fYDropDownBox
y-axis variable drop down box
TGHorizontalFrame * fYFrame
Horizontal frame for y-axis variable.
TGCheckButton * fSuperimposeBox
Superimpose check box.
Extension of ROOT's basic text box TGTextEntry.
void SetTabTarget(TGTextEntry *textBox)
Set text box to tab to.