2015-06-02 07:55:53 +00:00
|
|
|
/*
|
|
|
|
***************************************************************************
|
|
|
|
*
|
|
|
|
* Author: Teunis van Beelen
|
|
|
|
*
|
2023-02-08 20:22:28 +00:00
|
|
|
* Copyright (C) 2015 - 2023 Teunis van Beelen
|
2015-06-02 07:55:53 +00:00
|
|
|
*
|
2019-05-28 06:36:25 +00:00
|
|
|
* Email: teuniz@protonmail.com
|
2015-06-02 07:55:53 +00:00
|
|
|
*
|
|
|
|
***************************************************************************
|
|
|
|
*
|
|
|
|
* 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, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
***************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-12-28 10:48:47 +00:00
|
|
|
#ifndef SETTINGS_DIALOG_H
|
|
|
|
#define SETTINGS_DIALOG_H
|
2015-06-02 07:55:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2023-02-08 20:22:28 +00:00
|
|
|
#include "qt_headers.h"
|
2017-09-09 16:40:22 +00:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2015-06-02 07:55:53 +00:00
|
|
|
|
|
|
|
#include "mainwindow.h"
|
|
|
|
#include "global.h"
|
|
|
|
|
|
|
|
|
|
|
|
class UI_Mainwindow;
|
|
|
|
|
|
|
|
|
2015-06-27 09:04:41 +00:00
|
|
|
class UI_settings_window : public QDialog
|
2015-06-02 07:55:53 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2015-06-27 09:04:41 +00:00
|
|
|
UI_settings_window(QWidget *parent=0);
|
2015-06-02 07:55:53 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
QPushButton *cancelButton,
|
|
|
|
*applyButton;
|
|
|
|
|
2015-06-27 09:04:41 +00:00
|
|
|
QRadioButton *usbRadioButton,
|
2017-09-09 16:40:22 +00:00
|
|
|
*lanIPRadioButton;
|
2015-06-27 09:04:41 +00:00
|
|
|
|
2015-06-02 07:55:53 +00:00
|
|
|
QComboBox *comboBox1;
|
|
|
|
|
2015-11-14 11:12:19 +00:00
|
|
|
QSpinBox *refreshSpinbox,
|
|
|
|
*ipSpinbox1,
|
|
|
|
*ipSpinbox2,
|
|
|
|
*ipSpinbox3,
|
|
|
|
*ipSpinbox4;
|
2015-06-27 20:32:22 +00:00
|
|
|
|
2015-12-25 17:09:12 +00:00
|
|
|
QLabel *refreshLabel,
|
2016-01-30 16:26:28 +00:00
|
|
|
*invScrShtLabel,
|
2016-12-18 15:36:21 +00:00
|
|
|
*showfpsLabel,
|
2017-09-09 16:40:22 +00:00
|
|
|
*extendvertdivLabel,
|
|
|
|
*hostnameLabel;
|
2015-12-25 17:09:12 +00:00
|
|
|
|
2016-01-30 16:26:28 +00:00
|
|
|
QCheckBox *invScrShtCheckbox,
|
2016-12-18 15:36:21 +00:00
|
|
|
*showfpsCheckbox,
|
|
|
|
*extendvertdivCheckbox;
|
2015-06-27 20:32:22 +00:00
|
|
|
|
2017-09-09 16:40:22 +00:00
|
|
|
QLineEdit *HostLineEdit;
|
|
|
|
|
2015-06-02 07:55:53 +00:00
|
|
|
UI_Mainwindow *mainwindow;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
|
|
|
void applyButtonClicked();
|
2015-06-27 20:32:22 +00:00
|
|
|
void refreshSpinboxChanged(int);
|
2015-12-25 17:09:12 +00:00
|
|
|
void invScrShtCheckboxChanged(int);
|
2016-01-30 16:26:28 +00:00
|
|
|
void showfpsCheckboxChanged(int);
|
2016-12-18 15:36:21 +00:00
|
|
|
void extendvertdivCheckboxChanged(int);
|
2017-09-09 16:40:22 +00:00
|
|
|
void hostnamechanged(QString);
|
2015-06-02 07:55:53 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|