//------------------------------------------------------------------------------ // gui text control class -- // (C) Piero Giubilato, Devis Contarato 2008-2010, Berkeley Lab -- //------------------------------------------------------------------------------ //______________________________________________________________________________ // {Trace} // [File name] "gui_Text.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_Text class" // [Key documentation] // "Visual C++ Reference Help" // "Root reference guide" // {Trace} //______________________________________________________________________________ // Overloading check #if !defined gui_Text_H #define gui_Text_H // Root components #include #include #include // Application components #include "gui_Const.h" #include "gui_Object.h" // This class provides a functional layer to TGTextEntry class gui_Text: public gui_Object { private: // Main interface elements TGTextEntry* textentry; // The root TextEntry itself // Private functions void Init(TString entry, UInt_t left, UInt_t top, UInt_t width, UInt_t height); // Special private members gui_Text(const gui_Text&) {} const gui_Text& operator=(const gui_Text&) {return *this;} public: // Special member functions gui_Text(TString entry, UInt_t left, UInt_t top, UInt_t width, UInt_t height); gui_Text(gui_Object* parent, TString entry, UInt_t left, UInt_t top, UInt_t width, UInt_t height); ~gui_Text(); // Slots for gui calls, MUST be public void txt_Do(const char* txt); // gui_Text specific methods const char* txt_Val() const; // gui_Object overloaded methods (standard interface) TGTextEntry* Root() const; void MoveResize(UInt_t left, UInt_t top, UInt_t width, UInt_t height); void LowerWindow() const {textentry->LowerWindow();}; void RaiseWindow() const {textentry->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_Text, 1) }; // End of Overloading check #endif