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    // Create Window
00051    void PopUp();
00052    
00053    // Set to zero all Pointers
00054    void Zeros();
00055    
00056    // Init
00057    bool Init();
00058    
00059    Int_t fTmpBasket; // Setting Basket Selected
00060    Int_t &fBasket;   // Address to store return values
00061    
00062    // Vector Filled with Setting Basket Ids
00063    std::vector<int> fBasketIds;
00064    
00065   
00066    // Frames Pointers
00067    TGHorizontalFrame* fHListFrame;   // Top Frame
00068    TGHorizontalFrame* fHBtnFrame;    // Bottom Frame
00069    TGHorizontalFrame* fHLeft;        // Left Frame
00070    TGHorizontalFrame* fHRight;       // Right Frame
00071    
00072    // Selected Setting Basket Text Entry
00073    TGTextEntry* fSelText;
00074    
00075    // List Box
00076    TGListBox*   fBasketList;         // List of Setting Basket
00077    
00078    
00079    TGTextButton *fOKBtn, *fCancelBtn;  // Buttons
00080 
00082   void BuildNames();
00083 
00085   void CreateFrames();
00086 
00087   // Fill Basket List Box
00088   void FillBasketList(TGListBox* qList);
00089 
00090   // Add buttons
00091   void AddButtonsToFrame(TGCompositeFrame* qFrame);
00092 
00093   ClassDef(QGUIBasketSelector,0)
00094 
00095 };
00096 #endif

Generated on Tue Nov 16 10:49:54 2010 for CUORE Software by  doxygen 1.5.6