diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-04-08 14:41:17 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-04-08 14:41:17 +0900 |
commit | b4d35ab97d008c3b24a109640d90dba73215631b (patch) | |
tree | 78ef92df7a05944abbbc564df9d2789e42d1220a /src/MainWindow.h | |
parent | 191e11f6dc9f8ac42f39a8866a8f4dfb4f75433c (diff) | |
download | universal-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/MainWindow.h')
-rw-r--r-- | src/MainWindow.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/MainWindow.h b/src/MainWindow.h index 7326c5c..8453399 100644 --- a/src/MainWindow.h +++ b/src/MainWindow.h @@ -37,7 +37,7 @@ class ToolBarWidget; /// class TQActionGroup; /// class TQTranslator; /// -/// class QsciScintilla; +class TQextScintilla; class MainWindow : public MainWindowBase @@ -60,8 +60,8 @@ class MainWindow : public MainWindowBase ///-- void saveAsOtherEncoding(TQAction *chosenEncodingAction); ///-- void callIndenter(); ///-- void updateSourceView(); -///-- void turnHighlightOnOff(bool turnOn); -///-- void setWhiteSpaceVisibility(bool visible); + void turnHighlightOnOff(bool turnOn); + void setWhiteSpaceVisibility(bool visible); ///-- void sourceCodeChangedHelperSlot(); ///-- void sourceCodeChangedSlot(); ///-- void indentSettingsChangedSlot(); @@ -96,10 +96,10 @@ class MainWindow : public MainWindowBase ///-- void dragEnterEvent(TQDragEnterEvent *event); ///-- void dropEvent(TQDropEvent *event); ///-- -///-- QsciScintilla *_qSciSourceCodeEditor; - UiGuiSettings *m_settings; + TQextScintilla *m_qSciSourceCodeEditor; + UiGuiSettings *m_settings; ///-- -///-- TQString _currentEncoding; + TQString m_currentEncoding; ///-- TQString _sourceFileContent; ///-- TQString _sourceFormattedContent; ///-- TQString _sourceViewContent; @@ -121,8 +121,7 @@ class MainWindow : public MainWindowBase ///-- TQTranslator *_uiGuiTranslator; ///-- TQTranslator *_qTTranslator; ///-- -///-- bool _sourceCodeChanged; -///-- bool _scrollPositionChanged; + bool m_sourceCodeChanged; ///-- bool _indentSettingsChanged; ///-- bool _previewToggled; ///-- TQStringList _encodingsList; |