src/settingseditor/settingseditor.h

Mon, 27 Jun 2022 15:55:27 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Mon, 27 Jun 2022 15:55:27 +0300
changeset 274
1331aba5d36b
parent 264
76a025db4948
child 282
f2dc3bbecbfa
permissions
-rw-r--r--

Show current subwindow title in main window title

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