CuteLogger
Fast and simple logging solution for Qt based applications
systemsyncdialog.h
1/*
2 * Copyright (c) 2020 Meltytech, LLC
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, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef SYSTEMSYNCDIALOG_H
19#define SYSTEMSYNCDIALOG_H
20
21#include <QDialog>
22
23namespace Ui {
24class SystemSyncDialog;
25}
26
27class SystemSyncDialog : public QDialog
28{
29 Q_OBJECT
30
31public:
32 explicit SystemSyncDialog(QWidget *parent = nullptr);
33 ~SystemSyncDialog();
34
35private slots:
36 void on_syncSlider_sliderReleased();
37
38 void on_syncSpinBox_editingFinished();
39
40 void on_buttonBox_rejected();
41
42 void on_undoButton_clicked();
43
44 void on_syncSpinBox_valueChanged(int arg1);
45
46 void on_applyButton_clicked();
47
48private:
49 Ui::SystemSyncDialog *ui;
50 int m_oldValue;
51
52 void setDelay(int delay);
53};
54
55#endif // SYSTEMSYNCDIALOG_H