2019-11-10 02:37:54 +01:00
|
|
|
#ifndef SETTINGSTABGENERAL_H
|
|
|
|
#define SETTINGSTABGENERAL_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QComboBox>
|
|
|
|
#include <QGridLayout>
|
|
|
|
#include <QLabel>
|
|
|
|
#include <QComboBox>
|
|
|
|
#include <QCheckBox>
|
|
|
|
#include <QPushButton>
|
|
|
|
#include <QHotkey>
|
|
|
|
|
|
|
|
#include <customkeysequenceedit.h>
|
|
|
|
|
|
|
|
#include <settingstab.h>
|
|
|
|
#include <soundplayback.h>
|
|
|
|
|
|
|
|
class SettingsTabGeneral : public SettingsTab
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit SettingsTabGeneral(json _data, SoundPlayback* soundPlayback);
|
|
|
|
virtual json tabSettings() override;
|
2019-11-10 15:22:15 +01:00
|
|
|
virtual void reset() override;
|
2019-11-10 02:37:54 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
QComboBox* languageSelection;
|
|
|
|
CustomKeySequenceEdit* stopHotkey;
|
2019-11-10 15:22:15 +01:00
|
|
|
QComboBox* themeSelection;
|
2019-11-10 02:37:54 +01:00
|
|
|
SoundPlayback* soundPlayback;
|
|
|
|
QHotkey* hotkeyStop = nullptr;
|
|
|
|
|
|
|
|
void updateStopHotkey();
|
2019-11-10 15:22:15 +01:00
|
|
|
void updateTheme();
|
2019-11-10 02:37:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SETTINGSTABGENERAL_H
|