VR-Forces 4.0.4 Class Documentation
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]

List of all members.

Public Member Functions

 DtSimulationBasedCreateObjectAction (makVrv::DtDe &de, const std::string &path, const QString &title, const DtEntityMapperKey &o)
virtual ~DtSimulationBasedCreateObjectAction ()
 Destructor.
void setStartCreateActionOnTrigger (bool)
bool startCreateActionOnTrigger () const

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 Attributes

bool myStartCreateActionOnTrigger
makVrv::DtDemyDe
QActionmyAction

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 
)

Destructor.


Member Function Documentation

virtual QAction* makVrf::DtSimulationBasedCreateObjectAction::createAction ( makVrv::DtDe ,
QWidget parent 
) [protected, virtual]

Build a menu item (via an action).

Reimplemented from makVrf::DtCreateObjectAction.

virtual void makVrf::DtSimulationBasedCreateObjectAction::on_triggered ( ) [protected, virtual]

Reimplemented from makVrf::DtCreateObjectAction.

virtual void makVrf::DtSimulationBasedCreateObjectAction::enableAction ( ) [protected, virtual]
virtual void makVrf::DtSimulationBasedCreateObjectAction::slot_backendUpdated ( const DtVrfBackendState ,
int  changedFlags 
) [protected, virtual]

Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)