6 #ifndef TEXTEDITHIGHLIGHTED_H 7 #define TEXTEDITHIGHLIGHTED_H 11 #include "Qt4SyntaxHighlighter.h" 15 class LanguageComboBox;
80 const QString
loadFile(
const QString &fileName);
87 void changeColors(
const QString &fgColor,
const QString &bgColor);
138 #endif // TEXTEDITHIGHLIGHTED_H A subclass of QComboBox which provides functionalities for showing and selecting the style files of S...
Definition: StyleComboBox.h:17
StyleComboBox * styleComboBox
the (possible) StyleComboBox for selecting languages
Definition: TextEditHighlighted.h:39
Definition: ColorDialog.cpp:12
LanguageComboBox * languageComboBox
the (possible) LanguageComboBox for selecting languages
Definition: TextEditHighlighted.h:36
void changeColors(const QString &fgColor, const QString &bgColor)
Changes the foreground and background color.
Definition: TextEditHighlighted.cpp:70
A specialized QTextEdit that uses a Qt4SyntaxHighlighter for highlighting its contents.
Definition: TextEditHighlighted.h:27
void changeFileName(const QString &fileName)
If the file name changes, then we check whether we need to change the language definition for highlig...
Definition: TextEditHighlighted.cpp:163
QString styleFile
the style file of source-highlight for highlighting (default: "default.style")
Definition: TextEditHighlighted.h:42
void changedHighlightingStyle(const QString &newLang)
This signal is emitted when the highlighting style changed.
Definition: moc_TextEditHighlighted.cpp:120
void setHighlighter(const QString &langFile)
Sets an highlighter for the specified language definition file.
Definition: TextEditHighlighted.cpp:35
void connectStyleComboBox(StyleComboBox *lcb)
Connects a StyleComboBox so that, if the style is changed it automatically rehighlights the contents ...
Definition: TextEditHighlighted.cpp:98
void changedHighlightingLanguage(const QString &newLang)
This signal is emitted when the highlighting language definition changed.
Definition: moc_TextEditHighlighted.cpp:113
A subclass of QComboBox which provides functionalities for showing and selecting the language definit...
Definition: LanguageComboBox.h:18
void changeHighlightingLanguage(const QString &newLang)
Changes the highlighting according to the new specified language.
Definition: TextEditHighlighted.cpp:106
const QString getLangDefFileFromFileName(const QString &filename)
Returns the the lang def file name by using the file name for detecting the syntax of the file (e...
Definition: TextEditHighlighted.cpp:176
srchiliteqt::Qt4SyntaxHighlighter * highlighter
the highlighter object
Definition: TextEditHighlighted.h:33
void changeHighlightingStyle(const QString &newStyle)
Changes the highlighting style according to the new specified style file.
Definition: TextEditHighlighted.cpp:117
const QString loadFile(const QString &fileName)
Opens the file specified by fileName.
Definition: TextEditHighlighted.cpp:140
An implementation of QSyntaxHighlighter using GNU Source-highlight library (by relying on GNUSyntaxHi...
Definition: Qt4SyntaxHighlighter.h:38
void connectLanguageComboBox(LanguageComboBox *lcb)
Connects a LanguageComboBox so that, if the language is changed it automatically rehighlights the con...
Definition: TextEditHighlighted.cpp:90