QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
selectautonumw.h
Go to the documentation of this file.
1/*
2 Copyright 2006-2024 The QElectroTech Team
3 This file is part of QElectroTech.
4
5 QElectroTech is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 2 of the License, or
8 (at your option) any later version.
9
10 QElectroTech is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef SELECTAUTONUMW_H
19#define SELECTAUTONUMW_H
20
21#include "../numerotationcontext.h"
23
24#include <QWidget>
25
26class NumPartEditorW;
27class QAbstractButton;
29class QComboBox;
30
31namespace Ui {
32 class SelectAutonumW;
33}
34
38class SelectAutonumW : public QWidget
39{
40 Q_OBJECT
41
42 //METHODS
43 public:
44 explicit SelectAutonumW(int type, QWidget *parent = nullptr);
45 explicit SelectAutonumW(const NumerotationContext &context,
46 int type,
47 QWidget *parent = nullptr);
48 ~SelectAutonumW() override;
49
50 void setContext (const NumerotationContext &context);
52 void contextToFormula ();
53 QString formula();
54 QComboBox *contextComboBox() const;
55
56 signals:
59
60 //SLOT
61 private slots:
64 void on_buttonBox_clicked(QAbstractButton *);
65 void applyEnable (bool = true);
68 void on_m_comboBox_currentTextChanged(const QString &arg1);
69
70 //ATTRIBUTES
72
73 private:
74 Ui::SelectAutonumW *ui;
75 QList <NumPartEditorW *> num_part_list_;
79 int m_edited_type = -1;
80};
81
82#endif // SELECTAUTONUMW_H
Definition formulaautonumberingw.h:36
The NumPartEditorW class This class represent a single part num widget. By this widget,...
Definition numparteditorw.h:37
Definition numerotationcontext.h:31
The SelectAutonumW class.
Definition selectautonumw.h:39
void setContext(const NumerotationContext &context)
SelectAutonumW::setContext build the context of current diagram selected in the diagram_chooser Qcomb...
Definition selectautonumw.cpp:102
void on_add_button_clicked()
SelectAutonumW::on_add_button_clicked Action on add_button, add a NumPartEditor.
Definition selectautonumw.cpp:144
void on_m_previous_pb_clicked()
SelectAutonumW::on_m_previous_pb_clicked Decrease NumerotationContext.
Definition selectautonumw.cpp:349
void on_remove_button_clicked()
SelectAutonumW::on_remove_button_clicked Action on remove button, remove the last NumPartEditor.
Definition selectautonumw.cpp:158
NumerotationContext m_context
Definition selectautonumw.h:76
int m_edited_type
0 == element : 1 == conductor : 2 == folio
Definition selectautonumw.h:79
void on_m_comboBox_currentTextChanged(const QString &arg1)
Definition selectautonumw.cpp:356
FormulaAutonumberingW * m_fcaw
Definition selectautonumw.h:78
QString formula()
SelectAutonumW::formula.
Definition selectautonumw.cpp:176
Ui::SelectAutonumW * ui
Definition selectautonumw.h:74
FormulaAutonumberingW * m_feaw
Definition selectautonumw.h:77
void on_m_next_pb_clicked()
SelectAutonumW::on_m_next_pb_clicked Increase NumerotationContext.
Definition selectautonumw.cpp:338
void on_buttonBox_clicked(QAbstractButton *)
SelectAutonumW::on_buttonBox_clicked Action on button clicked.
Definition selectautonumw.cpp:196
void applyEnable(bool=true)
SelectAutonumW::applyEnable enable/disable the apply button.
Definition selectautonumw.cpp:293
void contextToFormula()
SelectAutonumW::contextToFormula Apply formula to ElementAutonumbering Widget.
Definition selectautonumw.cpp:318
QComboBox * contextComboBox() const
Definition selectautonumw.cpp:186
void removeClicked()
void applyPressed()
QList< NumPartEditorW * > num_part_list_
Definition selectautonumw.h:75
void on_m_remove_pb_clicked()
Definition selectautonumw.cpp:362
NumerotationContext toNumContext() const
SelectAutonumW::toNumContext.
Definition selectautonumw.cpp:132
~SelectAutonumW() override
SelectAutonumW::~SelectAutonumW Destructor.
Definition selectautonumw.cpp:91
Definition autonumberingdockwidget.h:26