ICF 3.1.1.10
Technical documentation of ICF Libraries
CConvertComponentCommandComp.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// Qt includes
10#include<QtCore/QtGlobal>
11#include <QtWidgets/QDialog>
12
13// ICF includes
20
21#include <GeneratedFiles/icmpstr/ui_CConvertComponentCommandComp.h>
22
23
24namespace icmpstr
25{
26
27
29 public QDialog,
30 public Ui::CConvertComponentCommandComp,
32 public imod::TSingleModelObserverBase<IElementSelectionInfo>,
33 virtual public ibase::ICommandsProvider
34{
35 Q_OBJECT
36
37public:
40 typedef QDialog BaseClass3;
41
42 I_BEGIN_COMPONENT(CConvertComponentCommandComp);
43 I_REGISTER_INTERFACE(ibase::ICommandsProvider);
44 I_ASSIGN(m_metaInfoManagerCompPtr, "MetaInfoManager", "Access to manager of components meta information", true, "MetaInfoManager");
45 I_END_COMPONENT;
46
47public:
49
50 // reimpemented (ibase::ICommandsProvider)
52
53protected:
55 {
56 GI_COMPONENT = 0x5430
57 };
58
63 const icomp::IRegistry& registry,
64 const QByteArray& elementName,
65 const icomp::IRegistry::ElementInfo& elementInfo);
66
71
72 // reimplemented (imod::CSingleModelObserverBase)
73 void OnUpdate(const istd::IChangeable::ChangeSet& changeSet) override;
74
75protected Q_SLOTS:
79 void on_FilterEdit_textChanged(const QString& text);
83
84private:
85 enum FilterType
86 {
87 FT_IGNORED,
88 FT_USED,
89 FT_SUPPORTED
90 };
91
92 struct Filter
93 {
98 };
99
100 I_REF(icomp::IMetaInfoManager, m_metaInfoManagerCompPtr);
101
102 Filter m_supportedFilter;
103 Filter m_usedFilter;
104
106
107 istdgui::CHierarchicalCommand m_rootMenuCommand;
108 istdgui::CHierarchicalCommand m_registryMenu;
109 istdgui::CHierarchicalCommand m_convertComponentCommand;
110};
111
112
113} // namespace icmpstr
114
115
Interface for a provider of the heriarchical commands.
void on_SubcomponentsPolicyCB_currentIndexChanged(int index)
imod::TSingleModelObserverBase< IElementSelectionInfo > BaseClass2
void on_InterfacesPolicyCB_currentIndexChanged(int index)
void on_PackageNameCB_currentIndexChanged(int index)
void OnUpdate(const istd::IChangeable::ChangeSet &changeSet) override
Called on update of observed model.
void InsertElementToFilters(const icomp::IRegistry &registry, const QByteArray &elementName, const icomp::IRegistry::ElementInfo &elementInfo)
Insert supported and used features to list of component filter.
const ibase::IHierarchicalCommand * GetCommands() const override
Get list of menu commands.
void on_AttributesPolicyCB_currentIndexChanged(int index)
void on_FilterEdit_textChanged(const QString &text)
void on_ComponentNameCB_currentIndexChanged(int index)
Base class for component implementation.
QSet< CComponentAddress > ComponentAddresses
Interface representing information stored in component registry.
Definition IRegistry.h:30
Basic implementation for a single model observer with binding to concrete data object interface.
Set of change flags (its IDs).
Definition IChangeable.h:38
Common interface to define the hierarchical graph structures.
Implementation of hierarchical command based on QAction from Qt.
This package contains (Qt based) implementations of compositor components.
Describe information stored with each element.
Definition IRegistry.h:51

© Witold Gantzke and Kirill Lepskiy