summaryrefslogtreecommitdiffstats
path: root/src/UiGuiHighlighter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/UiGuiHighlighter.h')
-rw-r--r--[-rwxr-xr-x]src/UiGuiHighlighter.h57
1 files changed, 29 insertions, 28 deletions
diff --git a/src/UiGuiHighlighter.h b/src/UiGuiHighlighter.h
index 67212f3..ad50849 100755..100644
--- a/src/UiGuiHighlighter.h
+++ b/src/UiGuiHighlighter.h
@@ -34,41 +34,42 @@ class QsciLexer;
class UiGuiHighlighter : public TQObject
{
- Q_OBJECT
+ Q_OBJECT
-public:
- UiGuiHighlighter(QsciScintilla *parent);
- void turnHighlightOff();
- void turnHighlightOn();
+ public:
+ UiGuiHighlighter(QsciScintilla *parent);
- bool readCurrentSettings(const char *prefix);
- void writeCurrentSettings(const char *prefix);
- TQStringList getAvailableHighlighters();
+ void turnHighlightOff();
+ void turnHighlightOn();
-public slots:
- //! The foreground color for style number \a style is set to \a color. If
- //! \a style is -1 then the color is set for all styles.
- void setColor(const TQColor &color, int style = -1);
+ bool readCurrentSettings(const char *prefix);
+ void writeCurrentSettings(const char *prefix);
+ TQStringList getAvailableHighlighters();
- //! The font for style number \a style is set to \a font. If \a style is
- //! -1 then the font is set for all styles.
- void setFont(const TQFont &font, int style = -1);
+ public slots:
+ //! The foreground color for style number \a style is set to \a color. If
+ //! \a style is -1 then the color is set for all styles.
+ void setColor(const TQColor &color, int style = -1);
- //! Sets the lexer that is responsible for the given \a extension.
- int setLexerForExtension( TQString extension );
+ //! The font for style number \a style is set to \a font. If \a style is
+ //! -1 then the font is set for all styles.
+ void setFont(const TQFont &font, int style = -1);
- void setLexerByName( TQString lexerName );
+ //! Sets the lexer that is responsible for the given \a extension.
+ int setLexerForExtension(TQString extension);
- void setHighlighterByAction(TQAction* highlighterAction);
+ void setLexerByName(TQString lexerName);
-private:
- bool _highlightningIsOn;
- QsciScintilla *_qsciEditorParent;
- TQMap<int, TQFont> _fontForStyles;
- TQMap<int, TQColor> _colorForStyles;
- QsciLexer* _lexer;
- TQSettings *_settings;
- TQMap<TQString, TQStringList> _mapHighlighternameToExtension;
+ void setHighlighterByAction(TQAction *highlighterAction);
+
+ private:
+ bool _highlightningIsOn;
+ QsciScintilla *_qsciEditorParent;
+ TQMap<int, TQFont> _fontForStyles;
+ TQMap<int, TQColor> _colorForStyles;
+ QsciLexer *_lexer;
+ TQSettings *_settings;
+ TQMap<TQString, TQStringList> _mapHighlighternameToExtension;
};
-#endif // UIGUIHIGHLIGHTER_H
+#endif // UIGUIHIGHLIGHTER_H