src/settingseditor/settingseditor.h

Mon, 20 Jun 2022 21:49:39 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Mon, 20 Jun 2022 21:49:39 +0300
changeset 240
414d392b9ae6
parent 230
a1f3f7d9078b
child 259
c27612f0eac0
permissions
-rw-r--r--

some improvements to dock widget handling

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

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

mercurial