QGUIBasketSelector.hh
Go to the documentation of this file.00001
00002 #ifndef _QGUI_BASKET_SELECTOR_HH_
00003 #define _QGUI_BASKET_SELECTOR_HH_
00004
00005 #include "QGUIBaseFrame.hh"
00006 #include "QGUIFont.hh"
00007
00008 #include "Rtypes.h"
00009
00010 #include <vector>
00011
00012 class TGListBox;
00013 class TGTextEntry;
00014 class TGButton;
00015
00016
00022 class QGUIBasketSelector: public QGUIBaseFrame
00023 {
00024
00025 public:
00026
00031 QGUIBasketSelector(const TGWindow *parent, Int_t& basket, Int_t w, Int_t h);
00032
00037 QGUIBasketSelector(const TGWindow *parent, Int_t& basket);
00038
00040 virtual ~QGUIBasketSelector();
00041
00043 void Close(bool qStatus);
00044
00046 void Update();
00047
00048 private:
00049
00050
00051 void PopUp();
00052
00053
00054 void Zeros();
00055
00056
00057 bool Init();
00058
00059 Int_t fTmpBasket;
00060 Int_t &fBasket;
00061
00062
00063 std::vector<int> fBasketIds;
00064
00065
00066
00067 TGHorizontalFrame* fHListFrame;
00068 TGHorizontalFrame* fHBtnFrame;
00069 TGHorizontalFrame* fHLeft;
00070 TGHorizontalFrame* fHRight;
00071
00072
00073 TGTextEntry* fSelText;
00074
00075
00076 TGListBox* fBasketList;
00077
00078
00079 TGTextButton *fOKBtn, *fCancelBtn;
00080
00082 void BuildNames();
00083
00085 void CreateFrames();
00086
00087
00088 void FillBasketList(TGListBox* qList);
00089
00090
00091 void AddButtonsToFrame(TGCompositeFrame* qFrame);
00092
00093 ClassDef(QGUIBasketSelector,0)
00094
00095 };
00096 #endif