src/settingseditor/settingseditor.h

Tue, 28 Jun 2022 17:59:34 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Tue, 28 Jun 2022 17:59:34 +0300
changeset 291
42b4953dff85
parent 285
99af8bf63d10
child 296
38f6fad61bad
permissions
-rw-r--r--

Let's bring GLEW back after all

#pragma once
#include <QMdiSubWindow>
#include "src/basics.h"
#include "src/libraries.h"
#include "src/uiutilities.h"
#include "src/settingseditor/librarieseditor.h"

class SettingsEditor : public QMdiSubWindow
{
	Q_OBJECT
public:
	SettingsEditor(const uiutilities::KeySequenceMap& defaultKeyboardShortcuts = {},
		QWidget* parent = nullptr);
	~SettingsEditor();
	Q_SLOT void saveSettings();
	Q_SLOT void loadSettings();
Q_SIGNALS:
	void settingsChanged();
private:
	class Ui_SettingsEditor& ui;
	LibrariesModel libraries;
	LibrariesEditor librariesEditor;
	const uiutilities::KeySequenceMap defaultKeyboardShortcuts;
	void loadLocales();
	void setCurrentLanguage(const QString& localeCode);
};

mercurial