VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
makVrf::DtCreateObjectAction Class Reference
Inheritance diagram for makVrf::DtCreateObjectAction:
Inheritance graph
[legend]

Signals

void createObject (const DtEntityMapperKey &, int force, const std::string &)

Public Member Functions

 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_triggered ()
virtual void on_aboutToShow ()
 Hide object if the force cannot be created due to FOW.
virtual QActioncreateAction (makVrv::DtDe &, QWidget *parent)
 Build a menu item (via an action).
- 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 void setIconFromTick (makVrv::DtDe *de, QAction *act)
 Only should be called in response to a De tick.

Protected Attributes

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

Private Member Functions

 DtCreateObjectAction (const DtCreateObjectAction &orig)
 Not implemented.
DtCreateObjectActionoperator= (const DtCreateObjectAction &orig)
 Not implemented.

Additional Inherited Members

- Protected Slots inherited from makVrv::DtMenuItem
virtual void on_checkStateChanged (bool)

Constructor & Destructor Documentation

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 makVrf::DtCreateObjectAction::~DtCreateObjectAction ( )
virtual

Destructor.

makVrf::DtCreateObjectAction::DtCreateObjectAction ( const DtCreateObjectAction orig)
private

Not implemented.

Member Function Documentation

virtual DtEntityMapperKey makVrf::DtCreateObjectAction::objectType ( ) const
virtual
virtual int makVrf::DtCreateObjectAction::forceType ( ) const
virtual
virtual const std::string& makVrf::DtCreateObjectAction::keywords ( ) const
virtual
virtual const std::string& makVrf::DtCreateObjectAction::menuIcon ( ) const
virtual
virtual const std::string& makVrf::DtCreateObjectAction::toolTip ( ) const
virtual
virtual void makVrf::DtCreateObjectAction::setSignalOnCreate ( DtCreationSignalType  creationSignal)
virtual

Set to true to have this action specify that it should signal on create rather than create the object on the network.

Default is false

virtual DtCreationSignalType makVrf::DtCreateObjectAction::signalOnCreate ( ) const
virtual
virtual void makVrf::DtCreateObjectAction::on_triggered ( )
virtual
virtual void makVrf::DtCreateObjectAction::on_aboutToShow ( )
virtual

Hide object if the force cannot be created due to FOW.

Reimplemented from makVrv::DtMenuItem.

virtual QAction* makVrf::DtCreateObjectAction::createAction ( makVrv::DtDe ,
QWidget parent 
)
virtual

Build a menu item (via an action).

Implements makVrv::DtMenuItem.

Reimplemented in makVrf::DtSimulationBasedCreateObjectAction.

virtual void makVrf::DtCreateObjectAction::setIconFromTick ( makVrv::DtDe de,
QAction act 
)
protectedvirtual

Only should be called in response to a De tick.

Set up when an action is created before the de is initialized

void makVrf::DtCreateObjectAction::createObject ( const DtEntityMapperKey ,
int  force,
const std::string &   
)
signal
DtCreateObjectAction& makVrf::DtCreateObjectAction::operator= ( const DtCreateObjectAction orig)
private

Not implemented.

Member Data Documentation

makVrv::DtDe& makVrf::DtCreateObjectAction::myDe
protected
DtEntityMapperKey makVrf::DtCreateObjectAction::myObjectType
protected
QString makVrf::DtCreateObjectAction::myTitle
protected
DtCreationSignalType makVrf::DtCreateObjectAction::mySignalOnCreate
protected
std::string makVrf::DtCreateObjectAction::myKeywords
protected
std::string makVrf::DtCreateObjectAction::myToolTip
protected
std::string makVrf::DtCreateObjectAction::myMenuIcon
protected
QAction* makVrf::DtCreateObjectAction::myAction
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)