QElectroTech  0.8-dev
formulaautonumberingw.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2020 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 FORMULAAUTONUMBERINGW_H
19 #define FORMULAAUTONUMBERINGW_H
20 
21 #include <QWidget>
22 
23 class QAbstractButton;
24 
25 namespace Ui {
27 }
28 
35 class FormulaAutonumberingW : public QWidget
36 {
37  Q_OBJECT
38 
39  //METHODS
40  public:
41  explicit FormulaAutonumberingW(QWidget *parent = nullptr);
42  ~FormulaAutonumberingW() override;
43  QString formula();
44  void setContext(const QString&);
45  void clearContext();
46  Ui::FormulaAutonumberingW *ui;
47 
48  private:
49 
50  // SIGNALS
51  signals:
52  void applyPressed();
53  void textChanged(QString);
54 
55  //SLOTS
56  private slots:
57  void on_m_formula_le_textChanged(QString);
58 
59  //ATTRIBUTES
60  private:
61  QString formula_;
62 
63 };
64 
65 #endif // FORMULAAUTONUMBERINGW_H
FormulaAutonumberingW::~FormulaAutonumberingW
~FormulaAutonumberingW() override
Definition: formulaautonumberingw.cpp:40
FormulaAutonumberingW::setContext
void setContext(const QString &)
FormulaAutonumberingW::setContext.
Definition: formulaautonumberingw.cpp:49
FormulaAutonumberingW::formula_
QString formula_
Definition: formulaautonumberingw.h:61
FormulaAutonumberingW
Definition: formulaautonumberingw.h:36
FormulaAutonumberingW::formula
QString formula()
FormulaAutonumberingW::formula.
Definition: formulaautonumberingw.cpp:65
Ui
Definition: autonumberingdockwidget.h:25
FormulaAutonumberingW::textChanged
void textChanged(QString)
formulaautonumberingw.h
FormulaAutonumberingW::on_m_formula_le_textChanged
void on_m_formula_le_textChanged(QString)
FormulaAutonumberingW::on_m_formula_le_textChanged Update Apply Button.
Definition: formulaautonumberingw.cpp:73
FormulaAutonumberingW::FormulaAutonumberingW
FormulaAutonumberingW(QWidget *parent=nullptr)
Definition: formulaautonumberingw.cpp:28
FormulaAutonumberingW::clearContext
void clearContext()
FormulaAutonumberingW::clearContext.
Definition: formulaautonumberingw.cpp:57
FormulaAutonumberingW::applyPressed
void applyPressed()
FormulaAutonumberingW::ui
Ui::FormulaAutonumberingW * ui
Definition: formulaautonumberingw.h:46