![]() |
VR-Forces Developer's Guide
|
DtGridLinesSelectionItem provides a common base class for all the items on the DtGridLinesSelectionToolbar to use. Each needs only to derive from this class and implement a constructor that sets the onText, offText, tooltip, text and the grid line type it represents.

Public Member Functions | |
| DtGridLinesSelectionItem (DtDe &myDe, const std::string &menuItemId) | |
| virtual | ~DtGridLinesSelectionItem ()=default |
| virtual QAction * | createAction (makVrv::DtDe &, QWidget *parent) override |
| virtual void | setValue (bool val) override |
| virtual bool | getValue () const override |
| virtual void | updateItemState () |
| DtGridLinesSelectionItem ()=delete | |
| DtGridLinesSelectionItem (const DtGridLinesSelectionItem &)=delete | |
| DtGridLinesSelectionItem & | operator= (const DtGridLinesSelectionItem &)=delete |
Public Member Functions inherited from makVrv::DtCheckedItem | |
| DtCheckedItem (DtDe &de, const std::string &className) | |
| virtual | ~DtCheckedItem () |
| virtual void | on_settingChanged (bool value) |
| void | updateValue () |
Public Member Functions inherited from makVrv::DtMenuItem | |
| DtMenuItem (const std::string &menuItemIdName) | |
| virtual | ~DtMenuItem () |
| virtual const std::string & | menuItemIdName () const |
Protected Member Functions | |
| virtual void | collapseSeparators (QToolBar *toolbar) |
| virtual void | slot_displayEngineInitialized () |
| virtual void | slot_terrainLoaded () |
| virtual void | slot_terrainCleared () |
| virtual bool | isEnabled () |
Protected Member Functions inherited from makVrv::DtCheckedItem | |
| virtual void | on_postInitialize () |
| virtual void | on_triggered () |
Protected Attributes | |
| makArchives::DtDisplayUnitsSettingsRecord::CoordSys | myGridType |
| bool | myTerrainLoaded |
| DtSignalConnectionManager | myConnections |
Protected Attributes inherited from makVrv::DtCheckedItem | |
| bool | myState |
| QString | myOnText |
| QString | myOffText |
| QString | myToolTip |
| DtQIconConfigurations | myIconConfigurations |
| QAction * | myAction |
| DtDe & | myDe |
Protected Attributes inherited from makVrv::DtMenuItem | |
| std::string | myMenuIdName |
Additional Inherited Members | |
Protected Slots inherited from makVrv::DtMenuItem | |
| virtual void | on_checkStateChanged (bool) |
| virtual void | on_aboutToShow () |
| makVrv::DtGridLinesSelectionItem::DtGridLinesSelectionItem | ( | DtDe & | myDe, |
| const std::string & | menuItemId | ||
| ) |
CTOR.
|
virtualdefault |
DTOR.
|
delete |
Default CTOR not implemented.
|
delete |
Copy Constructor not implemented – Copy not allowed.
|
overridevirtual |
Create and return the QAction (the Qt part of the item), initializing it with values for text from member variables set by deriving items. This method also creates all of the signal connections.
Reimplemented from makVrv::DtCheckedItem.
|
overridevirtual |
The DtCheckedItem base calls this whenever the item is pressed. This Tells the gridline settings manager to use whatever grid type this item represents and calls DtCheckedItem::updateValue(), which manages the item's 'checked' state.
Implements makVrv::DtCheckedItem.
|
overridevirtual |
Get whether this item represents the currently selected grid type. DtCheckedItem::updateValue will call this and set the item's action to this method's return value.
Implements makVrv::DtCheckedItem.
|
virtual |
This method manages all the state of the item. Whether it is shown at all; if shown, if it is enabled or disabled; and it calls DtCheckedItem::updateValue(), which updates the 'checked' state as well. Items that are on the toolbar but can't be used with the current coordinate system are shown disabled. This is connected to the following signals, and will therefore cause at state update on:
|
delete |
Assignment Operator not implemented – Copy not allowed.
|
protectedvirtual |
Called by updateItemState to remove separators that shouldn't be shown.
|
protectedvirtual |
Slot attached to DtDe's signal_preTick. After that first call, the slot disconnects from the signal and calls updateItemState(). This is needed to get the intial state of toolbar items set up, as there is no on_aboutToBeShown signal for toolbar items.
|
protectedvirtual |
Slot attached to the DtTerrainSignaler's terrain loaded signal. Grid types that are on the toolbar and allowed for the database's coordinate system will be enabled.
|
protectedvirtual |
Slot attached to the DtTerrainSignaler's terrain cleared signal. Grid types that are on the
toolbar are disabled
|
protectedvirtual |
|
protected |
|
protected |
|
protected |