Soundux/settingstabgeneral.h

38 lines
792 B
C
Raw Permalink Normal View History

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;
virtual void reset() override;
2019-11-10 02:37:54 +01:00
private:
QComboBox* languageSelection;
CustomKeySequenceEdit* stopHotkey;
QComboBox* themeSelection;
2019-11-10 02:37:54 +01:00
SoundPlayback* soundPlayback;
QHotkey* hotkeyStop = nullptr;
void updateStopHotkey();
void updateTheme();
2019-11-10 02:37:54 +01:00
};
#endif // SETTINGSTABGENERAL_H