DSRemote/settings_dialog.h

104 wiersze
2.1 KiB
C
Czysty Zwykły widok Historia

2015-06-02 07:55:53 +00:00
/*
***************************************************************************
*
* Author: Teunis van Beelen
*
2017-01-02 09:59:35 +00:00
* Copyright (C) 2015, 2016, 2017 Teunis van Beelen
2015-06-02 07:55:53 +00:00
*
* Email: teuniz@gmail.com
*
***************************************************************************
*
* 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
#include <QApplication>
#include <QObject>
#include <QDialog>
#include <QLabel>
#include <QPushButton>
#include <QComboBox>
#include <QCheckBox>
2015-06-02 07:55:53 +00:00
#include <QSettings>
2015-06-27 09:04:41 +00:00
#include <QRadioButton>
2015-06-27 20:32:22 +00:00
#include <QSpinBox>
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,
*lanRadioButton;
2015-06-02 07:55:53 +00:00
QComboBox *comboBox1;
QSpinBox *refreshSpinbox,
*ipSpinbox1,
*ipSpinbox2,
*ipSpinbox3,
*ipSpinbox4;
2015-06-27 20:32:22 +00:00
QLabel *refreshLabel,
*invScrShtLabel,
*showfpsLabel,
*extendvertdivLabel;
QCheckBox *invScrShtCheckbox,
*showfpsCheckbox,
*extendvertdivCheckbox;
2015-06-27 20:32:22 +00:00
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);
void invScrShtCheckboxChanged(int);
void showfpsCheckboxChanged(int);
void extendvertdivCheckboxChanged(int);
2015-06-02 07:55:53 +00:00
};
#endif