src/settingseditor/settingseditor.h

Sun, 26 Jun 2022 20:27:04 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Sun, 26 Jun 2022 20:27:04 +0300
changeset 261
6a875faebde2
parent 259
c27612f0eac0
child 264
76a025db4948
permissions
-rw-r--r--

pi is no longer a template

#pragma once
#include <QDialog>
#include "basics.h"
#include "librarieseditor.h"
#include "libraries.h"
#include "uiutilities.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