Wed, 25 Mar 2020 16:07:20 +0200
added PolygonObject and refactored away a lot of boilerplate
#pragma once #include <QDialog> #include "main.h" #include "librarieseditor.h" #include "libraries.h" #include "uiutilities.h" #include "configuration.h" class SettingsEditor : public QDialog { Q_OBJECT public: SettingsEditor(Configuration* settings, const uiutilities::KeySequenceMap& defaultKeyboardShortcuts = {}, QWidget* parent = nullptr); ~SettingsEditor(); private slots: void handleAccepted(); private: class Ui_SettingsEditor& ui; Configuration* const settings; LibraryManager libraries; LibrariesEditor librariesEditor; const uiutilities::KeySequenceMap defaultKeyboardShortcuts; void loadLocales(); void setDefaults(); void setCurrentLanguage(const QString& localeCode); };