//------------------------------------------------------------------------------ // gui class for check buttons -- // (C) Piero Giubilato 2008-2010, Berkeley Lab -- //------------------------------------------------------------------------------ //______________________________________________________________________________ // {Trace} // [File name] "gui_Check.h" // [Author] "Devis Contarato, Piero Giubilato" // [Version] "1.0" // [Modified by] "Devis Contarato" // [Last revision] "23 Apr 2009" // [Language] "C++" // [Compiler] "Visual C++ 8.x 9.x" // [Member of] "Cool SEAL" // [Project] "SEAL" // [Description] "Header for the gui_Check class" // [Key documentation] // "Visual C++ Reference Help" // "Root reference guide" // {Trace} //______________________________________________________________________________ // Overloading check #if !defined gui_Check_H #define gui_Check_H // Root components #include #include #include // Application components #include "gui_Const.h" #include "gui_Object.h" // This class provides a functional layer to TGTextButton class gui_Check: public gui_Object { private: // Main interface elements TGCheckButton* check; // The root check button itself // Check button status bool check_Status; // Check button mechanical status bool check_Default; // Check button mechanical default // Private functions void Init(const char* label, UInt_t left, UInt_t top, UInt_t width, UInt_t height); // Special private memebers gui_Check(const gui_Check&) {} const gui_Check& operator=(const gui_Check&) {return *this;} public: // Special member functions gui_Check(const char* label, UInt_t left, UInt_t top, UInt_t width, UInt_t height); gui_Check(gui_Object* parent, const char* label, UInt_t left, UInt_t top, UInt_t width, UInt_t height); ~gui_Check(); // Slots for gui calls, MUST be public void chk_Do(); // gui_Check specific methods bool chk_Status(); bool chk_Status(bool value); bool chk_Default() const; bool chk_Default(bool value); // gui_Object overloaded methods (standard interface) const TGCheckButton* Root() const; void MoveResize(UInt_t left, UInt_t top, UInt_t width, UInt_t height); void LowerWindow() const {check->LowerWindow();}; void RaiseWindow() const {check->RaiseWindow();}; 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_Check, 1) }; // End of Overloading check #endif