CWizardDocumentComp.h
Go to the documentation of this file.
1 #ifndef iwiz_CWizardDocumentComp_included
2 #define iwiz_CWizardDocumentComp_included
3 
4 
5 #include "icomp/CComponentBase.h"
6 
8 
11 
12 
13 namespace iwiz
14 {
15 
16 
22  virtual public IParamsManagerWizard
23 {
24 public:
26 
27  I_BEGIN_COMPONENT(CWizardDocumentComp);
28  I_REGISTER_INTERFACE(IParamsManagerWizard);
29  I_REGISTER_INTERFACE(IWizardNavigationController);
30  I_ASSIGN(m_defaultPageIndexAttrPtr, "DefaultPageIndex", "Default page index", false, 0);
31  I_ASSIGN_MULTI_0(m_additionalObjectsCompPtr, "AdditionalPersistentObjects", "List of components that have to be serialized together with wizard document", false);
32  I_END_COMPONENT;
33 
34  // reimplemented (iwiz::IParamsManagerWizard)
35  virtual bool IsPageSelectionAllowed(int pageIndex) const;
36 
37  // reimplemented (iwiz::IWizardNavigationController)
38  virtual bool IsFinishAllowed() const;
39  virtual int GetPrevPageIndex() const;
40  virtual int GetNextPageIndex() const;
41  virtual bool DoWizardFinish();
42 
43  // reimplemented (iprm::ISelectionParam)
44  virtual bool SetSelectedOptionIndex(int index);
45 
46  // reimplemented (iser::ISerializable)
47  virtual bool Serialize(iser::IArchive& archive);
48 
49 protected:
50  virtual bool SerializeParamSets(iser::IArchive& archive);
51 
52  // reimplemented (icomp::CComponentBase)
53  virtual void OnComponentCreated();
54 
55 private:
56  I_ATTR(int, m_defaultPageIndexAttrPtr);
57  I_MULTIREF(iser::ISerializable, m_additionalObjectsCompPtr);
58 };
59 
60 
61 } // namespace iwiz
62 
63 
64 #endif // !iwiz_CWizardDocumentComp_included
65 
66 
Interface for wizard implementation based on parameter manager.
virtual bool IsFinishAllowed() const
Check, if finish is allowed for this wizard.
virtual bool SetSelectedOptionIndex(int index)
virtual bool DoWizardFinish()
Do finish action by wizard.
virtual bool SerializeParamSets(iser::IArchive &archive)
virtual int GetNextPageIndex() const
Get the ID of the next wizard page.
iprm::CParamsManagerComp BaseClass
virtual bool Serialize(iser::IArchive &archive)
Component implementation of a wizard controller.
Interface for wizard navigation.
virtual void OnComponentCreated()
virtual bool IsPageSelectionAllowed(int pageIndex) const
Check, if selection of some wizard page is allowed.
virtual int GetPrevPageIndex() const
Get the ID of the previous wizard page.

© 2007-2011 Witold Gantzke and Kirill Lepskiy