11#include <QtWidgets/QTreeWidget>
27#include <GeneratedFiles/icmpstr/ui_CPackageOverviewComp.h>
47 I_REGISTER_SUBELEMENT(LocalMetaInfoManager);
49 I_REGISTER_SUBELEMENT_INTERFACE(LocalMetaInfoManager,
imod::IModel, ExtractLocalMetaInfoManager);
50 I_REGISTER_SUBELEMENT_INTERFACE(LocalMetaInfoManager,
istd::IChangeable, ExtractLocalMetaInfoManager);
51 I_REGISTER_SUBELEMENT_INTERFACE(LocalMetaInfoManager, istd::IPolymorphic, ExtractLocalMetaInfoManager);
52 I_ASSIGN(m_envManagerCompPtr,
"EnvironmentManager",
"Packages manager used to provide icon paths",
true,
"PackagesManager");
53 I_ASSIGN(m_consistInfoCompPtr,
"ConsistencyInfo",
"Allows to check consistency of registries and access to buffered icons",
false,
"ConsistencyInfo");
54 I_ASSIGN(m_quickHelpViewerCompPtr,
"QuickHelpGui",
"Show help of selected component using its address",
false,
"HelpViewer");
55 I_ASSIGN(m_documentManagerCompPtr,
"DocumentManager",
"Document manager allowing to load files on double click",
false,
"DocumentManager");
56 I_ASSIGN(m_configFilePathCompPtr,
"ConfigFilePath",
"Path of packages configuration file will be loaded, if enabled",
false,
"ConfigFilePath");
57 I_ASSIGN_TO(m_configFilePathModelCompPtr, m_configFilePathCompPtr,
false);
133 class PackageItemBase:
public QTreeWidgetItem
138 const QString& description,
139 const QIcon& icon = QIcon());
141 virtual const QString& GetDescription()
const;
145 QString m_description;
148 class PackageComponentItem:
public PackageItemBase
151 typedef PackageItemBase BaseClass;
153 PackageComponentItem(
166 class PackageItem:
public PackageItemBase
169 typedef PackageItemBase BaseClass;
173 const QString& description,
174 const QIcon& icon = QIcon());
190 class MetaInfoManager:
197 void UpdateLocalMetaInfoMap();
213 typedef std::map<QByteArray, std::unique_ptr<const icomp::IComponentStaticInfo> > IdToInfoMap;
214 IdToInfoMap m_idToInfoMap;
224 I_REF(IRegistryConsistInfo, m_consistInfoCompPtr);
234 std::map<QByteArray, RootInfo> m_roots;
236 ConfigObserver m_configObserver;
238 typedef QSet<QByteArray> InterfaceFilter;
239 InterfaceFilter m_interfaceFilter;
240 QStringList m_keywordsFilter;
242 QIcon m_realComponentIcon;
243 QIcon m_compositeComponentIcon;
244 QIcon m_mixedComponentIcon;
245 QIcon m_embeddedComponentIcon;
247 typedef QMap<QString, QTreeWidget*> CategoryWidgetsMap;
248 CategoryWidgetsMap m_categoryWidgetsMap;
254 template <
class InterfaceType>
257 return &component.m_localMetaInfoManager;
260 int m_currentPackageGroupIndex;
261 std::unique_ptr<QPoint> m_starDragPositionPtr;
Interface for a provider of the heriarchical commands.
void on_CompanyClearButton_clicked()
void on_PackagesList_itemSelectionChanged()
QPixmap CreateComponentDragPixmap(const icomp::CComponentAddress &address) const
Create the drag preview for the component.
void OnMetaInfoSelectorChanged()
void on_InterfaceCB_currentIndexChanged(int index)
void OnGuiRetranslate() override
Called from widget event filter when GUI should be retranslated.
void OnGuiCreated() override
Called just after GUI is initialized.
void GenerateComponentTree(bool forceUpdate)
void on_PackagesList_itemDoubleClicked(QTreeWidgetItem *item, int column)
void OnGuiDestroyed() override
Called just before GUI is released.
void on_PackagesList_itemExpanded(QTreeWidgetItem *item)
icomp::IMetaInfoManager::ComponentAddresses GetFilteredComponentAdresses() const
Get a list of components that match the filter criteria.
RootInfo & EnsureRoot(const QByteArray &path, const icomp::CComponentAddress &address, const icomp::IComponentStaticInfo *staticInfoPtr)
void UpdateGui(const istd::IChangeable::ChangeSet &changeSet) override
void UpdateSingleMetaInfoList(const MetaInfoFilter &filter, QComboBox &result)
void OnAttributeSelected(const icomp::IAttributeStaticInfo *attributeStaticInfoPtr) override
void ReloadPackages(bool doForce)
void on_ProjectClearButton_clicked()
void on_TagClearButton_clicked()
void on_KeywordClearButton_clicked()
void on_InterfaceClearButton_clicked()
void on_PackagesList_itemClicked(QTreeWidgetItem *item, int column)
void on_AuthorClearButton_clicked()
void on_FilterEdit_editingFinished()
void on_EnableFiltersButton_toggled(bool on)
void OnRetranslate() override
Called when non-GUI elements (like commands) should be retranslated.
const ibase::IHierarchicalCommand * GetCommands() const override
Get list of menu commands.
void on_CategoryClearButton_clicked()
void UpdateAllMetaInfoLists()
QSet< QString > MetaInfoFilter
istdgui::TDesignerGuiObserverCompBase< Ui::CPackageOverviewComp, icomp::IRegistry > BaseClass
bool eventFilter(QObject *sourcePtr, QEvent *eventPtr) override
friend class CPackageItemDelegate
Represents global address of component.
Describe component attribute static information.
QSet< CComponentAddress > ComponentAddresses
This interface provide static information about component meta info.
Provide set of user actions needed to manage documents in MVC (Model View Controller) concept.
Allow to show help document to specified object or text.
Common interface for any file system item name (e.g directory, file or URL path)
Basic implementation for a single model observer.
Common interface for model objects, that supports Model/Observer design pattern.
This model wrapper provides a simple connection between a concrete istd::IChangeable implementation a...
Represents platform independent type info and provide set of static class manipulation functions.
Set of change flags (its IDs).
Common interface for data model objects, which can be changed.
Common interface to define the hierarchical graph structures.
Implementation of hierarchical command based on QAction from Qt.
Base class for all Qt GUI components.
This package contains (Qt based) implementations of compositor components.
QTreeWidgetItem * itemPtr
bool hasCompositeComponents