VR-Forces 4.1 Class Documentation
List of all members | 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]

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 ()
- Public Slots inherited from DtBaseWindow
virtual void removeAttachedEventController (QObject *)
virtual void removeMapArea (unsigned ii)
 Remove a map area from active service.
virtual void removeMapArea (DtTMMapArea *area)
 Remove a map area from active service.
virtual void changeActiveMap (DtTMMapArea *)
 change the current active map
virtual void changeActiveRubberBand (const DtTMRubberBand *)
 change the current active rubber band.
virtual void addSymbol (const DtModelData &, bool)
 This is called from add symbols from symbol generator.
virtual void addSymbol (const DtModelData &, DtSymbol *)
virtual void removeDictionaryEntry (const DtModelKey &key)
 Removes this keyed entry from local map dictionaries.
virtual void removeSymbol (const DtModelData &, bool)
 This is called from remove symbols emit from symbol generator.
virtual void modifySymbol (const DtModelData &d, int changedFlags)
 This is called from modify symbols emit from symbol generator.
virtual void tick ()
 Redraws the background. Also keeps a frame rate counter.
virtual void preTick ()
 Emits preUpdateTick() signal.
virtual void postTick ()
 Emits postUpdateTick signal.
virtual void toggleToolbar (bool b)
 Uses our view/toolbar map to toggle toolbars on and off as connected via menu item items.
virtual void updateViewMenu ()
 Updates the view menu based on current toolbar status.
virtual void showAllToolbars ()
virtual void displayToolbars (bool hide)
virtual void changeSelection (const QVector< DtModelKey > &keys)
 Changes the selection in the active map area.
virtual void modelDataAdded (const DtModelKey &key)
virtual void setupMenuConnection (DtMainMenuType)
 Called when the menu system recreates a menu, if the menu recreated is the view menu, setup connections again.
DtFeatureActionManagerfeatureActionManager () const
DtFeatureActionManagerbackupFeatureActionManager () const
virtual void revertFeatureActionManager ()
 Reverts feature action manager to backup.
virtual void mergeFeatureActionManager (const DtFeatureActionManager &)
 Merges in new feature action manager. Currently merge only changes shortcuts.

Signals

void isActive ()
 Signals.
void navigationAction (int)
void selectionModeChanged (DtBaseWindow *)
 Emitted whenever the terrain selection mode has changed.
- Signals inherited from DtBaseWindow
void menuItemsValidated ()
 Emitted after all menu items have been validated.
void changedActiveMap (DtTMMapArea *)
 Sent when the active map changed.
void closing (const DtBaseWindow *)
 Sent when closing.
void mapAreaCreated (DtTMArea *)
 Sent when a new map area is created via createMapArea.
void miniMapAreaCreated (DtTMArea *)
void selectionChanged (const QVector< DtModelKey > &)
void menuRecreated (DtMainMenuType)
void modelDataMarkedForUpdated (const DtModelData &)
void modelDataRemovedFromUpdate (const DtModelData &)
void preTickSignal ()
void postTickSignal ()

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.
- Public Member Functions inherited from DtBaseWindow
 DtBaseWindow (QWidget *parent=NULL, const Qt::WindowFlags &flags=0)
virtual ~DtBaseWindow ()
virtual bool createMiniMap (const DtTMFactory *f)
 Create miniMap from DtTMFactory.
virtual DtTMMapAreaareaMap (unsigned value=0) const
 Returns pointer to one of the are maps controlled by this window.
virtual DtTMMapAreaactiveMap () const
 Returns pointer to the current active map area.
virtual DtTMRubberBandrubberBand (unsigned value=0) const
 Grab the rubber band of a specific map area.
virtual DtTMRubberBandrubberBand (DtTMMapArea *) const
 Grab the rubber band of a specific map area.
virtual unsigned numberOfMapAreas ()
 Returns the number of map areas in myMapAreaList.
virtual DtTMMiniMapminiMap () const
 Returns pointer to terrain minimap.
virtual void loadDatabaseFile (const QString &f)
 This function passes the database file to all of the map areas If you want to have different databases load on different map areas then you're going to have to overwrite this function.
virtual bool initMapArea (DtTMMapArea *area, const DtTMFactory *f)
 Initialize one specific area map.
virtual bool initAllMapAreas (const DtTMFactory *f)
 Initialize all area maps.
virtual void toggleMinimap (bool b)
 Show or hide the miniMap.
virtual void closeEvent (QCloseEvent *e)
 close the window
virtual bool shouldTick ()
 Returns whether or not this window should tick based on frame rate.
virtual void markForUpdate (const DtModelData &data)
 Marks the specified data for update.
virtual void markForUpdate (DtModelDataIter *iter)
virtual void removeFromUpdate (const DtModelData &data)
 Removes the specified data for update.
virtual void markAllForUpdate ()
 Marks all data for update on next tick.
virtual void removeAllForUpdate ()
 Removes all data for update.
virtual void setDisplayFrameRate (int)
 Sets the display frame rate value in FPS.
virtual int displayFrameRate () const
 returns the display frame rate in FPS.
virtual DtEventControllereventController ()
virtual const DtEventControllereventController () const
virtual double elapsedRunTime () const
virtual double numberOfFrames () const
virtual DtMenuWidgetmenuWidget ()
virtual DtStdContextMenucontextMenus ()
virtual bool hasViewToolbar (int type) const
 Returns true if the specified view type has been added to the myViewMenuToolbarMap.
virtual QWidgettoolbarFor (int type)
virtual bool hasViewToolbar (QWidget *) const
virtual int toolbarMenuId (QWidget *) const
virtual void clear ()
 Tells all map areas to clear out any information it might have about the current database.
virtual void symbolMapChanged ()
 Clear symbols from all map areas and tells the menu widget as well as other widgets to update contents based on new symbol mappings.
virtual void setUpdateOnTick (bool b, bool updateMini=false)
 Tells all children maps (and mini map) to update on next tick.
virtual void recreateMenu (DtMainMenuType menu)
 Deletes and recreates the supplied menu in the existing slot.
virtual void activateRubberBand ()
 Activates the rubber band of the active map area on the mini-map.
virtual void attachEventController (DtEventController *)
 If you are creating an event controller that can be used with this window, call this method to add it to event controllers that are tickable.
QList< DtEventController * > & attachedEventControllers ()
 Does not include the default event controller.
virtual DtPopupMenumenuFromAction (QAction *)
 Calls down to the menu (if it exists) to return the menu that has the QAction.
virtual DtPopupMenumenuForType (DtMainMenuType type)
 Calls down to the menu (if it exists) to return the menu from the menu type.
bool hasRubberBands () const
virtual void addToolbarMapping (int id, QWidget *w)
 Adds toolbars to internal mapping without adding to menu.
virtual void removeToolbarMapping (int id)
 Removes toolbars to internal mapping without removing from view menu.
virtual DtTMMapAreamapContainsData (const DtModelData *data) const
 If a map area contains the model data, returns the map area that contains it.
virtual void bringToFront ()
 Raises the window to be the topmost on the desktop.
virtual void clearFrameRates ()
 Call when running as fast as possible to zero out frame rate statistics.

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 Member Functions inherited from DtBaseWindow
virtual void tickEventControllers ()
 Ticks this windows event controller and all attached.
virtual bool initContextMenus (const DtTMFactory *f)
virtual bool initMenuWidget (const DtTMFactory *f)
 Initializes the menu bar by calling the factory to create it.
virtual bool createFeatureActionManager (const DtTMFactory *f)
 Creates and initializes feature action manager.
virtual void createMenuWidget (const DtTMFactory *f)
 Creates a new menu widget from the factory. Called by initMenuWidget.
virtual bool initMapConnections (DtTMMapArea *area)
 Initializes connections for the map area.
virtual bool initMenuConnections ()
virtual bool initFromApplicationtoLatin1 ()
 Creates symbols in the map areas based on DtLocalControlModelData found in the application dictionary.
virtual Qt::ToolBarArea dockToolbarPosition () const
 Returns Left or Right depending on language layout.
virtual Qt::DockWidgetArea dockWidgetPosition () const
virtual void moveDockWindow (QToolBar *, Qt::ToolBarArea)
 Resurrect old call to place toolbar.
virtual void moveDockWindow (QDockWidget *, Qt::DockWidgetArea)
virtual QMenucreatePopupMenu ()
virtual QWidgetcenterWidget (QWidget *itemToCenter)
 Creates a widget and layout that will center (horizontally) the supplied widget.

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
- Protected Attributes inherited from DtBaseWindow
bool myUsingGlobalMiniMap
DtTMMiniMapmyMiniMap
QList< DtTMMapArea * > myMapAreaList
DtTMMapAreamyActiveMapArea
DtTMRubberBandList myRubberBandList
double myElapsedRunTime
double myNumberOfFrames
int myDisplayFrameRate
QTime myFrameStart
DtEventControllermyEventController
QHash< int, QWidget * > myViewMenuToolbarMap
QList< QWidget * > myNormalToolbars
DtMenuWidgetmyMenuWidget
DtStdContextMenumyContextMenus
DtContextMenumyMiddleClickMenu
DtContextMenumyRightClickMenu
DtArchiver myArchiver
QRect myOriginalGeometry
QList< DtEventController * > * myAttachedEventControllers
int myWindowCreationMode
DtFeatureActionManagermyFeatureActionManager
DtFeatureActionManagermyBackupFeatureActionManager

Private Member Functions

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

Friends

class DtFactory

Additional Inherited Members

- Static Protected Attributes inherited from DtBaseWindow
static const int theDefaultDisplayFrameRate

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
void DtTMWindow::selectionModeChanged ( DtBaseWindow )
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 DtOutputAreaWidget* DtTMWindow::outputArea ( )
virtual
DtToolbarFactoryManager * DtTMWindow::toolbarFactoryManager ( )
inline
DtToolbarFactoryManager * DtTMWindow::backupToolbarFactoryManager ( )
inline
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 ( )
virtualslot
virtual void DtTMWindow::setActiveRubberBandColor ( )
virtualslot
virtual void DtTMWindow::setInactiveRubberBandColor ( )
virtualslot
virtual void DtTMWindow::setGlobalActiveRubberBandColor ( )
virtualslot
virtual void DtTMWindow::setGlobalInactiveRubberBandColor ( )
virtualslot
virtual void DtTMWindow::updateFilenameInUse ( const QString &  s)
virtualslot

Updates the caption.

virtual void DtTMWindow::setZoomToExtentsNavigationConnection ( )
virtualslot
virtual void DtTMWindow::navWidgetDestroyed ( )
protectedvirtualslot
virtual void DtTMWindow::toolbarDestroyed ( )
protectedvirtualslot
virtual void DtTMWindow::toolbarContextMenu ( QWidget bar,
QContextMenuEvent *   
)
protectedvirtualslot
virtual bool DtTMWindow::initCaption ( )
protectedvirtual

Initialize window caption.

virtual bool DtTMWindow::initStatusBar ( )
protectedvirtual

Initializes the status bar.

virtual bool DtTMWindow::initWindowName ( )
protectedvirtual

Initialize window name.

Reimplemented in DtEntityEditorWindow, and DtTerrainWindow.

virtual bool DtTMWindow::initFromFactory ( const DtTMFactory f)
protectedvirtual

Initialize classes from DtTMFactory.

Reimplemented in DtTerrainWindow.

virtual bool DtTMWindow::initMiniMap ( const DtTMFactory f,
QDockWidget parent = 0 
)
protectedvirtual

Initialize minimap from DtTMFactory.

Reimplemented from DtBaseWindow.

virtual void DtTMWindow::initOutputBar ( )
protectedvirtual
virtual bool DtTMWindow::createFromFactory ( const DtTMFactory f)
protectedvirtual

Create classes from DtTMFactory.

Reimplemented in DtTerrainWindow.

virtual unsigned DtTMWindow::createMapArea ( const DtTMFactory f)
protectedvirtual

Create area map from DtTMFactory.

Reimplemented from DtBaseWindow.

Reimplemented in DtTerrainWindow.

virtual bool DtTMWindow::initToolbars ( )
protectedvirtual

Initialize toolbars.

Reimplemented in DtEntityEditorWindow, and DtTerrainWindow.

virtual bool DtTMWindow::initConnections ( )
protectedvirtual

Initialize connections.

Reimplemented in DtTerrainWindow.

virtual bool DtTMWindow::event ( QEvent *  e)
protectedvirtual
virtual void DtTMWindow::enterEvent ( QEvent *  e)
protectedvirtual
virtual void DtTMWindow::initViewMenuToolbarMap ( )
protectedvirtual

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)
protectedvirtual

Override to affect window layout.

Reimplemented from DtBaseWindow.

virtual QTextStream& DtTMWindow::read ( QTextStream &  ts)
protectedvirtual

Override to set minimap rubberband color.

Reimplemented from DtBaseWindow.

virtual void DtTMWindow::setRubberBandColor ( DtTMMiniMap mini)
protectedvirtual

Sets color of rubber band widget (if exists)

virtual void DtTMWindow::setRubberBandColor ( DtTMRubberBand band)
protectedvirtual
virtual void DtTMWindow::setRubberBandColor ( const QColor &  color)
protectedvirtual
virtual DtNavigationWidget* DtTMWindow::navigationWidget ( )
protectedvirtual
virtual bool DtTMWindow::createUtilityToolBar ( )
protectedvirtual

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)
protectedvirtual

To archive utility bar.

Reimplemented from DtBaseWindow.

virtual void DtTMWindow::processSelectionChanged ( const QVector< DtModelKey > &  list)
protectedvirtual

Override to set navigation widget to extents/global mode.

Reimplemented from DtBaseWindow.

virtual void DtTMWindow::updateValidActions ( )
protectedvirtual

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 ( )
protectedvirtual

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

virtual void DtTMWindow::postProcessOptions ( )
protectedvirtual

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

Reimplemented from DtBaseWindow.

Reimplemented in DtTerrainWindow.

virtual void DtTMWindow::hideAllToolbars ( )
protectedvirtual

Hides/shows all visible/hidden toolbars.

Reimplemented from DtBaseWindow.

virtual bool DtTMWindow::passKeyEventToMapArea ( QKeyEvent *  ) const
protectedvirtual

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 
)
protectedvirtual

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

virtual QBoxLayout* DtTMWindow::createMasterLayout ( )
protectedvirtual

Creates master layout around central widget.

virtual QWidget* DtTMWindow::createCentralWidget ( QWidget parent)
protectedvirtual

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

virtual void DtTMWindow::createAndInitializeToolbarFactory ( const DtTMFactory )
protectedvirtual

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 ( )
protectedvirtual

Adds all default toolbars to the factory.

Reimplemented in DtTerrainWindow.

virtual void DtTMWindow::initializeMinimapColorToolbar ( )
protectedvirtual
virtual void DtTMWindow::addDefaultShortcutsAndIcons ( const DtTMFactory f)
protectedvirtual

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 ( )
protectedvirtual

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 ( )
protectedvirtual

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

DtUtilityBar* DtTMWindow::myUtilityBar
protected
DtToolbarFactoryManager* DtTMWindow::myToolbarFactoryManager
protected

Referenced by toolbarFactoryManager().

DtToolbarFactoryManager* DtTMWindow::myBackupToolbarFactoryManager
protected
QDockWidget* DtTMWindow::myTMMiniMapToolBar
protected
QDockWidget* DtTMWindow::myOutputToolBar
protected
DtOutputAreaWidget* DtTMWindow::myOutputArea
protected

Output window toolbar.

QToolBar* DtTMWindow::myRubberBandColorToolBar
protected

Contained by the output window toolbar.

QDockWidget* DtTMWindow::myNavigationToolBar
protected
bool DtTMWindow::myMouseOverActive
protected

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
QWidget* DtTMWindow::myCanvas
protected
DtNavigationWidget* DtTMWindow::myNavigationWidget
protected
DtTMWatermark* DtTMWindow::myWatermark
protected
DtMsgGuiPrinter* DtTMWindow::myGuiPrinter
protected

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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)