#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) |
| | 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) |
| virtual void | AddFrameBefore (TGFrame *f, TGLayoutHints *l=0, TGPopupMenu *before=0) |
◆ BesGMenuBar() [1/3]
| BesGMenuBar::BesGMenuBar |
( |
const TGWindow * | p = 0, |
|
|
UInt_t | w = 60, |
|
|
UInt_t | h = 20, |
|
|
UInt_t | options = kHorizontalFrame|kRaisedFrame ) |
◆ BesGMenuBar() [2/3]
| BesGMenuBar::BesGMenuBar |
( |
const TGWindow * | p = 0, |
|
|
UInt_t | w = 60, |
|
|
UInt_t | h = 20, |
|
|
UInt_t | options = kHorizontalFrame|kRaisedFrame ) |
◆ BesGMenuBar() [3/3]
| BesGMenuBar::BesGMenuBar |
( |
const TGWindow * | p = 0, |
|
|
UInt_t | w = 60, |
|
|
UInt_t | h = 20, |
|
|
UInt_t | options = kHorizontalFrame|kRaisedFrame ) |
◆ AddFrameBefore() [1/3]
| void BesGMenuBar::AddFrameBefore |
( |
TGFrame * | f, |
|
|
TGLayoutHints * | l = 0, |
|
|
TGPopupMenu * | before = 0 ) |
|
protectedvirtual |
Definition at line 36 of file BesGMenuBar.cxx.
36 {
37
38
39
40
41 if (
f->IsA() != BesGMenuTitle::Class() )
42 {
43 Error( "AddFrameBefore", "may only add BesGMenuTitle objects to a menu bar" );
44 return;
45 }
46
47 if ( !before )
48 {
50 return;
51 }
52
53 TGFrameElement* nw;
54
55 nw = new TGFrameElement;
57 nw->fLayout = l ? l : fgDefaultHints;
58 nw->fState = 1;
59
60 TGFrameElement* el;
62 while ( ( el = (TGFrameElement*)
next() ) )
63 {
64 BesGMenuTitle*
t = (BesGMenuTitle*)el->fFrame;
65 if (
t->GetMenu() == before )
66 {
67 fList->AddBefore( el, nw );
68 return;
69 }
70 }
71 fList->Add( nw );
72}
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
Referenced by AddPopup().
◆ AddFrameBefore() [2/3]
| virtual void BesGMenuBar::AddFrameBefore |
( |
TGFrame * | f, |
|
|
TGLayoutHints * | l = 0, |
|
|
TGPopupMenu * | before = 0 ) |
|
protectedvirtual |
◆ AddFrameBefore() [3/3]
| virtual void BesGMenuBar::AddFrameBefore |
( |
TGFrame * | f, |
|
|
TGLayoutHints * | l = 0, |
|
|
TGPopupMenu * | before = 0 ) |
|
protectedvirtual |
◆ AddPopup() [1/6]
| void BesGMenuBar::AddPopup |
( |
const char * | s, |
|
|
TGPopupMenu * | menu, |
|
|
TGLayoutHints * | l, |
|
|
TGPopupMenu * | before = 0 ) |
|
virtual |
◆ AddPopup() [2/6]
| virtual void BesGMenuBar::AddPopup |
( |
const char * | s, |
|
|
TGPopupMenu * | menu, |
|
|
TGLayoutHints * | l, |
|
|
TGPopupMenu * | before = 0 ) |
|
virtual |
◆ AddPopup() [3/6]
| virtual void BesGMenuBar::AddPopup |
( |
const char * | s, |
|
|
TGPopupMenu * | menu, |
|
|
TGLayoutHints * | l, |
|
|
TGPopupMenu * | before = 0 ) |
|
virtual |
◆ AddPopup() [4/6]
| void BesGMenuBar::AddPopup |
( |
TGHotString * | s, |
|
|
TGPopupMenu * | menu, |
|
|
TGLayoutHints * | l, |
|
|
TGPopupMenu * | before = 0 ) |
|
virtual |
Definition at line 11 of file BesGMenuBar.cxx.
12 {
13
14
15
16
18 Int_t keycode;
19
22
23 if ( ( keycode =
t->GetHotKeyCode() ) != 0 ) { BindHotKey( keycode, kTRUE ); }
24}
Referenced by AddPopup().
◆ AddPopup() [5/6]
| virtual void BesGMenuBar::AddPopup |
( |
TGHotString * | s, |
|
|
TGPopupMenu * | menu, |
|
|
TGLayoutHints * | l, |
|
|
TGPopupMenu * | before = 0 ) |
|
virtual |
◆ AddPopup() [6/6]
| virtual void BesGMenuBar::AddPopup |
( |
TGHotString * | s, |
|
|
TGPopupMenu * | menu, |
|
|
TGLayoutHints * | l, |
|
|
TGPopupMenu * | before = 0 ) |
|
virtual |
◆ GetMenuTitle() [1/3]
Definition at line 75 of file BesGMenuBar.cxx.
75 {
76 if ( i >= 0 && i < fTitles->GetSize() ) return (BesGMenuTitle*)fTitles->At( i );
77 else return 0;
78}
◆ GetMenuTitle() [2/3]
◆ GetMenuTitle() [3/3]
The documentation for this class was generated from the following files: