Public Types | Public Member Functions | Protected Member Functions | List of all members
iqtprm::CExtComposedParamsSetGuiComp Class Reference

New version of parameter set UI based on standard multi page UI concept. More...

#include <CExtComposedParamsSetGuiComp.h>

Inheritance diagram for iqtprm::CExtComposedParamsSetGuiComp:
iqtgui::TGuiObserverWrap< iqtgui::CComposedGuiComp, imod::TSingleModelObserverBase< iprm::IParamsSet > > iqt2d::IViewExtender iqtgui::CComposedGuiComp imod::TSingleModelObserverBase< iprm::IParamsSet > imod::IModelEditor istd::IPolymorphic iqtgui::TRestorableGuiWrap< CMultiPageGuiCompBase > imod::CSingleModelObserverBase istd::IPolymorphic iqtgui::CMultiPageGuiCompBase imod::IObserver iqtgui::CGuiComponentBase imod::CMultiModelDispatcherBase istd::IPolymorphic ibase::TLocalizableWrap< icomp::CComponentBase > iqtgui::IGuiObject istd::IPolymorphic icomp::CComponentBase istd::IPolymorphic icomp::IComponent istd::IPolymorphic

Public Types

typedef
iqtgui::TGuiObserverWrap
< iqtgui::CComposedGuiComp,
imod::TSingleModelObserverBase
< iprm::IParamsSet > > 
BaseClass
 
- Public Types inherited from iqtgui::CComposedGuiComp
typedef
iqtgui::TRestorableGuiWrap
< CMultiPageGuiCompBase
BaseClass
 
- Public Types inherited from iqtgui::TRestorableGuiWrap< CMultiPageGuiCompBase >
typedef CMultiPageGuiCompBase BaseClass
 
- Public Types inherited from iqtgui::CMultiPageGuiCompBase
enum  ModelId { MI_USER = 1000 }
 
typedef iqtgui::CGuiComponentBase BaseClass
 
typedef
imod::CMultiModelDispatcherBase 
BaseClass2
 
- Public Types inherited from iqtgui::CGuiComponentBase
typedef icomp::CComponentBase BaseClass
 
- Public Types inherited from ibase::TLocalizableWrap< icomp::CComponentBase >
typedef icomp::CComponentBase BaseClass
 
- Public Types inherited from imod::TSingleModelObserverBase< iprm::IParamsSet >
typedef CSingleModelObserverBase BaseClass
 
typedef iprm::IParamsSet ModelType
 
- Public Types inherited from imod::CSingleModelObserverBase
typedef imod::IModel ModelType
 
- Public Types inherited from imod::IModelEditor
enum  ChangeFlags { CF_INIT_EDITOR = 0x3720694 }
 Data model change notification flags. More...
 
- Public Types inherited from iqt2d::IViewExtender
enum  SceneFlags { SF_BACKGROUND = 1, SF_DIRECT = 2 }
 Standard flags for items . More...
 

Public Member Functions

virtual void UpdateEditor (const istd::IChangeable::ChangeSet &changeSet)
 Updates editor with model data. More...
 
virtual void SetReadOnly (bool state)
 Set flag that the model data can be changed. More...
 
virtual void OnGuiCreated ()
 Called just after GUI is initialized. More...
 
virtual void OnGuiDestroyed ()
 Called just before GUI is released. More...
 
virtual void AddItemsToScene (iqt2d::IViewProvider *providerPtr, int flags)
 Called when items should be added to specified scene. More...
 
virtual void RemoveItemsFromScene (iqt2d::IViewProvider *providerPtr)
 Called when items should be removed from specified scene. More...
 
- Public Member Functions inherited from iqtgui::TGuiObserverWrap< iqtgui::CComposedGuiComp, imod::TSingleModelObserverBase< iprm::IParamsSet > >
 TGuiObserverWrap ()
 
virtual bool OnModelAttached (imod::IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask)
 
virtual bool OnModelDetached (imod::IModel *modelPtr)
 
- Public Member Functions inherited from iqtgui::CComposedGuiComp
virtual int GetPagesCount () const
 Get the number of the pages in the UI container. More...
 
virtual iqtgui::IGuiObjectGetPageGuiComponent (int pageIndex) const
 Get the UI component for a given page. More...
 
- Public Member Functions inherited from iqtgui::CMultiPageGuiCompBase
 I_REGISTER_SUBELEMENT_INTERFACE_T (PageModel, iprm::ISelectionParam, ExtractPageModel)
 
 I_REGISTER_SUBELEMENT_INTERFACE_T (PageModel, iprm::IOptionsList, ExtractPageModel)
 
 I_REGISTER_SUBELEMENT_INTERFACE_T (PageModel, iser::ISerializable, ExtractPageModel)
 
 I_REGISTER_SUBELEMENT_INTERFACE_T (PageModel, imod::IModel, ExtractPageModel)
 
 I_REGISTER_SUBELEMENT_INTERFACE_T (PageModel, istd::IChangeable, ExtractPageModel)
 
 I_REGISTER_SUBELEMENT_INTERFACE_T (PageModel, IMultiVisualStatusProvider, ExtractPageModel)
 
 CMultiPageGuiCompBase ()
 
- Public Member Functions inherited from iqtgui::CGuiComponentBase
 I_REGISTER_SUBELEMENT_INTERFACE_T (VisualStatus, IVisualStatus, ExtractVisualStatus)
 
 I_REGISTER_SUBELEMENT_INTERFACE_T (VisualStatus, istd::IChangeable, ExtractVisualStatus)
 
 I_REGISTER_SUBELEMENT_INTERFACE_T (VisualStatus, imod::IModel, ExtractVisualStatus)
 
 CGuiComponentBase ()
 
bool IsGuiShown () const
 
virtual bool IsGuiCreated () const
 Inform if GUI was initilized. More...
 
virtual QWidget * GetWidget () const
 Get access to internal QWidget object. More...
 
virtual void OnTryClose (bool *ignoredPtr=NULL)
 Called on trying to close application. More...
 
- Public Member Functions inherited from ibase::TLocalizableWrap< icomp::CComponentBase >
 TLocalizableWrap ()
 
virtual void EnableLocalization (bool enableLocalization=true)
 If enabled, listen to the language change event from the application context. More...
 
- Public Member Functions inherited from icomp::CComponentBase
 CComponentBase ()
 Create component and assign it to specific context. More...
 
virtual const ICompositeComponentGetParentComponent (bool ownerOnly=false) const
 Get parent of this component. More...
 
virtual void * GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="")
 Get access to specified component interface. More...
 
virtual const IComponentContextGetComponentContext () const
 Get access to component context describing all application-specified component information loaded from components registry. More...
 
virtual void SetComponentContext (const icomp::IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner)
 Set component context of this component. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 
- Public Member Functions inherited from imod::TSingleModelObserverBase< iprm::IParamsSet >
 TSingleModelObserverBase ()
 
iprm::IParamsSetGetObservedObject () const
 Get instance of observed object. More...
 
iprm::IParamsSetGetObjectPtr () const
 Get instance of observed object. More...
 
bool AttachOrSetObject (iprm::IParamsSet *objectPtr)
 Attach to model of object or set object pointer, if no connection is possible. More...
 
- Public Member Functions inherited from imod::CSingleModelObserverBase
 CSingleModelObserverBase ()
 
virtual ~CSingleModelObserverBase ()
 
imod::IModelGetObservedModel () const
 Get access to observed model. More...
 
imod::IModelGetModelPtr () const
 Get access to observed model. More...
 
void EnsureModelDetached ()
 Make sure this observer is detached. More...
 
void SetObservedIds (const istd::IChangeable::ChangeSet &changeMask)
 Set list of ID's beeing observed. More...
 
virtual bool IsModelAttached (const imod::IModel *modelPtr=NULL) const
 Check if specified model is attached. More...
 
virtual void BeforeUpdate (imod::IModel *modelPtr)
 This function will be called before update of the observer contents occures. More...
 

Protected Member Functions

void AttachToScene (iqt2d::IViewProvider *providerPtr, int flags)
 
void DetachFromScene (iqt2d::IViewProvider *providerPtr)
 
virtual void CreatePages ()
 Create all container pages. More...
 
virtual void OnPageChanged (int widgetIndex)
 
virtual void OnGuiModelAttached ()
 Called when model is attached and GUI is created. More...
 
virtual void OnGuiModelDetached ()
 Called when model is detached or GUI is destroyed. More...
 
virtual void UpdateModel () const
 Do update of the model to reflect the current contents of GUI. More...
 
- Protected Member Functions inherited from iqtgui::TGuiObserverWrap< iqtgui::CComposedGuiComp, imod::TSingleModelObserverBase< iprm::IParamsSet > >
virtual void OnGuiModelShown ()
 Called when model is attached and GUI is shown. More...
 
virtual void OnGuiModelHidden ()
 Called when model is detached or GUI is hidden. More...
 
bool IsUpdateBlocked () const
 Check if GUI updating is blocked. More...
 
bool DoUpdateModel () const
 Secure update model. More...
 
virtual void UpdateGui (const istd::IChangeable::ChangeSet &changeSet)
 Do update of the GUI to reflect the state of model. More...
 
virtual void UpdateModelFromEditor () const
 Updates model from editor. More...
 
virtual void OnGuiShown ()
 
virtual void OnGuiHidden ()
 
virtual void OnGuiRetranslate ()
 
virtual void AfterUpdate (imod::IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet)
 
virtual bool IsReadOnly () const
 Returns true if the model data can be changed. More...
 
void SetDisableUiIfReadOnly (bool state)
 Control if GUI should be disaled for read-only editors. More...
 
- Protected Member Functions inherited from iqtgui::CComposedGuiComp
QWidget * GetPageContainerWidget () const
 
virtual void OnRestoreSettings (const QSettings &settings)
 
virtual void OnSaveSettings (QSettings &settings) const
 
virtual int GetDesignType () const
 Get the container UI mode. More...
 
- Protected Member Functions inherited from iqtgui::TRestorableGuiWrap< CMultiPageGuiCompBase >
virtual bool CreateGui (QWidget *parentPtr)
 
virtual bool DestroyGui ()
 
- Protected Member Functions inherited from iqtgui::CMultiPageGuiCompBase
virtual int GetLogicalPageIndex (int physicalWidgetIndex) const
 Get logical page index from a given widget index. More...
 
virtual bool CreatePage (int pageIndex)
 Create a page in the page container widget. More...
 
virtual void RemovePage (int pageIndex)
 Remove a page from the container widget. More...
 
virtual void SetCurrentPage (int pageIndex)
 Set current page. More...
 
virtual void UpdateVisualElements ()
 Update visual status of the page elements. More...
 
virtual void ResetPages ()
 Clear all container pages. More...
 
virtual QWidget * CreateQtWidget (QWidget *parentPtr)
 Create slave widget object. More...
 
virtual void OnComponentCreated ()
 
virtual void OnComponentDestroyed ()
 
virtual void OnModelChanged (int modelId, const istd::IChangeable::ChangeSet &changeSet)
 
bool EnsurePageInitialized (int pageIndex)
 
 I_MULTITEXTATTR (m_pageNamesAttrPtr)
 
- Protected Member Functions inherited from iqtgui::CGuiComponentBase
virtual bool OnKeyPressed (QKeyEvent *event)
 Called from widget event filter when key is pressed. More...
 
virtual void OnRetranslate ()
 Called when non-GUI elements (like commands) should be retranslated. More...
 
void SetStatusIcon (const QIcon &icon)
 Set status icon;. More...
 
void SetStatusText (const QString &text)
 Set status text;. More...
 
virtual void OnLanguageChanged ()
 
virtual bool eventFilter (QObject *sourcePtr, QEvent *eventPtr)
 
- Protected Member Functions inherited from icomp::CComponentBase
bool IsComponentActive () const
 Check if component is active. More...
 
virtual const
icomp::IRealComponentStaticInfo
GetComponentStaticInfo () const =0
 Get access to static info of this component. More...
 
bool RegisterModel (IModel *modelPtr, int modelId=0, const istd::IChangeable::ChangeSet &relevantFlags=istd::IChangeable::GetAllChanges())
 Register the data model to be observed. More...
 
void UnregisterModel (int modelId=0)
 Unregister the data model object. More...
 
void UnregisterAllModels ()
 Unregister all observed data objects. More...
 
template<class Object >
Object * GetObjectAt (int modelId) const
 Get concrete object instance of the obsered model. More...
 
- Protected Member Functions inherited from imod::TSingleModelObserverBase< iprm::IParamsSet >
virtual iprm::IParamsSetCastFromModel (imod::IModel *modelPtr) const
 
- Protected Member Functions inherited from imod::CSingleModelObserverBase
void SetModelPtr (imod::IModel *modelPtr)
 Set internal model pointer to specified value. More...
 
virtual void OnUpdate (const istd::IChangeable::ChangeSet &changeSet)
 Called on update of observed model. More...
 

Additional Inherited Members

- Protected Slots inherited from iqtgui::CMultiPageGuiCompBase
- Static Protected Member Functions inherited from icomp::CComponentBase
static const
icomp::IRealComponentStaticInfo
InitStaticInfo (IComponent *componentPtr)
 
static QByteArray GetComponentId (const icomp::IComponentContext *componentContextPtr, const QByteArray &contextId=QByteArray())
 
- Protected Attributes inherited from iqtgui::TGuiObserverWrap< iqtgui::CComposedGuiComp, imod::TSingleModelObserverBase< iprm::IParamsSet > >
bool m_isReadOnly
 
- Protected Attributes inherited from iqtgui::CMultiPageGuiCompBase
imod::TModelWrap< PageModel > m_pageModel
 
- Protected Attributes inherited from iqtgui::CGuiComponentBase
imod::TModelWrap< VisualStatusm_visualStatus
 
- Static Protected Attributes inherited from imod::CSingleModelObserverBase
static const
istd::IChangeable::ChangeSet 
s_undoChanges
 

Detailed Description

New version of parameter set UI based on standard multi page UI concept.

Definition at line 25 of file CExtComposedParamsSetGuiComp.h.

Member Typedef Documentation

Definition at line 32 of file CExtComposedParamsSetGuiComp.h.

Member Function Documentation

virtual void iqtprm::CExtComposedParamsSetGuiComp::AddItemsToScene ( iqt2d::IViewProvider providerPtr,
int  flags 
)
virtual

Called when items should be added to specified scene.

Implements iqt2d::IViewExtender.

void iqtprm::CExtComposedParamsSetGuiComp::AttachToScene ( iqt2d::IViewProvider providerPtr,
int  flags 
)
protected
virtual void iqtprm::CExtComposedParamsSetGuiComp::CreatePages ( )
protectedvirtual

Create all container pages.

Reimplemented from iqtgui::CMultiPageGuiCompBase.

void iqtprm::CExtComposedParamsSetGuiComp::DetachFromScene ( iqt2d::IViewProvider providerPtr)
protected
virtual void iqtprm::CExtComposedParamsSetGuiComp::OnGuiCreated ( )
virtual
virtual void iqtprm::CExtComposedParamsSetGuiComp::OnGuiDestroyed ( )
virtual
virtual void iqtprm::CExtComposedParamsSetGuiComp::OnGuiModelAttached ( )
protectedvirtual

Called when model is attached and GUI is created.

Reimplemented from iqtgui::TGuiObserverWrap< iqtgui::CComposedGuiComp, imod::TSingleModelObserverBase< iprm::IParamsSet > >.

virtual void iqtprm::CExtComposedParamsSetGuiComp::OnGuiModelDetached ( )
protectedvirtual

Called when model is detached or GUI is destroyed.

Reimplemented from iqtgui::TGuiObserverWrap< iqtgui::CComposedGuiComp, imod::TSingleModelObserverBase< iprm::IParamsSet > >.

virtual void iqtprm::CExtComposedParamsSetGuiComp::OnPageChanged ( int  widgetIndex)
protectedvirtual

Reimplemented from iqtgui::CMultiPageGuiCompBase.

virtual void iqtprm::CExtComposedParamsSetGuiComp::RemoveItemsFromScene ( iqt2d::IViewProvider providerPtr)
virtual

Called when items should be removed from specified scene.

Implements iqt2d::IViewExtender.

virtual void iqtprm::CExtComposedParamsSetGuiComp::SetReadOnly ( bool  state)
virtual

Set flag that the model data can be changed.

Returns
true, if this feature is supported.

Reimplemented from iqtgui::TGuiObserverWrap< iqtgui::CComposedGuiComp, imod::TSingleModelObserverBase< iprm::IParamsSet > >.

virtual void iqtprm::CExtComposedParamsSetGuiComp::UpdateEditor ( const istd::IChangeable::ChangeSet changeSet)
virtual

Updates editor with model data.

This method will be called only if GUI is connected.

Parameters
changeSetthe same as changeSet in istd::IChangeable.

Reimplemented from iqtgui::TGuiObserverWrap< iqtgui::CComposedGuiComp, imod::TSingleModelObserverBase< iprm::IParamsSet > >.

virtual void iqtprm::CExtComposedParamsSetGuiComp::UpdateModel ( ) const
protectedvirtual

Do update of the model to reflect the current contents of GUI.

This method should be implmented by derived classes instead of imod::IModelEditor::UpdateModelFromEditor().

Reimplemented from iqtgui::TGuiObserverWrap< iqtgui::CComposedGuiComp, imod::TSingleModelObserverBase< iprm::IParamsSet > >.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy