QElectroTech
0.70
|
#include <numparteditorw.h>
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 (NumerotationContext &, int, int type, QWidget *parent=nullptr) | |
~NumPartEditorW () override | |
NumerotationContext | toNumContext () |
NumPartEditorW::toNumContext. More... | |
bool | isValid () |
NumPartEditorW::isValid. More... | |
Public Attributes | |
type | type_ |
Private Slots | |
void | on_type_cb_activated (int) |
NumPartEditorW::on_type_cb_activated Action when user change the type comboBox. More... | |
void | on_value_field_textEdited () |
NumPartEditorW::on_value_field_textChanged emit changed when text changed. More... | |
void | on_increase_spinBox_valueChanged (int) |
NumPartEditorW::on_increase_spinBox_valueChanged emit changed when value changed. More... | |
void | setType (NumPartEditorW::type t, bool=false) |
NumPartEditorW::setType Set good behavior by type . More... | |
Private Member Functions | |
void | setVisibleItems () |
void | disableItem (int index) |
void | setCurrentIndex (NumPartEditorW::type) |
NumPartEditorW::setCurrentIndex Set Current Index of type_cb. More... | |
Private Attributes | |
Ui::NumPartEditorW * | ui |
QValidator * | intValidator |
int | m_edited_type = -1 |
Definition at line 34 of file numparteditorw.h.
enum NumPartEditorW::type |
Enumerator | |
---|---|
unit | |
unitfolio | |
ten | |
tenfolio | |
hundred | |
hundredfolio | |
string | |
idfolio | |
folio | |
plant | |
locmach | |
elementline | |
elementcolumn | |
elementprefix |
Definition at line 44 of file numparteditorw.h.
|
explicit |
Constructor
Definition at line 25 of file numparteditorw.cpp.
References setType(), setVisibleItems(), ui, and unit.
NumPartEditorW::NumPartEditorW | ( | NumerotationContext & | context, |
int | i, | ||
int | type, | ||
QWidget * | parent = nullptr |
||
) |
Constructor Build with value of at position i
Definition at line 40 of file numparteditorw.cpp.
References elementcolumn, elementline, elementprefix, folio, hundred, hundredfolio, idfolio, NumerotationContext::itemAt(), locmach, plant, setType(), setVisibleItems(), NumerotationContext::size(), string, ten, tenfolio, ui, unit, and unitfolio.
|
override |
|
signal |
Referenced by on_increase_spinBox_valueChanged(), on_type_cb_activated(), and on_value_field_textEdited().
|
private |
bool NumPartEditorW::isValid | ( | ) |
Definition at line 166 of file numparteditorw.cpp.
References elementcolumn, elementline, elementprefix, folio, idfolio, locmach, plant, type_, and ui.
|
privateslot |
NumPartEditorW::on_increase_spinBox_valueChanged emit changed when value changed.
Definition at line 221 of file numparteditorw.cpp.
|
privateslot |
NumPartEditorW::on_type_cb_activated Action when user change the type comboBox.
Definition at line 177 of file numparteditorw.cpp.
References changed(), elementcolumn, elementline, elementprefix, folio, hundred, hundredfolio, idfolio, locmach, plant, setType(), ten, tenfolio, QET::Icons::tr, ui, unit, and unitfolio.
|
privateslot |
NumPartEditorW::on_value_field_textChanged emit changed when text changed.
Definition at line 213 of file numparteditorw.cpp.
References changed().
|
private |
NumPartEditorW::setCurrentIndex Set Current Index of type_cb.
t,type | used |
Definition at line 292 of file numparteditorw.cpp.
References elementcolumn, elementline, elementprefix, folio, hundred, hundredfolio, idfolio, locmach, plant, ten, tenfolio, QET::Icons::tr, ui, unit, and unitfolio.
Referenced by setType().
|
privateslot |
NumPartEditorW::setType Set good behavior by type .
t,type | used |
fnum,force | the behavior of numeric type |
Definition at line 231 of file numparteditorw.cpp.
References elementcolumn, elementline, elementprefix, folio, hundred, hundredfolio, idfolio, intValidator, locmach, plant, setCurrentIndex(), ten, tenfolio, type_, ui, unit, and unitfolio.
Referenced by NumPartEditorW(), and on_type_cb_activated().
|
private |
Definition at line 80 of file numparteditorw.cpp.
References m_edited_type, QET::Icons::tr, and ui.
Referenced by NumPartEditorW().
NumerotationContext NumPartEditorW::toNumContext | ( | ) |
Definition at line 108 of file numparteditorw.cpp.
References NumerotationContext::addValue(), elementcolumn, elementline, elementprefix, folio, hundred, hundredfolio, idfolio, locmach, plant, string, ten, tenfolio, type_, ui, unit, and unitfolio.
|
private |
Definition at line 68 of file numparteditorw.h.
Referenced by setType(), and ~NumPartEditorW().
|
private |
Definition at line 69 of file numparteditorw.h.
Referenced by setVisibleItems().
type NumPartEditorW::type_ |
Definition at line 50 of file numparteditorw.h.
Referenced by isValid(), setType(), and toNumContext().
|
private |
Definition at line 67 of file numparteditorw.h.
Referenced by isValid(), NumPartEditorW(), on_increase_spinBox_valueChanged(), on_type_cb_activated(), setCurrentIndex(), setType(), setVisibleItems(), toNumContext(), and ~NumPartEditorW().