00001 #ifndef _QG_PULSE_PARAMETERS_FRAME_HH_ 00002 #define _QG_PULSE_PARAMETERS_FRAME_HH_ 00003 00011 #include <string> 00012 #include "TGFrame.h" 00013 00014 class QGDropDownBox; 00015 class QGPulseEditWindow; 00016 class TGCheckButton; 00017 class TGLabel; 00018 class TGNumberEntryField; 00019 class TGPictureButton; 00020 00021 class QGPulseParametersFrame : public TGCompositeFrame { 00022 public: 00024 QGPulseParametersFrame(QGPulseEditWindow *p = 0, UInt_t w = 100, UInt_t h = 100); 00025 00027 virtual ~QGPulseParametersFrame(); 00028 00030 Long_t GetEventIndex() const; 00031 00033 QGDropDownBox *GetOrderedByDropDownBox() {return fOrderedByDropDownBox;} 00034 00036 std::string GetOrderVariable() const; 00037 00039 void HandleNextButton(); 00040 00042 void HandlePreviousButton(); 00043 00045 void HandlePulseNumberBox(); 00046 00048 bool IsSuperimposeSet(); 00049 00051 bool IsUseADCUnitsSet(); 00052 00054 void SetEventIndex(Long_t index); 00055 00057 void SetNumberOfEvents(Long_t number); 00058 00060 void SetOrderVariable(std::string orderVariable); 00061 00063 void SetSuperimpose(bool flag = true); 00064 00066 void SetUseADCUnits(bool flag = true); 00067 00068 private: 00070 TGPictureButton *fNextButton; 00071 00073 TGNumberEntryField *fNumberOfPulsesBox; 00074 00076 TGHorizontalFrame *fOptionsFrame; 00077 00079 QGDropDownBox *fOrderedByDropDownBox; 00080 00082 TGHorizontalFrame *fOrderedByFrame; 00083 00085 TGLabel *fOrderedByLabel; 00086 00088 TGPictureButton *fPreviousButton; 00089 00091 TGHorizontalFrame *fPreviousNextFrame; 00092 00094 QGPulseEditWindow *fPulseEditWindow; 00095 00097 TGNumberEntryField *fPulseNumberBox; 00098 00100 TGCheckButton *fSuperimposeBox; 00101 00103 TGCheckButton *fUseADCUnitsBox; 00104 00105 ClassDef(QGPulseParametersFrame, 0) 00106 }; 00107 00108 #endif