ICF 3.1.1.10
Technical documentation of ICF Libraries
CSceneConnectorGuiComp.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#pragma once
7
8
9// ICF includes
11#include <istdgui/IGuiObject.h>
17
18#include <GeneratedFiles/i2dgui/ui_CSceneConnectorGuiComp.h>
19
20
21namespace i2dgui
22{
23
24
26 public istdgui::TRestorableGuiWrap<istdgui::TDesignerGuiCompBase<Ui::CSceneConnectorGuiComp, QWidget> >,
27 virtual public ibase::ICommandsProvider
28{
29public:
31
32 I_BEGIN_COMPONENT(CSceneConnectorGuiComp);
33 I_REGISTER_INTERFACE(ibase::ICommandsProvider);
34 I_ASSIGN(m_sceneGuiCompPtr, "SceneGui", "GUI providing scene information", true, "SceneGui");
35 I_ASSIGN_TO(m_sceneCommandsCompPtr, m_sceneGuiCompPtr, false);
36 I_ASSIGN_TO(m_sceneProviderCompPtr, m_sceneGuiCompPtr, true);
37 I_ASSIGN(m_extenderGuiCompPtr, "ExtenderGui", "Gui providing parameters displayed on scene", false, "ExtenderGui");
38 I_ASSIGN_TO(m_extenderCommandsCompPtr, m_extenderGuiCompPtr, false);
39 I_ASSIGN_TO(m_extenderCompPtr, m_extenderGuiCompPtr, true);
40 I_ASSIGN(m_settingsKeyAttrPtr, "SettingsKey", "Key for saving/restoring of the layout information in the registry", false, "SettingsKey");
41 I_END_COMPONENT;
42
43 // reimplemented (ibase::ICommandsProvider)
45
46protected:
47 // reimplemented (istdgui::CGuiComponentBase)
48 void OnGuiCreated() override;
49 void OnGuiDestroyed() override;
50
51 // reimplemented (icomp::CComponentBase)
52 void OnComponentCreated() override;
53 void OnComponentDestroyed() override;
54
55 // reimplemented (TRestorableGuiWrap)
56 void OnRestoreSettings(const QSettings& settings) override;
57 void OnSaveSettings(QSettings& settings) const override;
58
59private:
60 QString GetSettingsKey() const;
61
62 I_REF(istdgui::IGuiObject, m_sceneGuiCompPtr);
63 I_REF(ibase::ICommandsProvider, m_sceneCommandsCompPtr);
64 I_REF(IViewProvider, m_sceneProviderCompPtr);
65 I_REF(istdgui::IGuiObject, m_extenderGuiCompPtr);
66 I_REF(ibase::ICommandsProvider, m_extenderCommandsCompPtr);
67 I_REF(IViewExtender, m_extenderCompPtr);
68 I_ATTR(QString, m_settingsKeyAttrPtr);
69
70 mutable istdgui::CHierarchicalCommand m_commands;
71};
72
73
74} // namespace i2dgui
75
76
istdgui::TRestorableGuiWrap< istdgui::TDesignerGuiCompBase< Ui::CSceneConnectorGuiComp, QWidget > > BaseClass
void OnGuiCreated() override
Called just after GUI is initialized.
void OnGuiDestroyed() override
Called just before GUI is released.
void OnSaveSettings(QSettings &settings) const override
void OnComponentCreated() override
void OnComponentDestroyed() override
const ibase::IHierarchicalCommand * GetCommands() const override
Get list of menu commands.
void OnRestoreSettings(const QSettings &settings) override
Interface for GUI objects presenting its results using extern view objects.
Interface for GUI objects managing view.
Interface for a provider of the heriarchical commands.
Common interface to define the hierarchical graph structures.
Implementation of hierarchical command based on QAction from Qt.
Common interface for GUI objects using in component context.
Definition IGuiObject.h:27
A wrapper for saving/restoring of GUI component states in the application settings.
This package contains Qt based implementations for 2D graphic objects.

© Witold Gantzke and Kirill Lepskiy