A subclass of QComboBox which provides functionalities for showing and selecting the language definition files of Source-Highlight.
More...
#include <LanguageComboBox.h>
A subclass of QComboBox which provides functionalities for showing and selecting the language definition files of Source-Highlight.
| srchiliteqt::LanguageComboBox::LanguageComboBox |
( |
const QString & |
path = "") | |
|
Initializes the combo box with the .lang files retrieved in the specified path.
- Parameters
-
| path | where to look for .lang files (if empty, uses the data dir path of source-highlight) |
- Parameters
-
| _highlighter | the highlighter object; this will be used only for initialization |
- Deprecated:
- use the other constructor, which permits not needing a Qt4SyntaxHighlighter only for initialization
| const QString srchiliteqt::LanguageComboBox::getCurrentLanguage |
( |
) | |
const |
|
slot |
- Returns
- the language definition file name currently selected
| void srchiliteqt::LanguageComboBox::reload |
( |
const QString & |
path) | |
|
|
slot |
Reloads the contents of the combo box by using the specified path for searching for .lang files.
- Parameters
-
| void srchiliteqt::LanguageComboBox::setCurrentLanguage |
( |
const QString & |
lang) | |
|
|
slot |
Sets the language in the combo.
- Parameters
-
| lang | the language name; if the language is not part of the combo list, nothing happens |
The documentation for this class was generated from the following files: