VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Types
makVrf::DtVrfTaskSetDialogManager Class Reference

The Master Scenario Settings Dialog. More...

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

List of all members.

Public Member Functions

 DtVrfTaskSetDialogManager (makVrv::DtDe &)
 CTOR. Registers all known dialogs with manager.
virtual ~DtVrfTaskSetDialogManager ()
 DTOR.
virtual bool processDialogFor (int menuItemType, QWidget *parent, DtVrfTaskSetAction *forAction, const std::vector< makVrv::DtSimEntry * > &data, bool partOfPlan=false)
 Creates dialog and then sends out various signals at creation process to allow user to add functionality.
virtual
DtCommandAssignmentWidgetInterface
processCommandActionDialog (int menuItemType, QWidget *parent, DtVrfTaskSetAction *forAction, const std::vector< makVrv::DtSimEntry * > &data, bool partOfPlan=false)
 Creates a command assignment widget but does not connect it to anything (other than the destruction of the dialog).
bool dialogInProgress () const
virtual int nextAvailableId () const
 Starting at the user menu start item, return the next available id.
virtual void addDialogCreator (int menuItemType, DtVrfTaskSetDialogCreator *)
 Adds items into the factory.
virtual bool removeDialogCreator (int menuItemType)
 Removes the dialog creator, effectively disabling the task/set menu item. Returns true if removed.
virtual bool hasDialogCreator (int menuItemType)
 Returns true if the dialog has a creator.
virtual void removeAllDialogCreators ()
 Removes all dialog creators.
virtual bool statementIsEditable (const DtSimStatement *) const
 Returns true if statement is editable.
virtual DtTaskSetDialogInterfacecreateDialogFor (int type, const DtSimStatement *stmt, QWidget *parent, bool registerDialog=true)
 Creates a dialog, connects signals, and returns the pointer.
virtual DtTaskSetDialogInterfacecreateDialogFor (const DtSimStatement *stmt, QWidget *parent, bool registerDialog=true)
virtual
DtCommandAssignmentWidgetInterface
createCommandDialogFor (const DtSimStatement *stmt, QWidget *parent)
 Creates a command dialog, connects signals and returns the pointer.
virtual
DtCommandAssignmentWidgetInterface
createCommandDialogFor (int menuItemType, QWidget *parent)
virtual int typeFromStatement (const DtSimStatement *stmt) const
 Returns the type based on the sim statement.
virtual
DtCommandAssignmentWidgetInterface
createCommandActionDialog (QWidget *, DtCommandDialogExtensionInterface *)
 Creates command action dialog. Override to create your own instance.

Static Public Member Functions

static DtVrfTaskSetDialogManagerinstance (makVrv::DtDe &de)
 Returns instance of the messager.

Public Attributes

boost::signal< void(DtTaskSetDialogInterface *)> signal_dialogCreated
 Signal sent when the dialog is created but before it is run.
boost::signal< void(DtCommandAssignmentWidgetInterface *)> signal_commandDialogCreated
 Signal sent when the dialog is created but before it is run.
boost::signal< void(DtCommandAssignmentWidget *)> signal_commandDialogDestroyed
 Signal sent when the dialog is destroyed.
boost::signal< void(DtTaskSetDialogInterface *)> signal_dialogDestroyed
 Signal sent when the dialog is destroyed.

Protected Member Functions

virtual void slot_onDialogDestroyed (DtTaskSetDialogInterface *)
virtual void slot_onCommandDialogDestroyed (DtCommandAssignmentWidget *)
virtual void prepDialog (DtTaskSetDialogInterface *, DtVrfTaskSetAction *forAction, bool partOfPlan)
 Emits signals about dialog state and makes connections on dialog to allow for task/set activation.
virtual void prepDialog (DtCommandAssignmentWidgetInterface *, DtVrfTaskSetAction *forAction, bool partOfPlan)

Protected Attributes

makVrv::DtDemyDe
DtVrfTaskSetDialogCreatorMap myDialogCreatorMap
DtVrfTaskSetDialogSignalHandler myTaskSetDialogSignalHandler
bool myDialogInProgress

Private Types

typedef std::map< int,
DtVrfTaskSetDialogCreator * > 
DtVrfTaskSetDialogCreatorMap

Detailed Description

The Master Scenario Settings Dialog.


Member Typedef Documentation


Constructor & Destructor Documentation

CTOR. Registers all known dialogs with manager.

DTOR.


Member Function Documentation

Returns instance of the messager.

virtual bool makVrf::DtVrfTaskSetDialogManager::processDialogFor ( int  menuItemType,
QWidget parent,
DtVrfTaskSetAction forAction,
const std::vector< makVrv::DtSimEntry * > &  data,
bool  partOfPlan = false 
) [virtual]

Creates dialog and then sends out various signals at creation process to allow user to add functionality.

Connects to slot in the action to process the resulting task/set request for the dialog

virtual DtCommandAssignmentWidgetInterface* makVrf::DtVrfTaskSetDialogManager::processCommandActionDialog ( int  menuItemType,
QWidget parent,
DtVrfTaskSetAction forAction,
const std::vector< makVrv::DtSimEntry * > &  data,
bool  partOfPlan = false 
) [virtual]

Creates a command assignment widget but does not connect it to anything (other than the destruction of the dialog).

It is up to the caller of this function to assign functionality to the signals emitted by the dialog

virtual int makVrf::DtVrfTaskSetDialogManager::nextAvailableId ( ) const [virtual]

Starting at the user menu start item, return the next available id.

Call this to add items from a plugin to figure out a unique id

virtual void makVrf::DtVrfTaskSetDialogManager::addDialogCreator ( int  menuItemType,
DtVrfTaskSetDialogCreator  
) [virtual]

Adds items into the factory.

The memory will be taked as owned by the factory. The pattern should be passing in a subclass of DtVrfTaskSetDialogCreator and implementing the create(QWidget*) method

virtual bool makVrf::DtVrfTaskSetDialogManager::removeDialogCreator ( int  menuItemType) [virtual]

Removes the dialog creator, effectively disabling the task/set menu item. Returns true if removed.

virtual bool makVrf::DtVrfTaskSetDialogManager::hasDialogCreator ( int  menuItemType) [virtual]

Returns true if the dialog has a creator.

Removes all dialog creators.

Returns true if statement is editable.

virtual DtTaskSetDialogInterface* makVrf::DtVrfTaskSetDialogManager::createDialogFor ( int  type,
const DtSimStatement stmt,
QWidget parent,
bool  registerDialog = true 
) [virtual]

Creates a dialog, connects signals, and returns the pointer.

Call run() to start execution of dialog. The type is the task or set statement type

virtual DtTaskSetDialogInterface* makVrf::DtVrfTaskSetDialogManager::createDialogFor ( const DtSimStatement stmt,
QWidget parent,
bool  registerDialog = true 
) [virtual]

Creates a command dialog, connects signals and returns the pointer.

virtual int makVrf::DtVrfTaskSetDialogManager::typeFromStatement ( const DtSimStatement stmt) const [virtual]

Returns the type based on the sim statement.

Creates command action dialog. Override to create your own instance.

virtual void makVrf::DtVrfTaskSetDialogManager::prepDialog ( DtTaskSetDialogInterface ,
DtVrfTaskSetAction forAction,
bool  partOfPlan 
) [protected, virtual]

Emits signals about dialog state and makes connections on dialog to allow for task/set activation.

virtual void makVrf::DtVrfTaskSetDialogManager::prepDialog ( DtCommandAssignmentWidgetInterface ,
DtVrfTaskSetAction forAction,
bool  partOfPlan 
) [protected, virtual]

Member Data Documentation

Signal sent when the dialog is created but before it is run.

Signal sent when the dialog is created but before it is run.

Signal sent when the dialog is destroyed.

Signal sent when the dialog is destroyed.


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)