Rogue Wave Views Application Framework Package API Reference Guide |
Rogue Wave Views Documentation Home |
Interface for the main window of an application. More...
#include <ilviews/appframe/mainwitf.h>
Public Member Functions | |
virtual IlvDvContainerHandler * | createContainerHandler (IlvDvDocTemplate *docTpl, IlUInt viewTemplateIndex=0) const =0 |
Gets a view container handler. More... | |
virtual void | dockBarSet (IlvDvBarSet *barSet, IlBoolean update=IlTrue)=0 |
Docks a set of bars. More... | |
virtual IlvDvDocViewInterface * | getActiveView () const |
Gets the active view of the window. More... | |
virtual IlvDvViewContainerInterface * | getActiveViewContainer () const =0 |
Returns the active document view container. More... | |
virtual IlvDvApplication * | getDvApplication () const =0 |
Gets the application that owns the window. More... | |
virtual IlvGadgetContainer * | getGadgetContainer ()=0 |
Gets the top container of the window. More... | |
virtual const IlvGadgetContainer * | getGadgetContainer () const =0 |
Gets the top container of the window. More... | |
virtual IlvToolBar * | getMenuBar () const =0 |
Returns the menu bar of the window. More... | |
virtual IlvToolBar * | getToolBar (const IlSymbol *barName) const =0 |
Retrieves a bar with the given name from the window. More... | |
virtual void | initialize () |
Initializes the window. More... | |
virtual IlBoolean | isShowingTooltips () const |
Shows tooltips for menu items. More... | |
virtual IlBoolean | isUsingBigIcons () const |
Shows menu item icons in large size. More... | |
virtual void | readOptions (const IlvDvOptions *options) |
Reads options. More... | |
virtual void | removeBarSet (const IlvDvBarSet *barSet, IlBoolean update=IlTrue)=0 |
Removes a set of bars. More... | |
virtual void | saveConfiguration (const IlvDvBarSet &barSet) |
Saves the location of a set of dockable bars. More... | |
virtual void | setDvApplication (IlvDvApplication *application)=0 |
Sets the application that owns the window to the parameter application. | |
virtual void | setStatusLabel (const char *text) |
Changes the text displayed in the status bar to the text given as the parameter. More... | |
virtual void | showWindow (IlBoolean show=IlTrue) |
Shows the window. More... | |
virtual void | updateOptions (IlvDvOptions *options) |
Updates options. More... | |
virtual IlBoolean | withShortcuts () const |
Shows the action accelerators in tooltips. More... | |
Public Member Functions inherited from IlvDvInterface | |
IlBoolean | callMethod (const IlSymbol *methodName, IlvDvValue *returnedValue,...) |
Generic method for calling a method that is exported in a class interface. More... | |
IlvDvValue & | getFieldValue (const IlSymbol *fieldName, IlvDvValue &value) const |
Gets a field value. More... | |
virtual IlBoolean | isProcessingAction (const IlSymbol *methodName) const |
Returns IlTrue if the given action can be processed by the class. More... | |
virtual IlBoolean | processAction (const IlSymbol *actionName) |
Processes an action. More... | |
virtual IlBoolean | refreshAction (const IlSymbol *actionName, IlvDvActionDescriptor *desc) const |
Refresh all the menu items that reference the action given by the parameter actionName. More... | |
void | setFieldValue (const IlSymbol *fieldName, const IlvDvValue &value) |
Sets a field value. More... | |
Interface for the main window of an application.
Library: ilvappframe
This class is the interface for the main window of an Application Framework application. It does not usually have to be overridden because Application Framework provides the IlvDvDockableMainWindow
subclass. This subclass provides all the standard MDI window management and extended dockable bar services needed to make a professional application GUI.
However, it can be useful to inherit this class for specific uses, such as integrating Application Framework into an existing application in order to make it more powerful. In this case, you need to link the existing main window with the Application Framework document management services. To do this, the existing main window class must first inherit from the IlvDvMainWindowInterface
class to override pure methods. Then, the main window class must be instantiated by the application, by overriding the method createMainWindow
of the IlvDvApplication
class.
|
pure virtual |
Gets a view container handler.
This handler will be called by document templates to create and handle view containers.
Implemented in IlvDvDockableMainWindow.
|
pure virtual |
Docks a set of bars.
Called by a document template to dock its set of toolbars within the window.
barSet | Specifies the set of toolbars. |
update | If IlTrue , the window must be updated. |
Implemented in IlvDvDockableMainWindow.
|
virtual |
Gets the active view of the window.
By default, it returns the active view of the active view container.
|
pure virtual |
Returns the active document view container.
Implemented in IlvDvDockableMainWindow.
|
pure virtual |
Gets the application that owns the window.
Implemented in IlvDvDockableMainWindow.
|
pure virtual |
Gets the top container of the window.
Usually, it returns the window itself.
Implemented in IlvDvDockableMainWindow.
|
pure virtual |
Gets the top container of the window.
Usually, it returns the window itself.
Implemented in IlvDvDockableMainWindow.
|
pure virtual |
Returns the menu bar of the window.
Implemented in IlvDvDockableMainWindow.
|
pure virtual |
Retrieves a bar with the given name from the window.
Returns the bar owned by the window whose name is given by the parameter barName.
Implemented in IlvDvDockableMainWindow.
|
virtual |
Initializes the window.
Called by the application once it has created the window and the window options have been read. This method must be overridden to add initialization code.
For example, the IlvDvDockableMainWindow
class overrides this method to tag the Windows popup menu that will be used for adding new window titles.
Reimplemented in IlvDvDockableMainWindow.
|
virtual |
Shows tooltips for menu items.
Returns IlTrue
if tooltips must be displayed for menu items in the window toolbars. Otherwise, it returns IlFalse
. By default, it returns IlTrue
.
IlTrue
if tooltips must be displayed for menu items in the window toolbars. Otherwise, it returns IlFalse
. Reimplemented in IlvDvDockableMainWindow.
|
virtual |
Shows menu item icons in large size.
Returns IlTrue
if the menu item icons must be displayed in large size. If it returns IlFalse
, icons are displayed in normal size. By default, it return IlFalse
.
IlTrue
if the menu item icons must be displayed in large size. Otherwise, it returns IlFalse
. Reimplemented in IlvDvDockableMainWindow.
|
virtual |
Reads options.
Called to make the window read options that it had saved during the previous session.
It is redefined by the IlvDvDockableMainWindow
subclass to read the location and state of bars that were saved the last time the application closed.
Reimplemented in IlvDvDockableMainWindow.
|
pure virtual |
Removes a set of bars.
Called by a document template to remove a set of toolbars.
barSet | Specifies the set of toolbars. |
update | If IlTrue , the window must be updated. |
Implemented in IlvDvDockableMainWindow.
|
virtual |
Saves the location of a set of dockable bars.
Called to save the location of bars within the bar set given by the parameter barSet.
Reimplemented in IlvDvDockableMainWindow.
|
virtual |
Changes the text displayed in the status bar to the text given as the parameter.
For example, it is called when menu items are highlighted to display the description of the corresponding actions.
Reimplemented in IlvDvDockableMainWindow.
Shows the window.
Called by the application to show or hide the window. By default, this method shows or hides the gadget container returned by the getGadgetContainer()
method, depending on the value of the parameter show.
Reimplemented in IlvDvDockableMainWindow.
|
virtual |
Updates options.
Called to make the window update the application options that it had saved during the previous session.
It is redefined by the IlvDvDockableMainWindow
subclass to save the current location and state of its bars.
Reimplemented in IlvDvDockableMainWindow.
|
virtual |
Shows the action accelerators in tooltips.
Returns IlTrue
if action accelerators must be shown in the menu item tooltips. By default, it returns IlTrue
.
IlTrue
if action accelerators must be shown in the menu item tooltips. Otherwise, it returns IlFalse
. Reimplemented in IlvDvDockableMainWindow.
© Copyright 2016, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.