#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) |
|
|
virtual void | AddFrameBefore (TGFrame *f, TGLayoutHints *l=0, TGPopupMenu *before=0) |
|
Definition at line 8 of file BesGMenuBar.h.
◆ BesGMenuBar()
BesGMenuBar::BesGMenuBar |
( |
const TGWindow * | p = 0, |
|
|
UInt_t | w = 60, |
|
|
UInt_t | h = 20, |
|
|
UInt_t | options = kHorizontalFrame|kRaisedFrame ) |
◆ AddFrameBefore()
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) {
57 return;
58 }
59
60 TGFrameElement *nw;
61
62 nw = new TGFrameElement;
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}
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
Referenced by AddPopup().
◆ AddPopup() [1/2]
void BesGMenuBar::AddPopup |
( |
const char * | s, |
|
|
TGPopupMenu * | menu, |
|
|
TGLayoutHints * | l, |
|
|
TGPopupMenu * | before = 0 ) |
|
virtual |
◆ AddPopup() [2/2]
void BesGMenuBar::AddPopup |
( |
TGHotString * | s, |
|
|
TGPopupMenu * | menu, |
|
|
TGLayoutHints * | l, |
|
|
TGPopupMenu * | before = 0 ) |
|
virtual |
◆ GetMenuTitle()
The documentation for this class was generated from the following files: