QElectroTech  0.70
formulaautonumberingw.cpp
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 #include "formulaautonumberingw.h"
19 #include "ui_formulaautonumberingw.h"
20 #include <QMessageBox>
21 #include <QPushButton>
22 #include <QtWidgets>
23 #include <utility>
24 
29  QWidget(parent),
30  ui(new Ui::FormulaAutonumberingW)
31 
32 {
33  ui->setupUi(this);
35 }
36 
41 {
42  delete ui;
43 }
44 
49 void FormulaAutonumberingW::setContext(const QString& formula) {
50  ui->m_formula_le->insert(formula);
51 }
52 
58  ui->m_formula_le->clear();
59 }
60 
66  return ui->m_formula_le->text();
67 }
68 
74  emit (textChanged(std::move(text)));
75 }
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.