This interactor defines a Multiple Document Interface child window.
![]() | minSize User size adjustment minimum limits. |
![]() | menu The menu that was last set by SetMenu(). |
![]() | SetFocusInteractor ( PInteractor * interactor ) Set the child interactor that has the focus in the PTitledWindow or PInteractorLayout. |
![]() | SetTitle ( const PString & title ) Set the windows title string. |
![]() | OnClose () The system calls this whenever the window is being closed. |
![]() | Close () Close the top level window. |
![]() | SetMenu ( PRootMenu * newMenu, BOOL autoDelete = TRUE ) Attach a menu to the top level window. |
![]() | UpdateMyCommandSources () Scan through all child interactors and if they are a command source, execute their notification function to enable or disable the item. |
![]() | PMDIDocWindow ( PMDIFrameWindow *parent, const PString & title, int CanDo=CanClose|CanGrow|CanIconify|CanZoom ) Construct a new MDI child document window. |
![]() | SetTitle ( const PString & title ) Set the new window title string. |
![]() | Overrides from class PTitledWindow |
![]() | maxSize User size adjustment maximum limits. |
![]() | zoomSize User size adjustment for "zoomed" windows. |
![]() | icon Icon to be used for window. |
![]() | focusInteractor Child interactor that gets the focus when this window gets focus. |
![]() | deleteMenu An indication that the menu is to be deleted when the window is destroyed or when a new menu is set for the window |
![]() | ~PTopLevelWindow () Destroy the top level window, if a menu has been set for the window then it is deleted as well. |
![]() | GetMenu () const Get the currently active menu attached to the top level window. |
![]() | GetHelpMenu () Get the active menus help sub-menu. |
![]() | OnMenuStartSelect () Whenever the menu bar is selected and the process of selecting a menu begins, this function is called. |
![]() | OnMenuItemSelect ( PMenuItem & item ) Every menu selection will go through this function allowing it to intercept any or all menu selections. |
![]() | RedrawMenu () Can be used to redraw the menubar after it has been altered |
![]() | Member variables |
![]() | Overrides from class PTitledWindow |
![]() | New functions for class |
![]() | Overrides from class PInteractor |
![]() | Member variables |
This interactor defines a Multiple Document Interface child window. The document windows are platform dependent in their exact appearance and their relationship with the PMDIFrameWindow that owns them.
The interactor set here may not actually have the focus. It is the interactor that will be given the focus if the parent interactor, eg a dialog, is given the focus. The dialog itself never requires the focus directly.
The behaviour here is to save the interactor for return by the GetFocusInteractor() function.
The application writer may override this function to do any clean up
or state saving operations. The default action does nothing.
If the newMenu parameter is NULL then no menu for the top
level window is shown. If the autoDelete parameter is TRUE then the menu will be
automatically deleted when the window is destroyed or when another menu
is set using SetMenu().
The menus constructed by the user do not contain a help menu
due to the platform dependence. If the user wishes to alter the help
menu, they must use this function to get an object to manipulate. Note
that the exact contents of the menu is, again, platform dependent so
essentially the only thing that can be done is to append items to the
end of the menu.
The default behaviour does nothing.
The default behaviour to call the call back function attached to the
menu item object.
The behaviour here is to call PInteractor::UpdateCommandSources()
for the menu bar and then all child interactors. This function is used internally by the library. It would normally not
be called directly.
virtual void SetTitle( const PString & title )
Iconic
Zoomed
Normalised
virtual void OnClose()
Member variables
PDim minSize
PDim maxSize
PDim zoomSize
PIcon icon
PInteractor* focusInteractor
virtual ~PTopLevelWindow()
Overrides from class PTitledWindow
virtual BOOL Close()
New functions for class
virtual void SetMenu( PRootMenu * newMenu, BOOL autoDelete = TRUE )
autoDelete - Flag for making the top level window responsible for the deletion of
the menu object being attached.
PRootMenu* GetMenu() const
PSubMenu& GetHelpMenu()
virtual void OnMenuStartSelect()
virtual void OnMenuItemSelect( PMenuItem & item )
void RedrawMenu()
Overrides from class PInteractor
virtual void UpdateMyCommandSources()
Member variables
PRootMenu* menu
BOOL deleteMenu
PMDIDocWindow( PMDIFrameWindow *parent, const PString & title, int CanDo=CanClose|CanGrow|CanIconify|CanZoom )
title - Initial title for child window.
CanDo - Titled window flags. Overrides from class PTitledWindow
virtual void SetTitle( const PString & title )
Alphabetic index HTML hierarchy of classes or Java