QElectroTech
0.70
|
#include <newelementwizard.h>
Public Member Functions | |
NewElementWizard (QWidget *=nullptr, Qt::WindowFlags=nullptr) | |
~NewElementWizard () override | |
void | preselectedLocation (const ElementsLocation &location) |
NewElementWizard::preselectedLocation Select item in the tree view represented by location,. More... | |
Private Types | |
enum | WizardState { Category, Filename, Names } |
Private Member Functions | |
NewElementWizard (const NewElementWizard &) | |
QWizardPage * | buildStep1 () |
NewElementWizard::buildStep1. More... | |
QWizardPage * | buildStep2 () |
NewElementWizard::buildStep2. More... | |
QWizardPage * | buildStep3 () |
NewElementWizard::buildStep3. More... | |
bool | validStep1 () |
NewElementWizard::validStep1 Valid the setp 1. More... | |
bool | validStep2 () |
NewElementWizard::validStep2 Valid the step 2. More... | |
bool | validateCurrentPage () override |
NewElementWizard::validateCurrentPage. More... | |
void | createNewElement () |
NewElementWizard::createNewElement Lauch an element editor for create the new element. More... | |
Private Attributes | |
QFileNameEdit * | m_qle_filename |
NameListWidget * | m_names_list |
QString | m_chosen_file |
QTreeView * | m_tree_view = nullptr |
ElementsLocation | m_chosen_location |
ElementsCollectionModel * | m_model = nullptr |
This class provides a wizard dialog enabling users to to specify the basic parameters of the electrical elements they intend to draw.
These parameters include:
Definition at line 38 of file newelementwizard.h.
|
private |
Enumerator | |
---|---|
Category | |
Filename | |
Names |
Definition at line 54 of file newelementwizard.h.
NewElementWizard::NewElementWizard | ( | QWidget * | parent = nullptr , |
Qt::WindowFlags | f = nullptr |
||
) |
Constructeur
parent | QWidget parent de ce dialogue |
f | flags pour le dialogue |
Definition at line 31 of file newelementwizard.cpp.
References buildStep1(), buildStep2(), buildStep3(), and QET::Icons::tr.
|
override |
Destructeur
Definition at line 54 of file newelementwizard.cpp.
|
private |
|
private |
Definition at line 75 of file newelementwizard.cpp.
References ElementsCollectionModel::addCustomCollection(), Category, ElementsCollectionModel::hideElement(), m_model, m_tree_view, and QET::Icons::tr.
Referenced by NewElementWizard().
|
private |
Definition at line 102 of file newelementwizard.cpp.
References Filename, m_qle_filename, and QET::Icons::tr.
Referenced by NewElementWizard().
|
private |
Definition at line 126 of file newelementwizard.cpp.
References NamesList::addName(), m_names_list, Names, and QET::Icons::tr.
Referenced by NewElementWizard().
|
private |
NewElementWizard::createNewElement Lauch an element editor for create the new element.
Definition at line 236 of file newelementwizard.cpp.
References ElementsLocation::addToPath(), m_chosen_file, m_chosen_location, and m_names_list.
Referenced by validateCurrentPage().
void NewElementWizard::preselectedLocation | ( | const ElementsLocation & | location | ) |
NewElementWizard::preselectedLocation Select item in the tree view represented by location,.
location |
Definition at line 62 of file newelementwizard.cpp.
References ElementsCollectionModel::indexFromLocation(), m_model, and m_tree_view.
Referenced by ElementsCollectionWidget::newElement().
|
overrideprivate |
NewElementWizard::validateCurrentPage.
Definition at line 147 of file newelementwizard.cpp.
References Category, createNewElement(), Filename, NameListWidget::isEmpty(), m_names_list, Names, validStep1(), and validStep2().
|
private |
NewElementWizard::validStep1 Valid the setp 1.
Definition at line 173 of file newelementwizard.cpp.
References ElementCollectionItem::collectionPath(), QET::QetMessageBox::critical(), ElementCollectionItem::isDir(), m_chosen_location, m_model, m_tree_view, and QET::Icons::tr.
Referenced by validateCurrentPage().
|
private |
NewElementWizard::validStep2 Valid the step 2.
Definition at line 205 of file newelementwizard.cpp.
References ElementsLocation::addToPath(), QET::QetMessageBox::critical(), ElementsLocation::exist(), m_chosen_file, m_chosen_location, m_qle_filename, and QET::Icons::tr.
Referenced by validateCurrentPage().
|
private |
Definition at line 57 of file newelementwizard.h.
Referenced by createNewElement(), and validStep2().
|
private |
Definition at line 59 of file newelementwizard.h.
Referenced by createNewElement(), validStep1(), and validStep2().
|
private |
Definition at line 60 of file newelementwizard.h.
Referenced by buildStep1(), preselectedLocation(), and validStep1().
|
private |
Definition at line 56 of file newelementwizard.h.
Referenced by buildStep3(), createNewElement(), and validateCurrentPage().
|
private |
Definition at line 55 of file newelementwizard.h.
Referenced by buildStep2(), and validStep2().
|
private |
Definition at line 58 of file newelementwizard.h.
Referenced by buildStep1(), preselectedLocation(), and validStep1().