QElectroTech 0.100.0-dev
|
The NumPartEditorW class This class represent a single part num widget. By this widget, we can define and edit how the num auto must work. This widget is called by selectautonumw. More...
#include <numparteditorw.h>
Inherits QWidget.
Public Types | |
enum | type { unit , unitfolio , ten , tenfolio , hundred , hundredfolio , string , idfolio , folio , plant , locmach , elementline , elementcolumn , elementprefix } |
Signals | |
void | changed () |
Public Member Functions | |
NumPartEditorW (int type, QWidget *parent=nullptr) | |
NumPartEditorW::NumPartEditorW Constructor. | |
NumPartEditorW (NumerotationContext &, int, int type, QWidget *parent=nullptr) | |
NumPartEditorW::NumPartEditorW Constructor Build with value of context at position i. | |
~NumPartEditorW () override | |
NumerotationContext | toNumContext () |
NumPartEditorW::toNumContext. | |
bool | isValid () |
NumPartEditorW::isValid. | |
Public Attributes | |
type | type_ |
Private Slots | |
void | on_type_cb_activated (int) |
NumPartEditorW::on_type_cb_activated Action when user change the type comboBox. | |
void | on_value_field_textEdited () |
NumPartEditorW::on_value_field_textChanged emit changed when value_field text changed. | |
void | on_increase_spinBox_valueChanged (int) |
NumPartEditorW::on_increase_spinBox_valueChanged emit changed when increase_spinBox value changed. | |
void | setType (NumPartEditorW::type t, bool=false) |
NumPartEditorW::setType Set good behavior by type t. | |
Private Member Functions | |
void | setVisibleItems () |
void | disableItem (int index) |
void | setCurrentIndex (NumPartEditorW::type) |
NumPartEditorW::setCurrentIndex Set Current Index of type_cb. | |
Private Attributes | |
Ui::NumPartEditorW * | ui |
QValidator * | intValidator |
int | m_edited_type = -1 |
0 == element : 1 == conductor : 2 == folio | |
The NumPartEditorW class This class represent a single part num widget. By this widget, we can define and edit how the num auto must work. This widget is called by selectautonumw.
enum NumPartEditorW::type |
|
explicit |
NumPartEditorW::NumPartEditorW Constructor.
type | |
parent |
NumPartEditorW::NumPartEditorW | ( | NumerotationContext & | context, |
int | i, | ||
int | type, | ||
QWidget * | parent = nullptr |
||
) |
NumPartEditorW::NumPartEditorW Constructor Build with value of context at position i.
context | |
i | |
type | |
parent |
|
override |
Destructor
|
signal |
|
private |
bool NumPartEditorW::isValid | ( | ) |
|
privateslot |
NumPartEditorW::on_increase_spinBox_valueChanged emit changed when increase_spinBox value changed.
|
privateslot |
NumPartEditorW::on_type_cb_activated Action when user change the type comboBox.
|
privateslot |
NumPartEditorW::on_value_field_textChanged emit changed when value_field text changed.
|
private |
NumPartEditorW::setCurrentIndex Set Current Index of type_cb.
t | : type used |
|
privateslot |
NumPartEditorW::setType Set good behavior by type t.
t | : type used |
fnum | : force the behavior of numeric type |
|
private |
NumerotationContext NumPartEditorW::toNumContext | ( | ) |
|
private |
|
private |
0 == element : 1 == conductor : 2 == folio
type NumPartEditorW::type_ |
|
private |