A subclass of QComboBox which provides functionalities for showing and selecting the output format definition files of Source-Highlight.
More...
#include <OutputFormatComboBox.h>
A subclass of QComboBox which provides functionalities for showing and selecting the output format definition files of Source-Highlight.
- Since
- 0.2
| srchiliteqt::OutputFormatComboBox::OutputFormatComboBox |
( |
const QString & |
path = "") | |
|
Initializes the combo box with the .outlang files retrieved in the specified path.
- Parameters
-
| path | where to look for .outlang 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::OutputFormatComboBox::getCurrentOutputFormat |
( |
) | |
const |
|
slot |
- Returns
- the output format definition file name currently selected
| void srchiliteqt::OutputFormatComboBox::reload |
( |
const QString & |
path) | |
|
|
slot |
Reloads the contents of the combo box by using the specified path for searching for .outlang files.
- Parameters
-
| void srchiliteqt::OutputFormatComboBox::setCurrentOutputFormat |
( |
const QString & |
outlang) | |
|
|
slot |
Sets the output format in the combo.
- Parameters
-
| outlang | the format file name; if the name is not part of the combo list, nothing happens |
The documentation for this class was generated from the following files: