//------------------------------------------------------------------------------ // gui icon control class -- // (C) Piero Giubilato, Devis Contarato 2008-2010, Berkeley Lab -- //------------------------------------------------------------------------------ //______________________________________________________________________________ // {Trace} // [File name] "gui_Icon.h" // [Author] "Devis Contarato, Piero Giubilato" // [Version] "0.5" // [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_Icon class" // [Key documentation] // "Visual C++ Reference Help" // "Root reference guide" // {Trace} //______________________________________________________________________________ // Overloading check #if !defined gui_Icon_H #define gui_Icon_H // Root components #include #include #include #include // Application components #include "gui_Const.h" #include "gui_Object.h" // This class provides a functional layer to TGTextEntry class gui_Icon: public gui_Object { private: // Main interface elements TGIcon* icon; // The root TGIcon itself char* picName; // The name for the root TGPicture TGPicture* pic; // The root TGPicture // Private functions void Init(TGPicture* pic, UInt_t left, UInt_t top, UInt_t, UInt_t); // Special private members gui_Icon(const gui_Icon&) {} const gui_Icon& operator=(const gui_Icon&) {return *this;} public: // Special member functions gui_Icon(const char* picName, UInt_t left, UInt_t top); gui_Icon(gui_Object* parent, const char* picName, UInt_t left, UInt_t top); ~gui_Icon(); // gui_Icon specific methods TGPicture* icn_Get(const char* picName) const; // gets picture to be put in Icon // gui_Object overloaded methods (standard interface) TGIcon* 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_Icon, 1) }; // End of Overloading check #endif