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

The SelectAutonumW class. More...

#include <selectautonumw.h>

Inherits QWidget.

Collaboration diagram for SelectAutonumW:
Collaboration graph

Signals

void applyPressed ()
void removeClicked ()

Public Member Functions

 SelectAutonumW (int type, QWidget *parent=nullptr)
 SelectAutonumW::SelectAutonumW Constructor.
 SelectAutonumW (const NumerotationContext &context, int type, QWidget *parent=nullptr)
 SelectAutonumW::SelectAutonumW Constructor.
 ~SelectAutonumW () override
 SelectAutonumW::~SelectAutonumW Destructor.
void setContext (const NumerotationContext &context)
 SelectAutonumW::setContext build the context of current diagram selected in the diagram_chooser QcomboBox.
NumerotationContext toNumContext () const
 SelectAutonumW::toNumContext.
void contextToFormula ()
 SelectAutonumW::contextToFormula Apply formula to ElementAutonumbering Widget.
QString formula ()
 SelectAutonumW::formula.
QComboBox * contextComboBox () const

Private Slots

void on_add_button_clicked ()
 SelectAutonumW::on_add_button_clicked Action on add_button, add a NumPartEditor.
void on_remove_button_clicked ()
 SelectAutonumW::on_remove_button_clicked Action on remove button, remove the last NumPartEditor.
void on_buttonBox_clicked (QAbstractButton *)
 SelectAutonumW::on_buttonBox_clicked Action on button clicked.
void applyEnable (bool=true)
 SelectAutonumW::applyEnable enable/disable the apply button.
void on_m_next_pb_clicked ()
 SelectAutonumW::on_m_next_pb_clicked Increase NumerotationContext.
void on_m_previous_pb_clicked ()
 SelectAutonumW::on_m_previous_pb_clicked Decrease NumerotationContext.
void on_m_comboBox_currentTextChanged (const QString &arg1)
void on_m_remove_pb_clicked ()

Private Attributes

Ui::SelectAutonumW * ui
QList< NumPartEditorW * > num_part_list_
NumerotationContext m_context
FormulaAutonumberingWm_feaw
FormulaAutonumberingWm_fcaw
int m_edited_type = -1
 0 == element : 1 == conductor : 2 == folio

Detailed Description

The SelectAutonumW class.

Constructor & Destructor Documentation

◆ SelectAutonumW() [1/2]

SelectAutonumW::SelectAutonumW ( int type,
QWidget * parent = nullptr )
explicit

SelectAutonumW::SelectAutonumW Constructor.

Parameters
type: int m_edited_type
parent: QWidget
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SelectAutonumW() [2/2]

SelectAutonumW::SelectAutonumW ( const NumerotationContext & context,
int type,
QWidget * parent = nullptr )
explicit

SelectAutonumW::SelectAutonumW Constructor.

Parameters
context: NumerotationContext
type: int m_edited_type
parent: QWidget
Here is the call graph for this function:

◆ ~SelectAutonumW()

SelectAutonumW::~SelectAutonumW ( )
override

Member Function Documentation

◆ applyEnable

void SelectAutonumW::applyEnable ( bool b = true)
privateslot

SelectAutonumW::applyEnable enable/disable the apply button.

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

◆ applyPressed

void SelectAutonumW::applyPressed ( )
signal
Here is the caller graph for this function:

◆ contextComboBox()

QComboBox * SelectAutonumW::contextComboBox ( ) const

◆ contextToFormula()

void SelectAutonumW::contextToFormula ( )

SelectAutonumW::contextToFormula Apply formula to ElementAutonumbering Widget.

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

◆ formula()

QString SelectAutonumW::formula ( )

SelectAutonumW::formula.

Returns
autonumbering widget formula

◆ on_add_button_clicked

void SelectAutonumW::on_add_button_clicked ( )
privateslot

SelectAutonumW::on_add_button_clicked Action on add_button, add a NumPartEditor.

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

◆ on_buttonBox_clicked

void SelectAutonumW::on_buttonBox_clicked ( QAbstractButton * button)
privateslot

SelectAutonumW::on_buttonBox_clicked Action on button clicked.

Parameters
button
Here is the call graph for this function:

◆ on_m_comboBox_currentTextChanged

void SelectAutonumW::on_m_comboBox_currentTextChanged ( const QString & arg1)
privateslot
Here is the call graph for this function:

◆ on_m_next_pb_clicked

void SelectAutonumW::on_m_next_pb_clicked ( )
privateslot

SelectAutonumW::on_m_next_pb_clicked Increase NumerotationContext.

Here is the call graph for this function:

◆ on_m_previous_pb_clicked

void SelectAutonumW::on_m_previous_pb_clicked ( )
privateslot

SelectAutonumW::on_m_previous_pb_clicked Decrease NumerotationContext.

Here is the call graph for this function:

◆ on_m_remove_pb_clicked

void SelectAutonumW::on_m_remove_pb_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_remove_button_clicked

void SelectAutonumW::on_remove_button_clicked ( )
privateslot

SelectAutonumW::on_remove_button_clicked Action on remove button, remove the last NumPartEditor.

Here is the call graph for this function:

◆ removeClicked

void SelectAutonumW::removeClicked ( )
signal
Here is the caller graph for this function:

◆ setContext()

void SelectAutonumW::setContext ( const NumerotationContext & context)

SelectAutonumW::setContext build the context of current diagram selected in the diagram_chooser QcomboBox.

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

◆ toNumContext()

NumerotationContext SelectAutonumW::toNumContext ( ) const

SelectAutonumW::toNumContext.

Returns
the content to num_part_list to NumerotationContext
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_context

NumerotationContext SelectAutonumW::m_context
private

◆ m_edited_type

int SelectAutonumW::m_edited_type = -1
private

0 == element : 1 == conductor : 2 == folio

◆ m_fcaw

FormulaAutonumberingW* SelectAutonumW::m_fcaw
private

◆ m_feaw

FormulaAutonumberingW* SelectAutonumW::m_feaw
private

◆ num_part_list_

QList<NumPartEditorW *> SelectAutonumW::num_part_list_
private

◆ ui

Ui::SelectAutonumW* SelectAutonumW::ui
private

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