mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-05 03:39:58 +02:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user