edbee - Qt Editor Library
|
This class is used to return the style formats for rendering the texts. More...
#include <texttheme.h>
Public Member Functions | |
TextThemeStyler (TextEditorController *controller) | |
Constructs the theme styler. More... | |
virtual | ~TextThemeStyler () |
The current destructor. More... | |
QList< QTextLayout::FormatRange > | getLineFormatRanges (int lineIdx) |
This method returns a reference to the given line format. WARNING this reference is ONLY valid very shortly.. Another call to this method can invalidates the previous result!!! More... | |
TextEditorController * | controller () |
void | setThemeByName (const QString &themeName) |
Sets the active theme name. More... | |
QString | themeName () const |
returns the current active theme name This method returns "" for the fallback theme It returns a NullString if the theme is specified manually (without the thememanager) More... | |
void | setTheme (TextTheme *theme) |
Sets the active theme When supplying 0 this theme applies the fallback theme. More... | |
TextTheme * | theme () const |
returns the active theme More... | |
This class is used to return the style formats for rendering the texts.
edbee::TextThemeStyler::TextThemeStyler | ( | TextEditorController * | controller | ) |
Constructs the theme styler.
controller | the controller to use this styler for |
|
virtual |
The current destructor.
|
inline |
QList< QTextLayout::FormatRange > edbee::TextThemeStyler::getLineFormatRanges | ( | int | lineIdx | ) |
This method returns a reference to the given line format. WARNING this reference is ONLY valid very shortly.. Another call to this method can invalidates the previous result!!!
lineIdx | the line index |
void edbee::TextThemeStyler::setTheme | ( | TextTheme * | theme | ) |
Sets the active theme When supplying 0 this theme applies the fallback theme.
void edbee::TextThemeStyler::setThemeByName | ( | const QString & | themeName | ) |
Sets the active theme name.
themeName |
TextTheme * edbee::TextThemeStyler::theme | ( | ) | const |
returns the active theme
QString edbee::TextThemeStyler::themeName | ( | ) | const |
returns the current active theme name This method returns "" for the fallback theme It returns a NullString if the theme is specified manually (without the thememanager)