VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | 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]

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. More...
 
virtual ~DtVrfConditionalDialogManager ()
 DTOR. More...
 
virtual
DtConditionalDialogInterface
processDialogFor (const std::string &menuItemType, QWidget *parent, const std::vector< makVrv::DtSimEntry * > &data, DtVrfConditionalAction *forAction, bool partOfGlobalPlan=false, DtRwTriggersList *triggers=0)
 Creates dialog and then sends out various signals at creation process to allow user to add functionality. More...
 
bool dialogInProgress () const
 
virtual void addDialogCreator (const std::string &menuItemType, DtVrfConditionalDialogCreator *)
 Adds items into the factory. More...
 
virtual bool removeDialogCreator (const std::string &menuItemType)
 Removes the dialog creator. More...
 
virtual bool hasDialogCreator (const std::string &menuItemType) const
 Returns true if the dialog has a creator. More...
 
virtual void removeAllDialogCreators ()
 Removes all dialog creators. More...
 
virtual void addConditionalExpression (const std::string &menuItemType, DtVrfConditionalExpressionCreator *)
 Adds items into the factory. More...
 
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 std::string conditionalStringType (int type) const
 Returns the string conditional type based on the integer type. More...
 
virtual bool removeConditionalExpression (const std::string &menuItemType)
 Removes the conditional expression. More...
 
virtual bool hasConditionalExpression (const std::string &menuItemType) const
 Returns true if the dialog has the conditional expression. More...
 
virtual bool hasConditionalExpression (int type) const
 Returns true if the dialog has the conditional expression. More...
 
virtual void removeAllConditionalExpressions ()
 Removes all conditional expressions. More...
 
virtual int expressionDisplayOrder (const std::string &) const
 Returns the position of where the expression will be displayed. More...
 
virtual void setExpressionDisplayOrder (const std::string &, int)
 Sets the position to display the expression. More...
 
virtual
DtConditionalExpressionsList 
getConditionalExpressionsList (bool partOfGlobalPlan=false, bool compoundOnly=false) const
 Returns a pair list of titles and keywords for titles of expressions. More...
 
virtual
DtConditionalExpressionInterface
createExpression (const std::string &s, QWidget *parent)
 Creates the expression and sends created signal. More...
 
virtual
DtConditionalExpressionInterface
createExpression (int type, QWidget *parent)
 Creates the expression and sends created signal. More...
 
virtual
DtVrfConditionalExpressionCreator
expressionCreatorFor (const std::string &s) const
 Returns the conditional expression creator. More...
 
virtual
DtVrfConditionalExpressionCreator
expressionCreatorFor (int type) const
 Returns the conditional expression creator. More...
 
virtual bool canEditType (int iType) const
 Returns true if a dialog can edit the specified conditional type. More...
 
virtual
DtConditionalDialogInterface
createDialog (int iType, QWidget *parent, bool partOfGlobalPlan=false, const std::vector< makVrv::DtSimEntry * > &data=std::vector< makVrv::DtSimEntry * >())
 Creates a dialog based on the supplied staement type. More...
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor. More...
 
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor. More...
 

Static Public Member Functions

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

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, DtRwTriggersList *triggers)
 Emits signals about dialog state and makes connections on dialog to allow for task/set activation. More...
 
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
 
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

makVrf::DtVrfConditionalDialogManager::DtVrfConditionalDialogManager ( makVrv::DtDe )

CTOR. Registers all known dialogs with manager.

virtual makVrf::DtVrfConditionalDialogManager::~DtVrfConditionalDialogManager ( )
virtual

DTOR.

Member Function Documentation

static DtVrfConditionalDialogManager& makVrf::DtVrfConditionalDialogManager::instance ( makVrv::DtDe de)
static

Returns instance of the messager.

virtual DtConditionalDialogInterface* makVrf::DtVrfConditionalDialogManager::processDialogFor ( const std::string &  menuItemType,
QWidget *  parent,
const std::vector< makVrv::DtSimEntry * > &  data,
DtVrfConditionalAction forAction,
bool  partOfGlobalPlan = false,
DtRwTriggersList triggers = 0 
)
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

bool makVrf::DtVrfConditionalDialogManager::dialogInProgress ( ) const
inline
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.

virtual void makVrf::DtVrfConditionalDialogManager::removeAllDialogCreators ( )
virtual

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 std::string makVrf::DtVrfConditionalDialogManager::conditionalStringType ( int  type) const
virtual

Returns the string conditional type based on the integer type.

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.

virtual bool makVrf::DtVrfConditionalDialogManager::hasConditionalExpression ( int  type) const
virtual

Returns true if the dialog has the conditional expression.

virtual void makVrf::DtVrfConditionalDialogManager::removeAllConditionalExpressions ( )
virtual

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

virtual DtConditionalExpressionsList makVrf::DtVrfConditionalDialogManager::getConditionalExpressionsList ( bool  partOfGlobalPlan = false,
bool  compoundOnly = false 
) const
virtual

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.

virtual DtConditionalExpressionInterface* makVrf::DtVrfConditionalDialogManager::createExpression ( int  type,
QWidget *  parent 
)
virtual

Creates the expression and sends created signal.

virtual DtVrfConditionalExpressionCreator* makVrf::DtVrfConditionalDialogManager::expressionCreatorFor ( const std::string &  s) const
virtual

Returns the conditional expression creator.

virtual DtVrfConditionalExpressionCreator* makVrf::DtVrfConditionalDialogManager::expressionCreatorFor ( int  type) const
virtual

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.

virtual DtConditionalDialogInterface* makVrf::DtVrfConditionalDialogManager::createDialog ( int  iType,
QWidget *  parent,
bool  partOfGlobalPlan = false,
const std::vector< makVrv::DtSimEntry * > &  data = std::vector< makVrv::DtSimEntry * >() 
)
virtual

Creates a dialog based on the supplied staement type.

virtual void makVrf::DtVrfConditionalDialogManager::slot_onDialogDestroyed ( DtConditionalDialogInterface )
protectedvirtual
virtual void makVrf::DtVrfConditionalDialogManager::slot_onExpressionDestroyed ( DtConditionalExpressionInterface )
protectedvirtual
virtual void makVrf::DtVrfConditionalDialogManager::prepDialog ( DtConditionalDialogInterface ,
const std::vector< makVrv::DtSimEntry * > &  data,
DtVrfConditionalAction forAction,
DtRwTriggersList triggers 
)
protectedvirtual

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 
)
protectedvirtual

Member Data Documentation

makVrv::DtDe& makVrf::DtVrfConditionalDialogManager::myDe
protected
DtVrfConditionalDialogCreatorMap makVrf::DtVrfConditionalDialogManager::myDialogCreatorMap
protected
DtVrfConditionalExpressionCreatorMap makVrf::DtVrfConditionalDialogManager::myExpressionCreatorMap
protected
std::vector<std::string> makVrf::DtVrfConditionalDialogManager::myExpressionOrder
protected
bool makVrf::DtVrfConditionalDialogManager::myDialogInProgress
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)