src/settingseditor/settingseditor.h

Tue, 28 Jun 2022 12:47:46 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Tue, 28 Jun 2022 12:47:46 +0300
changeset 284
9266239cf72b
parent 282
f2dc3bbecbfa
child 285
99af8bf63d10
permissions
-rw-r--r--

Move app icon definition to main.cpp

#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();
	Q_SLOT void saveSettings();
	Q_SLOT void loadSettings();
Q_SIGNALS:
	void settingsChanged();
private:
	class Ui_SettingsEditor& ui;
	LibrariesModel libraries;
	LibrariesEditor librariesEditor;
	const uiutilities::KeySequenceMap defaultKeyboardShortcuts;
	void loadLocales();
	void setCurrentLanguage(const QString& localeCode);
};

mercurial