A subclass of QComboBox which provides functionalities for showing and selecting the style files of Source-Highlight.
More...
#include <StyleComboBox.h>
|
| void | setCurrentStyle (const QString &styleFile) |
| | Sets the style file in the combo. More...
|
| |
| const QString | getCurrentStyle () const |
| |
| void | reload (const QString &path) |
| | Reloads the contents of the combo box by using the specified path for searching for .style and .css files. More...
|
| |
|
| | StyleComboBox (const QString &path="") |
| | Initializes the combo box with the .style and .css files retrieved in the specified path. More...
|
| |
A subclass of QComboBox which provides functionalities for showing and selecting the style files of Source-Highlight.
| srchiliteqt::StyleComboBox::StyleComboBox |
( |
const QString & |
path = "") | |
|
Initializes the combo box with the .style and .css files retrieved in the specified path.
- Parameters
-
| path | where to look for files (if empty, uses the data dir path of source-highlight) |
| const QString srchiliteqt::StyleComboBox::getCurrentStyle |
( |
) | |
const |
|
slot |
- Returns
- the currently selected style file
| void srchiliteqt::StyleComboBox::reload |
( |
const QString & |
path) | |
|
|
slot |
Reloads the contents of the combo box by using the specified path for searching for .style and .css files.
- Parameters
-
| void srchiliteqt::StyleComboBox::setCurrentStyle |
( |
const QString & |
styleFile) | |
|
|
slot |
Sets the style file in the combo.
- Parameters
-
| styleFile | the style file name; if the file is not part of the combo list, nothing happens |
The documentation for this class was generated from the following files: