Public Member Functions |
| | DtEntityEditorWindow (QWidget *parent=NULL, const Qt::WindowFlags &flags=0) |
| | Constructor.
|
| virtual | ~DtEntityEditorWindow () |
| | Destructor.
|
| virtual void | setEntryModified (DtVrfObjectParameters *, bool b) |
| virtual void | setModelModified (DtModelSetEntry *) |
| virtual bool | canCreateExisting () const |
| virtual bool | canRevertExisting () const |
| virtual bool | canDeleteExisting () const |
| virtual DtObjectType | selectedObjectType () const |
| DtBehaviorUi * | behaviorUi () |
| virtual void | getCategorySelections (DtRwForces &, DtRwNLengthStringVector &) |
| virtual void | selectModel (DtModelSetEntry *, const QMap< QString, QVariant > &uiState) |
| virtual void | postSelectModel (DtModelSetEntry *, const QMap< QString, QVariant > &) |
| | Posts a model select for the next tick.
|
| virtual QMap< QString, QVariant > | uiState () const |
| | Returns the current state of the ui.
|
| virtual void | setUiState (const QMap< QString, QVariant > &) |
| virtual QString | selectedCategory () const |
| virtual void | sendEvent (const DtUiElementEvent &) |
| virtual void | processElementChanged (DtUiElement *) |
| virtual void | processParametersChanged (DtVrfObjectParameters *, bool modified) |
| | DtTMWindow (QWidget *parent=NULL, const Qt::WindowFlags &flags=0) |
| | Constructor.
|
| virtual | ~DtTMWindow () |
| | Destructor.
|
| 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.
|
| | DtBaseWindow (QWidget *parent=NULL, const Qt::WindowFlags &flags=0) |
| virtual | ~DtBaseWindow () |
| 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 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.
|
Protected Member Functions |
| virtual void | createOverlayBar (const DtTMFactory *f) |
| | Override to not create and make connections.
|
| virtual bool | createMiniMap (const DtTMFactory *f) |
| | Create miniMap from DtTMFactory.
|
| virtual bool | init (const DtTMFactory *f, DtTMMiniMap *m, int mode=DtWindow_NoAction) |
| | Initializer. MUST BE CALLED.
|
| virtual bool | initToolbars () |
| | Initialize toolbars.
|
| virtual void | createBehaviorUi (const DtFilename &) |
| virtual void | closeEvent (QCloseEvent *e) |
| | close the window
|
| virtual bool | initWindowName () |
| | Initialize window name.
|
| virtual void | tick () |
| | Redraws the background. Also keeps a frame rate counter.
|
| virtual bool | changeSubordinate (DtVrfSubObjectParameterList *, const DtObjectType &oldType, const DtObjectType &newType) |
| virtual void | hierarchyChanged (const DtUiElementEvent &) |
| virtual bool | initCaption () |
| | Initialize window caption.
|
| virtual bool | initStatusBar () |
| | Initializes the status bar.
|
| 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 | 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.
|
| 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.
|