2 |
andreas |
1 |
/*
|
21 |
andreas |
2 |
* Copyright (C) 2020, 2021 by Andreas Theofilu <andreas@theosys.at>
|
2 |
andreas |
3 |
*
|
|
|
4 |
* This program is free software; you can redistribute it and/or modify
|
|
|
5 |
* it under the terms of the GNU General Public License as published by
|
|
|
6 |
* the Free Software Foundation; either version 3 of the License, or
|
|
|
7 |
* (at your option) any later version.
|
|
|
8 |
*
|
|
|
9 |
* This program is distributed in the hope that it will be useful,
|
|
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
12 |
* GNU General Public License for more details.
|
|
|
13 |
*
|
|
|
14 |
* You should have received a copy of the GNU General Public License
|
|
|
15 |
* along with this program; if not, write to the Free Software Foundation,
|
|
|
16 |
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
17 |
*/
|
|
|
18 |
|
|
|
19 |
#ifndef __TQTSETTINGS_H__
|
|
|
20 |
#define __TQTSETTINGS_H__
|
|
|
21 |
|
|
|
22 |
#include <QDialog>
|
|
|
23 |
|
|
|
24 |
namespace Ui
|
|
|
25 |
{
|
|
|
26 |
class TQtSettings;
|
|
|
27 |
}
|
|
|
28 |
|
|
|
29 |
class TQtSettings : public QDialog
|
|
|
30 |
{
|
|
|
31 |
Q_OBJECT
|
|
|
32 |
|
|
|
33 |
public:
|
|
|
34 |
explicit TQtSettings(QWidget *parent = nullptr);
|
|
|
35 |
~TQtSettings();
|
23 |
andreas |
36 |
bool hasChanged() { return mSetChanged; }
|
2 |
andreas |
37 |
|
22 |
andreas |
38 |
private slots:
|
|
|
39 |
void on_kiconbutton_projectPath_clicked();
|
23 |
andreas |
40 |
void on_comboBox_logLevel_currentIndexChanged(int index);
|
|
|
41 |
void on_lineEdit_projectPath_textChanged(const QString &arg1);
|
|
|
42 |
void on_lineEdit_Controller_textChanged(const QString &arg1);
|
|
|
43 |
void on_spinBox_Port_valueChanged(int arg1);
|
|
|
44 |
void on_spinBox_Channel_valueChanged(int arg1);
|
|
|
45 |
void on_lineEdit_PType_textChanged(const QString &arg1);
|
|
|
46 |
void on_checkBox_Format_toggled(bool checked);
|
24 |
andreas |
47 |
void on_checkBox_Scale_toggled(bool checked);
|
23 |
andreas |
48 |
|
22 |
andreas |
49 |
private:
|
23 |
andreas |
50 |
int getLogLevelIndex(const std::string& sl);
|
|
|
51 |
|
|
|
52 |
Ui::TQtSettings *ui{nullptr};
|
|
|
53 |
bool mSetChanged{false};
|
2 |
andreas |
54 |
};
|
|
|
55 |
|
|
|
56 |
#endif
|