diff options
Diffstat (limited to 'src/MainWindow.h')
-rw-r--r-- | src/MainWindow.h | 24 |
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; |