NewElementWizard class : remove the use of ElementsCategoriesWidget and ElementsCategory

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4483 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2016-05-14 17:10:03 +00:00
parent d36fe97611
commit 3261809227
6 changed files with 97 additions and 170 deletions

View File

@@ -17,11 +17,14 @@
*/
#ifndef NEW_ELEMENT_WIZARD_H
#define NEW_ELEMENT_WIZARD_H
#include <QtWidgets>
class ElementsCategoriesWidget;
class ElementsCategory;
#include <QWizard>
#include "elementslocation.h"
class NamesListWidget;
class QFileNameEdit;
class QTreeView;
/**
This class provides a wizard dialog enabling users to to specify the basic
parameters of the electrical elements they intend to draw.
@@ -42,20 +45,14 @@ class NewElementWizard : public QWizard {
private:
NewElementWizard(const NewElementWizard &);
// methods
public:
ElementsCategory *selectedCategory() const;
bool preselectCategory(ElementsCategory *);
// attributes
private:
enum WizardState { Category, Filename, Names };
ElementsCategoriesWidget *categories_list;
QFileNameEdit *qle_filename;
NamesListWidget *element_names;
WizardState current_state;
QString chosen_file;
ElementsCategory *chosen_category;
QFileNameEdit *m_qle_filename;
NamesListWidget *m_names_list;
QString m_chosen_file;
QTreeView *m_tree_view = nullptr;
ElementsLocation m_chosen_location;
// methods
private: