QElectroTech  0.70
formulaautonumberingw.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2019 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(QWidget *parent=nullptr)
Ui::FormulaAutonumberingW * ui
void textChanged(QString)
void on_m_formula_le_textChanged(QString)
FormulaAutonumberingW::on_m_formula_le_textChanged Update Apply Button.
void setContext(const QString &)
FormulaAutonumberingW::setContext.
void clearContext()
FormulaAutonumberingW::clearContext.
QString formula()
FormulaAutonumberingW::formula.