VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtGridLinesSelectionItem Class Reference

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.

Inheritance diagram for makVrv::DtGridLinesSelectionItem:
Inheritance graph
[legend]

Public Member Functions

 DtGridLinesSelectionItem (DtDe &myDe, const std::string &menuItemId)
 
virtual ~DtGridLinesSelectionItem ()=default
 
virtual QActioncreateAction (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
 
DtGridLinesSelectionItemoperator= (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
 
QActionmyAction
 
DtDemyDe
 
- 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 ()
 

Constructor & Destructor Documentation

makVrv::DtGridLinesSelectionItem::DtGridLinesSelectionItem ( DtDe myDe,
const std::string &  menuItemId 
)

CTOR.

virtual makVrv::DtGridLinesSelectionItem::~DtGridLinesSelectionItem ( )
virtualdefault

DTOR.

makVrv::DtGridLinesSelectionItem::DtGridLinesSelectionItem ( )
delete

Default CTOR not implemented.

makVrv::DtGridLinesSelectionItem::DtGridLinesSelectionItem ( const DtGridLinesSelectionItem )
delete

Copy Constructor not implemented – Copy not allowed.

Member Function Documentation

virtual QAction* makVrv::DtGridLinesSelectionItem::createAction ( makVrv::DtDe ,
QWidget *  parent 
)
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.

virtual void makVrv::DtGridLinesSelectionItem::setValue ( bool  val)
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.

virtual bool makVrv::DtGridLinesSelectionItem::getValue ( ) const
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 void makVrv::DtGridLinesSelectionItem::updateItemState ( )
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:

DtGridLinesSelectionItem& makVrv::DtGridLinesSelectionItem::operator= ( const DtGridLinesSelectionItem )
delete

Assignment Operator not implemented – Copy not allowed.

virtual void makVrv::DtGridLinesSelectionItem::collapseSeparators ( QToolBar toolbar)
protectedvirtual

Called by updateItemState to remove separators that shouldn't be shown.

virtual void makVrv::DtGridLinesSelectionItem::slot_displayEngineInitialized ( )
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.

virtual void makVrv::DtGridLinesSelectionItem::slot_terrainLoaded ( )
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.

virtual void makVrv::DtGridLinesSelectionItem::slot_terrainCleared ( )
protectedvirtual

Slot attached to the DtTerrainSignaler's terrain cleared signal.  Grid types that are on the

toolbar are disabled

virtual bool makVrv::DtGridLinesSelectionItem::isEnabled ( )
protectedvirtual

Member Data Documentation

makArchives::DtDisplayUnitsSettingsRecord::CoordSys makVrv::DtGridLinesSelectionItem::myGridType
protected
bool makVrv::DtGridLinesSelectionItem::myTerrainLoaded
protected
DtSignalConnectionManager makVrv::DtGridLinesSelectionItem::myConnections
protected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)