mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
Changed the way the application loads elements collections.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1217 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -82,15 +82,21 @@ class ElementsPanel : public QTreeWidget {
|
||||
Diagram *selectedDiagram() const;
|
||||
ElementsLocation selectedLocation() const;
|
||||
|
||||
void reloadCollections();
|
||||
int elementsCollectionItemsCount();
|
||||
|
||||
signals:
|
||||
void requestForProject(QETProject *);
|
||||
void requestForDiagram(Diagram *);
|
||||
void requestForCollectionItem(ElementsCollectionItem *);
|
||||
void requestForMoveElements(ElementsCollectionItem *, ElementsCollectionItem *, QPoint);
|
||||
void readingAboutToBegin();
|
||||
void readingFinished();
|
||||
void loadingProgressed(int, int);
|
||||
|
||||
public slots:
|
||||
void slot_doubleClick(QTreeWidgetItem *, int);
|
||||
void reload(bool = true);
|
||||
void reload(bool = false);
|
||||
void filter(const QString &);
|
||||
void projectWasOpened(QETProject *);
|
||||
void projectWasClosed(QETProject *);
|
||||
@@ -107,6 +113,7 @@ class ElementsPanel : public QTreeWidget {
|
||||
void dragMoveEvent(QDragMoveEvent *);
|
||||
void dropEvent(QDropEvent *);
|
||||
void startDrag(Qt::DropActions);
|
||||
bool event(QEvent *);
|
||||
|
||||
private:
|
||||
QTreeWidgetItem *addProject (QTreeWidgetItem *, QETProject *);
|
||||
@@ -134,5 +141,7 @@ class ElementsPanel : public QTreeWidget {
|
||||
QHash<QTreeWidgetItem *, QETProject *> title_blocks_directories_;
|
||||
QTreeWidgetItem *common_collection_item_;
|
||||
QTreeWidgetItem *custom_collection_item_;
|
||||
int loading_progress_;
|
||||
bool first_activation_;
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user