aboutsummaryrefslogtreecommitdiff
path: root/aooptionsdialog.h
blob: 0480eb89b55ac25dcf9b4040b21482f1ecb61b9e (plain)
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
103
104
105
106
107
108
109
110
111
112
113
114
115
#ifndef AOOPTIONSDIALOG_H
#define AOOPTIONSDIALOG_H

#include "aoapplication.h"
#include "bass.h"

#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QFormLayout>
#include <QtWidgets/QFrame>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QPlainTextEdit>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QTabWidget>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>

#include <QDirIterator>
#include <QTextStream>

class AOOptionsDialog: public QDialog
{
    Q_OBJECT
public:
    explicit AOOptionsDialog(QWidget *parent = nullptr, AOApplication *p_ao_app = nullptr);

private:
    AOApplication *ao_app;

    QVBoxLayout *verticalLayout;
    QTabWidget *SettingsTabs;

    QWidget *GameplayTab;
    QWidget *formLayoutWidget;
    QFormLayout *GameplayForm;
    QLabel *ThemeLabel;
    QComboBox *ThemeCombobox;
    QFrame *ThemeLogDivider;
    QLabel *DownwardsLabel;
    QCheckBox *DownwardCheckbox;
    QLabel *LengthLabel;
    QSpinBox *LengthSpinbox;
    QFrame *LogNamesDivider;
    QLineEdit *UsernameLineEdit;
    QLabel *UsernameLabel;
    QLabel *ShownameLabel;
    QCheckBox *ShownameCheckbox;
    QFrame *NetDivider;
    QLabel *MasterServerLabel;
    QLineEdit *MasterServerLineEdit;
    QLabel *DiscordLabel;
    QCheckBox *DiscordCheckBox;

    QWidget *CallwordsTab;
    QWidget *verticalLayoutWidget;
    QVBoxLayout *CallwordsLayout;
    QPlainTextEdit *CallwordsTextEdit;
    QLabel *CallwordsExplainLabel;
    QCheckBox *CharacterCallwordsCheckbox;

    QWidget *AudioTab;
    QWidget *formLayoutWidget_2;
    QFormLayout *AudioForm;
    QLabel *AudioDevideLabel;
    QComboBox *AudioDeviceCombobox;
    QFrame *DeviceVolumeDivider;
    QSpinBox *MusicVolumeSpinbox;
    QLabel *MusicVolumeLabel;
    QSpinBox *SFXVolumeSpinbox;
    QSpinBox *BlipsVolumeSpinbox;
    QLabel *SFXVolumeLabel;
    QLabel *BlipsVolumeLabel;
    QFrame *VolumeBlipDivider;
    QSpinBox *BlipRateSpinbox;
    QLabel *BlipRateLabel;
    QCheckBox *BlankBlipsCheckbox;
    QLabel *BlankBlipsLabel;
    QDialogButtonBox *SettingsButtons;

    QWidget *CasingTab;
    QWidget *formLayoutWidget_3;
    QFormLayout *CasingForm;
    QLabel *ServerSupportsCasing;
    QLabel *CasingEnabledLabel;
    QCheckBox *CasingEnabledCheckbox;
    QLabel *DefenceLabel;
    QCheckBox *DefenceCheckbox;
    QLabel *ProsecutorLabel;
    QCheckBox *ProsecutorCheckbox;
    QLabel *JudgeLabel;
    QCheckBox *JudgeCheckbox;
    QLabel *JurorLabel;
    QCheckBox *JurorCheckbox;
    QLabel *StenographerLabel;
    QCheckBox *StenographerCheckbox;
    QLabel *CMLabel;
    QCheckBox *CMCheckbox;
    QLabel *CMCasesLabel;
    QLineEdit *CMCasesLineEdit;

    bool needs_default_audiodev();

signals:

public slots:
    void save_pressed();
    void discard_pressed();
};

#endif // AOOPTIONSDIALOG_H