#include <HighlightBlock.h>

Public Member Functions | |
| virtual HighlighType | type ()=0 |
| virtual | ~HighlightBlock () |
| QTextCharFormat | getFormat () const |
| Formatting getter, used for caching purposes. | |
| QFont | getFont () const |
| Formatting font getter provided for convenience, used for configuration purposes. | |
| void | setFont (const QFont &__font) |
| Formatting font setter provided for convenience, used for configuration purposes. | |
| const QColor & | getForegroundColor () const |
| Formatting foreground color getter provided for convenience, used for configuration purposes. | |
| void | setForegroundColor (const QColor &color) |
| Formatting foreground color setter provided for convenience, used for configuration purposes. | |
| const QColor & | getBackgroundColor () const |
| Formatting background color getter provided for convenience, used for configuration purposes. | |
| void | setBackgroundColor (const QColor &color) |
| Formatting background color setter provided for convenience, used for configuration purposes. | |
| QString | getName () const |
| void | setName (QString _name) |
| QString | getDescription () const |
| void | setDescription (QString _description) |
Private Attributes | |
| QTextCharFormat | format |
| Formatting applied to matched block. | |
| QString | name |
| User-friendly name of this block. | |
| QString | description |
| Description of this block. | |
Definition at line 29 of file HighlightBlock.h.
| virtual HighlightBlock::~HighlightBlock | ( | ) | [inline, virtual] |
Empty destructor because class doesn't allocate memory.
Definition at line 45 of file HighlightBlock.h.
| const QColor& HighlightBlock::getBackgroundColor | ( | ) | const [inline] |
Formatting background color getter provided for convenience, used for configuration purposes.
Definition at line 103 of file HighlightBlock.h.
References format.
Referenced by HSyntaxHighlighterSettings::saveConfig(), HBFormatPanel::showBColorDialog(), and HBFormatPanel::updateSample().
| QString HighlightBlock::getDescription | ( | ) | const [inline] |
HighlightBlock description getter
Definition at line 140 of file HighlightBlock.h.
References description.
Referenced by HSyntaxHighlighterDialog::constructBlockList().
| QFont HighlightBlock::getFont | ( | ) | const [inline] |
Formatting font getter provided for convenience, used for configuration purposes.
Definition at line 62 of file HighlightBlock.h.
References format.
Referenced by HSyntaxHighlighterSettings::saveConfig(), HBFormatPanel::showFontDialog(), and HBFormatPanel::updateSample().
| const QColor& HighlightBlock::getForegroundColor | ( | ) | const [inline] |
Formatting foreground color getter provided for convenience, used for configuration purposes.
Definition at line 83 of file HighlightBlock.h.
References format.
Referenced by HSyntaxHighlighterSettings::saveConfig(), HBFormatPanel::showFColorDialog(), and HBFormatPanel::updateSample().
| QTextCharFormat HighlightBlock::getFormat | ( | ) | const [inline] |
Formatting getter, used for caching purposes.
Definition at line 52 of file HighlightBlock.h.
References format.
Referenced by HSyntaxHighlighterSettings::getMultiLinesRules(), and HSyntaxHighlighterSettings::getSingleLineRules().
| QString HighlightBlock::getName | ( | ) | const [inline] |
HighlightBlock name getter
Definition at line 122 of file HighlightBlock.h.
References name.
Referenced by HSyntaxHighlighterDialog::constructBlockList(), HBSettingsPanel::createUI(), HBFormatPanel::HBFormatPanel(), HBmlPatternsPanel::HBmlPatternsPanel(), HBslPatternsPanel::HBslPatternsPanel(), HSyntaxHighlighterSettings::loadConfig(), and HSyntaxHighlighterSettings::saveConfig().
| void HighlightBlock::setBackgroundColor | ( | const QColor & | color | ) | [inline] |
Formatting background color setter provided for convenience, used for configuration purposes.
| color | background color to be used |
Definition at line 113 of file HighlightBlock.h.
References format.
Referenced by HSyntaxHighlighterSettings::loadConfig(), and HBFormatPanel::showBColorDialog().
| void HighlightBlock::setDescription | ( | QString | _description | ) | [inline] |
HighlightBlock description setter
| _description | new user-friendly description to be used |
Definition at line 149 of file HighlightBlock.h.
References description.
| void HighlightBlock::setFont | ( | const QFont & | __font | ) | [inline] |
Formatting font setter provided for convenience, used for configuration purposes.
| __font | Font to be used in current format |
Definition at line 73 of file HighlightBlock.h.
References format.
Referenced by HSyntaxHighlighterSettings::loadConfig(), and HBFormatPanel::showFontDialog().
| void HighlightBlock::setForegroundColor | ( | const QColor & | color | ) | [inline] |
Formatting foreground color setter provided for convenience, used for configuration purposes.
| color | foreground color to be used |
Definition at line 93 of file HighlightBlock.h.
References format.
Referenced by HSyntaxHighlighterSettings::loadConfig(), and HBFormatPanel::showFColorDialog().
| void HighlightBlock::setName | ( | QString | _name | ) | [inline] |
HighlightBlock name setter
| _name | new user-friendly name to be used |
Definition at line 131 of file HighlightBlock.h.
References name.
| virtual HighlighType HighlightBlock::type | ( | ) | [pure virtual] |
Function for indicating a sub-type of HighlighBlock
Implemented in SingleLineHighlightBlock, and MultiLinesHighlightBlock.
Referenced by HBSettingsPanel::createUI().
QString HighlightBlock::description [private] |
Description of this block.
Definition at line 34 of file HighlightBlock.h.
Referenced by getDescription(), and setDescription().
QTextCharFormat HighlightBlock::format [private] |
Formatting applied to matched block.
Definition at line 32 of file HighlightBlock.h.
Referenced by getBackgroundColor(), getFont(), getForegroundColor(), getFormat(), setBackgroundColor(), setFont(), and setForegroundColor().
QString HighlightBlock::name [private] |
1.5.8