QElectroTech
0.70
|
#include <selectautonumw.h>
Signals | |
void | applyPressed () |
void | removeClicked () |
Public Member Functions | |
SelectAutonumW (int type, QWidget *parent=nullptr) | |
SelectAutonumW (const NumerotationContext &context, int type, QWidget *parent=nullptr) | |
~SelectAutonumW () override | |
void | setContext (const NumerotationContext &context) |
SelectAutonumW::setCurrentContext build the context of current diagram selected in the QcomboBox. More... | |
NumerotationContext | toNumContext () const |
SelectAutonumW::toNumContext. More... | |
void | contextToFormula () |
SelectAutonumW::contextToFormula Apply formula to ElementAutonumbering Widget. More... | |
QString | formula () |
SelectAutonumW::formula. More... | |
QComboBox * | contextComboBox () const |
Private Slots | |
void | on_add_button_clicked () |
SelectAutonumW::on_add_button_clicked Action on add_button, add a . More... | |
void | on_remove_button_clicked () |
SelectAutonumW::on_remove_button_clicked Action on remove button, remove the last . More... | |
void | on_buttonBox_clicked (QAbstractButton *) |
SelectAutonumW::on_buttonBox_clicked Action on clicked. More... | |
void | applyEnable (bool=true) |
SelectAutonumW::applyEnable enable/disable the apply button. More... | |
void | on_m_next_pb_clicked () |
SelectAutonumW::on_m_next_pb_clicked Increase NumerotationContext. More... | |
void | on_m_previous_pb_clicked () |
SelectAutonumW::on_m_previous_pb_clicked Decrease NumerotationContext. More... | |
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 |
FormulaAutonumberingW * | m_feaw |
FormulaAutonumberingW * | m_fcaw |
int | m_edited_type = -1 |
Definition at line 34 of file selectautonumw.h.
|
explicit |
Constructor
Definition at line 30 of file selectautonumw.cpp.
References m_edited_type, m_fcaw, m_feaw, setContext(), FormulaAutonumberingW::ui, and ui.
|
explicit |
Definition at line 53 of file selectautonumw.cpp.
References m_edited_type, m_fcaw, m_feaw, setContext(), FormulaAutonumberingW::ui, and ui.
|
override |
|
privateslot |
SelectAutonumW::applyEnable enable/disable the apply button.
Definition at line 239 of file selectautonumw.cpp.
References contextToFormula(), m_edited_type, num_part_list_, and ui.
Referenced by on_add_button_clicked(), on_buttonBox_clicked(), on_m_comboBox_currentTextChanged(), on_m_next_pb_clicked(), on_m_previous_pb_clicked(), on_remove_button_clicked(), and setContext().
|
signal |
Referenced by ProjectAutoNumConfigPage::buildConnections(), and on_buttonBox_clicked().
QComboBox * SelectAutonumW::contextComboBox | ( | ) | const |
Definition at line 166 of file selectautonumw.cpp.
References ui.
Referenced by ProjectAutoNumConfigPage::buildConnections(), ProjectAutoNumConfigPage::readValuesFromProject(), ProjectAutoNumConfigPage::removeContextConductor(), ProjectAutoNumConfigPage::removeContextElement(), ProjectAutoNumConfigPage::removeContextFolio(), ProjectAutoNumConfigPage::saveContextConductor(), ProjectAutoNumConfigPage::saveContextElement(), and ProjectAutoNumConfigPage::saveContextFolio().
void SelectAutonumW::contextToFormula | ( | ) |
SelectAutonumW::contextToFormula Apply formula to ElementAutonumbering Widget.
Definition at line 258 of file selectautonumw.cpp.
References FormulaAutonumberingW::clearContext(), m_edited_type, m_fcaw, m_feaw, autonum::numerotationContextToFormula(), FormulaAutonumberingW::setContext(), and toNumContext().
Referenced by applyEnable().
QString SelectAutonumW::formula | ( | ) |
Definition at line 156 of file selectautonumw.cpp.
References FormulaAutonumberingW::formula(), m_edited_type, m_fcaw, and m_feaw.
|
privateslot |
SelectAutonumW::on_add_button_clicked Action on add_button, add a .
Definition at line 125 of file selectautonumw.cpp.
References applyEnable(), m_edited_type, num_part_list_, and ui.
Referenced by setContext().
|
privateslot |
SelectAutonumW::on_buttonBox_clicked Action on clicked.
Definition at line 175 of file selectautonumw.cpp.
References applyEnable(), applyPressed(), QET::QetMessageBox::information(), m_context, m_edited_type, setContext(), QET::Icons::tr, and ui.
|
privateslot |
Definition at line 295 of file selectautonumw.cpp.
References applyEnable().
|
privateslot |
SelectAutonumW::on_m_next_pb_clicked Increase NumerotationContext.
Definition at line 277 of file selectautonumw.cpp.
References applyEnable(), NumerotationContextCommands::next(), setContext(), and toNumContext().
|
privateslot |
SelectAutonumW::on_m_previous_pb_clicked Decrease NumerotationContext.
Definition at line 288 of file selectautonumw.cpp.
References applyEnable(), NumerotationContextCommands::previous(), setContext(), and toNumContext().
|
privateslot |
Definition at line 301 of file selectautonumw.cpp.
References removeClicked().
|
privateslot |
SelectAutonumW::on_remove_button_clicked Action on remove button, remove the last .
Definition at line 139 of file selectautonumw.cpp.
References applyEnable(), num_part_list_, and ui.
|
signal |
Referenced by ProjectAutoNumConfigPage::buildConnections(), and on_m_remove_pb_clicked().
void SelectAutonumW::setContext | ( | const NumerotationContext & | context | ) |
SelectAutonumW::setCurrentContext build the context of current diagram selected in the QcomboBox.
Definition at line 86 of file selectautonumw.cpp.
References applyEnable(), m_context, m_edited_type, num_part_list_, on_add_button_clicked(), NumerotationContext::size(), and ui.
Referenced by on_buttonBox_clicked(), on_m_next_pb_clicked(), on_m_previous_pb_clicked(), SelectAutonumW(), ProjectAutoNumConfigPage::updateContextConductor(), ProjectAutoNumConfigPage::updateContextElement(), and ProjectAutoNumConfigPage::updateContextFolio().
NumerotationContext SelectAutonumW::toNumContext | ( | ) | const |
Definition at line 115 of file selectautonumw.cpp.
References num_part_list_.
Referenced by contextToFormula(), on_m_next_pb_clicked(), on_m_previous_pb_clicked(), ProjectAutoNumConfigPage::saveContextConductor(), ProjectAutoNumConfigPage::saveContextElement(), and ProjectAutoNumConfigPage::saveContextFolio().
|
private |
Definition at line 70 of file selectautonumw.h.
Referenced by on_buttonBox_clicked(), and setContext().
|
private |
Definition at line 73 of file selectautonumw.h.
Referenced by applyEnable(), contextToFormula(), formula(), on_add_button_clicked(), on_buttonBox_clicked(), SelectAutonumW(), and setContext().
|
private |
Definition at line 72 of file selectautonumw.h.
Referenced by contextToFormula(), formula(), and SelectAutonumW().
|
private |
Definition at line 71 of file selectautonumw.h.
Referenced by contextToFormula(), formula(), and SelectAutonumW().
|
private |
Definition at line 69 of file selectautonumw.h.
Referenced by applyEnable(), on_add_button_clicked(), on_remove_button_clicked(), setContext(), and toNumContext().
|
private |
Definition at line 68 of file selectautonumw.h.
Referenced by applyEnable(), contextComboBox(), on_add_button_clicked(), on_buttonBox_clicked(), on_remove_button_clicked(), SelectAutonumW(), setContext(), and ~SelectAutonumW().