QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
NewElementWizard Class Reference

#include <newelementwizard.h>

Inherits QWizard.

Collaboration diagram for NewElementWizard:
Collaboration graph

Public Member Functions

 NewElementWizard (QWidget *=nullptr, Qt::WindowFlags=Qt::Widget)
 ~NewElementWizard () override
void preselectedLocation (const ElementsLocation &location)
 NewElementWizard::preselectedLocation Select item in the tree view represented by location,.

Private Types

enum  WizardState { Category , Filename , Names }

Private Member Functions

 NewElementWizard (const NewElementWizard &)
QWizardPage * buildStep1 ()
 NewElementWizard::buildStep1.
QWizardPage * buildStep2 ()
 NewElementWizard::buildStep2.
QWizardPage * buildStep3 ()
 NewElementWizard::buildStep3.
bool validStep1 ()
 NewElementWizard::validStep1 Valid the setp 1.
bool validStep2 ()
 NewElementWizard::validStep2 Valid the step 2.
bool validateCurrentPage () override
 NewElementWizard::validateCurrentPage.
void createNewElement ()
 NewElementWizard::createNewElement Launch an element editor to create the new element.

Private Attributes

QFileNameEditm_qle_filename
NameListWidgetm_names_list
QString m_chosen_file
QTreeView * m_tree_view = nullptr
ElementsLocation m_chosen_location
ElementsCollectionModelm_model = nullptr

Detailed Description

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:

  • the category the element should be saved to
  • the filename the element should be saved to
  • localized names

Member Enumeration Documentation

◆ WizardState

Enumerator
Category 
Filename 
Names 

Constructor & Destructor Documentation

◆ NewElementWizard() [1/2]

NewElementWizard::NewElementWizard ( QWidget * parent = nullptr,
Qt::WindowFlags f = Qt::Widget )

Constructeur

Parameters
parentQWidget parent de ce dialogue
fflags pour le dialogue
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~NewElementWizard()

NewElementWizard::~NewElementWizard ( )
override

Destructeur

◆ NewElementWizard() [2/2]

NewElementWizard::NewElementWizard ( const NewElementWizard & )
private
Here is the call graph for this function:

Member Function Documentation

◆ buildStep1()

QWizardPage * NewElementWizard::buildStep1 ( )
private

NewElementWizard::buildStep1.

Returns
Here is the caller graph for this function:

◆ buildStep2()

QWizardPage * NewElementWizard::buildStep2 ( )
private

NewElementWizard::buildStep2.

Returns
Here is the caller graph for this function:

◆ buildStep3()

QWizardPage * NewElementWizard::buildStep3 ( )
private

NewElementWizard::buildStep3.

Returns
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createNewElement()

void NewElementWizard::createNewElement ( )
private

NewElementWizard::createNewElement Launch an element editor to create the new element.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ preselectedLocation()

void NewElementWizard::preselectedLocation ( const ElementsLocation & location)

NewElementWizard::preselectedLocation Select item in the tree view represented by location,.

Parameters
location
Here is the caller graph for this function:

◆ validateCurrentPage()

bool NewElementWizard::validateCurrentPage ( )
overrideprivate

NewElementWizard::validateCurrentPage.

Returns
true if the current step is valid
Here is the call graph for this function:

◆ validStep1()

bool NewElementWizard::validStep1 ( )
private

NewElementWizard::validStep1 Valid the setp 1.

Returns
trie if the step is valid.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ validStep2()

bool NewElementWizard::validStep2 ( )
private

NewElementWizard::validStep2 Valid the step 2.

Returns
true if step is valid
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_chosen_file

QString NewElementWizard::m_chosen_file
private

◆ m_chosen_location

ElementsLocation NewElementWizard::m_chosen_location
private

◆ m_model

ElementsCollectionModel* NewElementWizard::m_model = nullptr
private

◆ m_names_list

NameListWidget* NewElementWizard::m_names_list
private

◆ m_qle_filename

QFileNameEdit* NewElementWizard::m_qle_filename
private

◆ m_tree_view

QTreeView* NewElementWizard::m_tree_view = nullptr
private

The documentation for this class was generated from the following files: