VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrf::DtSimulationBasedCreateObjectAction Class Reference

An object action that will enable/disable itself given the scenario loaded state. More...

Inheritance diagram for makVrf::DtSimulationBasedCreateObjectAction:
Inheritance graph
[legend]

Public Member Functions

 DtSimulationBasedCreateObjectAction (makVrv::DtDe &de, const std::string &path, const QString &title, const DtEntityMapperKey &o, const std::string &keywords="", const std::string &menuIcon="", const std::string &toolTip="")
virtual ~DtSimulationBasedCreateObjectAction ()
 Destructor.
void setStartCreateActionOnTrigger (bool)
bool startCreateActionOnTrigger () const
- Public Member Functions inherited from makVrf::DtCreateObjectAction
 DtCreateObjectAction (makVrv::DtDe &de, const std::string &path, const QString &title, const DtEntityMapperKey &o, const std::string &keywords="", const std::string &menuIcon="", const std::string &toolTip="")
 Constructor.
virtual ~DtCreateObjectAction ()
 Destructor.
virtual DtEntityMapperKey objectType () const
virtual int forceType () const
virtual const std::string & keywords () const
virtual const std::string & menuIcon () const
virtual const std::string & toolTip () const
virtual void setSignalOnCreate (DtCreationSignalType creationSignal)
 Set to true to have this action specify that it should signal on create rather than create the object on the network.
virtual DtCreationSignalType signalOnCreate () const
virtual void on_aboutToShow ()
 Hide object if the force cannot be created due to FOW.
- Public Member Functions inherited from makVrv::DtMenuItem
 DtMenuItem (const std::string &menuItemIdName)
 CTOR.
virtual ~DtMenuItem ()
 DTOR.
virtual const std::string & menuItemIdName () const
 Get the menu id name, the menu id name is not the same thing as the visible menu text.

Protected Member Functions

virtual QActioncreateAction (makVrv::DtDe &, QWidget *parent)
 Build a menu item (via an action).
virtual void on_triggered ()
virtual void enableAction ()
virtual void slot_backendUpdated (const DtVrfBackendState &, int changedFlags)
- Protected Member Functions inherited from makVrf::DtCreateObjectAction
virtual void setIconFromTick (makVrv::DtDe *de, QAction *act)
 Only should be called in response to a De tick.

Protected Attributes

bool myStartCreateActionOnTrigger
- Protected Attributes inherited from makVrf::DtCreateObjectAction
makVrv::DtDemyDe
DtEntityMapperKey myObjectType
QString myTitle
DtCreationSignalType mySignalOnCreate
std::string myKeywords
std::string myToolTip
std::string myMenuIcon
QActionmyAction
- Protected Attributes inherited from makVrv::DtMenuItem
std::string myMenuIdName

Additional Inherited Members

- Signals inherited from makVrf::DtCreateObjectAction
void createObject (const DtEntityMapperKey &, int force, const std::string &)
- Protected Slots inherited from makVrv::DtMenuItem
virtual void on_checkStateChanged (bool)

Detailed Description

An object action that will enable/disable itself given the scenario loaded state.

Use if you want to be able to control the fact that the object will not be able to be created until the scenario is active.

Set the myStartCreateActionOnTrigger flag to true (default) to create the item when the action is triggered, else will call base class representation which will emit the Qt createObject signal

Constructor & Destructor Documentation

makVrf::DtSimulationBasedCreateObjectAction::DtSimulationBasedCreateObjectAction ( makVrv::DtDe de,
const std::string &  path,
const QString &  title,
const DtEntityMapperKey o,
const std::string &  keywords = "",
const std::string &  menuIcon = "",
const std::string &  toolTip = "" 
)
virtual makVrf::DtSimulationBasedCreateObjectAction::~DtSimulationBasedCreateObjectAction ( )
virtual

Destructor.

Member Function Documentation

void makVrf::DtSimulationBasedCreateObjectAction::setStartCreateActionOnTrigger ( bool  )
bool makVrf::DtSimulationBasedCreateObjectAction::startCreateActionOnTrigger ( ) const
virtual QAction* makVrf::DtSimulationBasedCreateObjectAction::createAction ( makVrv::DtDe ,
QWidget parent 
)
protectedvirtual

Build a menu item (via an action).

Reimplemented from makVrf::DtCreateObjectAction.

virtual void makVrf::DtSimulationBasedCreateObjectAction::on_triggered ( )
protectedvirtual

Reimplemented from makVrf::DtCreateObjectAction.

virtual void makVrf::DtSimulationBasedCreateObjectAction::enableAction ( )
protectedvirtual
virtual void makVrf::DtSimulationBasedCreateObjectAction::slot_backendUpdated ( const DtVrfBackendState ,
int  changedFlags 
)
protectedvirtual

Member Data Documentation

bool makVrf::DtSimulationBasedCreateObjectAction::myStartCreateActionOnTrigger
protected

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)