-
Notifications
You must be signed in to change notification settings - Fork 29
/
settingsdialog.hpp
102 lines (87 loc) · 3.3 KB
/
settingsdialog.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/***************************************************************************
//
// softProjector - an open source media projection software
// Copyright (C) 2017 Vladislav Kobzar
//
// 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 version 3 of the License.
//
// 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/>.
//
***************************************************************************/
#ifndef SETTINGSDIALOG_HPP
#define SETTINGSDIALOG_HPP
#include <QtWidgets>
#include "settings.hpp"
#include "theme.hpp"
#include "generalsettingwidget.hpp"
#include "passivesettingwidget.hpp"
#include "biblesettingwidget.hpp"
#include "songsettingwidget.hpp"
#include "announcementsettingwidget.hpp"
#include "picturesettingwidget.hpp"
namespace Ui {
class SettingsDialog;
}
class SettingsDialog : public QDialog {
Q_OBJECT
Q_DISABLE_COPY(SettingsDialog)
public:
explicit SettingsDialog(QWidget *parent = 0);
virtual ~SettingsDialog();
void updateSecondaryBibleMenu();
public slots:
void loadSettings(GeneralSettings& sets, Theme &thm, SlideShowSettings &ssets,
BibleVersionSettings &bsets, BibleVersionSettings &bsets2,
BibleVersionSettings &bsets3, BibleVersionSettings &bsets4);
signals:
void updateSettings(GeneralSettings& sets, Theme &thm, SlideShowSettings &ssets,
BibleVersionSettings& bsets, BibleVersionSettings& bsets2,
BibleVersionSettings& bsets3, BibleVersionSettings& bsets4);
void positionsDisplayWindow();
void updateScreen();
private:
Ui::SettingsDialog *ui;
int current_display_screen;
int currentDisplayScreen2;
int currentDisplayScreen3;
int currentDisplayScreen4;
bool is_always_on_top;
GeneralSettings gsettings;
Theme theme;
BibleVersionSettings bsettings;
BibleVersionSettings bsettings2;
BibleVersionSettings bsettings3;
BibleVersionSettings bsettings4;
SlideShowSettings ssettings;
GeneralSettingWidget *generalSettingswidget;
PassiveSettingWidget *passiveSettingwidget;
BibleSettingWidget *bibleSettingswidget;
SongSettingWidget *songSettingswidget;
PictureSettingWidget *pictureSettingWidget;
AnnouncementSettingWidget *announcementSettingswidget;
QPushButton *btnOk;
QPushButton *btnCancel;
QPushButton *btnApply;
private slots:
void on_listWidget_currentRowChanged(int currentRow);
void setUseDispScreen2(bool toUse);
void setUseDispScreen3(bool toUse);
void setUseDispScreen4(bool toUse);
void on_buttonBox_clicked(QAbstractButton *button);
void applySettings();
void changeTheme(int theme_id);
void getThemes();
void setThemes();
void applyToAllActive(int t, QString backName, QPixmap background);
protected:
virtual void changeEvent(QEvent *e);
};
#endif // SETTINGSDIALOG_HPP