13 #ifndef DDEVE_POPUPMENU_H
14 #define DDEVE_POPUPMENU_H
56 virtual void Build(TGMenuBar* menuBar,
int hints=kLHintsNormal);
61 virtual void AddLabel(
const char* label,
const TGPicture* p = 0, TGMenuEntry* before = 0);
63 virtual void AddPopup(
const char* name, TGPopupMenu* popup, TGMenuEntry* before = 0,
const TGPicture* p = 0);
65 virtual int AddEntry(
const char* name,
Callback cb,
void* ud=0,
const TGPicture* p=0, TGMenuEntry* before=0);
68 int AddEntry(
const char* name, T* ptr,
void (T::*pmf)(TGMenuEntry*,
void*),
void* ud=0,
const TGPicture* p=0, TGMenuEntry* before=0) {
81 operator TGPopupMenu* () {
return &
m_popup; }
86 #endif // DDEVE_POPUPMENU_H