QElectroTech
0.70
sources
autoNum
ui
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
28
FormulaAutonumberingW::FormulaAutonumberingW
(QWidget *parent) :
29
QWidget(parent),
30
ui(new
Ui
::
FormulaAutonumberingW
)
31
32
{
33
ui
->setupUi(
this
);
34
setContext
(
formula_
);
35
}
36
40
FormulaAutonumberingW::~FormulaAutonumberingW
()
41
{
42
delete
ui
;
43
}
44
49
void
FormulaAutonumberingW::setContext
(
const
QString& formula) {
50
ui
->m_formula_le->insert(
formula
);
51
}
52
57
void
FormulaAutonumberingW::clearContext
() {
58
ui
->m_formula_le->clear();
59
}
60
65
QString
FormulaAutonumberingW::formula
() {
66
return
ui
->m_formula_le->text();
67
}
68
73
void
FormulaAutonumberingW::on_m_formula_le_textChanged
(QString text) {
74
emit (
textChanged
(std::move(text)));
75
}
FormulaAutonumberingW::FormulaAutonumberingW
FormulaAutonumberingW(QWidget *parent=nullptr)
Definition:
formulaautonumberingw.cpp:28
FormulaAutonumberingW::ui
Ui::FormulaAutonumberingW * ui
Definition:
formulaautonumberingw.h:46
FormulaAutonumberingW::textChanged
void textChanged(QString)
Ui
Definition:
autonumberingdockwidget.h:25
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::setContext
void setContext(const QString &)
FormulaAutonumberingW::setContext.
Definition:
formulaautonumberingw.cpp:49
FormulaAutonumberingW::formula_
QString formula_
Definition:
formulaautonumberingw.h:61
FormulaAutonumberingW::clearContext
void clearContext()
FormulaAutonumberingW::clearContext.
Definition:
formulaautonumberingw.cpp:57
formulaautonumberingw.h
FormulaAutonumberingW
Definition:
formulaautonumberingw.h:35
FormulaAutonumberingW::formula
QString formula()
FormulaAutonumberingW::formula.
Definition:
formulaautonumberingw.cpp:65
FormulaAutonumberingW::~FormulaAutonumberingW
~FormulaAutonumberingW() override
Definition:
formulaautonumberingw.cpp:40
Generated by
1.8.15