src/settingseditor/settingseditor.h

Thu, 15 Jun 2023 16:18:03 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Thu, 15 Jun 2023 16:18:03 +0300
changeset 383
530d23cd4e97
parent 357
66c75604f5b8
permissions
-rw-r--r--

Refactor, make selecting elements from the model select the corresponding line from the editor as well

#pragma once
#include <QMdiSubWindow>
#include "src/basics.h"
#include "src/libraries.h"
#include "src/uiutilities.h"
#include "src/settingseditor/librarieseditor.h"

class SettingsEditor : public QMdiSubWindow
{
	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:
	bool disableSettingsAutoSave = false;
	class Ui_SettingsEditor& ui;
	LibrariesModel libraries;
	LibrariesEditor librariesEditor;
	const uiutilities::KeySequenceMap defaultKeyboardShortcuts;
};

mercurial