TestMainFrame Class Reference

#include <guitest.h>

Inheritance diagram for TestMainFrame:

TGMainFrame TGMainFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGFrame TGFrame TGFrame TGFrame TGFrame TGFrame TGFrame TGFrame List of all members.

Public Member Functions

 TestMainFrame (const TGWindow *p, UInt_t w, UInt_t h)
virtual ~TestMainFrame ()
virtual void CloseWindow ()
virtual Bool_t ProcessMessage (Long_t msg, Long_t parm1, Long_t)
 TestMainFrame (const TGWindow *p, UInt_t w, UInt_t h)
virtual ~TestMainFrame ()
virtual void CloseWindow ()
virtual Bool_t ProcessMessage (Long_t msg, Long_t parm1, Long_t)
 TestMainFrame (const TGWindow *p, UInt_t w, UInt_t h)
virtual ~TestMainFrame ()
void CloseWindow ()
void DoButton ()
void HandleMenu (Int_t id)
void HandlePopup ()
void HandlePopdown ()
void Created ()
void Welcome ()

Private Attributes

TGCompositeFrame * fStatusFrame
TGCanvas * fCanvasWindow
TileFrame * fContainer
TGTextEntry * fTestText
TGButton * fTestButton
TGMenuBar * fMenuBar
TGPopupMenu * fMenuFile
TGPopupMenu * fMenuTest
TGPopupMenu * fMenuHelp
TGPopupMenu * fCascadeMenu
TGPopupMenu * fCascade1Menu
TGPopupMenu * fCascade2Menu
TGLayoutHints * fMenuBarLayout
TGLayoutHints * fMenuBarItemLayout
TGLayoutHints * fMenuBarHelpLayout
TGDockableFrame * fMenuDock
TGCompositeFrame * fStatusFrame
TGCanvas * fCanvasWindow
TileFrame * fContainer
TGTextEntry * fTestText
TGButton * fTestButton
TGColorSelect * fColorSel
TGMenuBar * fMenuBar
TGPopupMenu * fMenuFile
TGPopupMenu * fMenuView
TGPopupMenu * fCascadeMenu
TGPopupMenu * fMenuNew1
TGPopupMenu * fMenuNew2
TGLayoutHints * fMenuBarLayout
TGMainFrame * fMain
TGDockableFrame * fMenuDock
TGCompositeFrame * fStatusFrame
TGCanvas * fCanvasWindow
TileFrame * fContainer
TGTextEntry * fTestText
TGButton * fTestButton
TGColorSelect * fColorSel
TGMenuBar * fMenuBar
TGPopupMenu * fMenuFile
TGPopupMenu * fCascadeMenu
TGPopupMenu * fMenuNew1
TGLayoutHints * fMenuBarLayout

Detailed Description

Definition at line 96 of file guitest.h.


Constructor & Destructor Documentation

TestMainFrame::TestMainFrame ( const TGWindow *  p,
UInt_t  w,
UInt_t  h 
)

Definition at line 159 of file guitest.cpp.

References TGPopupMenu::AddEntry(), TGCanvas::AddFrame(), TGCompositeFrame::AddFrame(), TGPopupMenu::AddLabel(), TGMenuBar::AddPopup(), TGPopupMenu::AddPopup(), TGPopupMenu::AddSeparator(), TGPopupMenu::Associate(), TGWidget::Associate(), TGPopupMenu::DisableEntry(), fCanvasWindow, fCascade1Menu, fCascade2Menu, fCascadeMenu, TGObject::fClient, fContainer, fMenuBar, fMenuBarHelpLayout, fMenuBarItemLayout, fMenuBarLayout, fMenuFile, fMenuHelp, fMenuTest, fStatusFrame, fTestButton, fTestText, TGCanvas::GetContainer(), TGFrame::GetDefaultHeight(), TGCompositeFrame::GetDefaultSize(), TGClient::GetRoot(), TGCanvas::GetViewPort(), i, kHorizontalFrame, kLHintsBottom, kLHintsExpandX, kLHintsExpandY, kLHintsLeft, kLHintsRight, kLHintsTop, kSunkenFrame, M_CASCADE_1, M_CASCADE_2, M_CASCADE_3, M_FILE_EXIT, M_FILE_OPEN, M_FILE_SAVE, M_FILE_SAVEAS, M_HELP_ABOUT, M_HELP_CONTENTS, M_HELP_SEARCH, M_TEST_DLG, M_TEST_MSGBOX, M_TEST_PROGRESS, M_TEST_SHUTTER, M_TEST_SLIDER, TGCompositeFrame::MapSubwindows(), TGFrame::MapWindow(), TGFrame::Resize(), TileFrame::SetCanvas(), TGCanvas::SetContainer(), TGTextEntry::SetToolTipText(), TGButton::SetToolTipText(), TGMainFrame::SetWindowName(), and TGCompositeFrame::TGCompositeFrame().

TestMainFrame::~TestMainFrame (  )  [virtual]

Definition at line 284 of file guitest.cpp.

References fCanvasWindow, fCascade1Menu, fCascade2Menu, fCascadeMenu, fContainer, fMenuBar, fMenuBarHelpLayout, fMenuBarItemLayout, fMenuBarLayout, fMenuFile, fMenuHelp, fMenuTest, fStatusFrame, fTestButton, and fTestText.

TestMainFrame::TestMainFrame ( const TGWindow *  p,
UInt_t  w,
UInt_t  h 
)

virtual TestMainFrame::~TestMainFrame (  )  [virtual]

TestMainFrame::TestMainFrame ( const TGWindow *  p,
UInt_t  w,
UInt_t  h 
)

virtual TestMainFrame::~TestMainFrame (  )  [virtual]


Member Function Documentation

void TestMainFrame::CloseWindow (  )  [virtual]

Reimplemented from TGMainFrame.

Definition at line 308 of file guitest.cpp.

References gApplication, and TApplication::Terminate().

Referenced by HandleMenu(), and ProcessMessage().

Bool_t TestMainFrame::ProcessMessage ( Long_t  msg,
Long_t  parm1,
Long_t   
) [virtual]

Reimplemented from TGCompositeFrame.

Definition at line 317 of file guitest.cpp.

References CloseWindow(), dir(), editortxt1, TGObject::fClient, TGFileInfo::fFilename, TGFileInfo::fFileTypes, fi, filetypes1, TGFileInfo::fIniDir, GET_MSG(), GET_SUBMSG(), TGClient::GetRoot(), kC_COMMAND, kCM_BUTTON, kCM_MENU, kCM_MENUSELECT, kFDOpen, kTRUE, Editor::LoadBuffer(), M_FILE_EXIT, M_FILE_OPEN, M_FILE_SAVE, M_TEST_DLG, M_TEST_MSGBOX, M_TEST_PROGRESS, M_TEST_SHUTTER, M_TEST_SLIDER, Editor::Popup(), and StrDup().

virtual void TestMainFrame::CloseWindow (  )  [virtual]

Reimplemented from TGMainFrame.

virtual Bool_t TestMainFrame::ProcessMessage ( Long_t  msg,
Long_t  parm1,
Long_t   
) [virtual]

Reimplemented from TGCompositeFrame.

void TestMainFrame::CloseWindow (  )  [virtual]

Reimplemented from TGMainFrame.

void TestMainFrame::DoButton (  ) 

Definition at line 792 of file guitest.C.

References Editor::AddBuffer(), editortxt1, editortxt2, editortxt3, editortxt4, editortxt5, editortxt6, fMain, Editor::LoadBuffer(), and Editor::Popup().

void TestMainFrame::HandleMenu ( Int_t  id  ) 

Definition at line 806 of file guitest.C.

References TGPopupMenu::AddEntry(), TGMenuBar::AddPopup(), TGPopupMenu::CheckEntry(), CloseWindow(), TString::Data(), TGPopupMenu::DeleteEntry(), dir(), TGPopupMenu::DisableEntry(), TGDockableFrame::DockContainer(), TGPopupMenu::EnableEntry(), TGDockableFrame::EnableHide(), TGDockableFrame::EnableUndock(), TGFontDialog::FontProp_t::fAlign, TGFontDialog::FontProp_t::fBold, TGFontDialog::FontProp_t::fColor, TGFileInfo::fFilename, TGFileInfo::fFileTypes, fi, filetypes, TGFileInfo::fIniDir, TGFontDialog::FontProp_t::fItalic, fMain, fMenuBar, fMenuBarItemLayout, fMenuDock, fMenuFile, fMenuNew1, fMenuNew2, fMenuTest, fMenuView, TGFontDialog::FontProp_t::fName, TGFontDialog::FontProp_t::fSize, gClient, TGPopupMenu::GetEntry(), TGMenuBar::GetPopup(), TGClient::GetRoot(), TGPopupMenu::HideEntry(), TGPopupMenu::IsEntryChecked(), kFDOpen, TGMenuBar::Layout(), M_FILE_EXIT, M_FILE_OPEN, M_FILE_PRINT, M_FILE_PRINTSETUP, M_FILE_SAVE, M_NEW_REMOVEMENU, M_TEST_DIRLIST, M_TEST_DLG, M_TEST_FILELIST, M_TEST_FONTDIALOG, M_TEST_MSGBOX, M_TEST_NEWMENU, M_TEST_NUMBERENTRY, M_TEST_PROGRESS, M_TEST_SHUTTER, M_TEST_SLIDER, M_VIEW_DOCK, M_VIEW_ENBL_DOCK, M_VIEW_ENBL_HIDE, M_VIEW_UNDOCK, TGCompositeFrame::MapSubwindows(), p, TGMenuBar::RemovePopup(), StrDup(), TGPopupMenu::UnCheckEntry(), and TGDockableFrame::UndockContainer().

void TestMainFrame::HandlePopup (  )  [inline]

Definition at line 260 of file guitest.C.

void TestMainFrame::HandlePopdown (  )  [inline]

Definition at line 261 of file guitest.C.

void TestMainFrame::Created (  )  [inline]

Definition at line 263 of file guitest.C.

References TQObject::Emit().

void TestMainFrame::Welcome (  )  [inline]

Definition at line 264 of file guitest.C.


Member Data Documentation

TGCompositeFrame* TestMainFrame::fStatusFrame [private]

Definition at line 99 of file guitest.h.

Referenced by TestMainFrame(), and ~TestMainFrame().

TGCanvas* TestMainFrame::fCanvasWindow [private]

Definition at line 100 of file guitest.h.

Referenced by TestMainFrame(), and ~TestMainFrame().

TileFrame* TestMainFrame::fContainer [private]

Definition at line 101 of file guitest.h.

Referenced by TestMainFrame(), and ~TestMainFrame().

TGTextEntry* TestMainFrame::fTestText [private]

Definition at line 102 of file guitest.h.

Referenced by TestMainFrame(), and ~TestMainFrame().

TGButton* TestMainFrame::fTestButton [private]

Definition at line 103 of file guitest.h.

Referenced by TestMainFrame(), and ~TestMainFrame().

TGMenuBar* TestMainFrame::fMenuBar [private]

Definition at line 105 of file guitest.h.

Referenced by HandleMenu(), TestMainFrame(), and ~TestMainFrame().

TGPopupMenu* TestMainFrame::fMenuFile [private]

Definition at line 106 of file guitest.h.

Referenced by HandleMenu(), TestMainFrame(), and ~TestMainFrame().

TGPopupMenu * TestMainFrame::fMenuTest [private]

Definition at line 106 of file guitest.h.

Referenced by HandleMenu(), TestMainFrame(), and ~TestMainFrame().

TGPopupMenu * TestMainFrame::fMenuHelp [private]

Definition at line 106 of file guitest.h.

Referenced by TestMainFrame(), and ~TestMainFrame().

TGPopupMenu* TestMainFrame::fCascadeMenu [private]

Definition at line 107 of file guitest.h.

Referenced by TestMainFrame(), and ~TestMainFrame().

TGPopupMenu * TestMainFrame::fCascade1Menu [private]

Definition at line 107 of file guitest.h.

Referenced by TestMainFrame(), and ~TestMainFrame().

TGPopupMenu * TestMainFrame::fCascade2Menu [private]

Definition at line 107 of file guitest.h.

Referenced by TestMainFrame(), and ~TestMainFrame().

TGLayoutHints* TestMainFrame::fMenuBarLayout [private]

Definition at line 108 of file guitest.h.

Referenced by TestMainFrame(), and ~TestMainFrame().

TGLayoutHints * TestMainFrame::fMenuBarItemLayout [private]

Definition at line 108 of file guitest.h.

Referenced by HandleMenu(), TestMainFrame(), and ~TestMainFrame().

TGLayoutHints * TestMainFrame::fMenuBarHelpLayout [private]

Definition at line 108 of file guitest.h.

Referenced by TestMainFrame(), and ~TestMainFrame().

TGDockableFrame* TestMainFrame::fMenuDock [private]

Definition at line 227 of file guitest.cxx.

Referenced by HandleMenu().

TGCompositeFrame* TestMainFrame::fStatusFrame [private]

Definition at line 228 of file guitest.cxx.

TGCanvas* TestMainFrame::fCanvasWindow [private]

Definition at line 229 of file guitest.cxx.

TileFrame* TestMainFrame::fContainer [private]

Definition at line 230 of file guitest.cxx.

TGTextEntry* TestMainFrame::fTestText [private]

Definition at line 231 of file guitest.cxx.

TGButton* TestMainFrame::fTestButton [private]

Definition at line 232 of file guitest.cxx.

TGColorSelect* TestMainFrame::fColorSel [private]

Definition at line 233 of file guitest.cxx.

TGMenuBar* TestMainFrame::fMenuBar [private]

Definition at line 235 of file guitest.cxx.

TGPopupMenu* TestMainFrame::fMenuFile [private]

Definition at line 236 of file guitest.cxx.

TGPopupMenu * TestMainFrame::fMenuView [private]

Definition at line 236 of file guitest.cxx.

Referenced by HandleMenu().

TGPopupMenu* TestMainFrame::fCascadeMenu [private]

Definition at line 237 of file guitest.cxx.

TGPopupMenu* TestMainFrame::fMenuNew1 [private]

Definition at line 238 of file guitest.cxx.

Referenced by HandleMenu().

TGPopupMenu * TestMainFrame::fMenuNew2 [private]

Definition at line 238 of file guitest.cxx.

Referenced by HandleMenu().

TGLayoutHints* TestMainFrame::fMenuBarLayout [private]

Definition at line 239 of file guitest.cxx.

TGMainFrame* TestMainFrame::fMain [private]

Definition at line 237 of file guitest.C.

Referenced by DoButton(), and HandleMenu().

TGDockableFrame* TestMainFrame::fMenuDock [private]

Definition at line 238 of file guitest.C.

TGCompositeFrame* TestMainFrame::fStatusFrame [private]

Definition at line 239 of file guitest.C.

TGCanvas* TestMainFrame::fCanvasWindow [private]

Definition at line 240 of file guitest.C.

TileFrame* TestMainFrame::fContainer [private]

Definition at line 241 of file guitest.C.

TGTextEntry* TestMainFrame::fTestText [private]

Definition at line 242 of file guitest.C.

TGButton* TestMainFrame::fTestButton [private]

Definition at line 243 of file guitest.C.

TGColorSelect* TestMainFrame::fColorSel [private]

Definition at line 244 of file guitest.C.

TGMenuBar* TestMainFrame::fMenuBar [private]

Definition at line 246 of file guitest.C.

TGPopupMenu* TestMainFrame::fMenuFile [private]

Definition at line 247 of file guitest.C.

TGPopupMenu* TestMainFrame::fCascadeMenu [private]

Definition at line 248 of file guitest.C.

TGPopupMenu* TestMainFrame::fMenuNew1 [private]

Definition at line 249 of file guitest.C.

TGLayoutHints* TestMainFrame::fMenuBarLayout [private]

Definition at line 250 of file guitest.C.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:36:26 2011 for ROOT_528-00b_version by  doxygen 1.5.1