Public Member Functions | |
TGAppMainFrame (const TGWindow *p, int w, int h) | |
void | HandleMenu (Int_t id) |
Protected Member Functions | |
void | InitMenu () |
void | CloseWindow () |
Protected Attributes | |
TGMainFrame * | fMain |
TGMdiMainFrame * | fMainFrame |
TGMdiMenuBar * | fMenuBar |
TGLayoutHints * | fMenuBarItemLayout |
TGPopupMenu * | fMenuFile |
TGPopupMenu * | fMenuWindow |
TGPopupMenu * | fMenuHelp |
Definition at line 70 of file mditest.C.
TGAppMainFrame::TGAppMainFrame | ( | const TGWindow * | p, | |
int | w, | |||
int | h | |||
) |
Definition at line 92 of file mditest.C.
References TGListBox::AddEntry(), TGCompositeFrame::AddFrame(), fMain, fMainFrame, fMenuBar, gClient, TGClient::GetColorByName(), TGMdiMainFrame::GetContainer(), TGPicture::GetHeight(), TGClient::GetPicture(), TGPicture::GetPicture(), TGPicture::GetWidth(), InitMenu(), kFALSE, kHorizontalFrame, kLHintsCenterX, kLHintsCenterY, kLHintsExpandX, kLHintsExpandY, kLHintsTop, kMdiClose, kMdiDefaultHints, kMdiHelp, kMdiMenu, kOwnBackground, kSlider1, kVerticalFrame, TGCompositeFrame::Layout(), TGCompositeFrame::MapSubwindows(), TGFrame::MapWindow(), p, TGListBox::Resize(), TGFrame::Resize(), TGWindow::SetBackgroundPixmap(), TGMainFrame::SetClassHints(), TGMdiFrame::SetMdiHints(), TGListBox::SetMultipleSelections(), TGMainFrame::SetWindowName(), TGMdiFrame::SetWindowName(), and t.
void TGAppMainFrame::InitMenu | ( | ) | [protected] |
Definition at line 239 of file mditest.C.
References TGPopupMenu::AddEntry(), TGPopupMenu::AddPopup(), TGMdiMenuBar::AddPopup(), TGPopupMenu::AddSeparator(), TGPopupMenu::CheckEntry(), TQObject::Connect(), TGPopupMenu::DisableEntry(), fMainFrame, fMenuBar, fMenuBarItemLayout, fMenuFile, fMenuHelp, fMenuWindow, gClient, TGClient::GetRoot(), TGMdiMainFrame::GetWinListMenu(), kLHintsLeft, kLHintsTop, M_FILE_CLOSE, M_FILE_EXIT, M_FILE_NEW, M_HELP_ABOUT, M_HELP_CONTENTS, M_WINDOW_ARRANGE, M_WINDOW_CASCADE, M_WINDOW_HOR, M_WINDOW_OPAQUE, and M_WINDOW_VERT.
Referenced by TGAppMainFrame().
void TGAppMainFrame::CloseWindow | ( | ) | [protected] |
Definition at line 283 of file mditest.C.
References gApplication, and TApplication::Terminate().
Referenced by HandleMenu().
void TGAppMainFrame::HandleMenu | ( | Int_t | id | ) |
Definition at line 190 of file mditest.C.
References TGPopupMenu::CheckEntry(), CloseWindow(), fMainFrame, fMenuWindow, TGPopupMenu::IsEntryChecked(), kMdiNonOpaque, kMdiOpaque, M_FILE_CLOSE, M_FILE_EXIT, M_FILE_NEW, M_WINDOW_ARRANGE, M_WINDOW_CASCADE, M_WINDOW_HOR, M_WINDOW_OPAQUE, M_WINDOW_VERT, and TGPopupMenu::UnCheckEntry().
TGMainFrame* TGAppMainFrame::fMain [protected] |
TGMdiMainFrame* TGAppMainFrame::fMainFrame [protected] |
Definition at line 76 of file mditest.C.
Referenced by HandleMenu(), InitMenu(), and TGAppMainFrame().
TGMdiMenuBar* TGAppMainFrame::fMenuBar [protected] |
TGLayoutHints* TGAppMainFrame::fMenuBarItemLayout [protected] |
TGPopupMenu* TGAppMainFrame::fMenuFile [protected] |
TGPopupMenu * TGAppMainFrame::fMenuWindow [protected] |
TGPopupMenu * TGAppMainFrame::fMenuHelp [protected] |