summaryrefslogtreecommitdiffstats
path: root/src/MainWindow.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-09-05 18:04:18 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-09-05 18:04:18 +0900
commit455025d23a917ed4fd8e61bf2ede45432119d4b4 (patch)
treeff5cba64bb23755b8d8d1b40c5c259bb66605b05 /src/MainWindow.h
parentdd4c8a461d88cbbba745f4de76eed75a9a8e4cfe (diff)
downloaduniversal-indent-gui-tqt-455025d23a917ed4fd8e61bf2ede45432119d4b4.tar.gz
universal-indent-gui-tqt-455025d23a917ed4fd8e61bf2ede45432119d4b4.zip
Add UiGuiHighlighter code
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/MainWindow.h')
-rw-r--r--src/MainWindow.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/MainWindow.h b/src/MainWindow.h
index 2236c5b..e752f8d 100644
--- a/src/MainWindow.h
+++ b/src/MainWindow.h
@@ -27,7 +27,7 @@
class AboutDialog;
/// class AboutDialogGraphicsView;
-/// class UiGuiHighlighter;
+class UiGuiHighlighter;
class IndentHandler;
class UiGuiSettings;
class UiGuiSettingsDialog;
@@ -82,6 +82,7 @@ class MainWindow : public MainWindowBase
private:
TQString loadFile(const TQString &filePath);
void updateWindowTitle();
+ void updateSyntaxHighlighting();
void loadLastOpenedFile();
void saveSettings();
bool maybeSave();
@@ -98,17 +99,17 @@ class MainWindow : public MainWindowBase
///-- void dragEnterEvent(TQDragEnterEvent *event);
///-- void dropEvent(TQDropEvent *event);
- TQSplitter *m_centralSplitter;
- TQextScintilla *m_qSciSourceCodeEditor;
- UiGuiSettings *m_settings;
-
- TQString m_currentEncoding;
- TQString m_sourceFileContent;
- TQString m_sourceFormattedContent;
- TQString m_sourceViewContent;
-///-- UiGuiHighlighter *m_highlighter;
+ TQSplitter *m_centralSplitter;
+ TQextScintilla *m_qSciSourceCodeEditor;
+ UiGuiSettings *m_settings;
+
+ TQString m_currentEncoding;
+ TQString m_sourceFileContent;
+ TQString m_sourceFormattedContent;
+ TQString m_sourceViewContent;
+ UiGuiHighlighter *m_highlighter;
///-- TQScrollBar *m_textEditVScrollBar;
- AboutDialog *m_aboutDialog;
+ AboutDialog *m_aboutDialog;
///-- AboutDialogGraphicsView *_aboutDialogGraphicsView;
UiGuiSettingsDialog *m_settingsDialog;
int m_actionClearRecentlyOpenedListId;
@@ -125,6 +126,7 @@ class MainWindow : public MainWindowBase
TQActionGroup *m_highlighterActionGroup;
TQValueList<TQAction*> m_openEncodingActions;
TQValueList<TQAction*> m_saveEncodingActions;
+ TQValueList<TQAction*> m_highlightingActions;
TQTranslator *m_uiGuiTranslator;
bool m_sourceCodeChanged;