ACF $AcfVersion:0$
CSceneConnectorGuiComp.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
7#include <iqtgui/IGuiObject.h>
10#include <iqt2d/IViewProvider.h>
11#include <iqt2d/IViewExtender.h>
13#include <GeneratedFiles/iqt2d/ui_CSceneConnectorGuiComp.h>
14
15
16namespace iqt2d
17{
18
19
21 public iqtgui::TRestorableGuiWrap<iqtgui::TDesignerGuiCompBase<Ui::CSceneConnectorGuiComp, QWidget>>,
22 virtual public ibase::ICommandsProvider
23{
24public:
26
27 I_BEGIN_COMPONENT(CSceneConnectorGuiComp);
28 I_REGISTER_INTERFACE(ibase::ICommandsProvider);
29 I_ASSIGN(m_sceneGuiCompPtr, "SceneGui", "GUI providing scene information", true, "SceneGui");
30 I_ASSIGN_TO(m_sceneCommandsCompPtr, m_sceneGuiCompPtr, false);
31 I_ASSIGN_TO(m_sceneProviderCompPtr, m_sceneGuiCompPtr, true);
32 I_ASSIGN(m_extenderGuiCompPtr, "ExtenderGui", "Gui providing parameters displayed on scene", false, "ExtenderGui");
33 I_ASSIGN_TO(m_extenderCommandsCompPtr, m_extenderGuiCompPtr, false);
34 I_ASSIGN_TO(m_extenderCompPtr, m_extenderGuiCompPtr, true);
35 I_ASSIGN(m_settingsKeyAttrPtr, "SettingsKey", "Key for saving/restoring of the layout information in the registry", false, "SettingsKey");
36 I_END_COMPONENT;
37
38 // reimplemented (ibase::ICommandsProvider)
39 virtual const ibase::IHierarchicalCommand* GetCommands() const override;
40
41protected:
42 // reimplemented (iqtgui::CGuiComponentBase)
43 virtual void OnGuiCreated() override;
44 virtual void OnGuiDestroyed() override;
45
46 // reimplemented (icomp::CComponentBase)
47 virtual void OnComponentCreated() override;
48 virtual void OnComponentDestroyed() override;
49
50 // reimplemented (TRestorableGuiWrap)
51 virtual void OnRestoreSettings(const QSettings& settings) override;
52 virtual void OnSaveSettings(QSettings& settings) const override;
53
54private:
55 QString GetSettingsKey() const;
56
57 I_REF(iqtgui::IGuiObject, m_sceneGuiCompPtr);
58 I_REF(ibase::ICommandsProvider, m_sceneCommandsCompPtr);
59 I_REF(IViewProvider, m_sceneProviderCompPtr);
60 I_REF(iqtgui::IGuiObject, m_extenderGuiCompPtr);
61 I_REF(ibase::ICommandsProvider, m_extenderCommandsCompPtr);
62 I_REF(IViewExtender, m_extenderCompPtr);
63 I_ATTR(QString, m_settingsKeyAttrPtr);
64
65 mutable iqtgui::CHierarchicalCommand m_commands;
66};
67
68
69} // namespace iqt2d
70
71
Interface for a provider of the heriarchical commands.
iqtgui::TRestorableGuiWrap< iqtgui::TDesignerGuiCompBase< Ui::CSceneConnectorGuiComp, QWidget > > BaseClass
virtual void OnComponentDestroyed() override
virtual void OnRestoreSettings(const QSettings &settings) override
virtual const ibase::IHierarchicalCommand * GetCommands() const override
Get list of menu commands.
virtual void OnComponentCreated() override
virtual void OnSaveSettings(QSettings &settings) const override
virtual void OnGuiCreated() override
Called just after GUI is initialized.
virtual void OnGuiDestroyed() override
Called just before GUI is released.
Interface for GUI objects presenting its results using extern view objects.
Interface for GUI objects managing view.
Implementation of hierarchical command based on QAction from Qt.
Common interface for GUI objects used in ACF component context.
Definition IGuiObject.h:133
A wrapper for saving/restoring of GUI component states in the application settings.
Common interface to define the hierarchical graph structures.
This package contains Qt based implementations for 2D graphic objects.