Rev 23 | Blame | Last modification | View Log | RSS feed
/*
* Copyright (C) 2020, 2021 by Andreas Theofilu <andreas@theosys.at>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __TQTSETTINGS_H__
#define __TQTSETTINGS_H__
#include <QDialog>
namespace Ui
{
class TQtSettings;
}
class TQtSettings : public QDialog
{
Q_OBJECT
public:
explicit TQtSettings(QWidget *parent = nullptr);
~TQtSettings();
bool hasChanged() { return mSetChanged; }
private slots:
void on_kiconbutton_projectPath_clicked();
void on_comboBox_logLevel_currentIndexChanged(int index);
void on_lineEdit_projectPath_textChanged(const QString &arg1);
void on_lineEdit_Controller_textChanged(const QString &arg1);
void on_spinBox_Port_valueChanged(int arg1);
void on_spinBox_Channel_valueChanged(int arg1);
void on_lineEdit_PType_textChanged(const QString &arg1);
void on_checkBox_Format_toggled(bool checked);
void on_checkBox_Scale_toggled(bool checked);
private:
int getLogLevelIndex(const std::string& sl);
Ui::TQtSettings *ui{nullptr};
bool mSetChanged{false};
};
#endif