ACF $AcfVersion:0$
Public Types | Public Member Functions | Protected Member Functions | List of all members
iqt2d::CViewProviderGuiComp Class Reference

Standard 2D-View provider. More...

#include <CViewProviderGuiComp.h>

Inheritance diagram for iqt2d::CViewProviderGuiComp:
iqt2d::CViewProviderGuiCompAttr ibase::ICommandsProvider iqt2d::IViewProvider i2d::ICalibrationProvider ibase::ICommandsDisplayer imod::CMultiModelDispatcherBase iqtgui::TGuiComponentBase< iview::CConsoleGui > istd::IChangeable istd::IPolymorphic istd::IChangeable istd::IPolymorphic istd::IPolymorphic iqtgui::CGuiComponentBase istd::IPolymorphic istd::IPolymorphic iqtgui::TMakeIconProviderCompWrap< ibase::TLocalizableWrap< icomp::CComponentBase > > iqtgui::IGuiObject iqtgui::TDesignSchemaHandlerWrap< Base > iqtgui::CIconProvider istd::IPolymorphic

Public Types

typedef CViewProviderGuiCompAttr BaseClass
 
typedef imod::CMultiModelDispatcherBase BaseClass2
 
- Public Types inherited from iqt2d::CViewProviderGuiCompAttr
enum  BackgroundMode { BM_NORMAL , BM_COLOR_SCHEMA , BM_CHECKERBOARD , BM_DOT_GRID }
 Background type for the 2D-view. More...
 
typedef iqtgui::TGuiComponentBase< iview::CConsoleGuiBaseClass
 
- Public Types inherited from iqtgui::TGuiComponentBase< iview::CConsoleGui >
typedef CGuiComponentBase BaseClass
 
- Public Types inherited from iqtgui::CGuiComponentBase
typedef TMakeIconProviderCompWrap< ibase::TLocalizableWrap< icomp::CComponentBase > > BaseClass
 
- Public Types inherited from iqtgui::TMakeIconProviderCompWrap< ibase::TLocalizableWrap< icomp::CComponentBase > >
typedef ibase::TLocalizableWrap< icomp::CComponentBaseBaseClass
 
- Public Types inherited from iqtgui::TDesignSchemaHandlerWrap< Base >
typedef Base BaseClass
 
- Public Types inherited from ibase::ICommandsProvider
enum  ChangeFlags { CF_COMMANDS = 0x62b7e8 }
 
- Public Types inherited from istd::IChangeable
enum  ChangeFlags {
  CF_ACF_INTERNAL = 0 , CF_ALL_DATA , CF_ANY , CF_DESTROYING ,
  CF_DELEGATED , CF_NO_UNDO
}
 Data model change notification flags. More...
 
enum  SupportedOperations {
  SO_NONE = 0 , SO_OBSERVE = 1 << 0 , SO_COPY = 1 << 1 , SO_CLONE = 1 << 2 ,
  SO_COMPARE = 1 << 3 , SO_RESET = 1 << 4
}
 Flags for supported operations. More...
 
enum  CompatibilityMode { CM_STRICT , CM_WITHOUT_REFS , CM_WITH_REFS , CM_CONVERT }
 Control how relationship betweeen objects are interpreted. More...
 
typedef QMultiMap< QByteArray, QVariant > ChangeInfoMap
 

Public Member Functions

virtual const ibase::IHierarchicalCommandGetCommands () const override
 Get list of menu commands.
 
virtual void ShowCommands (const ibase::ICommandsProvider *commandsProvider) override
 
virtual int GetViewId () const override
 Get ID indentifing this view.
 
virtual iview::IShapeViewGetView () const override
 Called when items should be removed from specified view.
 
virtual const i2d::ICalibration2dGetCalibration () const override
 Get access to transformation object, which transforms a local logical coordinate system to global one.
 
- Public Member Functions inherited from iqtgui::TGuiComponentBase< iview::CConsoleGui >
 TGuiComponentBase ()
 
virtual iview::CConsoleGuiGetQtWidget () const
 
virtual QWidget * CreateQtWidget (QWidget *parentPtr) override
 Create slave widget object.
 
- 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 override
 Checks if the GUI has been initialized and created.
 
virtual bool CreateGui (QWidget *parentPtr) override
 Initializes the GUI and connects it to the parent widget.
 
virtual bool DestroyGui () override
 Releases GUI resources and disconnects from the parent.
 
virtual QWidget * GetWidget () const override
 Gets access to the internal QWidget object.
 
virtual void OnTryClose (bool *ignoredPtr=NULL) override
 Called when the application is attempting to close.
 
- Public Member Functions inherited from iqtgui::TDesignSchemaHandlerWrap< Base >
 TDesignSchemaHandlerWrap ()
 
virtual void EnableDesignHandler (bool enable=true)
 If enabled, listen to the design schema change events from the application context.
 
- Public Member Functions inherited from iqtgui::CIconProvider
virtual QIcon GetIcon (const QString &iconName) const
 
virtual QString GetIconPath (const QString &iconName) const
 
virtual QString GetStyleSheetPath (const QString &styleSheetPath) const
 
QByteArray GetCurrentThemeId () const
 
void SetThemeId (const QByteArray &themeId)
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 
- Public Member Functions inherited from istd::IChangeable
virtual int GetSupportedOperations () const
 Get set of flags for supported operations.
 
virtual bool CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
 Copy this object from another one.
 
virtual bool IsEqual (const IChangeable &object) const
 Compare this object with another object.
 
virtual istd::TUniqueInterfacePtr< istd::IChangeableCloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const
 Make a copy of this object.
 
virtual bool ResetData (CompatibilityMode mode=CM_WITHOUT_REFS)
 Reset data to its default state.
 
virtual void BeginChanges (const ChangeSet &changeSet)
 Starts the change transaction.
 
virtual void EndChanges (const ChangeSet &changeSet)
 Ends the change transaction.
 
virtual void BeginChangeGroup (const ChangeSet &changeSet)
 Starts group of changes.
 
virtual void EndChangeGroup (const ChangeSet &changeSet)
 Ends group of changes.
 

Protected Member Functions

virtual void SetupBackground ()
 
virtual void OnGuiCreated () override
 Called just after GUI is initialized.
 
virtual void OnGuiDestroyed () override
 Called just before GUI is released.
 
virtual void OnGuiRetranslate () override
 Called from widget event filter when GUI should be retranslated.
 
virtual void OnGuiShown () override
 Called from widget event filter when slave widget is shown.
 
virtual void OnGuiHidden () override
 Called from widget event filter when slave widget is hidden.
 
virtual void OnGuiDesignChanged () override
 
void OnModelChanged (int modelId, const istd::IChangeable::ChangeSet &changeSet) override
 Called when some model observed by dispatcher will be changed.
 
virtual void OnComponentCreated () override
 
virtual void OnComponentDestroyed () override
 
- Protected Member Functions inherited from iqtgui::CGuiComponentBase
virtual bool OnKeyPressed (QKeyEvent *event)
 Called from widget event filter when key is pressed.
 
virtual void OnRetranslate ()
 Called when non-GUI elements (like commands) should be retranslated.
 
void SetStatusIcon (const QIcon &icon)
 Set status icon;.
 
void SetStatusText (const QString &text)
 Set status text;.
 
void SetDefaultVisualStatus ()
 
virtual void OnLanguageChanged () override
 
virtual void OnDesignSchemaChanged (const QByteArray &themeId) override
 
virtual bool eventFilter (QObject *sourcePtr, QEvent *eventPtr) override
 
- Protected Member Functions inherited from iqtgui::CIconProvider
virtual QIcon CreateIcon (const QString &iconName) const
 
- Protected Member Functions inherited from istd::IChangeable
virtual void OnBeginChanges ()
 Callback function for begin change event.
 
virtual void OnEndChanges (const ChangeSet &changeSet)
 Callback function for end change event.
 
bool RegisterModel (IModel *modelPtr, int modelId=0, const istd::IChangeable::ChangeSet &relevantFlags=istd::IChangeable::GetAllChanges())
 Register the data model to be observed.
 
void UnregisterModel (int modelId=0)
 Unregister the data model object.
 
void UnregisterAllModels ()
 Unregister all observed data objects.
 
template<class Object >
Object * GetObjectAt (int modelId) const
 Get concrete object instance of the obsered model.
 

Additional Inherited Members

- Static Public Member Functions inherited from istd::IChangeable
static const ChangeSetGetNoChanges ()
 Get empty set of changes.
 
static const ChangeSetGetAnyChange ()
 Get anonymous change set.
 
static const ChangeSetGetAllChanges ()
 Get anonymous change set.
 
static const ChangeSetGetDelegatedChanges ()
 Get delegated change set.
 
- Protected Attributes inherited from iqtgui::CGuiComponentBase
imod::TModelWrap< VisualStatusm_visualStatus
 

Detailed Description

Standard 2D-View provider.

It allows setting of display calibration and supports i2d::ICalibrationProvider to get it.

Definition at line 86 of file CViewProviderGuiComp.h.

Member Typedef Documentation

◆ BaseClass

Definition at line 95 of file CViewProviderGuiComp.h.

◆ BaseClass2

Definition at line 96 of file CViewProviderGuiComp.h.

Member Function Documentation

◆ GetCalibration()

virtual const i2d::ICalibration2d * iqt2d::CViewProviderGuiComp::GetCalibration ( ) const
overridevirtual

Get access to transformation object, which transforms a local logical coordinate system to global one.

Returns
Pointer to transformation if it is accessible, or NULL.

Implements i2d::ICalibrationProvider.

◆ GetCommands()

virtual const ibase::IHierarchicalCommand * iqt2d::CViewProviderGuiComp::GetCommands ( ) const
overridevirtual

Get list of menu commands.

These commands will be integrated in global menu system, independent from actual selected view. For support of normal pull down menu, depth of this tree structure should be at least 3.

Reimplemented from ibase::ICommandsProvider.

◆ GetView()

virtual iview::IShapeView * iqt2d::CViewProviderGuiComp::GetView ( ) const
overridevirtual

Called when items should be removed from specified view.

Implements iqt2d::IViewProvider.

◆ GetViewId()

virtual int iqt2d::CViewProviderGuiComp::GetViewId ( ) const
overridevirtual

Get ID indentifing this view.

Typically this ID is 0 for first view, 1 for the second etc.

Implements iqt2d::IViewProvider.

◆ OnComponentCreated()

virtual void iqt2d::CViewProviderGuiComp::OnComponentCreated ( )
overrideprotectedvirtual

Reimplemented from iqtgui::CGuiComponentBase.

◆ OnComponentDestroyed()

virtual void iqt2d::CViewProviderGuiComp::OnComponentDestroyed ( )
overrideprotectedvirtual

Reimplemented from iqtgui::CGuiComponentBase.

◆ OnGuiCreated()

virtual void iqt2d::CViewProviderGuiComp::OnGuiCreated ( )
overrideprotectedvirtual

Called just after GUI is initialized.

Reimplemented from iqtgui::CGuiComponentBase.

◆ OnGuiDesignChanged()

virtual void iqt2d::CViewProviderGuiComp::OnGuiDesignChanged ( )
overrideprotectedvirtual

Reimplemented from iqtgui::CGuiComponentBase.

◆ OnGuiDestroyed()

virtual void iqt2d::CViewProviderGuiComp::OnGuiDestroyed ( )
overrideprotectedvirtual

Called just before GUI is released.

Reimplemented from iqtgui::CGuiComponentBase.

◆ OnGuiHidden()

virtual void iqt2d::CViewProviderGuiComp::OnGuiHidden ( )
overrideprotectedvirtual

Called from widget event filter when slave widget is hidden.

Reimplemented from iqtgui::CGuiComponentBase.

◆ OnGuiRetranslate()

virtual void iqt2d::CViewProviderGuiComp::OnGuiRetranslate ( )
overrideprotectedvirtual

Called from widget event filter when GUI should be retranslated.

Reimplemented from iqtgui::CGuiComponentBase.

◆ OnGuiShown()

virtual void iqt2d::CViewProviderGuiComp::OnGuiShown ( )
overrideprotectedvirtual

Called from widget event filter when slave widget is shown.

Reimplemented from iqtgui::CGuiComponentBase.

◆ OnModelChanged()

void iqt2d::CViewProviderGuiComp::OnModelChanged ( int  modelId,
const istd::IChangeable::ChangeSet changeSet 
)
overrideprotectedvirtual

Called when some model observed by dispatcher will be changed.

Implements imod::CMultiModelDispatcherBase.

◆ SetupBackground()

virtual void iqt2d::CViewProviderGuiComp::SetupBackground ( )
protectedvirtual

◆ ShowCommands()

virtual void iqt2d::CViewProviderGuiComp::ShowCommands ( const ibase::ICommandsProvider commandsProvider)
overridevirtual

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