mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-15 14:39:58 +01:00
Conversion de NewElementWizard en QWizard
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@115 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -16,7 +16,7 @@ class ElementsCategoriesWidget;
|
||||
class NamesListWidget;
|
||||
class OrientationSetWidget;
|
||||
class HotspotEditor;
|
||||
class NewElementWizard : public QDialog {
|
||||
class NewElementWizard : public QWizard {
|
||||
Q_OBJECT
|
||||
|
||||
// constructeurs, destructeur
|
||||
@@ -30,34 +30,24 @@ class NewElementWizard : public QDialog {
|
||||
// attributs
|
||||
private:
|
||||
enum WizardState { Category, Filename, Names, Dimensions, Orientations };
|
||||
QString str_next, str_previous, str_finish;
|
||||
QWidget *step1, *step2, *step3, *step4, *step5;
|
||||
ElementsCategoriesWidget* categories_list;
|
||||
QLineEdit *qle_filename;
|
||||
NamesListWidget *element_names;
|
||||
OrientationSetWidget *orientation_set;
|
||||
HotspotEditor *hotspot_editor;
|
||||
QPushButton *button_previous;
|
||||
QPushButton *button_next;
|
||||
WizardState current_state;
|
||||
QString chosen_file;
|
||||
|
||||
// methodes
|
||||
private:
|
||||
void buildStep1();
|
||||
void buildStep2();
|
||||
void buildStep3();
|
||||
void buildStep4();
|
||||
void buildStep5();
|
||||
QWizardPage *buildStep1();
|
||||
QWizardPage *buildStep2();
|
||||
QWizardPage *buildStep3();
|
||||
QWizardPage *buildStep4();
|
||||
QWizardPage *buildStep5();
|
||||
bool validStep1();
|
||||
bool validStep2();
|
||||
bool validStep3();
|
||||
bool validStep4();
|
||||
bool validStep5();
|
||||
bool validateCurrentPage();
|
||||
void createNewElement();
|
||||
|
||||
public slots:
|
||||
void previous();
|
||||
void next();
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user