00001 #ifndef _QG_SCATTER_PLOT_PARAMETERS_FRAME_HH_ 00002 #define _QG_SCATTER_PLOT_PARAMETERS_FRAME_HH_ 00003 00011 #include <string> 00012 #include "TGFrame.h" 00013 00014 class QGDropDownBox; 00015 class QGScatterPlotEditWindow; 00016 class QGTextEntry; 00017 class TGCheckButton; 00018 class TGLabel; 00019 00020 class QGScatterPlotParametersFrame : public TGCompositeFrame { 00021 public: 00023 QGScatterPlotParametersFrame(QGScatterPlotEditWindow *p = 0, UInt_t w = 100, UInt_t h = 100); 00024 00026 virtual ~QGScatterPlotParametersFrame(); 00027 00029 QGDropDownBox *GetXDropDownBox() {return fXDropDownBox;} 00030 00032 std::string GetXUnits(); 00033 00035 std::string GetXVariable(); 00036 00038 QGDropDownBox *GetYDropDownBox() {return fYDropDownBox;} 00039 00041 std::string GetYUnits(); 00042 00044 std::string GetYVariable(); 00045 00047 //void HandleXUnitsEvent(Event_t *event); 00048 00050 //void HandleXVariableEvent(Event_t *event); 00051 00053 //void HandleYUnitsEvent(Event_t *event); 00054 00056 //void HandleYVariableEvent(Event_t *event); 00057 00059 bool IsSuperimposeSet(); 00060 00062 void SetSuperimpose(bool flag = true); 00063 00065 void SetXUnits(const std::string& units); 00066 00068 void SetXVariable(const std::string& x); 00069 00071 void SetYUnits(const std::string& units); 00072 00074 void SetYVariable(const std::string& y); 00075 00076 private: 00078 QGScatterPlotEditWindow *fScatterPlotEditWindow; 00079 00081 TGCheckButton *fSuperimposeBox; 00082 00084 QGDropDownBox *fXDropDownBox; 00085 00087 TGHorizontalFrame *fXFrame; 00088 00090 TGLabel *fXLabel; 00091 00093 QGTextEntry *fXUnitsBox; 00094 00096 QGDropDownBox *fYDropDownBox; 00097 00099 TGHorizontalFrame *fYFrame; 00100 00102 TGLabel *fYLabel; 00103 00105 QGTextEntry *fYUnitsBox; 00106 00107 ClassDef(QGScatterPlotParametersFrame, 0) 00108 }; 00109 00110 #endif