src/settingseditor/settingseditor.h

Sat, 01 Feb 2020 17:10:11 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Sat, 01 Feb 2020 17:10:11 +0200
changeset 39
caac957e9834
parent 16
aeb5f203b3eb
child 41
0abada2a9802
permissions
-rw-r--r--

Main color is now configurable

#pragma once
#include <QDialog>
#include "main.h"
#include "librarieseditor.h"
#include "libraries.h"
#include "uiutilities.h"

class SettingsEditor : public QDialog
{
	Q_OBJECT
public:
	SettingsEditor(QSettings* settings,
		const uiutilities::KeySequenceMap& defaultKeyboardShortcuts = {},
		QWidget* parent = nullptr);
	~SettingsEditor();
private slots:
	void handleAccepted();
private:
	class Ui_SettingsEditor& ui;
	QSettings* const settings;
	LibraryManager libraries;
	LibrariesEditor librariesEditor;
	const uiutilities::KeySequenceMap defaultKeyboardShortcuts;
	void loadLocales();
	void setDefaults();
	void setCurrentLanguage(const QString& localeCode);
};

mercurial