src/settingseditor/settingseditor.h

Tue, 20 Jul 2021 01:22:01 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Tue, 20 Jul 2021 01:22:01 +0300
changeset 106
128efb9d148b
parent 41
0abada2a9802
child 112
5760cbb32bc0
permissions
-rw-r--r--

work on draw preview

#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 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