![]() |
VR-Forces 4.2 Class Documentation
|

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. | |
| DtFeatureActionManager * | featureActionManager () const |
| DtFeatureActionManager * | backupFeatureActionManager () 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 QDockWidget * | addUtilityToolbar (QWidget *w, const QString &tab) |
| These are convenience routines that will allow the developer to perform multiple steps in a single on. | |
| virtual QDockWidget * | addToolbar (QWidget *w, const Qt::DockWidgetArea &) |
| virtual void | setWindowName (const QString &) |
| Sets the internal variables myWindowName and updates the caption. | |
| virtual QAction * | addViewToolbar (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 QAction * | 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 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 DtOutputAreaWidget * | outputArea () |
| DtToolbarFactoryManager * | toolbarFactoryManager () |
| DtToolbarFactoryManager * | backupToolbarFactoryManager () |
| 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 DtTMMapArea * | areaMap (unsigned value=0) const |
| Returns pointer to one of the are maps controlled by this window. | |
| virtual DtTMMapArea * | activeMap () const |
| Returns pointer to the current active map area. | |
| virtual DtTMRubberBand * | rubberBand (unsigned value=0) const |
| Grab the rubber band of a specific map area. | |
| virtual DtTMRubberBand * | rubberBand (DtTMMapArea *) const |
| Grab the rubber band of a specific map area. | |
| virtual unsigned | numberOfMapAreas () |
| Returns the number of map areas in myMapAreaList. | |
| virtual DtTMMiniMap * | miniMap () 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 DtEventController & | eventController () |
| virtual const DtEventController & | eventController () const |
| virtual double | elapsedRunTime () const |
| virtual double | numberOfFrames () const |
| virtual DtMenuWidget * | menuWidget () |
| virtual DtStdContextMenu * | contextMenus () |
| virtual bool | hasViewToolbar (int type) const |
| Returns true if the specified view type has been added to the myViewMenuToolbarMap. | |
| virtual QWidget * | toolbarFor (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 DtPopupMenu * | menuFromAction (QAction *) |
| Calls down to the menu (if it exists) to return the menu that has the QAction. | |
| virtual DtPopupMenu * | menuForType (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 DtTMMapArea * | mapContainsData (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 DtBaseWindow * | create (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 DtNavigationWidget * | navigationWidget () |
| 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 QWidget * | createCentralWidget (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 QMenu * | createPopupMenu () |
| virtual QWidget * | centerWidget (QWidget *itemToCenter) |
| Creates a widget and layout that will center (horizontally) the supplied widget. | |
Private Member Functions | |
| DtTMWindow (const DtTMWindow &orig) | |
| Not implemented. | |
| DtTMWindow & | operator= (const DtTMWindow &rhs) |
| Not implemented. | |
Friends | |
| class | DtFactory |
Additional Inherited Members | |
Static Protected Attributes inherited from DtBaseWindow | |
| static const int | theDefaultDisplayFrameRate |
| DtTMWindow::DtTMWindow | ( | QWidget * | parent = NULL, |
| const Qt::WindowFlags & | flags = 0 |
||
| ) |
Constructor.
|
virtual |
Destructor.
|
private |
Not implemented.
|
virtual |
Initializer. MUST BE CALLED.
Reimplemented from DtBaseWindow.
|
virtual |
|
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 |
Returns a newly created instance of a DtTMWindow.
Reimplemented from DtBaseWindow.
Reimplemented in DtTerrainWindow.
|
signal |
Signals.
|
signal |
|
signal |
Emitted whenever the terrain selection mode has changed.
Sent from the set*SelectionMode routines
|
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 |
|
virtual |
Sets the internal variables myWindowName and updates the caption.
|
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 |
|
virtual |
Adds the specified validator to a list of validators that can be called for the menu item.
|
virtual |
Adds a mapping to the view toolbar.
Also connects a signal to remove it in case the toolbar is destroyed
|
virtual |
|
inline |
References myToolbarFactoryManager.
|
inline |
References myBackupToolbarFactoryManager.
|
virtual |
Merges in new toolbar manager and updates any existing toolbars with new items (if created)
|
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
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
Updates the caption.
|
virtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtual |
Initialize window caption.
|
protectedvirtual |
Initializes the status bar.
|
protectedvirtual |
Initialize window name.
Reimplemented in DtTerrainWindow.
|
protectedvirtual |
Initialize classes from DtTMFactory.
Reimplemented in DtTerrainWindow.
|
protectedvirtual |
Initialize minimap from DtTMFactory.
Reimplemented from DtBaseWindow.
|
protectedvirtual |
|
protectedvirtual |
Create classes from DtTMFactory.
Reimplemented in DtTerrainWindow.
|
protectedvirtual |
Create area map from DtTMFactory.
Reimplemented from DtBaseWindow.
Reimplemented in DtTerrainWindow.
|
protectedvirtual |
Initialize toolbars.
Reimplemented in DtTerrainWindow.
|
protectedvirtual |
Initialize connections.
Reimplemented in DtTerrainWindow.
|
protectedvirtual |
|
protectedvirtual |
|
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.
|
protectedvirtual |
Override to affect window layout.
Reimplemented from DtBaseWindow.
|
protectedvirtual |
Override to set minimap rubberband color.
Reimplemented from DtBaseWindow.
|
protectedvirtual |
Sets color of rubber band widget (if exists)
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
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
|
protectedvirtual |
To archive utility bar.
Reimplemented from DtBaseWindow.
|
protectedvirtual |
Override to set navigation widget to extents/global mode.
Reimplemented from DtBaseWindow.
|
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.
If ctrl key is pressed (released) change zoom button.
|
protectedvirtual |
Creates and places the watermark object on the main map area. The watermark object will be responsible for positioning itself.
|
protectedvirtual |
Set watermark to show/not show after reading options from file.
Reimplemented from DtBaseWindow.
Reimplemented in DtTerrainWindow.
|
protectedvirtual |
Hides/shows all visible/hidden toolbars.
Reimplemented from DtBaseWindow.
|
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
|
protectedvirtual |
Creates the central area of the window, including the map area, central widget (parent of map area) and master layout.
|
protectedvirtual |
Creates master layout around central widget.
Creates widget that will go into the center of the window.
|
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
|
protectedvirtual |
Adds all default toolbars to the factory.
Reimplemented in DtTerrainWindow.
|
protectedvirtual |
|
protectedvirtual |
Called after feature action manager is created, adds default shortcuts and icons to the system.
Reimplemented from DtBaseWindow.
Reimplemented in DtTerrainWindow.
|
protectedvirtual |
Initialize window from current application settings.
Called after app settings are read in from settings file
Reimplemented from DtBaseWindow.
Reimplemented in DtTerrainWindow.
|
protectedvirtual |
Creates user defined toolbars from factory manager.
|
private |
Not implemented.
|
friend |
|
protected |
|
protected |
Referenced by toolbarFactoryManager().
|
protected |
Referenced by backupToolbarFactoryManager().
|
protected |
|
protected |
|
protected |
Output window toolbar.
|
protected |
Contained by the output window toolbar.
|
protected |
|
protected |
Set as true if you want the mouse over a window to be enough to set it active.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |