Diana Software
QGScatterPlotParametersFrame.hh
Go to the documentation of this file.
1 #ifndef _QG_SCATTER_PLOT_PARAMETERS_FRAME_HH_
2 #define _QG_SCATTER_PLOT_PARAMETERS_FRAME_HH_
3 
11 #include <string>
12 #include "TGFrame.h"
13 
14 class QGDropDownBox;
16 class QGTextEntry;
17 class TGCheckButton;
18 class TGLabel;
19 
20 class QGScatterPlotParametersFrame : public TGCompositeFrame {
21 public:
23  QGScatterPlotParametersFrame(QGScatterPlotEditWindow *p = 0, UInt_t w = 100, UInt_t h = 100);
24 
27 
30 
32  std::string GetXUnits();
33 
35  std::string GetXVariable();
36 
39 
41  std::string GetYUnits();
42 
44  std::string GetYVariable();
45 
47  //void HandleXUnitsEvent(Event_t *event);
48 
50  //void HandleXVariableEvent(Event_t *event);
51 
53  //void HandleYUnitsEvent(Event_t *event);
54 
56  //void HandleYVariableEvent(Event_t *event);
57 
59  bool IsSuperimposeSet();
60 
62  void SetSuperimpose(bool flag = true);
63 
65  void SetXUnits(const std::string& units);
66 
68  void SetXVariable(const std::string& x);
69 
71  void SetYUnits(const std::string& units);
72 
74  void SetYVariable(const std::string& y);
75 
76 private:
79 
81  TGCheckButton *fSuperimposeBox;
82 
85 
87  TGHorizontalFrame *fXFrame;
88 
90  TGLabel *fXLabel;
91 
94 
97 
99  TGHorizontalFrame *fYFrame;
100 
102  TGLabel *fYLabel;
103 
106 
107  ClassDef(QGScatterPlotParametersFrame, 0)
108 };
109 
110 #endif
Drop down box with tab-complete.
Class for scatter plot edit window.
Part of a scatter plot edit window for inputting parameters.
QGDropDownBox * GetXDropDownBox()
Get pointer to x-axis variable drop down box.
QGTextEntry * fXUnitsBox
x-axis units box
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.
QGScatterPlotEditWindow * fScatterPlotEditWindow
Pointer to parent scatter plot edit window.
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.
QGDropDownBox * GetYDropDownBox()
Get pointer to y-axis variable drop down box.
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.
Definition: QGTextEntry.hh:13