diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-04-13 12:57:12 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-04-13 12:57:12 +0900 |
commit | 658a06d1ee76b6e7c0d304147d3e85dbd87f9e7b (patch) | |
tree | d5e97ff83fa1f6aa60b757c7040c50ac0b3d87d1 /src/MainWindow.h | |
parent | 64dc8cad728f6680166df0aa7b6ba797e1aa0c2b (diff) | |
download | universal-indent-gui-tqt-658a06d1ee76b6e7c0d304147d3e85dbd87f9e7b.tar.gz universal-indent-gui-tqt-658a06d1ee76b6e7c0d304147d3e85dbd87f9e7b.zip |
Initialize TQScintilla's editor. TabWidth settings is 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 | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/MainWindow.h b/src/MainWindow.h index 6c4c82a..a3d30e7 100644 --- a/src/MainWindow.h +++ b/src/MainWindow.h @@ -32,10 +32,10 @@ class AboutDialog; class UiGuiSettings; class ToolBarWidget; /// -/// class TQLabel; -/// class TQScrollBar; /// class TQActionGroup; class TQextScintilla; +class TQLabel; +class TQScrollBar; class TQTranslator; @@ -61,20 +61,20 @@ class MainWindow : public MainWindowBase ///-- void updateSourceView(); void turnHighlightOnOff(bool turnOn); void setWhiteSpaceVisibility(bool visible); -///-- void sourceCodeChangedHelperSlot(); -///-- void sourceCodeChangedSlot(); + void sourceCodeChangedHelperSlot(); + void sourceCodeChangedSlot(); ///-- void indentSettingsChangedSlot(); void previewTurnedOnOff(bool turnOn); void exportToPDF(); void exportToHTML(); void languageChanged(int languageIndex); ///-- void encodingChanged(TQAction *encodingAction); -///-- void numberOfLinesChanged(); + void numberOfLinesChanged(); void updateRecentlyOpenedList(); void openFileFromRecentlyOpenedList(int recentlyOpenedActionId); void clearRecentlyOpenedList(); void showAboutDialog(); -///-- void setStatusBarCursorPosInfo(int line, int column); + void setStatusBarCursorPosInfo(int line, int column); ///-- private: ///-- TQString loadFile(TQString filePath); @@ -88,7 +88,7 @@ class MainWindow : public MainWindowBase bool initApplicationLanguage(); void initMainWindow(); void initToolBar(); -///-- void initTextEditor(); + void initTextEditor(); ///-- void initSyntaxHighlighter(); ///-- void initIndenter(); ///-- void changeEvent(TQEvent *event); @@ -103,13 +103,14 @@ class MainWindow : public MainWindowBase ///-- TQString _sourceFormattedContent; ///-- TQString _sourceViewContent; ///-- UiGuiHighlighter *_highlighter; -///-- TQScrollBar *_textEditVScrollBar; +///-- TQScrollBar *m_textEditVScrollBar; AboutDialog *m_aboutDialog; ///-- AboutDialogGraphicsView *_aboutDialogGraphicsView; ///-- UiGuiSettingsDialog *_settingsDialog; - int _actionClearRecentlyOpenedListId; + int m_actionClearRecentlyOpenedListId; ///-- int _textEditLastScrollPos; ///-- int _currentIndenterID; + int m_oldLinesNumber; ///-- bool _loadLastSourceCodeFileOnStartup; ///-- TQString _currentSourceFile; ///-- TQString _currentSourceFileExtension; @@ -120,14 +121,14 @@ class MainWindow : public MainWindowBase TQTranslator *m_uiGuiTranslator; TQTranslator *m_qTranslator; ///-- - bool m_sourceCodeChanged; + bool m_sourceCodeChanged; ///-- bool _indentSettingsChanged; ///-- bool _previewToggled; ///-- TQStringList _encodingsList; ///-- ToolBarWidget *m_toolBarWidget; ///-- IndentHandler *_indentHandler; -///-- TQLabel *_textEditLineColumnInfoLabel; + TQLabel *m_textEditLineColumnInfoLabel; }; #endif // MAINWINDOW_H |