mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
New element panel can read the embedded collection of project (only at opening, other fonctionnality isn't created yet)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4287 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -28,6 +28,7 @@ class QMenu;
|
||||
class QLineEdit;
|
||||
class ElementCollectionItem;
|
||||
class QProgressBar;
|
||||
class QETProject;
|
||||
|
||||
/**
|
||||
* @brief The ElementsCollectionWidget class
|
||||
@@ -45,6 +46,9 @@ class ElementsCollectionWidget : public QWidget
|
||||
void expandFirstItems();
|
||||
ElementsCollectionModel *model() const;
|
||||
|
||||
void addProject (QETProject *project);
|
||||
void removeProject (QETProject *project);
|
||||
|
||||
private:
|
||||
void setUpAction();
|
||||
void setUpWidget();
|
||||
@@ -62,6 +66,7 @@ class ElementsCollectionWidget : public QWidget
|
||||
void hideCollection(bool hide = true);
|
||||
void hideItem(bool hide, const QModelIndex &index = QModelIndex(), bool recursive = true);
|
||||
void showAndExpandItem (const QModelIndex &index, bool recursive = true);
|
||||
ElementCollectionItem *elementCollectionItemForIndex (const QModelIndex &index);
|
||||
|
||||
private:
|
||||
ElementsCollectionModel *m_model;
|
||||
@@ -69,7 +74,6 @@ class ElementsCollectionWidget : public QWidget
|
||||
QTreeView *m_tree_view;
|
||||
QVBoxLayout *m_main_vlayout;
|
||||
QMenu *m_context_menu;
|
||||
ElementCollectionItem *m_item_at_context_menu;
|
||||
QModelIndex m_index_at_context_menu;
|
||||
QProgressBar *m_progress_bar;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user