#include <HighlightBlock.h>

Public Types | |
| enum | HighlighType { sl, ml } |
Public Member Functions | |
| HighlightBlock () | |
| simply constructor, load default data | |
| 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 21 of file HighlightBlock.h.
Enum holding possible typed of Highlight block, used by HighlightBlock::type() method
| sl | Indicates single line highlighting block. |
| ml | Indicates multiple lines highlighting block. |
Definition at line 42 of file HighlightBlock.h.
| HighlightBlock::HighlightBlock | ( | ) | [inline] |
simply constructor, load default data
Definition at line 32 of file HighlightBlock.h.
References format.
| virtual HighlightBlock::~HighlightBlock | ( | ) | [inline, virtual] |
Empty destructor because class doesn't allocate memory.
Definition at line 55 of file HighlightBlock.h.
| const QColor& HighlightBlock::getBackgroundColor | ( | ) | const [inline] |
Formatting background color getter provided for convenience, used for configuration purposes.
Definition at line 113 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 150 of file HighlightBlock.h.
References description.
Referenced by HSyntaxHighlighterDialog::constructBlockList(), HBInfoPanel::HBInfoPanel(), and HSyntaxHighlighterSettings::saveConfig().
| QFont HighlightBlock::getFont | ( | ) | const [inline] |
Formatting font getter provided for convenience, used for configuration purposes.
Definition at line 72 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 93 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 62 of file HighlightBlock.h.
References format.
Referenced by HSyntaxHighlighterSettings::getMultiLinesRules(), and HSyntaxHighlighterSettings::getSingleLineRules().
| QString HighlightBlock::getName | ( | ) | const [inline] |
HighlightBlock name getter
Definition at line 132 of file HighlightBlock.h.
References name.
Referenced by HSyntaxHighlighterDialog::constructBlockList(), HBSettingsPanel::HBSettingsPanel(), 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 123 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 159 of file HighlightBlock.h.
References description.
Referenced by HBInfoPanel::descriptionChanged(), and HSyntaxHighlighterSettings::loadConfig().
| 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 83 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 103 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 141 of file HighlightBlock.h.
References name.
Referenced by HSyntaxHighlighterSettings::addBlock(), HSyntaxHighlighterSettings::loadConfig(), and HSyntaxHighlighterSettings::renameBlock().
| virtual HighlighType HighlightBlock::type | ( | ) | [pure virtual] |
Function for indicating a sub-type of HighlighBlock
Implemented in SingleLineHighlightBlock, and MultiLinesHighlightBlock.
Referenced by HBSettingsPanel::HBSettingsPanel().
QString HighlightBlock::description [private] |
Description of this block.
Definition at line 26 of file HighlightBlock.h.
Referenced by getDescription(), and setDescription().
QTextCharFormat HighlightBlock::format [private] |
Formatting applied to matched block.
Definition at line 24 of file HighlightBlock.h.
Referenced by getBackgroundColor(), getFont(), getForegroundColor(), getFormat(), HighlightBlock(), setBackgroundColor(), setFont(), and setForegroundColor().
QString HighlightBlock::name [private] |
1.5.8