#include <TGMenu.h>
Inheritance diagram for TGMenuBar:
Definition at line 312 of file TGMenu.h.
TGMenuBar::TGMenuBar | ( | const TGMenuBar & | ) | [private] |
TGMenuBar::TGMenuBar | ( | const TGWindow * | p = 0 , |
|
UInt_t | w = 60 , |
|||
UInt_t | h = 20 , |
|||
UInt_t | options = kHorizontalFrame|kRaisedFrame | |||
) |
Definition at line 118 of file TGMenu.cxx.
References TGPopupMenu::AddLabel(), TGPopupMenu::AddSeparator(), TGObject::fClient, fCurrent, fDefaultCursor, TGObject::fId, fKeyNavigate, fMenuBarMoreLayout, fMenuMore, fNeededSpace, fOutLayouts, fStick, fTitles, fTrash, fWithExt, gClient, TGClient::GetDefaultRoot(), TGResourcePool::GetGrabCursor(), TGClient::GetResourcePool(), gVirtualX, kAnyModifier, kButton1, kButtonPressMask, kButtonReleaseMask, kEnterWindowMask, kFALSE, kLHintsRight, kLHintsTop, kNone, kTRUE, and TGPopupMenu.
TGMenuBar::~TGMenuBar | ( | ) | [virtual] |
Definition at line 146 of file TGMenu.cxx.
References TList::Delete(), TGFrameElement::fFrame, TGCompositeFrame::fList, fMenuBarMoreLayout, fMenuMore, fNeededSpace, fOutLayouts, fTitles, fTrash, TGWindow::GetMainFrame(), if(), kKeyMod1Mask, main(), TGCompositeFrame::MustCleanup(), and t.
TGMenuBar::TGMenuBar | ( | const TGMenuBar & | ) | [private] |
TGMenuBar::TGMenuBar | ( | const TGWindow * | p = 0 , |
|
UInt_t | w = 60 , |
|||
UInt_t | h = 20 , |
|||
UInt_t | options = kHorizontalFrame|kRaisedFrame | |||
) |
virtual TGMenuBar::~TGMenuBar | ( | ) | [virtual] |
void TGMenuBar::AddFrameBefore | ( | TGFrame * | f, | |
TGLayoutHints * | l = 0 , |
|||
TGPopupMenu * | before = 0 | |||
) | [protected, virtual] |
Definition at line 489 of file TGMenu.cxx.
References TList::Add(), TList::AddBefore(), TGCompositeFrame::AddFrame(), TObject::Error(), TGFrameElement::fFrame, TGCompositeFrame::fgDefaultHints, TGFrameElement::fLayout, TGCompositeFrame::fList, TGFrameElement::fState, if(), l, and t.
Referenced by AddPopup(), and AddTitle().
Definition at line 371 of file TGMenu.cxx.
References TGWindow::GetMainFrame(), kKeyLockMask, kKeyMod1Mask, kKeyMod2Mask, kKeyShiftMask, and main().
Referenced by AddPopup(), AddTitle(), and RemovePopup().
Definition at line 324 of file TGMenu.cxx.
References BindMenu(), fCurrent, TGObject::fId, TGMenuTitle::GetMenu(), gVirtualX, kAnyModifier, kKey_Down, kKey_Enter, kKey_Escape, kKey_Left, kKey_Return, kKey_Right, and kKey_Up.
Referenced by TGPopupMenu::EndMenu(), and TGPopupMenu::PlaceMenu().
void TGMenuBar::BindMenu | ( | TGPopupMenu * | subMenu, | |
Bool_t | on | |||
) | [protected] |
Definition at line 343 of file TGMenu.cxx.
References TGObject::fId, TGHotString::GetHotChar(), TGMenuEntry::GetLabel(), TGPopupMenu::GetListOfEntries(), TGMenuEntry::GetPopup(), TGMenuEntry::GetType(), gVirtualX, kKeyLockMask, kKeyMod2Mask, kKeyShiftMask, and kMenuPopup.
Referenced by BindKeys().
void TGMenuBar::AddPopup | ( | TGHotString * | s, | |
TGPopupMenu * | menu, | |||
TGLayoutHints * | l, | |||
TGPopupMenu * | before = 0 | |||
) | [virtual] |
Definition at line 404 of file TGMenu.cxx.
References TList::Add(), AddFrameBefore(), BindHotKey(), fTitles, kTRUE, l, s, and t.
Referenced by TStyleManager::AddMenus(), AddPopup(), TGMdiMenuBar::AddPopup(), TGTextEditor::Build(), TSessionViewer::Build(), TGRootIDE::Build(), TTreeViewer::BuildInterface(), TRootBrowser::CreateBrowser(), TRootBrowserLite::CreateBrowser(), TRootCanvas::CreateCanvas(), TGLSAViewer::CreateMenus(), TViewerX3D::CreateViewer(), DNDMainFrame::DNDMainFrame(), TestMainFrame::HandleMenu(), Layout(), RootShower::MakeMenuBarFrame(), SplitGLView::SplitGLView(), TestFileList::TestFileList(), TestMainFrame::TestMainFrame(), TEveBrowser::TEveBrowser(), TGHtmlBrowser::TGHtmlBrowser(), and XSGui::XSGui().
void TGMenuBar::AddPopup | ( | const char * | s, | |
TGPopupMenu * | menu, | |||
TGLayoutHints * | l, | |||
TGPopupMenu * | before = 0 | |||
) | [virtual] |
TGPopupMenu * TGMenuBar::AddPopup | ( | const TString & | s, | |
Int_t | padleft = 4 , |
|||
Int_t | padright = 0 , |
|||
Int_t | padtop = 0 , |
|||
Int_t | padbottom = 0 | |||
) | [virtual] |
Definition at line 448 of file TGMenu.cxx.
References TList::Add(), AddPopup(), TGObject::fClient, fTrash, TGClient::GetDefaultRoot(), kLHintsLeft, kLHintsRight, kLHintsTop, l, s, and TGPopupMenu.
void TGMenuBar::AddTitle | ( | TGMenuTitle * | title, | |
TGLayoutHints * | l, | |||
TGPopupMenu * | before = 0 | |||
) | [virtual] |
Definition at line 423 of file TGMenu.cxx.
References TList::Add(), AddFrameBefore(), BindHotKey(), fTitles, kTRUE, l, and title.
Referenced by TRootGuiBuilder::InitMenu().
TGPopupMenu * TGMenuBar::GetPopup | ( | const char * | s | ) | [virtual] |
Definition at line 526 of file TGMenu.cxx.
References TGFrameElement::fFrame, TGCompositeFrame::GetList(), if(), str, and t.
Referenced by TestMainFrame::HandleMenu().
TGPopupMenu * TGMenuBar::RemovePopup | ( | const char * | s | ) | [virtual] |
Definition at line 547 of file TGMenu.cxx.
References BindHotKey(), TGFrameElement::fFrame, fTitles, TGCompositeFrame::GetList(), if(), kFALSE, m, TList::Remove(), TGCompositeFrame::RemoveFrame(), str, and t.
Referenced by TestMainFrame::HandleMenu(), and Layout().
virtual TGMenuTitle* TGMenuBar::GetCurrent | ( | ) | const [inline, virtual] |
Definition at line 356 of file TGMenu.h.
References fCurrent.
Referenced by TGLSAViewer::HandleMenuBarHiding().
virtual TList* TGMenuBar::GetTitles | ( | ) | const [inline, virtual] |
Reimplemented from TGCompositeFrame.
Definition at line 611 of file TGMenu.cxx.
References dummy, TGObject::fClient, fCurrent, fDefaultCursor, TGFrameElement::fFrame, TGObject::fId, fKeyNavigate, TGCompositeFrame::fList, fStick, Event_t::fType, Event_t::fX, Event_t::fY, TGClient::GetWindowById(), gVirtualX, kButtonPress, kButtonPressMask, kButtonRelease, kButtonReleaseMask, kFALSE, kNone, kPointerMotionMask, and kTRUE.
Reimplemented from TGCompositeFrame.
Definition at line 578 of file TGMenu.cxx.
References dummy, TGObject::fClient, fCurrent, TGFrameElement::fFrame, TGObject::fId, fKeyNavigate, TGCompositeFrame::fList, Event_t::fState, fStick, Event_t::fX, Event_t::fY, TGClient::GetWindowById(), gVirtualX, kButton1Mask, kFALSE, and kTRUE.
Reimplemented from TGCompositeFrame.
Definition at line 674 of file TGMenu.cxx.
References TGPopupMenu::Activate(), TList::After(), TList::Before(), dummy, TGPopupMenu::EndMenu(), Event_t::fCode, fCurrent, fDefaultCursor, TGMenuEntry::fEx, TGMenuEntry::fEy, TGFrameElement::fFrame, TGObject::fId, TList::First(), fKeyNavigate, TGCompositeFrame::fList, TGPopupMenu::fMenuWidth, TGPopupMenu::fPoppedUp, TGMenuEntry::fPopup, Event_t::fState, TGPopupMenu::fStick, fStick, Event_t::fType, Event_t::fWindow, TGPopupMenu::GetCurrent(), TGHotString::GetHotChar(), TGObject::GetId(), TGMenuEntry::GetLabel(), TGPopupMenu::GetListOfEntries(), TGMenuTitle::GetMenu(), TGWindow::GetParent(), TGMenuEntry::GetPopup(), TGMenuEntry::GetStatus(), TGMenuEntry::GetType(), gVirtualX, TGPopupMenu::HandleButton(), if(), kButtonPressMask, kButtonRelease, kButtonReleaseMask, kFALSE, kGKeyPress, kKey_Down, kKey_Enter, kKey_Escape, kKey_Left, kKey_Return, kKey_Right, kKey_Up, kKeyMod1Mask, kKeyRelease, kMenuEnableMask, kMenuHideMask, kMenuLabel, kMenuPopup, kMenuSeparator, kNone, kPointerMotionMask, kTRUE, TList::Last(), TGPopupMenu::PlaceMenu(), ptr, TGWindow::RequestFocus(), TIter::Reset(), and TGMenuTitle::SetState().
void TGMenuBar::SavePrimitive | ( | ostream & | out, | |
Option_t * | option = "" | |||
) | [virtual] |
Reimplemented from TGHorizontalFrame.
Definition at line 2274 of file TGMenu.cxx.
References TGFrameElement::fFrame, TGFrameElement::fLayout, TGCompositeFrame::fList, TGWindow::fParent, TGFrame::GetHeight(), TGWindow::GetName(), TGFrame::GetOptionString(), TGFrame::GetWidth(), out, TGFrame::SavePrimitive(), and TGLayoutHints::SavePrimitive().
void TGMenuBar::Layout | ( | ) | [virtual] |
Reimplemented from TGCompositeFrame.
Definition at line 184 of file TGMenu.cxx.
References TList::AddLast(), AddPopup(), TGPopupMenu::AddPopup(), TQObject::Connect(), TGPopupMenu::DeleteEntry(), TQObject::Disconnect(), entry, fMenuBarMoreLayout, fMenuMore, fNeededSpace, fOutLayouts, fWithExt, TGCompositeFrame::GetDefaultWidth(), GetLastOnLeft(), TGLayoutHints::GetLayoutHints(), TGCompositeFrame::GetList(), TGPopupMenu::GetListOfEntries(), TGMenuTitle::GetMenu(), TGMenuTitle::GetName(), TGMenuEntry::GetName(), TGMenuEntry::GetPopup(), TGFrame::GetSize(), TCollection::GetSize(), TGFrame::GetWidth(), kFALSE, kLHintsRight, kTRUE, TList::Last(), TGCompositeFrame::Layout(), TGCompositeFrame::MapSubwindows(), TList::Remove(), and RemovePopup().
Referenced by TestMainFrame::HandleMenu().
void TGMenuBar::PopupConnection | ( | ) |
Definition at line 276 of file TGMenu.cxx.
References TQObject::Connect(), TQObject::Disconnect(), fMenuMore, TGPopupMenu::fMsgWindow, TGPopupMenu::GetCurrent(), TQObject::GetListOfSignals(), TGMenuEntry::GetPopup(), TGMenuEntry::GetType(), and kMenuPopup.
TGFrameElement * TGMenuBar::GetLastOnLeft | ( | ) |
Definition at line 255 of file TGMenu.cxx.
References entry, fMenuMore, TGCompositeFrame::GetList(), TGMenuTitle::GetMenu(), and kLHintsRight.
Referenced by Layout().
virtual void TGMenuBar::AddFrameBefore | ( | TGFrame * | f, | |
TGLayoutHints * | l = 0 , |
|||
TGPopupMenu * | before = 0 | |||
) | [protected, virtual] |
void TGMenuBar::BindMenu | ( | TGPopupMenu * | subMenu, | |
Bool_t | on | |||
) | [protected] |
virtual void TGMenuBar::AddPopup | ( | TGHotString * | s, | |
TGPopupMenu * | menu, | |||
TGLayoutHints * | l, | |||
TGPopupMenu * | before = 0 | |||
) | [virtual] |
virtual void TGMenuBar::AddPopup | ( | const char * | s, | |
TGPopupMenu * | menu, | |||
TGLayoutHints * | l, | |||
TGPopupMenu * | before = 0 | |||
) | [virtual] |
virtual TGPopupMenu* TGMenuBar::AddPopup | ( | const TString & | s, | |
Int_t | padleft = 4 , |
|||
Int_t | padright = 0 , |
|||
Int_t | padtop = 0 , |
|||
Int_t | padbottom = 0 | |||
) | [virtual] |
virtual void TGMenuBar::AddTitle | ( | TGMenuTitle * | title, | |
TGLayoutHints * | l, | |||
TGPopupMenu * | before = 0 | |||
) | [virtual] |
virtual TGPopupMenu* TGMenuBar::GetPopup | ( | const char * | s | ) | [virtual] |
virtual TGPopupMenu* TGMenuBar::RemovePopup | ( | const char * | s | ) | [virtual] |
virtual TGMenuTitle* TGMenuBar::GetCurrent | ( | ) | const [inline, virtual] |
virtual TList* TGMenuBar::GetTitles | ( | ) | const [inline, virtual] |
Reimplemented from TGCompositeFrame.
Reimplemented from TGCompositeFrame.
Reimplemented from TGCompositeFrame.
virtual void TGMenuBar::SavePrimitive | ( | ostream & | out, | |
Option_t * | option = "" | |||
) | [virtual] |
Reimplemented from TGHorizontalFrame.
virtual void TGMenuBar::Layout | ( | ) | [virtual] |
Reimplemented from TGCompositeFrame.
void TGMenuBar::PopupConnection | ( | ) |
TGFrameElement* TGMenuBar::GetLastOnLeft | ( | ) |
TGPopupMenu [friend] |
TGMenuTitle* TGMenuBar::fCurrent [protected] |
Definition at line 317 of file TGMenu.h.
Referenced by BindKeys(), GetCurrent(), HandleButton(), HandleKey(), HandleMotion(), and TGMenuBar().
TList* TGMenuBar::fTitles [protected] |
Definition at line 318 of file TGMenu.h.
Referenced by AddPopup(), AddTitle(), GetTitles(), RemovePopup(), TGMenuBar(), and ~TGMenuBar().
Cursor_t TGMenuBar::fDefaultCursor [protected] |
Definition at line 319 of file TGMenu.h.
Referenced by HandleButton(), HandleKey(), and TGMenuBar().
Bool_t TGMenuBar::fStick [protected] |
Definition at line 320 of file TGMenu.h.
Referenced by HandleButton(), HandleKey(), HandleMotion(), and TGMenuBar().
TList* TGMenuBar::fTrash [protected] |
Bool_t TGMenuBar::fKeyNavigate [protected] |
Definition at line 322 of file TGMenu.h.
Referenced by HandleButton(), TGPopupMenu::HandleCrossing(), HandleKey(), HandleMotion(), and TGMenuBar().
TGPopupMenu* TGMenuBar::fMenuMore [protected] |
Definition at line 323 of file TGMenu.h.
Referenced by GetLastOnLeft(), Layout(), PopupConnection(), TGMenuBar(), and ~TGMenuBar().
TGLayoutHints* TGMenuBar::fMenuBarMoreLayout [protected] |
Bool_t TGMenuBar::fWithExt [protected] |
TList* TGMenuBar::fOutLayouts [protected] |
TList* TGMenuBar::fNeededSpace [protected] |
TGMenuTitle* TGMenuBar::fCurrent [protected] |
TList* TGMenuBar::fTitles [protected] |
TList* TGMenuBar::fTrash [protected] |
TGPopupMenu* TGMenuBar::fMenuMore [protected] |
TGLayoutHints* TGMenuBar::fMenuBarMoreLayout [protected] |
TList* TGMenuBar::fOutLayouts [protected] |
TList* TGMenuBar::fNeededSpace [protected] |