|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef PANELAPPAREILS_H
19 #define PANELAPPAREILS_H
71 bool matchesFilter(
const QTreeWidgetItem *,
const QString&)
const;
@ Project
Definition: qet.h:109
QTreeWidgetItem * common_tbt_collection_item_
pointer to the item representing the common templates collection
Definition: elementspanel.h:84
QStringList filter_list_
Currently applied list of filter.
Definition: elementspanel.h:88
void panelContentChange()
Definition: elementspanel.cpp:114
~ElementsPanel() override
Definition: elementspanel.cpp:77
The GenericPanel class The generic panel is a QTreeWidget subclass providing extra methods allowing d...
Definition: genericpanel.h:36
virtual QTreeWidgetItem * updateTemplateItem(QTreeWidgetItem *, const TitleBlockTemplateLocation &, PanelOptions=AddAllChild, bool=false)
GenericPanel::updateTemplateItem.
Definition: genericpanel.cpp:621
QTreeWidgetItem * updateTemplatesCollectionItem(QTreeWidgetItem *, TitleBlockTemplatesCollection *, PanelOptions=AddAllChild, bool=false) override
GenericPanel::updateTemplatesCollectionItem.
Definition: elementspanel.cpp:160
void startTitleBlockTemplateDrag(const TitleBlockTemplateLocation &)
Definition: elementspanel.cpp:98
virtual TitleBlockTemplateLocation templateLocationForItem(QTreeWidgetItem *) const
GenericPanel::templateLocationForItem.
Definition: genericpanel.cpp:84
@ RegularFilter
Definition: qet.h:118
void startDrag(Qt::DropActions) override
Definition: elementspanel.cpp:84
static TitleBlockTemplatesFilesCollection * commonTitleBlockTemplatesCollection()
QETApp::commonTitleBlockTemplatesCollection.
Definition: qetapp.cpp:521
virtual QTreeWidgetItem * updateTemplatesCollectionItem(QTreeWidgetItem *, TitleBlockTemplatesCollection *, PanelOptions=AddAllChild, bool=false)
GenericPanel::updateTemplatesCollectionItem.
Definition: genericpanel.cpp:483
ElementsPanel(QWidget *=nullptr)
Definition: elementspanel.cpp:39
virtual QETProject * projectForItem(QTreeWidgetItem *) const
GenericPanel::projectForItem.
Definition: genericpanel.cpp:59
@ Diagram
Definition: qet.h:108
QTreeWidgetItem * updateTemplateItem(QTreeWidgetItem *, const TitleBlockTemplateLocation &, PanelOptions, bool=false) override
GenericPanel::updateTemplateItem.
Definition: elementspanel.cpp:177
virtual QTreeWidgetItem * addTemplatesCollection(TitleBlockTemplatesCollection *, QTreeWidgetItem *=nullptr, PanelOptions=AddAllChild)
GenericPanel::addTemplatesCollection.
Definition: genericpanel.cpp:417
@ TitleBlockTemplate
Definition: qet.h:105
virtual QTreeWidgetItem * itemForProject(QETProject *)
Definition: genericpanel.cpp:143
void requestForDiagram(Diagram *)
Definition: templatescollection.h:124
QTreeWidgetItem * custom_tbt_collection_item_
pointer to the item representing the user templates collection
Definition: elementspanel.h:85
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition: diagram.h:56
void projectWasOpened(QETProject *)
Definition: elementspanel.cpp:356
@ All
Definition: genericpanel.h:46
virtual QTreeWidgetItem * itemForTemplatesCollection(TitleBlockTemplatesCollection *)
GenericPanel::itemForTemplatesCollection.
Definition: genericpanel.cpp:446
QString filter_
Currently applied filter.
Definition: elementspanel.h:87
QString filePathForItem(QTreeWidgetItem *)
ElementsPanel::filePathForItem.
Definition: elementspanel.cpp:295
bool isValid() const
Definition: templatelocation.cpp:87
Definition: templatelocation.h:29
static TitleBlockTemplatesFilesCollection * customTitleBlockTemplatesCollection()
QETApp::customTitleBlockTemplatesCollection.
Definition: qetapp.cpp:541
void filter(const QString &, QET::Filtering=QET::RegularFilter)
Definition: elementspanel.cpp:321
QString toString() const
Definition: templatelocation.cpp:108
void applyCurrentFilter(const QList< QTreeWidgetItem * > &)
Definition: elementspanel.cpp:392
QString dirPathForItem(QTreeWidgetItem *)
ElementsPanel::dirPathForItem.
Definition: elementspanel.cpp:276
bool first_reload_
used to distinguish the first time this panel is reloaded
Definition: elementspanel.h:86
void requestForProject(QETProject *)
virtual TitleBlockTemplateLocation selectedTemplateLocation() const
GenericPanel::selectedTemplateLocation.
Definition: genericpanel.cpp:112
@ AddAllChild
Definition: genericpanel.h:45
void panelContentChanged()
void reload(bool=false)
ElementsPanel::reload Reload the elements tree.
Definition: elementspanel.cpp:218
virtual QTreeWidgetItem * addProject(QETProject *, QTreeWidgetItem *=nullptr, PanelOptions=AddAllChild)
GenericPanel::addProject.
Definition: genericpanel.cpp:123
Definition: qetproject.h:51
void ensureHierarchyIsVisible(const QList< QTreeWidgetItem * > &)
Definition: elementspanel.cpp:416
QSet< QETProject * > projects_to_display_
list of projects that have been added to this panel
Definition: elementspanel.h:83
@ EndFilter
Definition: qet.h:119
TitleBlockTemplatesCollection * parentCollection() const
Definition: templatelocation.cpp:57
Filtering
Definition: qet.h:116
ElementsPanel(const ElementsPanel &)
Definition: elementspanel.h:34
QTreeWidgetItem * addProject(QETProject *, QTreeWidgetItem *=nullptr, PanelOptions=AddAllChild) override
ElementsPanel::addProject Methode permettant d'ajouter un projet au panel d'elements.
Definition: elementspanel.cpp:131
Definition: templatescollection.h:34
@ BeginFilter
Definition: qet.h:117
void buildFilterList()
Definition: elementspanel.cpp:377
QIcon tr
Definition: qeticons.cpp:206
void requestForTitleBlockTemplate(const TitleBlockTemplateLocation &)
QIcon TitleBlock
Definition: qeticons.cpp:165
void projectWasClosed(QETProject *)
Definition: elementspanel.cpp:366
virtual void deleteItem(QTreeWidgetItem *, bool=false)
GenericPanel::deleteItem Delete and item and its children.
Definition: genericpanel.cpp:887
void slot_doubleClick(QTreeWidgetItem *, int)
Definition: elementspanel.cpp:257
bool matchesFilter(const QTreeWidgetItem *, const QString &) const
Definition: elementspanel.cpp:199