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

The Master Scenario Settings Dialog. More...

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

List of all members.

Public Types

typedef std::pair< std::string,
std::string > 
DtConditionalExpressionItem
typedef std::vector
< DtConditionalExpressionItem
DtConditionalExpressionsList

Public Member Functions

 DtVrfConditionalDialogManager (makVrv::DtDe &)
 CTOR. Registers all known dialogs with manager.
virtual ~DtVrfConditionalDialogManager ()
 DTOR.
virtual bool processDialogFor (const std::string &menuItemType, QWidget *parent, const std::vector< makVrv::DtSimEntry * > &data, DtVrfConditionalAction *forAction)
 Creates dialog and then sends out various signals at creation process to allow user to add functionality.
bool dialogInProgress () const
virtual void addDialogCreator (const std::string &menuItemType, DtVrfConditionalDialogCreator *)
 Adds items into the factory.
virtual bool removeDialogCreator (const std::string &menuItemType)
 Removes the dialog creator.
virtual bool hasDialogCreator (const std::string &menuItemType) const
 Returns true if the dialog has a creator.
virtual void removeAllDialogCreators ()
 Removes all dialog creators.
virtual void addConditionalExpression (const std::string &menuItemType, DtVrfConditionalExpressionCreator *)
 Adds items into the factory.
virtual void addConditionalExpressionAfter (const std::string &p, const std::string &after, DtVrfConditionalExpressionCreator *i)
virtual void addConditionalExpressionBefore (const std::string &p, const std::string &before, DtVrfConditionalExpressionCreator *i)
virtual bool removeConditionalExpression (const std::string &menuItemType)
 Removes the conditional expression.
virtual bool hasConditionalExpression (const std::string &menuItemType) const
 Returns true if the dialog has the conditional expression.
virtual bool hasConditionalExpression (int type) const
 Returns true if the dialog has the conditional expression.
virtual void removeAllConditionalExpressions ()
 Removes all conditional expressions.
virtual int expressionDisplayOrder (const std::string &) const
 Returns the position of where the expression will be displayed.
virtual void setExpressionDisplayOrder (const std::string &, int)
 Sets the position to display the expression.
virtual
DtConditionalExpressionsList 
getConditionalExpressionsList () const
 Returns a pair list of titles and keywords for titles of expressions.
virtual
DtConditionalExpressionInterface
createExpression (const std::string &s, QWidget *parent)
 Creates the expression and sends created signal.
virtual
DtConditionalExpressionInterface
createExpression (int type, QWidget *parent)
 Creates the expression and sends created signal.
virtual
DtVrfConditionalExpressionCreator
expressionCreatorFor (const std::string &s) const
 Returns the conditional expression creator.
virtual
DtVrfConditionalExpressionCreator
expressionCreatorFor (int type) const
 Returns the conditional expression creator.
virtual bool canEditType (int iType) const
 Returns true if a dialog can edit the specified conditional type.
virtual
DtConditionalDialogInterface
createDialog (int iType, QWidget *parent)
 Creates a dialog based on the supplied staement type.

Static Public Member Functions

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

Public Attributes

boost::signal< void(DtConditionalDialogInterface *)> signal_dialogCreated
 Signal sent when the dialog is created but before it is run.
boost::signal< void(DtConditionalDialogInterface *)> signal_dialogDestroyed
 Signal sent when the dialog is destroyed.
boost::signal< void(DtConditionalExpressionInterface *)> signal_expressionCreated
 Signal sent when the expression is created but before it is run.
boost::signal< void(DtConditionalExpressionInterface *)> signal_expressionDestroyed
 Signal sent when the expression is destroyed.

Protected Member Functions

virtual void slot_onDialogDestroyed (DtConditionalDialogInterface *)
virtual void slot_onExpressionDestroyed (DtConditionalExpressionInterface *)
virtual void prepDialog (DtConditionalDialogInterface *, const std::vector< makVrv::DtSimEntry * > &data, DtVrfConditionalAction *forAction)
 Emits signals about dialog state and makes connections on dialog to allow for task/set activation.
virtual void addConditional (const std::string &, const std::string &, DtVrfConditionalExpressionCreator *, bool after=true)

Protected Attributes

makVrv::DtDemyDe
DtVrfConditionalDialogCreatorMap myDialogCreatorMap
DtVrfConditionalExpressionCreatorMap myExpressionCreatorMap
std::vector< std::string > myExpressionOrder
DtVrfConditionalDialogSignalHandler myConditionalDialogSignalHandler
bool myDialogInProgress

Private Types

typedef std::map< std::string,
DtVrfConditionalDialogCreator * > 
DtVrfConditionalDialogCreatorMap
typedef std::map< std::string,
DtVrfConditionalExpressionCreator * > 
DtVrfConditionalExpressionCreatorMap

Detailed Description

The Master Scenario Settings Dialog.


Member Typedef Documentation

typedef std::pair<std::string, std::string> makVrf::DtVrfConditionalDialogManager::DtConditionalExpressionItem

Constructor & Destructor Documentation

CTOR. Registers all known dialogs with manager.

DTOR.


Member Function Documentation

Returns instance of the messager.

virtual bool makVrf::DtVrfConditionalDialogManager::processDialogFor ( const std::string &  menuItemType,
QWidget parent,
const std::vector< makVrv::DtSimEntry * > &  data,
DtVrfConditionalAction forAction 
) [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 void makVrf::DtVrfConditionalDialogManager::addDialogCreator ( const std::string &  menuItemType,
DtVrfConditionalDialogCreator  
) [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 DtVrfConditionalDialogCreator and implementing the create(QWidget*) method

virtual bool makVrf::DtVrfConditionalDialogManager::removeDialogCreator ( const std::string &  menuItemType) [virtual]

Removes the dialog creator.

virtual bool makVrf::DtVrfConditionalDialogManager::hasDialogCreator ( const std::string &  menuItemType) const [virtual]

Returns true if the dialog has a creator.

Removes all dialog creators.

virtual void makVrf::DtVrfConditionalDialogManager::addConditionalExpression ( const std::string &  menuItemType,
DtVrfConditionalExpressionCreator  
) [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 DtVrfConditionalExpressionCreator and implementing the create(QWidget*) method conditionals are identified by their unique string p

virtual void makVrf::DtVrfConditionalDialogManager::addConditionalExpressionAfter ( const std::string &  p,
const std::string &  after,
DtVrfConditionalExpressionCreator i 
) [virtual]
virtual void makVrf::DtVrfConditionalDialogManager::addConditionalExpressionBefore ( const std::string &  p,
const std::string &  before,
DtVrfConditionalExpressionCreator i 
) [virtual]
virtual bool makVrf::DtVrfConditionalDialogManager::removeConditionalExpression ( const std::string &  menuItemType) [virtual]

Removes the conditional expression.

virtual bool makVrf::DtVrfConditionalDialogManager::hasConditionalExpression ( const std::string &  menuItemType) const [virtual]

Returns true if the dialog has the conditional expression.

Returns true if the dialog has the conditional expression.

Removes all conditional expressions.

virtual int makVrf::DtVrfConditionalDialogManager::expressionDisplayOrder ( const std::string &  ) const [virtual]

Returns the position of where the expression will be displayed.

virtual void makVrf::DtVrfConditionalDialogManager::setExpressionDisplayOrder ( const std::string &  ,
int   
) [virtual]

Sets the position to display the expression.

If already in Order, removed and placed at new position

Returns a pair list of titles and keywords for titles of expressions.

virtual DtConditionalExpressionInterface* makVrf::DtVrfConditionalDialogManager::createExpression ( const std::string &  s,
QWidget parent 
) [virtual]

Creates the expression and sends created signal.

Creates the expression and sends created signal.

Returns the conditional expression creator.

Returns the conditional expression creator.

virtual bool makVrf::DtVrfConditionalDialogManager::canEditType ( int  iType) const [virtual]

Returns true if a dialog can edit the specified conditional type.

Creates a dialog based on the supplied staement type.

virtual void makVrf::DtVrfConditionalDialogManager::prepDialog ( DtConditionalDialogInterface ,
const std::vector< makVrv::DtSimEntry * > &  data,
DtVrfConditionalAction forAction 
) [protected, virtual]

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

virtual void makVrf::DtVrfConditionalDialogManager::addConditional ( const std::string &  ,
const std::string &  ,
DtVrfConditionalExpressionCreator ,
bool  after = true 
) [protected, virtual]

Member Data Documentation

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

Signal sent when the dialog is destroyed.

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

Signal sent when the expression is destroyed.

std::vector<std::string> makVrf::DtVrfConditionalDialogManager::myExpressionOrder [protected]

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)