VR-Forces 4.0.4 Class Documentation
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Private Member Functions | Friends
DtTMWindow Class Reference
Inheritance diagram for DtTMWindow:
Inheritance graph
[legend]

List of all members.

Public Slots

virtual void setRubberBandColor ()
virtual void setActiveRubberBandColor ()
virtual void setInactiveRubberBandColor ()
virtual void setGlobalActiveRubberBandColor ()
virtual void setGlobalInactiveRubberBandColor ()
virtual void updateFilenameInUse (const QString &s)
 Updates the caption.
virtual void setZoomToExtentsNavigationConnection ()

Signals

void isActive ()
 Signals.
void navigationAction (int)
void selectionModeChanged (DtBaseWindow *)
 Emitted whenever the terrain selection mode has changed.

Public Member Functions

 DtTMWindow (QWidget *parent=NULL, const Qt::WindowFlags &flags=0)
 Constructor.
virtual ~DtTMWindow ()
 Destructor.
virtual bool init (const DtTMFactory *f, DtTMMiniMap *m=0, int mode=DtWindow_NoAction)
 Initializer. MUST BE CALLED.
virtual void setMouseOverActive (bool b)
virtual void setObjectSelectionMode (const DtFilter *f=NULL)
 Cycles through all map areas and sets the selection mode to be the appropriate type, If filter is NULL, can select all objects.
virtual QDockWidgetaddUtilityToolbar (QWidget *w, const QString &tab)
 These are convenience routines that will allow the developer to perform multiple steps in a single on.
virtual QDockWidgetaddToolbar (QWidget *w, const Qt::DockWidgetArea &)
virtual void setWindowName (const QString &)
 Sets the internal variables myWindowName and updates the caption.
virtual QActionaddViewToolbar (QWidget *, const QString &itemName, const QString &addToMenu, DtMenuItemType &retId)
 Adds the supplied toolbar to the view menu under the supplied menu item path (for example, to place an item under the Toolbars sub-menu, and the Objects sub-menu, specify Toolbars/Objects).
virtual QActionaddMenuItem (const QString &itemName, const QString &addToMenu, DtMenuItemType &retId, bool isToggle=false, QObject *actionReceiver=NULL, const char *slot=NULL, QObject *validatorReceiver=NULL, const char *validator=NULL, const QString &tooltip=QString::null, const QString &accelerator=QString::null, bool addSep=false)
virtual void appendMenuValidator (const QString &menuName, const QString &itemName, QObject *validatorReceiver, char *validator)
 Adds the specified validator to a list of validators that can be called for the menu item.
virtual void addViewToolbarMapping (int, QWidget *)
 Adds a mapping to the view toolbar.
virtual DtOutputAreaWidgetoutputArea ()
DtToolbarFactoryManagertoolbarFactoryManager ()
DtToolbarFactoryManagerbackupToolbarFactoryManager ()
virtual void mergeToolbarManager (const DtToolbarFactoryManager &, bool removeMissingToolbars=true)
 Merges in new toolbar manager and updates any existing toolbars with new items (if created)
virtual void revertToolbars ()
 Reverts toolbars to the backed up state.

Static Public Member Functions

static DtBaseWindowcreate (QWidget *parent, const Qt::WindowFlags &f)
 Returns a newly created instance of a DtTMWindow.

Protected Slots

virtual void navWidgetDestroyed ()
virtual void toolbarDestroyed ()
virtual void toolbarContextMenu (QWidget *bar, QContextMenuEvent *)

Protected Member Functions

virtual bool initCaption ()
 Initialize window caption.
virtual bool initStatusBar ()
 Initializes the status bar.
virtual bool initWindowName ()
 Initialize window name.
virtual bool initFromFactory (const DtTMFactory *f)
 Initialize classes from DtTMFactory.
virtual bool initMiniMap (const DtTMFactory *f, QDockWidget *parent=0)
 Initialize minimap from DtTMFactory.
virtual void initOutputBar ()
virtual bool createFromFactory (const DtTMFactory *f)
 Create classes from DtTMFactory.
virtual unsigned createMapArea (const DtTMFactory *f)
 Create area map from DtTMFactory.
virtual bool initToolbars ()
 Initialize toolbars.
virtual bool initConnections ()
 Initialize connections.
virtual bool event (QEvent *e)
virtual void enterEvent (QEvent *e)
virtual void initViewMenuToolbarMap ()
 Initializes the view/menu toolbar map by associating a view menu action with a toolbar to toggle on and off.
virtual void setFullScreenMode (bool b)
 Override to affect window layout.
virtual QTextStream & read (QTextStream &ts)
 Override to set minimap rubberband color.
virtual void setRubberBandColor (DtTMMiniMap *mini)
 Sets color of rubber band widget (if exists)
virtual void setRubberBandColor (DtTMRubberBand *band)
virtual void setRubberBandColor (const QColor &color)
virtual DtNavigationWidgetnavigationWidget ()
virtual bool createUtilityToolBar ()
 Creates the main toolbar that is used to doc various child tool bars (dock windows)
virtual QTextStream & write (QTextStream &ts)
 To archive utility bar.
virtual void processSelectionChanged (const QVector< DtModelKey > &list)
 Override to set navigation widget to extents/global mode.
virtual void updateValidActions ()
 Update valid actions.
bool eventFilter (QObject *o, QEvent *e)
 If ctrl key is pressed (released) change zoom button.
virtual void installWatermark ()
 Creates and places the watermark object on the main map area. The watermark object will be responsible for positioning itself.
virtual void postProcessOptions ()
 Set watermark to show/not show after reading options from file.
virtual void hideAllToolbars ()
 Hides/shows all visible/hidden toolbars.
virtual bool passKeyEventToMapArea (QKeyEvent *) const
 Return true if this key event should be passed to the active map area.
virtual void createCentralWidgetArea (QWidget *parent, const DtTMFactory *f)
 Creates the central area of the window, including the map area, central widget (parent of map area) and master layout.
virtual QBoxLayout * createMasterLayout ()
 Creates master layout around central widget.
virtual QWidgetcreateCentralWidget (QWidget *parent)
 Creates widget that will go into the center of the window.
virtual void createAndInitializeToolbarFactory (const DtTMFactory *)
 Creates the toolbar factory and initializes the toolbars that can be created through the factory.
virtual void initToolbarFactory ()
 Adds all default toolbars to the factory.
virtual void initializeMinimapColorToolbar ()
virtual void addDefaultShortcutsAndIcons (const DtTMFactory *f)
 Called after feature action manager is created, adds default shortcuts and icons to the system.
virtual void initFromAppSettings ()
 Initialize window from current application settings.
virtual void createUserDefinedToolbars ()
 Creates user defined toolbars from factory manager.

Protected Attributes

DtUtilityBarmyUtilityBar
DtToolbarFactoryManagermyToolbarFactoryManager
DtToolbarFactoryManagermyBackupToolbarFactoryManager
QDockWidgetmyTMMiniMapToolBar
QDockWidgetmyOutputToolBar
DtOutputAreaWidgetmyOutputArea
 Output window toolbar.
QToolBarmyRubberBandColorToolBar
 Contained by the output window toolbar.
QDockWidgetmyNavigationToolBar
bool myMouseOverActive
 Set as true if you want the mouse over a window to be enough to set it active.
QString myWindowName
QBoxLayout * myMasterLayout
QWidgetmyCanvas
DtNavigationWidgetmyNavigationWidget
DtTMWatermarkmyWatermark
DtMsgGuiPrintermyGuiPrinter

Private Member Functions

 DtTMWindow (const DtTMWindow &orig)
 Not implemented.
DtTMWindowoperator= (const DtTMWindow &rhs)
 Not implemented.

Friends

class DtFactory

Constructor & Destructor Documentation

DtTMWindow::DtTMWindow ( QWidget parent = NULL,
const Qt::WindowFlags &  flags = 0 
)

Constructor.

virtual DtTMWindow::~DtTMWindow ( ) [virtual]

Destructor.

DtTMWindow::DtTMWindow ( const DtTMWindow orig) [private]

Not implemented.


Member Function Documentation

virtual bool DtTMWindow::init ( const DtTMFactory f,
DtTMMiniMap m = 0,
int  mode = DtWindow_NoAction 
) [virtual]

Initializer. MUST BE CALLED.

Reimplemented from DtBaseWindow.

Reimplemented in DtEntityEditorWindow.

virtual void DtTMWindow::setMouseOverActive ( bool  b) [virtual]
virtual void DtTMWindow::setObjectSelectionMode ( const DtFilter f = NULL) [virtual]

Cycles through all map areas and sets the selection mode to be the appropriate type, If filter is NULL, can select all objects.

static DtBaseWindow* DtTMWindow::create ( QWidget parent,
const Qt::WindowFlags &  f 
) [static]

Returns a newly created instance of a DtTMWindow.

Reimplemented from DtBaseWindow.

Reimplemented in DtEntityEditorWindow, and DtTerrainWindow.

void DtTMWindow::isActive ( ) [signal]

Signals.

void DtTMWindow::navigationAction ( int  ) [signal]

Emitted whenever the terrain selection mode has changed.

Sent from the set*SelectionMode routines

virtual QDockWidget* DtTMWindow::addUtilityToolbar ( QWidget w,
const QString &  tab 
) [virtual]

These are convenience routines that will allow the developer to perform multiple steps in a single on.

Adds a widget to a newly created toolbar onto the specified tab. The toolbar will get the title of the widget that is supplied. If the tab does not exist, a new tab with that name will be created. If the utility bar does not exist, this will call down to the addToolbar() method with a dock position of left or right (given the nature of the language being used)

Note that the widget will be reparented to the new toolbar, and, the window will maintain ownership of the memory of this new toolbar

virtual QDockWidget* DtTMWindow::addToolbar ( QWidget w,
const Qt::DockWidgetArea &   
) [virtual]
virtual void DtTMWindow::setWindowName ( const QString &  ) [virtual]

Sets the internal variables myWindowName and updates the caption.

virtual QAction* DtTMWindow::addViewToolbar ( QWidget ,
const QString &  itemName,
const QString &  addToMenu,
DtMenuItemType retId 
) [virtual]

Adds the supplied toolbar to the view menu under the supplied menu item path (for example, to place an item under the Toolbars sub-menu, and the Objects sub-menu, specify Toolbars/Objects).

This routine will also make sure that the correct action is taken to show/hide the item from the menu. The return value is the new unique id

virtual QAction* DtTMWindow::addMenuItem ( const QString &  itemName,
const QString &  addToMenu,
DtMenuItemType retId,
bool  isToggle = false,
QObject actionReceiver = NULL,
const char *  slot = NULL,
QObject validatorReceiver = NULL,
const char *  validator = NULL,
const QString &  tooltip = QString::null,
const QString &  accelerator = QString::null,
bool  addSep = false 
) [virtual]
virtual void DtTMWindow::appendMenuValidator ( const QString &  menuName,
const QString &  itemName,
QObject validatorReceiver,
char *  validator 
) [virtual]

Adds the specified validator to a list of validators that can be called for the menu item.

virtual void DtTMWindow::addViewToolbarMapping ( int  ,
QWidget  
) [virtual]

Adds a mapping to the view toolbar.

Also connects a signal to remove it in case the toolbar is destroyed

virtual void DtTMWindow::mergeToolbarManager ( const DtToolbarFactoryManager ,
bool  removeMissingToolbars = true 
) [virtual]

Merges in new toolbar manager and updates any existing toolbars with new items (if created)

virtual void DtTMWindow::revertToolbars ( ) [virtual]

Reverts toolbars to the backed up state.

This will not be a straight merge as the user defined toolbars will still be kept. Calls mergeToolbarManager with the backup manager and remove missing toolbars = false

virtual void DtTMWindow::setRubberBandColor ( ) [virtual, slot]
virtual void DtTMWindow::setActiveRubberBandColor ( ) [virtual, slot]
virtual void DtTMWindow::setInactiveRubberBandColor ( ) [virtual, slot]
virtual void DtTMWindow::setGlobalActiveRubberBandColor ( ) [virtual, slot]
virtual void DtTMWindow::setGlobalInactiveRubberBandColor ( ) [virtual, slot]
virtual void DtTMWindow::updateFilenameInUse ( const QString &  s) [virtual, slot]

Updates the caption.

Reimplemented in DtTerrainWindow.

virtual void DtTMWindow::setZoomToExtentsNavigationConnection ( ) [virtual, slot]
virtual void DtTMWindow::navWidgetDestroyed ( ) [protected, virtual, slot]
virtual void DtTMWindow::toolbarDestroyed ( ) [protected, virtual, slot]
virtual void DtTMWindow::toolbarContextMenu ( QWidget bar,
QContextMenuEvent *   
) [protected, virtual, slot]
virtual bool DtTMWindow::initCaption ( ) [protected, virtual]

Initialize window caption.

virtual bool DtTMWindow::initStatusBar ( ) [protected, virtual]

Initializes the status bar.

virtual bool DtTMWindow::initWindowName ( ) [protected, virtual]

Initialize window name.

Reimplemented in DtEntityEditorWindow, and DtTerrainWindow.

virtual bool DtTMWindow::initFromFactory ( const DtTMFactory f) [protected, virtual]

Initialize classes from DtTMFactory.

Reimplemented in DtTerrainWindow.

virtual bool DtTMWindow::initMiniMap ( const DtTMFactory f,
QDockWidget parent = 0 
) [protected, virtual]

Initialize minimap from DtTMFactory.

Reimplemented from DtBaseWindow.

virtual void DtTMWindow::initOutputBar ( ) [protected, virtual]
virtual bool DtTMWindow::createFromFactory ( const DtTMFactory f) [protected, virtual]

Create classes from DtTMFactory.

Reimplemented in DtTerrainWindow.

virtual unsigned DtTMWindow::createMapArea ( const DtTMFactory f) [protected, virtual]

Create area map from DtTMFactory.

Reimplemented from DtBaseWindow.

Reimplemented in DtTerrainWindow.

virtual bool DtTMWindow::initToolbars ( ) [protected, virtual]

Initialize toolbars.

Reimplemented in DtEntityEditorWindow, and DtTerrainWindow.

virtual bool DtTMWindow::initConnections ( ) [protected, virtual]

Initialize connections.

Reimplemented in DtTerrainWindow.

virtual bool DtTMWindow::event ( QEvent *  e) [protected, virtual]
virtual void DtTMWindow::enterEvent ( QEvent *  e) [protected, virtual]
virtual void DtTMWindow::initViewMenuToolbarMap ( ) [protected, virtual]

Initializes the view/menu toolbar map by associating a view menu action with a toolbar to toggle on and off.

Reimplemented from DtBaseWindow.

Reimplemented in DtTerrainWindow.

virtual void DtTMWindow::setFullScreenMode ( bool  b) [protected, virtual]

Override to affect window layout.

Reimplemented from DtBaseWindow.

virtual QTextStream& DtTMWindow::read ( QTextStream &  ts) [protected, virtual]

Override to set minimap rubberband color.

Reimplemented from DtBaseWindow.

virtual void DtTMWindow::setRubberBandColor ( DtTMMiniMap mini) [protected, virtual]

Sets color of rubber band widget (if exists)

virtual void DtTMWindow::setRubberBandColor ( DtTMRubberBand band) [protected, virtual]
virtual void DtTMWindow::setRubberBandColor ( const QColor &  color) [protected, virtual]
virtual DtNavigationWidget* DtTMWindow::navigationWidget ( ) [protected, virtual]
virtual bool DtTMWindow::createUtilityToolBar ( ) [protected, virtual]

Creates the main toolbar that is used to doc various child tool bars (dock windows)

If you wish to, by default, have the tool bars dock on the main windows doc area, then override this method and simply return true without calling the parent method

virtual QTextStream& DtTMWindow::write ( QTextStream &  ts) [protected, virtual]

To archive utility bar.

Reimplemented from DtBaseWindow.

virtual void DtTMWindow::processSelectionChanged ( const QVector< DtModelKey > &  list) [protected, virtual]

Override to set navigation widget to extents/global mode.

Reimplemented from DtBaseWindow.

virtual void DtTMWindow::updateValidActions ( ) [protected, virtual]

Update valid actions.

This function decides which menu or button items are valid in your current state and disables/enables things accordingly

Reimplemented from DtBaseWindow.

bool DtTMWindow::eventFilter ( QObject o,
QEvent *  e 
) [protected]

If ctrl key is pressed (released) change zoom button.

virtual void DtTMWindow::installWatermark ( ) [protected, virtual]

Creates and places the watermark object on the main map area. The watermark object will be responsible for positioning itself.

virtual void DtTMWindow::postProcessOptions ( ) [protected, virtual]

Set watermark to show/not show after reading options from file.

Reimplemented from DtBaseWindow.

Reimplemented in DtTerrainWindow.

virtual void DtTMWindow::hideAllToolbars ( ) [protected, virtual]

Hides/shows all visible/hidden toolbars.

Reimplemented from DtBaseWindow.

virtual bool DtTMWindow::passKeyEventToMapArea ( QKeyEvent *  ) const [protected, virtual]

Return true if this key event should be passed to the active map area.

Currently only valid for escape key press. This method will ask the event controller if it should be

virtual void DtTMWindow::createCentralWidgetArea ( QWidget parent,
const DtTMFactory f 
) [protected, virtual]

Creates the central area of the window, including the map area, central widget (parent of map area) and master layout.

virtual QBoxLayout* DtTMWindow::createMasterLayout ( ) [protected, virtual]

Creates master layout around central widget.

virtual QWidget* DtTMWindow::createCentralWidget ( QWidget parent) [protected, virtual]

Creates widget that will go into the center of the window.

virtual void DtTMWindow::createAndInitializeToolbarFactory ( const DtTMFactory ) [protected, virtual]

Creates the toolbar factory and initializes the toolbars that can be created through the factory.

The only toolbars that are currently in this factory are the button toolbars (open database, terrain drawing, etc) and user defined toolbars. Utility toolbars are not part of this factory

virtual void DtTMWindow::initToolbarFactory ( ) [protected, virtual]

Adds all default toolbars to the factory.

Reimplemented in DtTerrainWindow.

virtual void DtTMWindow::initializeMinimapColorToolbar ( ) [protected, virtual]
virtual void DtTMWindow::addDefaultShortcutsAndIcons ( const DtTMFactory f) [protected, virtual]

Called after feature action manager is created, adds default shortcuts and icons to the system.

Reimplemented from DtBaseWindow.

Reimplemented in DtTerrainWindow.

virtual void DtTMWindow::initFromAppSettings ( ) [protected, virtual]

Initialize window from current application settings.

Called after app settings are read in from settings file

Reimplemented from DtBaseWindow.

Reimplemented in DtTerrainWindow.

virtual void DtTMWindow::createUserDefinedToolbars ( ) [protected, virtual]

Creates user defined toolbars from factory manager.

DtTMWindow& DtTMWindow::operator= ( const DtTMWindow rhs) [private]

Not implemented.


Friends And Related Function Documentation

friend class DtFactory [friend]

Member Data Documentation

Referenced by toolbarFactoryManager().

Output window toolbar.

Contained by the output window toolbar.

Set as true if you want the mouse over a window to be enough to set it active.

QString DtTMWindow::myWindowName [protected]
QBoxLayout* DtTMWindow::myMasterLayout [protected]

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)