//------------------------------------------------------------------------------ // gui tools classes -- // (C) Nicola Pozzobon 2008-2010, DipFIS UniPD -- //------------------------------------------------------------------------------ //______________________________________________________________________________ // {Trace} // [File name] "gui_Menu.h" // [Author] "Nicola Pozzobon" // [Version] "0.5" // [Modified by] "Nicola Pozzobon" // [Last revision] "15 Jan 2009" // [Language] "C++" // [Compiler] "Visual C++ 8.x 9.x" // [Member of] "Cool SEAL" // [Project] "SEAL" // [Description] "Header for the gui_Menu class" // [Key documentation] // "Visual C++ Reference Help" // "Root reference guide" // {Trace} //______________________________________________________________________________ // Overloading check #if !defined gui_Menu_H #define gui_Menu_H // Root components #include #include #include // advanced #include //NP** Needed to handle list of entries // Application components #include "gui_Const.h" #include "gui_Object.h" //#include "gui_Bar.h" // This class provides a functional layer to TGPopupMenu class gui_Menu: public gui_Object { private: // Main interface elements TGPopupMenu* menu; // The ROOT menu TString menu_Name; // The name of the menu // Private functions // Special private memebers gui_Menu(const gui_Menu&) {} const gui_Menu& operator=(const gui_Menu&) {return *this;} public: // Special member functions //gui_Menu(const char* label, gui_Bar* guibar); gui_Menu(const char* label, TGMenuBar* menubar); gui_Menu(const char* label); ~gui_Menu(); // Slots for gui calls, MUST be public void mnu_Do(int t); // gui_Menu specific methods void mnu_Entry(const char* label, Int_t ijk); void mnu_Separator(); void mnu_List(std::vector entry_list); // gui_Object overloaded methods (standard interface) const TGPopupMenu* Root() const; // Cint preprocessor token ClassDef(gui_Menu, 1) }; // End of Overloading check #endif