src/settingseditor/settingseditor.h

Thu, 03 Mar 2022 11:42:52 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Thu, 03 Mar 2022 11:42:52 +0200
changeset 150
b6cbba6e29a1
parent 112
5760cbb32bc0
child 206
654661eab7f3
permissions
-rw-r--r--

extract polygon cache out of Model

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

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

mercurial