![]() |
DD4hep
1.33.0
Detector Description Toolkit for High Energy Physics
|
class PopupMenu PopupMenu.h DDEve/PopupMenu.h More...
#include <PopupMenu.h>
Public Types | |
| typedef std::map< int, Callback > | Callbacks |
Public Member Functions | |
| PopupMenu (const TGWindow *parent) | |
| Standard constructor. More... | |
| virtual | ~PopupMenu () |
| Default destructor. More... | |
| void | HandleMenu (int id) |
| Handle menu items. More... | |
| TGPopupMenu & | menu () |
| Access to implementation. More... | |
| virtual void | Build (TGMenuBar *menuBar, int hints=kLHintsNormal) |
| Add the menu to the menu bar. More... | |
| virtual void | AddSeparator (TGMenuEntry *before=0) |
| Add a menu separator to the menu. More... | |
| virtual void | AddLabel (const char *label, const TGPicture *p=0, TGMenuEntry *before=0) |
| Add a menu label to the menu. More... | |
| virtual void | AddPopup (const char *name, TGPopupMenu *popup, TGMenuEntry *before=0, const TGPicture *p=0) |
| Add a (cascading) popup menu to a popup menu. More... | |
| virtual int | AddEntry (const char *name, Callback cb, void *ud=0, const TGPicture *p=0, TGMenuEntry *before=0) |
| Add a new popup menu entry with a callback. More... | |
| template<typename T > | |
| int | AddEntry (const char *name, T *ptr, void(T::*pmf)(TGMenuEntry *, void *), void *ud=0, const TGPicture *p=0, TGMenuEntry *before=0) |
| Add a new popup menu entry with a callback. More... | |
| void | CheckEntry (int id) |
| Check menu entry. More... | |
| void | UnCheckEntry (int id) |
| Uncheck menu entry. More... | |
| bool | IsEntryChecked (int id) |
| Get check-value. More... | |
| TGPopupMenu * | operator-> () |
| Public access to the popup menu using '->'. More... | |
| operator TGPopupMenu * () | |
| Public access to the popup menu using '->'. More... | |
| ClassDef (PopupMenu, 0) | |
Protected Attributes | |
| Callbacks | m_calls |
| Callback map. More... | |
| TGPopupMenu | m_popup |
| int | m_cmd |
class PopupMenu PopupMenu.h DDEve/PopupMenu.h
Definition at line 36 of file PopupMenu.h.
| typedef std::map<int,Callback> dd4hep::PopupMenu::Callbacks |
Definition at line 38 of file PopupMenu.h.
| dd4hep::PopupMenu::PopupMenu | ( | const TGWindow * | parent | ) |
Standard constructor.
|
virtual |
Default destructor.
Definition at line 34 of file PopupMenu.cpp.
|
virtual |
Add a new popup menu entry with a callback.
Definition at line 60 of file PopupMenu.cpp.
|
inline |
Add a new popup menu entry with a callback.
Definition at line 68 of file PopupMenu.h.
|
virtual |
Add a menu label to the menu.
Definition at line 50 of file PopupMenu.cpp.
|
virtual |
Add a (cascading) popup menu to a popup menu.
Definition at line 55 of file PopupMenu.cpp.
|
virtual |
Add a menu separator to the menu.
Definition at line 45 of file PopupMenu.cpp.
|
virtual |
Add the menu to the menu bar.
Reimplemented in dd4hep::DD4hepMenu, and dd4hep::ViewMenu.
Definition at line 41 of file PopupMenu.cpp.
| void PopupMenu::CheckEntry | ( | int | id | ) |
Check menu entry.
Definition at line 81 of file PopupMenu.cpp.
| dd4hep::PopupMenu::ClassDef | ( | PopupMenu | , |
| 0 | |||
| ) |
| void PopupMenu::HandleMenu | ( | int | id | ) |
Handle menu items.
Definition at line 67 of file PopupMenu.cpp.
| bool PopupMenu::IsEntryChecked | ( | int | id | ) |
Get check-value.
Definition at line 91 of file PopupMenu.cpp.
|
inline |
Access to implementation.
Definition at line 53 of file PopupMenu.h.
|
inline |
Public access to the popup menu using '->'.
Definition at line 81 of file PopupMenu.h.
|
inline |
Public access to the popup menu using '->'.
Definition at line 79 of file PopupMenu.h.
| void PopupMenu::UnCheckEntry | ( | int | id | ) |
Uncheck menu entry.
Definition at line 86 of file PopupMenu.cpp.
|
protected |
Callback map.
Definition at line 41 of file PopupMenu.h.
|
protected |
Definition at line 43 of file PopupMenu.h.
|
protected |
Definition at line 42 of file PopupMenu.h.
1.8.18