Refactoring: added the class GenericPanel, which provides most functions for ElementsPanel, ElementsCategoriesList, and any future panel-like widget.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1490 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2012-02-06 21:21:43 +00:00
parent 4adbba85df
commit 7ca84724ae
16 changed files with 1558 additions and 1150 deletions

View File

@@ -51,9 +51,9 @@ ElementDialog::ElementDialog(uint mode, QWidget *parentWidget, QObject *parent)
int selectables = 0;
switch(mode_) {
case OpenElement: selectables = QET::Element; break;
case SaveElement: selectables = QET::All; break;
case OpenCategory: selectables = QET::Category | QET::Collection; break;
case SaveCategory: selectables = QET::Category | QET::Collection; break;
case SaveElement: selectables = QET::ElementsCollectionItem; break;
case OpenCategory: selectables = QET::ElementsContainer; break;
case SaveCategory: selectables = QET::ElementsContainer; break;
}
list_ = new ElementsCategoriesList(display_elements, selectables);
connect(list_, SIGNAL(locationChanged(const ElementsLocation &)), this, SLOT(locationChanged(const ElementsLocation &)));