#include <TGMenu.h>
Inheritance diagram for TGPopupMenu:
Definition at line 131 of file TGMenu.h.
TGPopupMenu::TGPopupMenu | ( | const TGPopupMenu & | ) | [private] |
Referenced by TRootContextMenu::CreateMenu(), and TRootContextMenu::FindHierarchy().
TGPopupMenu::TGPopupMenu | ( | const TGWindow * | p = 0 , |
|
UInt_t | w = 10 , |
|||
UInt_t | h = 10 , |
|||
UInt_t | options = 0 | |||
) |
Definition at line 910 of file TGMenu.cxx.
References TGFrame::AddInput(), TGFrame::fBorderWidth, TGObject::fClient, fCurrent, fDefaultCursor, fDelay, fEntryList, fEntrySep, GCValues_t::fFont, fFontStruct, fHasGrab, fHifontStruct, TGObject::fId, SetWindowAttributes_t::fMask, GCValues_t::fMask, fMenuBar, fMenuHeight, fMenuWidth, fMsgWindow, fNormGC, SetWindowAttributes_t::fOverrideRedirect, fPoppedUp, SetWindowAttributes_t::fSaveUnder, fSelbackGC, fSelGC, fSplitButton, fStick, fXl, GetDefaultFontStruct(), GetDefaultGC(), GetDefaultSelectedBackgroundGC(), GetDefaultSelectedGC(), TGResourcePool::GetGrabCursor(), GetHilightFontStruct(), TGClient::GetResourcePool(), gVirtualX, kEnterWindowMask, kFALSE, kGCFont, kLeaveWindowMask, kPointerMotionMask, kTRUE, kWAOverrideRedirect, kWASaveUnder, and p.
TGPopupMenu::~TGPopupMenu | ( | ) | [virtual] |
TGPopupMenu::TGPopupMenu | ( | const TGPopupMenu & | ) | [private] |
TGPopupMenu::TGPopupMenu | ( | const TGWindow * | p = 0 , |
|
UInt_t | w = 10 , |
|||
UInt_t | h = 10 , |
|||
UInt_t | options = 0 | |||
) |
virtual TGPopupMenu::~TGPopupMenu | ( | ) | [virtual] |
void TGPopupMenu::DrawTrianglePattern | ( | GContext_t | gc, | |
Int_t | l, | |||
Int_t | t, | |||
Int_t | r, | |||
Int_t | b | |||
) | [protected] |
Definition at line 1578 of file TGMenu.cxx.
References TGObject::fId, gVirtualX, m, and points.
Referenced by DrawEntry(), and TGuiBldPopupMenu::DrawEntry().
void TGPopupMenu::DrawCheckMark | ( | GContext_t | gc, | |
Int_t | l, | |||
Int_t | t, | |||
Int_t | r, | |||
Int_t | b | |||
) | [protected] |
Definition at line 1599 of file TGMenu.cxx.
References TGObject::fId, Segment_t::fX1, Segment_t::fX2, Segment_t::fY1, Segment_t::fY2, and gVirtualX.
Referenced by DrawEntry(), and TGuiBldPopupMenu::DrawEntry().
void TGPopupMenu::DrawRCheckMark | ( | GContext_t | gc, | |
Int_t | l, | |||
Int_t | t, | |||
Int_t | r, | |||
Int_t | b | |||
) | [protected] |
Definition at line 1618 of file TGMenu.cxx.
References TGObject::fId, Segment_t::fX1, Segment_t::fX2, Segment_t::fY1, Segment_t::fY2, and gVirtualX.
Referenced by DrawEntry(), and TGuiBldPopupMenu::DrawEntry().
void TGPopupMenu::DoRedraw | ( | ) | [protected, virtual] |
Reimplemented from TGFrame.
Definition at line 1456 of file TGMenu.cxx.
References TGFrame::DoRedraw(), DrawEntry(), fEntryList, and ptr.
void TGPopupMenu::DrawEntry | ( | TGMenuEntry * | entry | ) | [protected, virtual] |
Definition at line 1470 of file TGMenu.cxx.
References DrawCheckMark(), DrawRCheckMark(), DrawTrianglePattern(), entry, fEntrySep, GCValues_t::fFont, fFontStruct, fHifontStruct, TGObject::fId, GCValues_t::fMask, fMenuWidth, fNormGC, fSelbackGC, fSelGC, fXl, TGFrame::GetBckgndGC(), TGFrame::GetHilightGC(), TGFrame::GetShadowGC(), gVirtualX, kGCFont, kMenuActiveMask, kMenuCheckedMask, kMenuDefaultMask, kMenuEnableMask, kMenuEntry, kMenuHideMask, kMenuLabel, kMenuPopup, kMenuRadioMask, and kMenuSeparator.
Referenced by Activate(), DoRedraw(), and TRootContextMenu::DrawEntry().
void TGPopupMenu::Reposition | ( | ) | [protected, virtual] |
Definition at line 1189 of file TGMenu.cxx.
References fEntryList, fMenuHeight, fMenuWidth, fXl, kMenuHideMask, TMath::Max(), ptr, and TGFrame::Resize().
Referenced by AddEntry(), AddLabel(), AddPopup(), AddSeparator(), DeleteEntry(), EnableEntry(), and HideEntry().
FontStruct_t TGPopupMenu::GetDefaultFontStruct | ( | ) | [static, protected] |
Definition at line 1942 of file TGMenu.cxx.
References fgDefaultFont, gClient, TGFont::GetFontStruct(), TGResourcePool::GetMenuFont(), and TGClient::GetResourcePool().
Referenced by TGPopupMenu().
FontStruct_t TGPopupMenu::GetHilightFontStruct | ( | ) | [static, protected] |
Definition at line 1952 of file TGMenu.cxx.
References fgHilightFont, gClient, TGFont::GetFontStruct(), TGResourcePool::GetMenuHiliteFont(), and TGClient::GetResourcePool().
Referenced by TGPopupMenu().
const TGGC & TGPopupMenu::GetDefaultGC | ( | ) | [static, protected] |
Definition at line 1912 of file TGMenu.cxx.
References fgDefaultGC, gClient, TGResourcePool::GetFrameGC(), and TGClient::GetResourcePool().
Referenced by TGPopupMenu().
const TGGC & TGPopupMenu::GetDefaultSelectedGC | ( | ) | [static, protected] |
Definition at line 1922 of file TGMenu.cxx.
References fgDefaultSelectedGC, gClient, TGClient::GetResourcePool(), and TGResourcePool::GetSelectedGC().
Referenced by TGPopupMenu().
const TGGC & TGPopupMenu::GetDefaultSelectedBackgroundGC | ( | ) | [static, protected] |
Definition at line 1932 of file TGMenu.cxx.
References fgDefaultSelectedBackgroundGC, gClient, TGClient::GetResourcePool(), and TGResourcePool::GetSelectedBckgndGC().
Referenced by TGPopupMenu().
TGPopupMenu& TGPopupMenu::operator= | ( | const TGPopupMenu & | ) | [private] |
void TGPopupMenu::AddEntry | ( | TGHotString * | s, | |
Int_t | id, | |||
void * | ud = 0 , |
|||
const TGPicture * | p = 0 , |
|||
TGMenuEntry * | before = 0 | |||
) | [virtual] |
Definition at line 968 of file TGMenu.cxx.
References TList::Add(), TList::AddBefore(), TGMenuEntry::fEh, TGMenuEntry::fEntryId, fEntryList, fEntrySep, TGMenuEntry::fEw, TGMenuEntry::fEx, TGMenuEntry::fEy, fHifontStruct, TGMenuEntry::fLabel, fMenuHeight, fMenuWidth, TGMenuEntry::fPic, TGMenuEntry::fPopup, TGMenuEntry::fShortcut, TGMenuEntry::fStatus, TGMenuEntry::fType, TGMenuEntry::fUserData, fXl, gVirtualX, kMenuEnableMask, kMenuEntry, TMath::Max(), p, TString::Remove(), Reposition(), TGFrame::Resize(), s, and ts.
Referenced by TGuiBldDragManager::AddClassMenuMethods(), TGuiBldDragManager::AddDialogMethods(), AddEntry(), TRootContextMenu::AddEntrySorted(), TStyleManager::AddMenus(), TGTextEditor::Build(), TSessionViewer::Build(), TGRootIDE::Build(), TTreeViewer::BuildInterface(), ClassImp(), TRootBrowser::CreateBrowser(), TRootBrowserLite::CreateBrowser(), TRootCanvas::CreateCanvas(), TRootContextMenu::CreateMenu(), TGLSAViewer::CreateMenus(), TViewerX3D::CreateViewer(), DNDMainFrame::DNDMainFrame(), TestMainFrame::HandleMenu(), TGTextEdit::Init(), TGAppMainFrame::InitMenu(), TRootGuiBuilder::InitMenu(), WorldMap::InitRU(), WorldMap::InitUS(), RootShower::MakeMenuBarFrame(), TGuiBldDragManager::Menu4Frame(), TGuiBldDragManager::Menu4Lasso(), TGHtmlBrowser::ProcessMessage(), SplitButtonTest::SplitButtonTest(), SplitButtonWindow::SplitButtonWindow(), SplitGLView::SplitGLView(), TestFileList::TestFileList(), TestMainFrame::TestMainFrame(), TEveBrowser::TEveBrowser(), TGHtmlBrowser::TGHtmlBrowser(), TGMdiTitleIcon::TGMdiTitleIcon(), TGMdiMainFrame::UpdateWinListMenu(), and XSGui::XSGui().
void TGPopupMenu::AddEntry | ( | const char * | s, | |
Int_t | id, | |||
void * | ud = 0 , |
|||
const TGPicture * | p = 0 , |
|||
TGMenuEntry * | before = 0 | |||
) | [virtual] |
void TGPopupMenu::AddSeparator | ( | TGMenuEntry * | before = 0 |
) | [virtual] |
Definition at line 1040 of file TGMenu.cxx.
References TList::Add(), TList::AddBefore(), TGMenuEntry::fEh, TGMenuEntry::fEntryId, fEntryList, TGMenuEntry::fEw, TGMenuEntry::fEx, TGMenuEntry::fEy, TGMenuEntry::fLabel, fMenuHeight, fMenuWidth, TGMenuEntry::fPic, TGMenuEntry::fPopup, TGMenuEntry::fStatus, TGMenuEntry::fType, TGMenuEntry::fUserData, kMenuEnableMask, kMenuSeparator, Reposition(), and TGFrame::Resize().
Referenced by TGuiBldDragManager::AddDialogMethods(), TStyleManager::AddMenus(), TGTextEditor::Build(), TSessionViewer::Build(), TGRootIDE::Build(), TTreeViewer::BuildInterface(), TRootBrowser::CreateBrowser(), TRootBrowserLite::CreateBrowser(), TRootCanvas::CreateCanvas(), TRootContextMenu::CreateMenu(), TGLSAViewer::CreateMenus(), TViewerX3D::CreateViewer(), DNDMainFrame::DNDMainFrame(), TGTextEdit::Init(), TGAppMainFrame::InitMenu(), TRootGuiBuilder::InitMenu(), WorldMap::InitRU(), WorldMap::InitUS(), RootShower::MakeMenuBarFrame(), TGuiBldDragManager::Menu4Frame(), TGuiBldDragManager::Menu4Lasso(), SplitButtonTest::SplitButtonTest(), SplitButtonWindow::SplitButtonWindow(), SplitGLView::SplitGLView(), TestFileList::TestFileList(), TestMainFrame::TestMainFrame(), TEveBrowser::TEveBrowser(), TGHtmlBrowser::TGHtmlBrowser(), TGMdiTitleIcon::TGMdiTitleIcon(), TGMenuBar::TGMenuBar(), and XSGui::XSGui().
void TGPopupMenu::AddLabel | ( | TGHotString * | s, | |
const TGPicture * | p = 0 , |
|||
TGMenuEntry * | before = 0 | |||
) | [virtual] |
Definition at line 1073 of file TGMenu.cxx.
References TList::Add(), TList::AddBefore(), TGMenuEntry::fEh, TGMenuEntry::fEntryId, fEntryList, fEntrySep, TGMenuEntry::fEw, TGMenuEntry::fEx, TGMenuEntry::fEy, fHifontStruct, TGMenuEntry::fLabel, fMenuHeight, fMenuWidth, TGMenuEntry::fPic, TGMenuEntry::fPopup, TGMenuEntry::fStatus, TGMenuEntry::fType, TGMenuEntry::fUserData, fXl, gVirtualX, kMenuDefaultMask, kMenuEnableMask, kMenuLabel, TMath::Max(), p, Reposition(), TGFrame::Resize(), and s.
Referenced by AddLabel(), TSessionViewer::Build(), TRootCanvas::CreateCanvas(), TRootContextMenu::CreateMenu(), WorldMap::InitRU(), WorldMap::InitUS(), RootShower::MakeMenuBarFrame(), TGuiBldDragManager::Menu4Frame(), TGuiBldDragManager::Menu4Lasso(), TestMainFrame::TestMainFrame(), TGMenuBar::TGMenuBar(), and XSGui::XSGui().
void TGPopupMenu::AddLabel | ( | const char * | s, | |
const TGPicture * | p = 0 , |
|||
TGMenuEntry * | before = 0 | |||
) | [virtual] |
void TGPopupMenu::AddPopup | ( | TGHotString * | s, | |
TGPopupMenu * | popup, | |||
TGMenuEntry * | before = 0 , |
|||
const TGPicture * | p = 0 | |||
) | [virtual] |
Definition at line 1131 of file TGMenu.cxx.
References TList::Add(), TList::AddBefore(), TGMenuEntry::fEh, TGMenuEntry::fEntryId, fEntryList, fEntrySep, TGMenuEntry::fEw, TGMenuEntry::fEx, TGMenuEntry::fEy, fHifontStruct, TGMenuEntry::fLabel, fMenuHeight, fMenuWidth, TGMenuEntry::fPic, TGMenuEntry::fPopup, TGMenuEntry::fStatus, TGMenuEntry::fType, TGMenuEntry::fUserData, fXl, gVirtualX, kMenuEnableMask, kMenuPopup, TMath::Max(), p, Reposition(), TGFrame::Resize(), and s.
Referenced by TGuiBldDragManager::AddClassMenuMethods(), TStyleManager::AddMenus(), AddPopup(), TSessionViewer::Build(), TTreeViewer::BuildInterface(), TRootBrowser::CreateBrowser(), TRootBrowserLite::CreateBrowser(), TRootCanvas::CreateCanvas(), TRootContextMenu::CreateMenu(), TGLSAViewer::CreateMenus(), TRootContextMenu::FindHierarchy(), TGAppMainFrame::InitMenu(), TGMenuBar::Layout(), TestMainFrame::TestMainFrame(), and TEveBrowser::TEveBrowser().
void TGPopupMenu::AddPopup | ( | const char * | s, | |
TGPopupMenu * | popup, | |||
TGMenuEntry * | before = 0 , |
|||
const TGPicture * | p = 0 | |||
) | [virtual] |
void TGPopupMenu::EnableEntry | ( | Int_t | id | ) | [virtual] |
Definition at line 1653 of file TGMenu.cxx.
References fEntryList, kMenuEnableMask, kMenuHideMask, ptr, and Reposition().
Referenced by TRootGuiBuilder::CloseWindow(), TStyleManager::DoSelectCanvas(), TGSplitButton::HandleMenu(), TRootGuiBuilder::HandleMenu(), TestMainFrame::HandleMenu(), TGTextEditor::HandleTimer(), TGRootIDE::HandleTimer(), TRootGuiBuilder::HandleWindowClosed(), TGMdiTitleBar::LayoutButtons(), TRootGuiBuilder::NewProject(), TSessionViewer::OnListTreeClicked(), RootShower::OnOpenFile(), TRootGuiBuilder::OpenProject(), TGRootIDE::ProcessMessage(), TGTextEditor::ProcessMessage(), RootShower::ProcessMessage(), RootShower::Produce(), TGTextEdit::SetMenuState(), TGSplitButton::SetSplit(), TRootGuiBuilder::Update(), and TSessionViewer::UpdateListOfProofs().
void TGPopupMenu::DisableEntry | ( | Int_t | id | ) | [virtual] |
Definition at line 1672 of file TGMenu.cxx.
References fEntryList, kMenuEnableMask, and ptr.
Referenced by TGTextEditor::Build(), TSessionViewer::Build(), TGRootIDE::Build(), TTreeViewer::BuildInterface(), TRootGuiBuilder::CloseWindow(), TRootBrowserLite::CreateBrowser(), TRootCanvas::CreateCanvas(), TViewerX3D::CreateViewer(), TStyleManager::DoSelectNoCanvas(), TRootGuiBuilder::HandleMenu(), TestMainFrame::HandleMenu(), TGTextEditor::HandleTimer(), TGRootIDE::HandleTimer(), TRootGuiBuilder::HandleWindowClosed(), TGAppMainFrame::InitMenu(), TRootGuiBuilder::InitMenu(), TGMdiTitleBar::LayoutButtons(), RootShower::MakeMenuBarFrame(), TSessionViewer::OnListTreeClicked(), RootShower::ProcessMessage(), RootShower::Produce(), TGTextEdit::SetMenuState(), SplitButtonTest::SplitButtonTest(), SplitButtonWindow::SplitButtonWindow(), TestMainFrame::TestMainFrame(), TGMdiTitleIcon::TGMdiTitleIcon(), TRootGuiBuilder::Update(), TSessionViewer::UpdateListOfProofs(), TGMdiMainFrame::UpdateWinListMenu(), and XSGui::XSGui().
Definition at line 1684 of file TGMenu.cxx.
References fEntryList, kFALSE, kMenuEnableMask, kTRUE, and ptr.
Referenced by TGTextEdit::HandleKey().
void TGPopupMenu::HideEntry | ( | Int_t | id | ) | [virtual] |
Definition at line 1698 of file TGMenu.cxx.
References fEntryList, kMenuEnableMask, kMenuHideMask, ptr, and Reposition().
Referenced by TGSplitButton::HandleMenu(), TestMainFrame::HandleMenu(), and TGSplitButton::SetSplit().
Definition at line 1716 of file TGMenu.cxx.
References fEntryList, kFALSE, kMenuHideMask, kTRUE, and ptr.
void TGPopupMenu::DefaultEntry | ( | Int_t | id | ) | [virtual] |
void TGPopupMenu::CheckEntry | ( | Int_t | id | ) | [virtual] |
Definition at line 1730 of file TGMenu.cxx.
References fEntryList, kMenuCheckedMask, and ptr.
Referenced by TSessionViewer::Build(), TRootBrowserLite::CreateBrowser(), TRootCanvas::CreateCanvas(), TRootContextMenu::CreateMenu(), TGLSAViewer::EnableMenuBarHiding(), TEveBrowser::EveMenu(), TRootGuiBuilder::HandleMenu(), TestMainFrame::HandleMenu(), TGAppMainFrame::HandleMenu(), TGAppMainFrame::InitMenu(), TRootGuiBuilder::InitMenu(), TRootCanvas::InitWindow(), RootShower::MakeMenuBarFrame(), TTreeViewer::MapOptions(), SplitGLView::OnViewerActivated(), TSessionViewer::ProcessMessage(), TRootBrowserLite::ProcessMessage(), RootShower::ProcessMessage(), TRootCanvas::ProcessMessage(), TSessionViewer::ReadConfiguration(), TRootCanvas::ShowEditor(), TRootBrowserLite::ShowStatusBar(), TRootCanvas::ShowStatusBar(), TRootCanvas::ShowToolBar(), TRootBrowserLite::ShowToolBar(), RootShower::ShowToolBar(), TRootCanvas::ShowToolTips(), TEveBrowser::TEveBrowser(), TGLSAViewer::ToggleEditObject(), SplitGLView::ToggleOrthoDolly(), TGLSAViewer::ToggleOrthoDolly(), TGLSAViewer::ToggleOrthoRotate(), and SplitGLView::ToggleOrthoRotate().
void TGPopupMenu::CheckEntryByData | ( | void * | user_data | ) | [virtual] |
Definition at line 1742 of file TGMenu.cxx.
References fEntryList, kMenuCheckedMask, and ptr.
Referenced by TGuiBldDragManager::AddClassMenuMethods().
void TGPopupMenu::UnCheckEntry | ( | Int_t | id | ) | [virtual] |
Definition at line 1755 of file TGMenu.cxx.
References fEntryList, kMenuCheckedMask, and ptr.
Referenced by TRootBrowserLite::CreateBrowser(), TGLSAViewer::DisableMenuBarHiding(), TEveBrowser::EveMenu(), TRootGuiBuilder::HandleMenu(), TestMainFrame::HandleMenu(), TGAppMainFrame::HandleMenu(), TTreeViewer::MapOptions(), SplitGLView::OnViewerActivated(), TSessionViewer::ProcessMessage(), TRootBrowserLite::ProcessMessage(), RootShower::ProcessMessage(), TRootCanvas::ProcessMessage(), TSessionViewer::ReadConfiguration(), TRootCanvas::SetCanvasSize(), TRootCanvas::ShowEditor(), TRootBrowserLite::ShowStatusBar(), TRootCanvas::ShowStatusBar(), TRootCanvas::ShowToolBar(), TRootBrowserLite::ShowToolBar(), RootShower::ShowToolBar(), TRootCanvas::ShowToolTips(), TGLSAViewer::ToggleEditObject(), SplitGLView::ToggleOrthoDolly(), TGLSAViewer::ToggleOrthoDolly(), TGLSAViewer::ToggleOrthoRotate(), and SplitGLView::ToggleOrthoRotate().
void TGPopupMenu::UnCheckEntryByData | ( | void * | user_data | ) | [virtual] |
void TGPopupMenu::UnCheckEntries | ( | ) | [virtual] |
Definition at line 1793 of file TGMenu.cxx.
References fEntryList, kFALSE, kMenuCheckedMask, kTRUE, and ptr.
Referenced by TRootCanvas::AdjustSize(), TEveBrowser::EveMenu(), TRootGuiBuilder::HandleMenu(), TestMainFrame::HandleMenu(), TGAppMainFrame::HandleMenu(), TRootCanvas::HasEditor(), TTreeViewer::MapOptions(), TSessionServerFrame::OnBtnConnectClicked(), TSessionQueryFrame::OnBtnSubmit(), TSessionViewer::OnCascadeMenu(), TSessionViewer::ProcessMessage(), TRootBrowserLite::ProcessMessage(), RootShower::ProcessMessage(), TGLSAViewer::SelectionChanged(), TRootCanvas::ShowEditor(), TRootCanvas::ShowToolBar(), TGLSAViewer::ToggleEditObject(), SplitGLView::ToggleOrthoDolly(), TGLSAViewer::ToggleOrthoDolly(), TGLSAViewer::ToggleOrthoRotate(), SplitGLView::ToggleOrthoRotate(), TSessionQueryFrame::UpdateHistos(), and TSessionViewer::WriteConfiguration().
Definition at line 1807 of file TGMenu.cxx.
References fEntryList, kMenuRadioEntryMask, kMenuRadioMask, and ptr.
Referenced by TEveBrowser::EveMenu(), TGMdiMainFrame::SetCurrent(), TRootBrowserLite::SetSortMode(), TRootBrowserLite::SetViewMode(), TEveBrowser::TEveBrowser(), and TGMdiMainFrame::UpdateWinListMenu().
Definition at line 1826 of file TGMenu.cxx.
References fEntryList, kFALSE, kMenuRadioMask, kTRUE, and ptr.
Referenced by SavePrimitive().
Definition at line 1219 of file TGMenu.cxx.
References TGMenuBar::BindKeys(), EndMenu(), TGObject::fClient, fCurrent, fDefaultCursor, fHasGrab, TGObject::fId, fMenuBar, fMenuHeight, fMenuWidth, TGWindow::fParent, fPoppedUp, fStick, TGObject::GetId(), gVirtualX, kButtonPressMask, kButtonReleaseMask, kFALSE, kNone, kPointerMotionMask, kTRUE, TGFrame::MapRaised(), TGFrame::Move(), PoppedUp(), and TGClient::RegisterPopup().
Referenced by TRootContextMenu::DisplayPopup(), TGRegionWithId::DisplayPopup(), TGTextEdit::HandleButton(), TGImageMap::HandleButton(), TGMdiTitleIcon::HandleButton(), TGMenuBar::HandleKey(), HandleTimer(), TGuiBldDragManager::Menu4Frame(), TGuiBldDragManager::Menu4Lasso(), TSessionViewer::OnListTreeClicked(), TGSplitButton::SetMenuState(), and TGMenuTitle::SetState().
Int_t TGPopupMenu::EndMenu | ( | void *& | userData | ) | [virtual] |
Definition at line 1262 of file TGMenu.cxx.
References TGMenuBar::BindKeys(), EndMenu(), fCurrent, fDelay, TGMenuEntry::fEntryId, fMenuBar, fPoppedUp, TGMenuEntry::fPopup, TGMenuEntry::fStatus, TGMenuEntry::fType, TGMenuEntry::fUserData, gClient, id, kFALSE, kMenuActiveMask, kMenuEnableMask, kMenuPopup, PoppedDown(), TTimer::Remove(), TGFrame::UnmapWindow(), and TGClient::UnregisterPopup().
Referenced by Activate(), TGuiBldDragManager::CloseMenus(), EndMenu(), TGMdiTitleBar::HandleButton(), TGMdiDecorFrame::HandleButton(), HandleButton(), TRootContextMenu::HandleButton(), TGMdiTitleIcon::HandleDoubleClick(), TGMenuBar::HandleKey(), PlaceMenu(), TRootContextMenu::RecursiveRemove(), TGSplitButton::SetMenuState(), and TGMenuTitle::SetState().
void TGPopupMenu::DeleteEntry | ( | Int_t | id | ) | [virtual] |
Definition at line 1874 of file TGMenu.cxx.
References fCurrent, fEntryList, ptr, TList::Remove(), and Reposition().
Referenced by TGLSAViewer::DisableCloseMenuEntries(), TestMainFrame::HandleMenu(), TGMenuBar::Layout(), and TGMdiMainFrame::UpdateWinListMenu().
void TGPopupMenu::DeleteEntry | ( | TGMenuEntry * | entry | ) | [virtual] |
Definition at line 1893 of file TGMenu.cxx.
References entry, fCurrent, fEntryList, ptr, TList::Remove(), and Reposition().
TGMenuEntry * TGPopupMenu::GetEntry | ( | Int_t | id | ) | [virtual] |
Definition at line 1840 of file TGMenu.cxx.
References fEntryList, and ptr.
Referenced by TGuiBldDragManager::AddDialogMethods(), TGSplitButton::HandleMenu(), TestMainFrame::HandleMenu(), TGHtmlBrowser::ProcessMessage(), and TGSplitButton::SetSplit().
virtual TGMenuEntry* TGPopupMenu::GetCurrent | ( | ) | const [inline, virtual] |
Definition at line 219 of file TGMenu.h.
References fCurrent.
Referenced by TGuiBldDragManager::DoClassMenu(), TGSplitButton::HandleButton(), TGMenuBar::HandleKey(), TGSplitButton::HandleKey(), TGSplitButton::HandleSButton(), and TGMenuBar::PopupConnection().
TGMenuEntry * TGPopupMenu::GetEntry | ( | const char * | s | ) | [virtual] |
const TList* TGPopupMenu::GetListOfEntries | ( | ) | const [inline] |
Definition at line 221 of file TGMenu.h.
References fEntryList.
Referenced by TRootContextMenu::AddEntrySorted(), TGMenuBar::BindMenu(), TGSplitButton::BindMenuKeys(), TRootContextMenu::CreateMenu(), TRootContextMenu::FindHierarchy(), TGMenuBar::HandleKey(), TGSplitButton::HandleKey(), TGSplitButton::HandleMenu(), TGMenuBar::Layout(), TRootBrowser::RecursiveReparent(), SavePrimitive(), TGSplitButton::SetMenuState(), TGSplitButton::TGSplitButton(), and TGMdiMainFrame::UpdateWinListMenu().
void TGPopupMenu::DrawBorder | ( | ) | [virtual] |
Reimplemented from TGFrame.
Definition at line 1562 of file TGMenu.cxx.
References fEntrySep, TGObject::fId, fMenuHeight, fMenuWidth, TGFrame::GetBckgndGC(), TGFrame::GetBlackGC(), TGFrame::GetHilightGC(), TGFrame::GetShadowGC(), and gVirtualX.
Reimplemented from TGFrame.
Definition at line 1312 of file TGMenu.cxx.
References Activated(), EndMenu(), fCurrent, fHasGrab, fMsgWindow, TGMenuEntry::fStatus, fStick, Event_t::fType, gVirtualX, id, kButtonRelease, kC_COMMAND, kCM_MENU, kFALSE, kMenuActiveMask, kMenuEnableMask, kTRUE, MK_MSG(), and TGFrame::SendMessage().
Referenced by TRootContextMenu::HandleButton(), and TGMenuBar::HandleKey().
Reimplemented from TGFrame.
Definition at line 1368 of file TGMenu.cxx.
References Activate(), fEntryList, fMenuWidth, fStick, Event_t::fX, Event_t::fY, TGFrame::HandleMotion(), kFALSE, kMenuHideMask, kTRUE, and ptr.
Referenced by TRootContextMenu::HandleMotion().
Reimplemented from TGFrame.
Definition at line 1341 of file TGMenu.cxx.
References Activate(), fEntryList, TGSplitButton::fKeyNavigate, TGMenuBar::fKeyNavigate, fMenuBar, fMenuWidth, fSplitButton, Event_t::fType, Event_t::fX, Event_t::fY, kEnterNotify, kFALSE, kMenuHideMask, kTRUE, and ptr.
Referenced by TRootContextMenu::HandleCrossing().
Reimplemented from TGWindow.
Definition at line 1432 of file TGMenu.cxx.
References fCurrent, fDelay, TGMenuEntry::fEx, TGMenuEntry::fEy, TGObject::fId, fMenuWidth, TGMenuEntry::fPopup, TGMenuEntry::fType, TGObject::GetId(), TGWindow::GetParent(), gVirtualX, kFALSE, kMenuPopup, kTRUE, PlaceMenu(), and TTimer::Remove().
virtual void TGPopupMenu::Associate | ( | const TGWindow * | w | ) | [inline, virtual] |
Definition at line 227 of file TGMenu.h.
References fMsgWindow, and w.
Referenced by TStyleManager::AddMenus(), TGTextEditor::Build(), TSessionViewer::Build(), TGRootIDE::Build(), TTreeViewer::BuildInterface(), TRootBrowserLite::CreateBrowser(), TRootCanvas::CreateCanvas(), TGLSAViewer::CreateMenus(), TViewerX3D::CreateViewer(), TGTextEdit::Init(), RootShower::MakeMenuBarFrame(), TestFileList::TestFileList(), TestMainFrame::TestMainFrame(), TGHtmlBrowser::TGHtmlBrowser(), TGMdiTitleIcon::TGMdiTitleIcon(), and XSGui::XSGui().
virtual void TGPopupMenu::SetMenuBar | ( | TGMenuBar * | bar | ) | [inline, virtual] |
Definition at line 228 of file TGMenu.h.
References fMenuBar.
Referenced by TGMenuTitle::TGMenuTitle().
TGMenuBar* TGPopupMenu::GetMenuBar | ( | ) | const [inline] |
virtual void TGPopupMenu::Activate | ( | Bool_t | ) | [inline, virtual] |
Reimplemented from TGFrame.
Definition at line 230 of file TGMenu.h.
Referenced by HandleCrossing(), TGMenuBar::HandleKey(), TGSplitButton::HandleKey(), and HandleMotion().
void TGPopupMenu::Activate | ( | TGMenuEntry * | entry | ) | [virtual] |
Definition at line 1391 of file TGMenu.cxx.
References TSystem::AddTimer(), DrawEntry(), EndMenu(), entry, fCurrent, fDelay, fMsgWindow, TGMenuEntry::fPopup, TGMenuEntry::fStatus, TGMenuEntry::fType, gSystem, Highlighted(), kC_COMMAND, kCM_MENUSELECT, kMenuActiveMask, kMenuEntry, kMenuPopup, MK_MSG(), TTimer::Remove(), TTimer::Reset(), and TGFrame::SendMessage().
void TGPopupMenu::SavePrimitive | ( | ostream & | out, | |
Option_t * | option = "" | |||
) | [virtual] |
Reimplemented from TGFrame.
Definition at line 2106 of file TGMenu.cxx.
References TSystem::ExpandPathName(), TGMenuEntry::fLabel, TGMenuEntry::fPic, TGMenuEntry::fPopup, TGMenuEntry::fShortcut, TGMenuEntry::fUserData, TGMenuEntry::GetEntryId(), TGFrame::GetHeight(), TGHotString::GetHotPos(), TGString::GetLength(), GetListOfEntries(), TGWindow::GetName(), TGMenuEntry::GetName(), TGPicture::GetName(), TGFrame::GetOptionString(), TGMenuEntry::GetShortcutText(), TGMenuEntry::GetStatus(), TGMenuEntry::GetType(), TGFrame::GetWidth(), gSystem, i, IsEntryRChecked(), kFALSE, kMenuCheckedMask, kMenuDefaultMask, kMenuEnableMask, kMenuEntry, kMenuHideMask, kMenuLabel, kMenuPopup, kMenuRadioEntryMask, kMenuSeparator, kTRUE, SavePrimitive(), snprintf, text(), and TSystem::UnixPathName().
Referenced by TGMenuTitle::SavePrimitive(), and SavePrimitive().
UInt_t TGPopupMenu::GetEntrySep | ( | ) | const [inline] |
virtual void TGPopupMenu::SetEntrySep | ( | UInt_t | sep | ) | [inline, virtual] |
virtual void TGPopupMenu::PoppedUp | ( | ) | [inline, virtual] |
virtual void TGPopupMenu::PoppedDown | ( | ) | [inline, virtual] |
virtual void TGPopupMenu::Highlighted | ( | Int_t | id | ) | [inline, virtual] |
virtual void TGPopupMenu::Activated | ( | Int_t | id | ) | [inline, virtual] |
Definition at line 240 of file TGMenu.h.
References TQObject::Emit().
Referenced by TGMenuTitle::DoSendMessage(), HandleButton(), TGSplitButton::HandleButton(), TRootBrowser::HandleKey(), and TGSplitButton::HandleSButton().
void TGPopupMenu::DrawTrianglePattern | ( | GContext_t | gc, | |
Int_t | l, | |||
Int_t | t, | |||
Int_t | r, | |||
Int_t | b | |||
) | [protected] |
void TGPopupMenu::DrawCheckMark | ( | GContext_t | gc, | |
Int_t | l, | |||
Int_t | t, | |||
Int_t | r, | |||
Int_t | b | |||
) | [protected] |
void TGPopupMenu::DrawRCheckMark | ( | GContext_t | gc, | |
Int_t | l, | |||
Int_t | t, | |||
Int_t | r, | |||
Int_t | b | |||
) | [protected] |
virtual void TGPopupMenu::DoRedraw | ( | ) | [protected, virtual] |
Reimplemented from TGFrame.
virtual void TGPopupMenu::DrawEntry | ( | TGMenuEntry * | entry | ) | [protected, virtual] |
virtual void TGPopupMenu::Reposition | ( | ) | [protected, virtual] |
static FontStruct_t TGPopupMenu::GetDefaultFontStruct | ( | ) | [static, protected] |
static FontStruct_t TGPopupMenu::GetHilightFontStruct | ( | ) | [static, protected] |
static const TGGC& TGPopupMenu::GetDefaultGC | ( | ) | [static, protected] |
static const TGGC& TGPopupMenu::GetDefaultSelectedGC | ( | ) | [static, protected] |
static const TGGC& TGPopupMenu::GetDefaultSelectedBackgroundGC | ( | ) | [static, protected] |
TGPopupMenu& TGPopupMenu::operator= | ( | const TGPopupMenu & | ) | [private] |
virtual void TGPopupMenu::AddEntry | ( | TGHotString * | s, | |
Int_t | id, | |||
void * | ud = 0 , |
|||
const TGPicture * | p = 0 , |
|||
TGMenuEntry * | before = 0 | |||
) | [virtual] |
virtual void TGPopupMenu::AddEntry | ( | const char * | s, | |
Int_t | id, | |||
void * | ud = 0 , |
|||
const TGPicture * | p = 0 , |
|||
TGMenuEntry * | before = 0 | |||
) | [virtual] |
virtual void TGPopupMenu::AddSeparator | ( | TGMenuEntry * | before = 0 |
) | [virtual] |
virtual void TGPopupMenu::AddLabel | ( | TGHotString * | s, | |
const TGPicture * | p = 0 , |
|||
TGMenuEntry * | before = 0 | |||
) | [virtual] |
virtual void TGPopupMenu::AddLabel | ( | const char * | s, | |
const TGPicture * | p = 0 , |
|||
TGMenuEntry * | before = 0 | |||
) | [virtual] |
virtual void TGPopupMenu::AddPopup | ( | TGHotString * | s, | |
TGPopupMenu * | popup, | |||
TGMenuEntry * | before = 0 , |
|||
const TGPicture * | p = 0 | |||
) | [virtual] |
virtual void TGPopupMenu::AddPopup | ( | const char * | s, | |
TGPopupMenu * | popup, | |||
TGMenuEntry * | before = 0 , |
|||
const TGPicture * | p = 0 | |||
) | [virtual] |
virtual void TGPopupMenu::EnableEntry | ( | Int_t | id | ) | [virtual] |
virtual void TGPopupMenu::DisableEntry | ( | Int_t | id | ) | [virtual] |
virtual void TGPopupMenu::HideEntry | ( | Int_t | id | ) | [virtual] |
virtual void TGPopupMenu::DefaultEntry | ( | Int_t | id | ) | [virtual] |
virtual void TGPopupMenu::CheckEntry | ( | Int_t | id | ) | [virtual] |
virtual void TGPopupMenu::CheckEntryByData | ( | void * | user_data | ) | [virtual] |
virtual void TGPopupMenu::UnCheckEntry | ( | Int_t | id | ) | [virtual] |
virtual void TGPopupMenu::UnCheckEntryByData | ( | void * | user_data | ) | [virtual] |
virtual void TGPopupMenu::UnCheckEntries | ( | ) | [virtual] |
virtual void TGPopupMenu::PlaceMenu | ( | Int_t | x, | |
Int_t | y, | |||
Bool_t | stick_mode, | |||
Bool_t | grab_pointer | |||
) | [virtual] |
virtual Int_t TGPopupMenu::EndMenu | ( | void *& | userData | ) | [virtual] |
virtual void TGPopupMenu::DeleteEntry | ( | Int_t | id | ) | [virtual] |
virtual void TGPopupMenu::DeleteEntry | ( | TGMenuEntry * | entry | ) | [virtual] |
virtual TGMenuEntry* TGPopupMenu::GetEntry | ( | Int_t | id | ) | [virtual] |
virtual TGMenuEntry* TGPopupMenu::GetCurrent | ( | ) | const [inline, virtual] |
virtual TGMenuEntry* TGPopupMenu::GetEntry | ( | const char * | s | ) | [virtual] |
const TList* TGPopupMenu::GetListOfEntries | ( | ) | const [inline] |
virtual void TGPopupMenu::DrawBorder | ( | ) | [virtual] |
Reimplemented from TGFrame.
Reimplemented from TGFrame.
virtual void TGPopupMenu::Associate | ( | const TGWindow * | w | ) | [inline, virtual] |
virtual void TGPopupMenu::SetMenuBar | ( | TGMenuBar * | bar | ) | [inline, virtual] |
TGMenuBar* TGPopupMenu::GetMenuBar | ( | ) | const [inline] |
virtual void TGPopupMenu::Activate | ( | Bool_t | ) | [inline, virtual] |
virtual void TGPopupMenu::Activate | ( | TGMenuEntry * | entry | ) | [virtual] |
virtual void TGPopupMenu::SavePrimitive | ( | ostream & | out, | |
Option_t * | option = "" | |||
) | [virtual] |
Reimplemented from TGFrame.
UInt_t TGPopupMenu::GetEntrySep | ( | ) | const [inline] |
virtual void TGPopupMenu::SetEntrySep | ( | UInt_t | sep | ) | [inline, virtual] |
virtual void TGPopupMenu::PoppedUp | ( | ) | [inline, virtual] |
virtual void TGPopupMenu::PoppedDown | ( | ) | [inline, virtual] |
virtual void TGPopupMenu::Highlighted | ( | Int_t | id | ) | [inline, virtual] |
virtual void TGPopupMenu::Activated | ( | Int_t | id | ) | [inline, virtual] |
TGMenuTitle [friend] |
TGSplitButton [friend] |
TList* TGPopupMenu::fEntryList [protected] |
Definition at line 138 of file TGMenu.h.
Referenced by AddEntry(), AddLabel(), AddPopup(), AddSeparator(), CheckEntry(), CheckEntryByData(), DefaultEntry(), DeleteEntry(), DisableEntry(), TRootContextMenu::DisplayPopup(), DoRedraw(), EnableEntry(), GetEntry(), GetListOfEntries(), HandleCrossing(), HandleMotion(), HideEntry(), IsEntryChecked(), IsEntryEnabled(), IsEntryHidden(), IsEntryRChecked(), RCheckEntry(), Reposition(), TGPopupMenu(), UnCheckEntries(), UnCheckEntry(), UnCheckEntryByData(), and ~TGPopupMenu().
TGMenuEntry* TGPopupMenu::fCurrent [protected] |
Definition at line 139 of file TGMenu.h.
Referenced by Activate(), DeleteEntry(), TRootContextMenu::DisplayPopup(), EndMenu(), GetCurrent(), HandleButton(), TRootContextMenu::HandleMotion(), HandleTimer(), PlaceMenu(), and TGPopupMenu().
Bool_t TGPopupMenu::fStick [protected] |
Definition at line 140 of file TGMenu.h.
Referenced by HandleButton(), TGMenuBar::HandleKey(), HandleMotion(), PlaceMenu(), and TGPopupMenu().
Bool_t TGPopupMenu::fHasGrab [protected] |
Definition at line 141 of file TGMenu.h.
Referenced by HandleButton(), TRootContextMenu::HandleButton(), PlaceMenu(), TRootContextMenu::RecursiveRemove(), and TGPopupMenu().
Bool_t TGPopupMenu::fPoppedUp [protected] |
Definition at line 142 of file TGMenu.h.
Referenced by EndMenu(), TGMenuBar::HandleKey(), PlaceMenu(), and TGPopupMenu().
UInt_t TGPopupMenu::fXl [protected] |
Definition at line 143 of file TGMenu.h.
Referenced by AddEntry(), AddLabel(), AddPopup(), DrawEntry(), TGuiBldPopupMenu::DrawEntry(), Reposition(), and TGPopupMenu().
UInt_t TGPopupMenu::fMenuWidth [protected] |
Definition at line 144 of file TGMenu.h.
Referenced by AddEntry(), AddLabel(), AddPopup(), AddSeparator(), TRootContextMenu::DisplayPopup(), DrawBorder(), DrawEntry(), TRootContextMenu::DrawEntry(), TGuiBldPopupMenu::DrawEntry(), TRootContextMenu::HandleButton(), HandleCrossing(), TGMenuBar::HandleKey(), HandleMotion(), TRootContextMenu::HandleMotion(), HandleTimer(), PlaceMenu(), Reposition(), and TGPopupMenu().
UInt_t TGPopupMenu::fMenuHeight [protected] |
Definition at line 145 of file TGMenu.h.
Referenced by AddEntry(), AddLabel(), AddPopup(), AddSeparator(), TRootContextMenu::DisplayPopup(), DrawBorder(), PlaceMenu(), Reposition(), and TGPopupMenu().
TTimer* TGPopupMenu::fDelay [protected] |
Definition at line 146 of file TGMenu.h.
Referenced by Activate(), EndMenu(), HandleTimer(), TGPopupMenu(), and ~TGPopupMenu().
GContext_t TGPopupMenu::fNormGC [protected] |
Definition at line 147 of file TGMenu.h.
Referenced by DrawEntry(), TGuiBldPopupMenu::DrawEntry(), and TGPopupMenu().
GContext_t TGPopupMenu::fSelGC [protected] |
Definition at line 148 of file TGMenu.h.
Referenced by DrawEntry(), TRootContextMenu::DrawEntry(), TGuiBldPopupMenu::DrawEntry(), and TGPopupMenu().
GContext_t TGPopupMenu::fSelbackGC [protected] |
FontStruct_t TGPopupMenu::fFontStruct [protected] |
Definition at line 150 of file TGMenu.h.
Referenced by TRootContextMenu::DrawEntry(), DrawEntry(), TGuiBldPopupMenu::DrawEntry(), and TGPopupMenu().
FontStruct_t TGPopupMenu::fHifontStruct [protected] |
Definition at line 151 of file TGMenu.h.
Referenced by AddEntry(), AddLabel(), AddPopup(), DrawEntry(), TGuiBldPopupMenu::DrawEntry(), and TGPopupMenu().
Cursor_t TGPopupMenu::fDefaultCursor [protected] |
const TGWindow* TGPopupMenu::fMsgWindow [protected] |
Definition at line 153 of file TGMenu.h.
Referenced by Activate(), Associate(), TGMenuTitle::DoSendMessage(), HandleButton(), TGMenuBar::PopupConnection(), and TGPopupMenu().
TGMenuBar* TGPopupMenu::fMenuBar [protected] |
Definition at line 154 of file TGMenu.h.
Referenced by TGMenuTitle::DoRedraw(), EndMenu(), GetMenuBar(), HandleCrossing(), PlaceMenu(), SetMenuBar(), and TGPopupMenu().
TGSplitButton* TGPopupMenu::fSplitButton [protected] |
Definition at line 155 of file TGMenu.h.
Referenced by HandleCrossing(), TGPopupMenu(), and TGSplitButton::TGSplitButton().
UInt_t TGPopupMenu::fEntrySep [protected] |
Definition at line 156 of file TGMenu.h.
Referenced by AddEntry(), AddLabel(), AddPopup(), DrawBorder(), DrawEntry(), TGuiBldPopupMenu::DrawEntry(), GetEntrySep(), SetEntrySep(), TGPopupMenu(), and TGuiBldPopupMenu::TGuiBldPopupMenu().
const TGFont * TGPopupMenu::fgDefaultFont [static, protected] |
const TGFont * TGPopupMenu::fgHilightFont [static, protected] |
const TGGC * TGPopupMenu::fgDefaultGC [static, protected] |
const TGGC * TGPopupMenu::fgDefaultSelectedGC [static, protected] |
const TGGC * TGPopupMenu::fgDefaultSelectedBackgroundGC [static, protected] |
TList* TGPopupMenu::fEntryList [protected] |
TGMenuEntry* TGPopupMenu::fCurrent [protected] |
TTimer* TGPopupMenu::fDelay [protected] |
const TGWindow* TGPopupMenu::fMsgWindow [protected] |
TGMenuBar* TGPopupMenu::fMenuBar [protected] |
TGSplitButton* TGPopupMenu::fSplitButton [protected] |
const TGFont* TGPopupMenu::fgDefaultFont [static, protected] |
const TGFont* TGPopupMenu::fgHilightFont [static, protected] |
const TGGC* TGPopupMenu::fgDefaultGC [static, protected] |
const TGGC* TGPopupMenu::fgDefaultSelectedGC [static, protected] |
const TGGC* TGPopupMenu::fgDefaultSelectedBackgroundGC [static, protected] |