summaryrefslogtreecommitdiffstats
path: root/src/UiGuiSettings.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-04-08 14:41:17 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-04-08 14:41:17 +0900
commitb4d35ab97d008c3b24a109640d90dba73215631b (patch)
tree78ef92df7a05944abbbc564df9d2789e42d1220a /src/UiGuiSettings.h
parent191e11f6dc9f8ac42f39a8866a8f4dfb4f75433c (diff)
downloaduniversal-indent-gui-tqt-b4d35ab97d008c3b24a109640d90dba73215631b.tar.gz
universal-indent-gui-tqt-b4d35ab97d008c3b24a109640d90dba73215631b.zip
Settings for syntax highlighting, showing whitespaces and loading last open file are now saved and restored across executions
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/UiGuiSettings.h')
-rw-r--r--src/UiGuiSettings.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/UiGuiSettings.h b/src/UiGuiSettings.h
index de5ddad..6fd6428 100644
--- a/src/UiGuiSettings.h
+++ b/src/UiGuiSettings.h
@@ -74,7 +74,7 @@ class UiGuiSettings : public TQObject
// [--] private slots:
// [--] void handleObjectPropertyChange();
// [++] void handleValueChangeFromExtern(int value);
-// [++] void handleValueChangeFromExtern(bool value);
+ void handleValueChangeFromExtern(bool value);
// [++] void handleValueChangeFromExtern(TQDate value);
// [++] void handleValueChangeFromExtern(TQByteArray value);
@@ -87,11 +87,11 @@ class UiGuiSettings : public TQObject
// [++] void windowSize(TQSize value);
// [++] void fileEncoding(TQString value);
// [++] void recentlyOpenedListSize(int value);
-// [++] void loadLastOpenedFileOnStartup(bool value);
+ void loadLastOpenedFileOnStartup(bool value);
// [++] void lastOpenedFiles(TQString value);
// [++] void selectedIndenter(int value);
-// [++] void syntaxHighlightningEnabled(bool value);
-// [++] void whiteSpaceIsVisible(bool value);
+ void syntaxHighlightingEnabled(bool value);
+ void whiteSpaceIsVisible(bool value);
// [++] void indenterParameterTooltipsEnabled(bool value);
// [++] void tabWidth(int value);
// [++] void language(int value);
@@ -111,6 +111,9 @@ class UiGuiSettings : public TQObject
// This map holds all possible settings defined by their name as TQString.
TQMap<TQString, TQVariant> m_settings;
+ // This map holds the relationship between action widgets and settings entries
+ TQMap<TQString, TQString> m_actionSettings;
+
// The path where the indenters are located
TQString m_indenterDirectoryStr;
};