mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-01 09:09:58 +01:00
Mod doc set style de same
This commit is contained in:
@@ -25,10 +25,10 @@
|
||||
#include "projectpropertiesdialog.h"
|
||||
|
||||
/**
|
||||
* @brief AutoNumberingDockWidget::AutoNumberingDockWidget
|
||||
* Constructor
|
||||
* @param parent : parent widget
|
||||
*/
|
||||
@brief AutoNumberingDockWidget::AutoNumberingDockWidget
|
||||
Constructor
|
||||
@param parent : parent widget
|
||||
*/
|
||||
AutoNumberingDockWidget::AutoNumberingDockWidget(QWidget *parent) :
|
||||
QDockWidget(parent),
|
||||
ui(new Ui::AutoNumberingDockWidget)
|
||||
@@ -38,9 +38,9 @@ AutoNumberingDockWidget::AutoNumberingDockWidget(QWidget *parent) :
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief AutoNumberingDockWidget::~AutoNumberingDockWidget
|
||||
* Destructor
|
||||
*/
|
||||
@brief AutoNumberingDockWidget::~AutoNumberingDockWidget
|
||||
Destructor
|
||||
*/
|
||||
AutoNumberingDockWidget::~AutoNumberingDockWidget()
|
||||
{
|
||||
this->disconnect();
|
||||
@@ -48,9 +48,9 @@ AutoNumberingDockWidget::~AutoNumberingDockWidget()
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief AutoNumberingDockWidget::clear
|
||||
* Remove all combo box values
|
||||
*/
|
||||
@brief AutoNumberingDockWidget::clear
|
||||
Remove all combo box values
|
||||
*/
|
||||
void AutoNumberingDockWidget::clear()
|
||||
{
|
||||
ui->m_conductor_cb->clear();
|
||||
@@ -67,11 +67,11 @@ void AutoNumberingDockWidget::projectClosed()
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief AutoNumberingDockWidget::setProject
|
||||
* @param project: project to be setted
|
||||
* @param projectview: projectview to be setted
|
||||
* assign Project and ProjectView, connect all signals and setContext
|
||||
*/
|
||||
@brief AutoNumberingDockWidget::setProject
|
||||
@param project: project to be setted
|
||||
@param projectview: projectview to be setted
|
||||
assign Project and ProjectView, connect all signals and setContext
|
||||
*/
|
||||
void AutoNumberingDockWidget::setProject(QETProject *project, ProjectView *projectview)
|
||||
{
|
||||
//Disconnect previous project
|
||||
@@ -133,9 +133,9 @@ void AutoNumberingDockWidget::setProject(QETProject *project, ProjectView *proje
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief AutoNumberingDockWidget::setContext
|
||||
* Add all itens to comboboxes
|
||||
*/
|
||||
@brief AutoNumberingDockWidget::setContext
|
||||
Add all itens to comboboxes
|
||||
*/
|
||||
void AutoNumberingDockWidget::setContext() {
|
||||
|
||||
this->clear();
|
||||
@@ -165,9 +165,9 @@ void AutoNumberingDockWidget::setContext() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief AutoNumberingDockWidget::setConductorActive
|
||||
* @param dv: activated diagramview
|
||||
*/
|
||||
@brief AutoNumberingDockWidget::setConductorActive
|
||||
@param dv: activated diagramview
|
||||
*/
|
||||
void AutoNumberingDockWidget::setConductorActive(DiagramView* dv) {
|
||||
if (dv!=nullptr) {
|
||||
QString conductor_autonum = dv->diagram()->conductorsAutonumName();
|
||||
@@ -177,9 +177,9 @@ void AutoNumberingDockWidget::setConductorActive(DiagramView* dv) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief AutoNumberingDockWidget::setActive
|
||||
* Set current used autonumberings
|
||||
*/
|
||||
@brief AutoNumberingDockWidget::setActive
|
||||
Set current used autonumberings
|
||||
*/
|
||||
void AutoNumberingDockWidget::setActive() {
|
||||
|
||||
if (m_project_view!=nullptr) {
|
||||
@@ -206,9 +206,9 @@ void AutoNumberingDockWidget::setActive() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief AutoNumberingDockWidget::conductorAutoNumChanged
|
||||
* Add new or remove conductor auto num from combobox
|
||||
*/
|
||||
@brief AutoNumberingDockWidget::conductorAutoNumChanged
|
||||
Add new or remove conductor auto num from combobox
|
||||
*/
|
||||
void AutoNumberingDockWidget::conductorAutoNumChanged() {
|
||||
ui->m_conductor_cb->clear();
|
||||
|
||||
@@ -222,10 +222,10 @@ void AutoNumberingDockWidget::conductorAutoNumChanged() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief AutoNumberingDockWidget::on_m_conductor_cb_activated
|
||||
* @param unused
|
||||
* Set new conductor AutoNum
|
||||
*/
|
||||
@brief AutoNumberingDockWidget::on_m_conductor_cb_activated
|
||||
@param unused
|
||||
Set new conductor AutoNum
|
||||
*/
|
||||
void AutoNumberingDockWidget::on_m_conductor_cb_activated(int)
|
||||
{
|
||||
QString current_autonum = ui->m_conductor_cb->currentText();
|
||||
@@ -236,9 +236,9 @@ void AutoNumberingDockWidget::on_m_conductor_cb_activated(int)
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief AutoNumberingDockWidget::elementAutoNumChanged
|
||||
* Add new or remove element auto num from combobox
|
||||
*/
|
||||
@brief AutoNumberingDockWidget::elementAutoNumChanged
|
||||
Add new or remove element auto num from combobox
|
||||
*/
|
||||
void AutoNumberingDockWidget::elementAutoNumChanged() {
|
||||
|
||||
ui->m_element_cb->clear();
|
||||
@@ -253,10 +253,10 @@ void AutoNumberingDockWidget::elementAutoNumChanged() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief AutoNumberingDockWidget::on_m_element_cb_activated
|
||||
* @param unused
|
||||
* Set new element AutoNum
|
||||
*/
|
||||
@brief AutoNumberingDockWidget::on_m_element_cb_activated
|
||||
@param unused
|
||||
Set new element AutoNum
|
||||
*/
|
||||
void AutoNumberingDockWidget::on_m_element_cb_activated(int)
|
||||
{
|
||||
m_project->setCurrrentElementAutonum(ui->m_element_cb->currentText());
|
||||
@@ -264,9 +264,9 @@ void AutoNumberingDockWidget::on_m_element_cb_activated(int)
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief AutoNumberingDockWidget::folioAutoNumChanged
|
||||
* Add new or remove folio auto num from combobox
|
||||
*/
|
||||
@brief AutoNumberingDockWidget::folioAutoNumChanged
|
||||
Add new or remove folio auto num from combobox
|
||||
*/
|
||||
void AutoNumberingDockWidget::folioAutoNumChanged() {
|
||||
|
||||
ui->m_folio_cb->clear();
|
||||
@@ -281,10 +281,10 @@ void AutoNumberingDockWidget::folioAutoNumChanged() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief AutoNumberingDockWidget::on_m_folio_cb_activated
|
||||
* @param unused
|
||||
* Set new folio AutoNum
|
||||
*/
|
||||
@brief AutoNumberingDockWidget::on_m_folio_cb_activated
|
||||
@param unused
|
||||
Set new folio AutoNum
|
||||
*/
|
||||
void AutoNumberingDockWidget::on_m_folio_cb_activated(int) {
|
||||
QString current_autonum = ui->m_folio_cb->currentText();
|
||||
TitleBlockProperties ip = m_project -> defaultTitleBlockProperties();
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
#include "qetproject.h"
|
||||
#include "diagram.h"
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
Constructor
|
||||
*/
|
||||
FolioAutonumberingW::FolioAutonumberingW(QETProject *project, QWidget *parent) :
|
||||
QWidget(parent),
|
||||
project_(project),
|
||||
@@ -39,56 +39,56 @@ FolioAutonumberingW::FolioAutonumberingW(QETProject *project, QWidget *parent) :
|
||||
}
|
||||
|
||||
/**
|
||||
* Destructor
|
||||
*/
|
||||
Destructor
|
||||
*/
|
||||
FolioAutonumberingW::~FolioAutonumberingW()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief FolioAutonumberingW::setContext
|
||||
* construct autonums in the comboBox selected in the @autonum_chooser QcomboBox
|
||||
*/
|
||||
@brief FolioAutonumberingW::setContext
|
||||
construct autonums in the comboBox selected in the @autonum_chooser QcomboBox
|
||||
*/
|
||||
void FolioAutonumberingW::setContext(QList <QString> autonums) {
|
||||
foreach (QString str, autonums) { ui->m_autonums_cb->addItem(str);}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief FolioAutonumberingW::autoNumSelected
|
||||
* returns the current autonum selected
|
||||
*/
|
||||
@brief FolioAutonumberingW::autoNumSelected
|
||||
returns the current autonum selected
|
||||
*/
|
||||
QString FolioAutonumberingW::autoNumSelected(){
|
||||
return ui->m_autonums_cb->currentText();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief FolioAutonumberingW::fromFolio
|
||||
* returns the current "From Folio" index
|
||||
*/
|
||||
@brief FolioAutonumberingW::fromFolio
|
||||
returns the current "From Folio" index
|
||||
*/
|
||||
int FolioAutonumberingW::fromFolio(){
|
||||
return ui->m_from_cb->currentIndex()-1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief FolioAutonumberingW::toFolio
|
||||
* returns the current "To Folio" index
|
||||
*/
|
||||
@brief FolioAutonumberingW::toFolio
|
||||
returns the current "To Folio" index
|
||||
*/
|
||||
int FolioAutonumberingW::toFolio(){
|
||||
return ui->m_to_cb->currentIndex()+this->fromFolio()+1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief FolioAutonumberingW::newFoliosNumber
|
||||
* returns the number of folios to create
|
||||
*/
|
||||
@brief FolioAutonumberingW::newFoliosNumber
|
||||
returns the number of folios to create
|
||||
*/
|
||||
int FolioAutonumberingW::newFoliosNumber(){
|
||||
return ui->m_new_tabs_sb->value();
|
||||
}
|
||||
/**
|
||||
* @brief FolioAutonumberingW::updateFolioList
|
||||
* update Folio List in From and To ComboBox
|
||||
*/
|
||||
@brief FolioAutonumberingW::updateFolioList
|
||||
update Folio List in From and To ComboBox
|
||||
*/
|
||||
void FolioAutonumberingW::updateFolioList(){
|
||||
ui -> m_from_cb->clear();
|
||||
ui -> m_to_cb->clear();
|
||||
@@ -100,9 +100,9 @@ void FolioAutonumberingW::updateFolioList(){
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief FolioAutonumberingW::on_m_create_new_tabs_rb_clicked
|
||||
@brief FolioAutonumberingW::on_m_create_new_tabs_rb_clicked
|
||||
* Enable New Tabs SpinBox
|
||||
*/
|
||||
*/
|
||||
void FolioAutonumberingW::on_m_create_new_tabs_rb_clicked() {
|
||||
ui->m_from_cb->setEnabled(false);
|
||||
ui->m_to_cb->setEnabled(false);
|
||||
@@ -112,9 +112,9 @@ void FolioAutonumberingW::on_m_create_new_tabs_rb_clicked() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief FolioAutonumberingW::on_m_autonumber_tabs_rb_clicked
|
||||
@brief FolioAutonumberingW::on_m_autonumber_tabs_rb_clicked
|
||||
* Enable From ComboBox, fill From ComboBox
|
||||
*/
|
||||
*/
|
||||
void FolioAutonumberingW::on_m_autonumber_tabs_rb_clicked() {
|
||||
ui->m_new_tabs_sb->setEnabled(false);
|
||||
ui->m_from_cb->setEnabled(true);
|
||||
@@ -131,18 +131,18 @@ void FolioAutonumberingW::on_m_autonumber_tabs_rb_clicked() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief FolioAutonumberingW::on_m_new_tabs_sb_valueChanged
|
||||
@brief FolioAutonumberingW::on_m_new_tabs_sb_valueChanged
|
||||
* Enable Apply if any new folio is to be created
|
||||
*/
|
||||
*/
|
||||
void FolioAutonumberingW::on_m_new_tabs_sb_valueChanged(int){
|
||||
if (ui->m_new_tabs_sb->value()>0) applyEnable(true);
|
||||
else applyEnable(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief FolioAutonumberingW::on_m_from_cb_currentIndexChanged
|
||||
@brief FolioAutonumberingW::on_m_from_cb_currentIndexChanged
|
||||
* Enable To ComboBox
|
||||
*/
|
||||
*/
|
||||
void FolioAutonumberingW::on_m_from_cb_currentIndexChanged(int){
|
||||
int index = ui->m_from_cb->currentIndex();
|
||||
ui->m_to_cb->clear();
|
||||
@@ -159,9 +159,9 @@ void FolioAutonumberingW::on_m_from_cb_currentIndexChanged(int){
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief SelectAutonumW::on_buttonBox_clicked
|
||||
* Action on @buttonBox clicked
|
||||
*/
|
||||
@brief SelectAutonumW::on_buttonBox_clicked
|
||||
Action on @buttonBox clicked
|
||||
*/
|
||||
void FolioAutonumberingW::on_buttonBox_clicked(QAbstractButton *button) {
|
||||
//transform button to int
|
||||
int answer = ui -> buttonBox -> buttonRole(button);
|
||||
@@ -194,9 +194,9 @@ void FolioAutonumberingW::on_buttonBox_clicked(QAbstractButton *button) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief SelectAutonumW::applyEnable
|
||||
* enable/disable the apply button
|
||||
*/
|
||||
@brief SelectAutonumW::applyEnable
|
||||
enable/disable the apply button
|
||||
*/
|
||||
void FolioAutonumberingW::applyEnable(bool b) {
|
||||
if (b){
|
||||
bool valid = true;
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
#include <utility>
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
Constructor
|
||||
*/
|
||||
FormulaAutonumberingW::FormulaAutonumberingW(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
ui(new Ui::FormulaAutonumberingW)
|
||||
@@ -35,41 +35,41 @@ FormulaAutonumberingW::FormulaAutonumberingW(QWidget *parent) :
|
||||
}
|
||||
|
||||
/**
|
||||
* Destructor
|
||||
*/
|
||||
Destructor
|
||||
*/
|
||||
FormulaAutonumberingW::~FormulaAutonumberingW()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief FormulaAutonumberingW::setContext
|
||||
* @param formula to be inserted into context
|
||||
*/
|
||||
@brief FormulaAutonumberingW::setContext
|
||||
@param formula to be inserted into context
|
||||
*/
|
||||
void FormulaAutonumberingW::setContext(const QString& formula) {
|
||||
ui->m_formula_le->insert(formula);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief FormulaAutonumberingW::clearContext
|
||||
* @param clear formula line edit text
|
||||
*/
|
||||
@brief FormulaAutonumberingW::clearContext
|
||||
@param clear formula line edit text
|
||||
*/
|
||||
void FormulaAutonumberingW::clearContext() {
|
||||
ui->m_formula_le->clear();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief FormulaAutonumberingW::formula
|
||||
* @return formula to be stored into project
|
||||
*/
|
||||
@brief FormulaAutonumberingW::formula
|
||||
@return formula to be stored into project
|
||||
*/
|
||||
QString FormulaAutonumberingW::formula() {
|
||||
return ui->m_formula_le->text();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief FormulaAutonumberingW::on_m_formula_le_textChanged
|
||||
* Update Apply Button
|
||||
*/
|
||||
@brief FormulaAutonumberingW::on_m_formula_le_textChanged
|
||||
Update Apply Button
|
||||
*/
|
||||
void FormulaAutonumberingW::on_m_formula_le_textChanged(QString text) {
|
||||
emit (textChanged(std::move(text)));
|
||||
}
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
#include "ui_numparteditorw.h"
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
Constructor
|
||||
*/
|
||||
NumPartEditorW::NumPartEditorW(int type, QWidget *parent) :
|
||||
QWidget(parent),
|
||||
ui(new Ui::NumPartEditorW),
|
||||
@@ -34,9 +34,9 @@ NumPartEditorW::NumPartEditorW(int type, QWidget *parent) :
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* Build with value of @context at position i
|
||||
*/
|
||||
Constructor
|
||||
Build with value of @context at position i
|
||||
*/
|
||||
NumPartEditorW::NumPartEditorW (NumerotationContext &context, int i, int type, QWidget *parent):
|
||||
QWidget(parent),
|
||||
ui(new Ui::NumPartEditorW),
|
||||
@@ -69,8 +69,8 @@ NumPartEditorW::NumPartEditorW (NumerotationContext &context, int i, int type, Q
|
||||
}
|
||||
|
||||
/**
|
||||
* Destructor
|
||||
*/
|
||||
Destructor
|
||||
*/
|
||||
NumPartEditorW::~NumPartEditorW()
|
||||
{
|
||||
delete intValidator;
|
||||
@@ -102,9 +102,9 @@ void NumPartEditorW::setVisibleItems()
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief NumPartEditorW::toNumContext
|
||||
* @return the display to NumerotationContext
|
||||
*/
|
||||
@brief NumPartEditorW::toNumContext
|
||||
@return the display to NumerotationContext
|
||||
*/
|
||||
NumerotationContext NumPartEditorW::toNumContext() {
|
||||
NumerotationContext nc;
|
||||
QString type_str;
|
||||
@@ -160,9 +160,9 @@ NumerotationContext NumPartEditorW::toNumContext() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief NumPartEditorW::isValid
|
||||
* @return true if value field isn't empty or if type is folio
|
||||
*/
|
||||
@brief NumPartEditorW::isValid
|
||||
@return true if value field isn't empty or if type is folio
|
||||
*/
|
||||
bool NumPartEditorW::isValid() {
|
||||
if (type_ == folio || type_ == idfolio || type_ == elementline || type_ == plant || type_ == locmach ||
|
||||
type_ == elementcolumn || type_ == elementprefix) {return true;}
|
||||
@@ -171,9 +171,9 @@ bool NumPartEditorW::isValid() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief NumPartEditorW::on_type_cb_activated
|
||||
* Action when user change the type comboBox
|
||||
*/
|
||||
@brief NumPartEditorW::on_type_cb_activated
|
||||
Action when user change the type comboBox
|
||||
*/
|
||||
void NumPartEditorW::on_type_cb_activated(int) {
|
||||
if (ui->type_cb->currentText() == tr("Chiffre 1"))
|
||||
setType(unit);
|
||||
@@ -207,27 +207,27 @@ void NumPartEditorW::on_type_cb_activated(int) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief NumPartEditorW::on_value_field_textChanged
|
||||
* emit changed when @value_field text changed
|
||||
*/
|
||||
@brief NumPartEditorW::on_value_field_textChanged
|
||||
emit changed when @value_field text changed
|
||||
*/
|
||||
void NumPartEditorW::on_value_field_textEdited() {
|
||||
emit changed();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief NumPartEditorW::on_increase_spinBox_valueChanged
|
||||
* emit changed when @increase_spinBox value changed
|
||||
*/
|
||||
@brief NumPartEditorW::on_increase_spinBox_valueChanged
|
||||
emit changed when @increase_spinBox value changed
|
||||
*/
|
||||
void NumPartEditorW::on_increase_spinBox_valueChanged(int) {
|
||||
if (!ui -> value_field -> text().isEmpty()) emit changed();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief NumPartEditorW::setType
|
||||
* Set good behavior by type @t
|
||||
* @param t, type used
|
||||
* @param fnum, force the behavior of numeric type
|
||||
*/
|
||||
@brief NumPartEditorW::setType
|
||||
Set good behavior by type @t
|
||||
@param t, type used
|
||||
@param fnum, force the behavior of numeric type
|
||||
*/
|
||||
void NumPartEditorW::setType(NumPartEditorW::type t, bool fnum) {
|
||||
setCurrentIndex(t);
|
||||
|
||||
@@ -285,10 +285,10 @@ void NumPartEditorW::setType(NumPartEditorW::type t, bool fnum) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief NumPartEditorW::setCurrentIndex
|
||||
* Set Current Index of type_cb
|
||||
* @param t, type used
|
||||
*/
|
||||
@brief NumPartEditorW::setCurrentIndex
|
||||
Set Current Index of type_cb
|
||||
@param t, type used
|
||||
*/
|
||||
void NumPartEditorW::setCurrentIndex(NumPartEditorW::type t) {
|
||||
int i=-1;
|
||||
if (t == unit)
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
*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.
|
||||
*/
|
||||
*/
|
||||
namespace Ui {
|
||||
class NumPartEditorW;
|
||||
}
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
#include "assignvariables.h"
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
Constructor
|
||||
*/
|
||||
SelectAutonumW::SelectAutonumW(int type, QWidget *parent) :
|
||||
QWidget(parent),
|
||||
ui(new Ui::SelectAutonumW),
|
||||
@@ -72,17 +72,17 @@ SelectAutonumW::SelectAutonumW(const NumerotationContext &context, int type, QWi
|
||||
}
|
||||
|
||||
/**
|
||||
* Destructor
|
||||
*/
|
||||
Destructor
|
||||
*/
|
||||
SelectAutonumW::~SelectAutonumW()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief SelectAutonumW::setCurrentContext
|
||||
* build the context of current diagram selected in the @diagram_chooser QcomboBox
|
||||
*/
|
||||
@brief SelectAutonumW::setCurrentContext
|
||||
build the context of current diagram selected in the @diagram_chooser QcomboBox
|
||||
*/
|
||||
void SelectAutonumW::setContext(const NumerotationContext &context) {
|
||||
m_context = context;
|
||||
|
||||
@@ -109,9 +109,9 @@ void SelectAutonumW::setContext(const NumerotationContext &context) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief SelectAutonumW::toNumContext
|
||||
* @return the content to @num_part_list to NumerotationContext
|
||||
*/
|
||||
@brief SelectAutonumW::toNumContext
|
||||
@return the content to @num_part_list to NumerotationContext
|
||||
*/
|
||||
NumerotationContext SelectAutonumW::toNumContext() const {
|
||||
NumerotationContext nc;
|
||||
foreach (NumPartEditorW *npew, num_part_list_) nc << npew -> toNumContext();
|
||||
@@ -119,9 +119,9 @@ NumerotationContext SelectAutonumW::toNumContext() const {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief SelectAutonumW::on_add_button_clicked
|
||||
@brief SelectAutonumW::on_add_button_clicked
|
||||
* Action on add_button, add a @NumPartEditor
|
||||
*/
|
||||
*/
|
||||
void SelectAutonumW::on_add_button_clicked()
|
||||
{
|
||||
applyEnable(false);
|
||||
@@ -133,9 +133,9 @@ void SelectAutonumW::on_add_button_clicked()
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief SelectAutonumW::on_remove_button_clicked
|
||||
@brief SelectAutonumW::on_remove_button_clicked
|
||||
* Action on remove button, remove the last @NumPartEditor
|
||||
*/
|
||||
*/
|
||||
void SelectAutonumW::on_remove_button_clicked() {
|
||||
//remove if @num_part_list contains more than one item
|
||||
if (num_part_list_.size() > 1) {
|
||||
@@ -150,9 +150,9 @@ void SelectAutonumW::on_remove_button_clicked() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief SelectAutonumW::formula
|
||||
* @return autonumbering widget formula
|
||||
*/
|
||||
@brief SelectAutonumW::formula
|
||||
@return autonumbering widget formula
|
||||
*/
|
||||
QString SelectAutonumW::formula()
|
||||
{
|
||||
if (m_edited_type == 0)
|
||||
@@ -169,9 +169,9 @@ QComboBox *SelectAutonumW::contextComboBox() const
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief SelectAutonumW::on_buttonBox_clicked
|
||||
* Action on @buttonBox clicked
|
||||
*/
|
||||
@brief SelectAutonumW::on_buttonBox_clicked
|
||||
Action on @buttonBox clicked
|
||||
*/
|
||||
void SelectAutonumW::on_buttonBox_clicked(QAbstractButton *button) {
|
||||
//transform button to int
|
||||
int answer = ui -> buttonBox -> buttonRole(button);
|
||||
@@ -233,9 +233,9 @@ void SelectAutonumW::on_buttonBox_clicked(QAbstractButton *button) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief SelectAutonumW::applyEnable
|
||||
* enable/disable the apply button
|
||||
*/
|
||||
@brief SelectAutonumW::applyEnable
|
||||
enable/disable the apply button
|
||||
*/
|
||||
void SelectAutonumW::applyEnable(bool b) {
|
||||
if (b){
|
||||
bool valid= true;
|
||||
@@ -252,9 +252,9 @@ void SelectAutonumW::applyEnable(bool b) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief SelectAutonumW::contextToFormula
|
||||
* Apply formula to ElementAutonumbering Widget
|
||||
*/
|
||||
@brief SelectAutonumW::contextToFormula
|
||||
Apply formula to ElementAutonumbering Widget
|
||||
*/
|
||||
void SelectAutonumW::contextToFormula()
|
||||
{
|
||||
FormulaAutonumberingW* m_faw = nullptr;
|
||||
@@ -271,9 +271,9 @@ void SelectAutonumW::contextToFormula()
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief SelectAutonumW::on_m_next_pb_clicked
|
||||
* Increase NumerotationContext
|
||||
*/
|
||||
@brief SelectAutonumW::on_m_next_pb_clicked
|
||||
Increase NumerotationContext
|
||||
*/
|
||||
void SelectAutonumW::on_m_next_pb_clicked()
|
||||
{
|
||||
NumerotationContextCommands ncc (toNumContext());
|
||||
@@ -282,9 +282,9 @@ void SelectAutonumW::on_m_next_pb_clicked()
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief SelectAutonumW::on_m_previous_pb_clicked
|
||||
* Decrease NumerotationContext
|
||||
*/
|
||||
@brief SelectAutonumW::on_m_previous_pb_clicked
|
||||
Decrease NumerotationContext
|
||||
*/
|
||||
void SelectAutonumW::on_m_previous_pb_clicked()
|
||||
{
|
||||
NumerotationContextCommands ncc (toNumContext());
|
||||
|
||||
Reference in New Issue
Block a user