#include <BesGMenuBar.h>
|
| BesGMenuBar (const TGWindow *p=0, UInt_t w=60, UInt_t h=20, UInt_t options=kHorizontalFrame|kRaisedFrame) |
|
virtual void | AddPopup (TGHotString *s, TGPopupMenu *menu, TGLayoutHints *l, TGPopupMenu *before=0) |
|
virtual void | AddPopup (const char *s, TGPopupMenu *menu, TGLayoutHints *l, TGPopupMenu *before=0) |
|
BesGMenuTitle * | GetMenuTitle (Int_t i) |
|
| BesGMenuBar (const TGWindow *p=0, UInt_t w=60, UInt_t h=20, UInt_t options=kHorizontalFrame|kRaisedFrame) |
|
virtual void | AddPopup (TGHotString *s, TGPopupMenu *menu, TGLayoutHints *l, TGPopupMenu *before=0) |
|
virtual void | AddPopup (const char *s, TGPopupMenu *menu, TGLayoutHints *l, TGPopupMenu *before=0) |
|
BesGMenuTitle * | GetMenuTitle (Int_t i) |
|
|
virtual void | AddFrameBefore (TGFrame *f, TGLayoutHints *l=0, TGPopupMenu *before=0) |
|
virtual void | AddFrameBefore (TGFrame *f, TGLayoutHints *l=0, TGPopupMenu *before=0) |
|
◆ BesGMenuBar() [1/2]
BesGMenuBar::BesGMenuBar |
( |
const TGWindow * |
p = 0 , |
|
|
UInt_t |
w = 60 , |
|
|
UInt_t |
h = 20 , |
|
|
UInt_t |
options = kHorizontalFrame|kRaisedFrame |
|
) |
| |
◆ BesGMenuBar() [2/2]
BesGMenuBar::BesGMenuBar |
( |
const TGWindow * |
p = 0 , |
|
|
UInt_t |
w = 60 , |
|
|
UInt_t |
h = 20 , |
|
|
UInt_t |
options = kHorizontalFrame|kRaisedFrame |
|
) |
| |
◆ AddFrameBefore() [1/2]
void BesGMenuBar::AddFrameBefore |
( |
TGFrame * |
f, |
|
|
TGLayoutHints * |
l = 0 , |
|
|
TGPopupMenu * |
before = 0 |
|
) |
| |
|
protectedvirtual |
Definition at line 43 of file BesGMenuBar.cxx.
45{
46
47
48
49
50 if (f->IsA() != BesGMenuTitle::Class()) {
51 Error("AddFrameBefore", "may only add BesGMenuTitle objects to a menu bar");
52 return;
53 }
54
55 if (!before) {
56 AddFrame(f, l);
57 return;
58 }
59
60 TGFrameElement *nw;
61
62 nw = new TGFrameElement;
63 nw->fFrame = f;
64 nw->fLayout = l ? l : fgDefaultHints;
65 nw->fState = 1;
66
67 TGFrameElement *el;
69 while ((el = (TGFrameElement *)
next())) {
71 if (
t->GetMenu() == before) {
72 fList->AddBefore(el, nw);
73 return;
74 }
75 }
76 fList->Add(nw);
77}
Referenced by AddPopup().
◆ AddFrameBefore() [2/2]
virtual void BesGMenuBar::AddFrameBefore |
( |
TGFrame * |
f, |
|
|
TGLayoutHints * |
l = 0 , |
|
|
TGPopupMenu * |
before = 0 |
|
) |
| |
|
protectedvirtual |
◆ AddPopup() [1/4]
void BesGMenuBar::AddPopup |
( |
const char * |
s, |
|
|
TGPopupMenu * |
menu, |
|
|
TGLayoutHints * |
l, |
|
|
TGPopupMenu * |
before = 0 |
|
) |
| |
|
virtual |
◆ AddPopup() [2/4]
virtual void BesGMenuBar::AddPopup |
( |
const char * |
s, |
|
|
TGPopupMenu * |
menu, |
|
|
TGLayoutHints * |
l, |
|
|
TGPopupMenu * |
before = 0 |
|
) |
| |
|
virtual |
◆ AddPopup() [3/4]
void BesGMenuBar::AddPopup |
( |
TGHotString * |
s, |
|
|
TGPopupMenu * |
menu, |
|
|
TGLayoutHints * |
l, |
|
|
TGPopupMenu * |
before = 0 |
|
) |
| |
|
virtual |
◆ AddPopup() [4/4]
virtual void BesGMenuBar::AddPopup |
( |
TGHotString * |
s, |
|
|
TGPopupMenu * |
menu, |
|
|
TGLayoutHints * |
l, |
|
|
TGPopupMenu * |
before = 0 |
|
) |
| |
|
virtual |
◆ GetMenuTitle() [1/2]
◆ GetMenuTitle() [2/2]
The documentation for this class was generated from the following files: