![]() |
ICF 3.1.1.10
Technical documentation of ICF Libraries
|
#include <CSceneProviderGuiComp.h>
Classes | |
| class | CScene |
| Implementation of QGraphicsScene with own background drawing to provide rastered backgrounds. More... | |
Signals | |
| void | zoomChanged (double) |
| void | embeddedRegistrySelected (const QByteArray &) |
Public Member Functions | |
| CSceneProviderGuiComp () | |
| double | GetIsotropyFactor () const |
| void | SetIsotropyFactor (double factor) |
| const ibase::IHierarchicalCommand * | GetCommands () const override |
| Get list of menu commands. | |
| int | GetSceneId () const override |
| Get ID indentifing this scene. | |
| QGraphicsScene * | GetScene () const override |
| Called when items should be removed from specified scene. | |
| bool | GetSceneAlignment (double &distance) const override |
| Get parameters of grid alignment. | |
| int | GetSceneFlags () const override |
| Get scene's paremeter info. | |
| int | GetSceneRestrictionFlags () const override |
| Get the restriction flags, to tell the scene manipulator, what can be changed on the scene. | |
| FittingMode | GetFitMode () const override |
| Get vieport scale fitting mode. | |
| bool | SetFitMode (FittingMode fitMode) override |
| Set vieport scale fitting mode. | |
| bool | IsFullScreenMode () const override |
| Check if full screen mode is enabled. | |
| bool | SetFullScreenMode (bool isFullScreen) override |
| Set full screen mode on/off. | |
| double | GetScale () const override |
| Get actual scale factor. | |
| bool | SetScale (int scaleMode=SM_SET, double value=1.0) override |
| Set or modify scale factor. | |
Public Member Functions inherited from istdgui::TGuiComponentBase< QWidget > | |
| TGuiComponentBase () | |
| virtual QWidget * | GetQtWidget () const |
Public Member Functions inherited from istdgui::CGuiComponentBase | |
| CGuiComponentBase () | |
| bool | IsGuiShown () const |
| bool | IsGuiCreated () const override |
| Inform if GUI was initilized. | |
| bool | CreateGui (QWidget *parentPtr) override |
| Initialize GUI and connect it to the parent. | |
| bool | DestroyGui () override |
| Release GUI and disconnect it from parent. | |
| QWidget * | GetWidget () const override |
| Get access to internal QWidget object. | |
| void | OnTryClose (bool *ignoredPtr=nullptr) override |
| Called on trying to close application. | |
Public Member Functions inherited from ibase::TVisualChangesHandlerWrap< icomp::CComponentBase > | |
| TVisualChangesHandlerWrap (Args &&... args) | |
| virtual void | EnableVisualChangesHandler (bool enableLocalization=true) |
| If enabled, listen to the language change event from the application context. | |
Public Member Functions inherited from icomp::CComponentBase | |
| CComponentBase () | |
| Create component and assign it to specific context. | |
| CComponentBase (const CComponentBase &)=delete | |
| CComponentBase & | operator= (const CComponentBase &)=delete |
| virtual const ICompositeComponent * | GetParentComponent (bool ownerOnly=false) const |
| Get parent of this component. | |
| virtual void * | GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="") |
| Get access to specified component interface. | |
| virtual const IComponentContext * | GetComponentContext () const |
| Get access to component context describing all application-specified component information loaded from components registry. | |
| virtual void | SetComponentContext (const IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner) |
| Set component context of this component. | |
Public Member Functions inherited from icomp::IComponent | |
Public Member Functions inherited from istdgui::IGuiObject | |
Public Member Functions inherited from ibase::ICommandsProvider | |
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 std::unique_ptr< IChangeable > | CloneMe (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 QMutex * | GetChangesLock () const |
| Get mutex beeing locked during changes, if available. | |
| 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. | |
Public Member Functions inherited from icmpstr::ISceneProvider | |
Public Member Functions inherited from i2d::ISceneController | |
Protected Slots | |
| void | OnPrint () |
| void | OnZoomIncrement () |
| void | OnZoomDecrement () |
| void | OnFitToView () |
| void | OnFitToShapes () |
| void | OnResetScale () |
| void | OnAutoFit (bool isAutoScale) |
| void | OnSelectAllShapes () |
Protected Member Functions | |
| virtual bool | OnResize (QResizeEvent *eventPtr) |
| virtual bool | OnWheelEvent (QGraphicsSceneWheelEvent *eventPtr) |
| virtual bool | OnKeyReleaseEvent (QKeyEvent *eventPtr) |
| virtual bool | OnMouseDoubleClickEvent (QEvent *eventPtr) |
| void | ScaleView (double scaleFactor) |
| void | SetFittedScale (FittingMode mode) |
| istdgui::CHierarchicalCommand & | GetCommandsRootRef () |
| bool | HasDropConsumerForFormat (const QStringList &formats) const |
| void | DelegateDropEvent (const QMimeData &data, QGraphicsSceneDragDropEvent *eventPtr) |
| void | ResetScene () |
| void | OnGuiCreated () override |
| Called just after GUI is initialized. | |
| void | OnRetranslate () override |
| Called when non-GUI elements (like commands) should be retranslated. | |
| void | OnComponentCreated () override |
| void | OnComponentDestroyed () override |
| bool | eventFilter (QObject *sourcePtr, QEvent *eventPtr) override |
Protected Member Functions inherited from istdgui::TGuiComponentBase< QWidget > | |
| virtual QWidget * | CreateQtWidget (QWidget *parentPtr) |
| Create slave widget object. | |
Protected Member Functions inherited from istdgui::CGuiComponentBase | |
| virtual void | OnGuiShown () |
| Called from widget event filter when slave widget is shown. | |
| virtual void | OnGuiHidden () |
| Called from widget event filter when slave widget is hidden. | |
| virtual bool | OnKeyPressed (QKeyEvent *event) |
| Called from widget event filter when key is pressed. | |
| virtual void | OnGuiRetranslate () |
| Called from widget event filter when GUI should be retranslated. | |
| virtual void | OnGuiDestroyed () |
| Called just before GUI is released. | |
| void | SetStatusIcon (const QIcon &icon) |
| Set status icon;. | |
| void | SetStatusText (const QString &text) |
| Set status text;. | |
| void | OnLanguageChanged () override |
| void | OnDesignSchemaChanged () override |
| bool | eventFilter (QObject *sourcePtr, QEvent *eventPtr) override |
Protected Member Functions inherited from ibase::TVisualChangesHandlerWrap< icomp::CComponentBase > | |
Protected Member Functions inherited from icomp::CComponentBase | |
| bool | IsComponentActive () const |
| Check if component is active. | |
| virtual const IRealComponentStaticInfo & | GetComponentStaticInfo () const =0 |
| Get access to static info of this component. | |
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. | |
Additional Inherited Members | |
Static Public Member Functions inherited from istdgui::CGuiComponentBase | |
| static void | MakeAutoSlotConnection (const QWidget &widget, QObject &object) |
Static Public Member Functions inherited from istd::IChangeable | |
| static const ChangeSet & | GetNoChanges () |
| Get empty set of changes. | |
| static const ChangeSet & | GetAnyChange () |
| Get anonymous change set. | |
| static const ChangeSet & | GetAllChanges () |
| Get anonymous change set. | |
| static const ChangeSet & | GetDelegatedChanges () |
| Get delegated change set. | |
Static Protected Member Functions inherited from icomp::CComponentBase | |
| static const IRealComponentStaticInfo & | InitStaticInfo (IComponent *componentPtr) |
| static QByteArray | GetComponentId (const IComponentContext *componentContextPtr, const QByteArray &contextId=QByteArray()) |
Protected Attributes inherited from istdgui::CGuiComponentBase | |
| istd::CMainThreadCaller | m_updateGuiCaller |
| imod::TModelWrap< VisualStatus > | m_visualStatus |
Definition at line 30 of file CSceneProviderGuiComp.h.
| istdgui::TDesignerGuiCompBase<Ui::CSceneProviderGuiComp> icmpstr::CSceneProviderGuiComp::BaseClass |
Definition at line 38 of file CSceneProviderGuiComp.h.
Definition at line 40 of file CSceneProviderGuiComp.h.
| icmpstr::CSceneProviderGuiComp::CSceneProviderGuiComp | ( | ) |
|
protected |
|
signal |
|
overrideprotected |
|
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.
|
inlineprotected |
Definition at line 223 of file CSceneProviderGuiComp.h.
|
overridevirtual |
Get vieport scale fitting mode.
Implements i2d::ISceneController.
| double icmpstr::CSceneProviderGuiComp::GetIsotropyFactor | ( | ) | const |
|
overridevirtual |
Get actual scale factor.
Implements i2d::ISceneController.
|
overridevirtual |
Called when items should be removed from specified scene.
Implements icmpstr::ISceneProvider.
|
overridevirtual |
Get parameters of grid alignment.
| distance | distance between nearest alignment positions. |
Implements icmpstr::ISceneProvider.
|
overridevirtual |
|
overridevirtual |
Get ID indentifing this scene.
Typically this ID is 0 for first scene, 1 for the second etc.
Implements icmpstr::ISceneProvider.
|
overridevirtual |
Get the restriction flags, to tell the scene manipulator, what can be changed on the scene.
Implements i2d::ISceneController.
|
protected |
|
overridevirtual |
Check if full screen mode is enabled.
In full screen mode scene is shown on whole screen area.
Implements i2d::ISceneController.
|
protectedslot |
|
overrideprotectedvirtual |
Reimplemented from istdgui::CGuiComponentBase.
|
overrideprotectedvirtual |
Reimplemented from istdgui::CGuiComponentBase.
|
protectedslot |
|
protectedslot |
|
overrideprotectedvirtual |
Called just after GUI is initialized.
Reimplemented from istdgui::CGuiComponentBase.
|
protectedvirtual |
|
protectedvirtual |
|
protectedslot |
|
protectedslot |
|
protectedvirtual |
|
overrideprotectedvirtual |
Called when non-GUI elements (like commands) should be retranslated.
Reimplemented from istdgui::CGuiComponentBase.
|
protectedslot |
|
protectedvirtual |
|
protectedslot |
|
protectedslot |
|
protected |
|
protected |
|
overridevirtual |
Set vieport scale fitting mode.
Implements i2d::ISceneController.
|
protected |
|
overridevirtual |
Set full screen mode on/off.
In full screen mode scene is shown on whole screen area.
Implements i2d::ISceneController.
| void icmpstr::CSceneProviderGuiComp::SetIsotropyFactor | ( | double | factor | ) |
|
overridevirtual |
|
signal |
© Witold Gantzke and Kirill Lepskiy