Public Types | Public Member Functions | Protected Member Functions | List of all members
iwiz::CSelectionConsistencyControllerComp Class Reference

Component implementation of a wizard controller. More...

#include <CSelectionConsistencyControllerComp.h>

Inheritance diagram for iwiz::CSelectionConsistencyControllerComp:
icomp::CComponentBase iproc::IStateController imod::CMultiModelObserverBase icomp::IComponent istd::IChangeable imod::IObserver istd::IPolymorphic istd::IPolymorphic istd::IPolymorphic

Public Types

typedef icomp::CComponentBase BaseClass
 
- Public Types inherited from iproc::IStateController
enum  ChangeFlags { CF_STATE_ENTERED = 0x826710, CF_STATE_LEAVED, CF_GRAPH_CHANGED, CF_STATE_ENABLED }
 Data model change notification flags. More...
 

Public Member Functions

virtual bool IsStateEnabled () const
 Check if state is enabled. More...
 
virtual bool IsStateActive () const
 Check if this state is active. More...
 
virtual bool IsEnterAllowed (bool isActionAllowed=true, const IStateController *prevStatePtr=NULL) const
 
virtual bool IsLeaveAllowed (bool isActionAllowed=true, const IStateController *nextStatePtr=NULL) const
 
virtual bool TryEnterState (bool isActionAllowed=true, const IStateController *prevStatePtr=NULL)
 
virtual bool TryLeaveState (bool isActionAllowed=true, const IStateController *nextStatePtr=NULL)
 
virtual bool IsResetAllowed () const
 Check if reseting is allowed. More...
 
- Public Member Functions inherited from icomp::IComponent
virtual const ICompositeComponentGetParentComponent (bool ownerOnly=false) const =0
 
virtual void * GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="")=0
 
virtual const IComponentContextGetComponentContext () const =0
 
virtual void SetComponentContext (const icomp::IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner)=0
 
- Public Member Functions inherited from iproc::IStateController
virtual bool IsEnterAllowed (bool isActionAllowed=true, const IStateController *prevStatePtr=NULL) const =0
 Check if entering of this page is allowed. More...
 
virtual bool IsLeaveAllowed (bool isActionAllowed=true, const IStateController *nextStatePtr=NULL) const =0
 Check if this state can be leaved. More...
 
virtual bool TryEnterState (bool isActionAllowed=true, const IStateController *prevStatePtr=NULL)=0
 Try enter this state. More...
 
virtual bool TryLeaveState (bool isActionAllowed=true, const IStateController *nextStatePtr=NULL)=0
 Try leave this state. More...
 

Protected Member Functions

void EnsureCacheValid () const
 
bool CheckParamConsistency (const iprm::ISelectionParam &param) const
 
void OnComponentCreated ()
 
void OnComponentDestroyed ()
 
virtual void BeforeUpdate (imod::IModel *modelPtr)
 
virtual void AfterUpdate (imod::IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet)
 
- Protected Member Functions inherited from imod::CMultiModelObserverBase
virtual void OnUpdate (IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet)
 
 CMultiModelObserverBase ()
 
virtual ~CMultiModelObserverBase ()
 
int GetModelCount () const
 
IModelGetObservedModel (int modelIndex) const
 
IModelGetModelPtr (int modelIndex) const
 
void EnsureModelsDetached ()
 
void SetObservedIds (const istd::IChangeable::ChangeSet &changeMask)
 
virtual bool IsModelAttached (const IModel *modelPtr) const
 
virtual bool OnModelAttached (IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask)
 
virtual bool OnModelDetached (IModel *modelPtr)
 

Detailed Description

Component implementation of a wizard controller.

Definition at line 22 of file CSelectionConsistencyControllerComp.h.

Member Typedef Documentation

Definition at line 28 of file CSelectionConsistencyControllerComp.h.

Member Function Documentation

virtual void iwiz::CSelectionConsistencyControllerComp::AfterUpdate ( imod::IModel modelPtr,
const istd::IChangeable::ChangeSet changeSet 
)
protectedvirtual

Reimplemented from imod::CMultiModelObserverBase.

virtual void iwiz::CSelectionConsistencyControllerComp::BeforeUpdate ( imod::IModel modelPtr)
protectedvirtual

Reimplemented from imod::CMultiModelObserverBase.

bool iwiz::CSelectionConsistencyControllerComp::CheckParamConsistency ( const iprm::ISelectionParam param) const
protected
void iwiz::CSelectionConsistencyControllerComp::EnsureCacheValid ( ) const
protected
virtual bool iwiz::CSelectionConsistencyControllerComp::IsEnterAllowed ( bool  isActionAllowed = true,
const IStateController *  prevStatePtr = NULL 
) const
virtual
virtual bool iwiz::CSelectionConsistencyControllerComp::IsLeaveAllowed ( bool  isActionAllowed = true,
const IStateController *  nextStatePtr = NULL 
) const
virtual
virtual bool iwiz::CSelectionConsistencyControllerComp::IsResetAllowed ( ) const
virtual

Check if reseting is allowed.

See Also
IsEnterAllowed.

Implements iproc::IStateController.

virtual bool iwiz::CSelectionConsistencyControllerComp::IsStateActive ( ) const
virtual

Check if this state is active.

State is active, if it was succesfully entered and becomes inactive if it was succesfully leaved.

See Also
TryEnterState and TryLeaveState.

Implements iproc::IStateController.

virtual bool iwiz::CSelectionConsistencyControllerComp::IsStateEnabled ( ) const
virtual

Check if state is enabled.

If state is disabled it will be not considered as a element of transition graph. State is disabled e.g. if some preselection turns it off.

Implements iproc::IStateController.

void iwiz::CSelectionConsistencyControllerComp::OnComponentCreated ( )
protected
void iwiz::CSelectionConsistencyControllerComp::OnComponentDestroyed ( )
protected
virtual bool iwiz::CSelectionConsistencyControllerComp::TryEnterState ( bool  isActionAllowed = true,
const IStateController *  prevStatePtr = NULL 
)
virtual
virtual bool iwiz::CSelectionConsistencyControllerComp::TryLeaveState ( bool  isActionAllowed = true,
const IStateController *  nextStatePtr = NULL 
)
virtual

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy