//------------------------------------------------------------------------------ // gui combo boxes control class -- // (C) Piero Giubilato, Devis Contarato 2008-2010, Berkeley Lab -- //------------------------------------------------------------------------------ //______________________________________________________________________________ // {Trace} // [File name] "gui_Combo.h" // [Author] "Devis Contarato, Piero Giubilato" // [Version] "0.6" // [Modified by] "Devis Contarato" // [Last revision] "11 Feb 2009" // [Language] "C++" // [Compiler] "Visual C++ 8.x 9.x" // [Member of] "Cool SEAL" // [Project] "SEAL" // [Description] "Header for the gui_Combo class" // [Key documentation] // "Visual C++ Reference Help" // "Root reference guide" // {Trace} //______________________________________________________________________________ // Overloading check #if !defined gui_Combo_H #define gui_Combo_H // Root components #include #include #include // Application components #include "gui_Const.h" #include "gui_Object.h" // This class provides a functional layer to TGComboBox class gui_Combo: public gui_Object { private: // Main interface elements TGComboBox* combo; // The root ComboBox itself // Private functions void Init(Int_t box_Id, UInt_t left, UInt_t top, UInt_t width, UInt_t height); // Special private members gui_Combo(const gui_Combo&) {} const gui_Combo& operator=(const gui_Combo&) {return *this;} public: // Special member functions gui_Combo(Int_t box_Id, UInt_t left, UInt_t top, UInt_t width, UInt_t height); ~gui_Combo(); // Slots for gui calls, MUST be public void cbox_Do(const Int_t box_Id); // gui_Text specific methods void cbox_Entry(const char* entry, Int_t entry_Id); // add an entry to the combo box const Int_t cbox_Val() const; // Get selected entry id void cbox_Val(Int_t val); // Set selected entry id // gui_Object overloaded methods (standard interface) TGComboBox* Root() const; void MoveResize(UInt_t left, UInt_t top, UInt_t width, UInt_t height); void color_Set(UInt_t foreColor, UInt_t backColor); const TString Text() const; void Text(const char* text); bool fontBold() const; void fontBold(bool bold); // Cint preprocessor token ClassDef(gui_Combo, 1) }; // End of Overloading check #endif