#include <HSyntaxHighlighterDialog.h>

Public Member Functions | |
| HSyntaxHighlighterDialog (QWidget *parent=0) | |
| Constructor creates UI and initialize slBlocks and mlBlocks with NULL. | |
| ~HSyntaxHighlighterDialog () | |
| Destructor If settings were set, it deletes HighlightBlocks pointed by slBlocks and mlBlocks. | |
| HSyntaxHighlighterSettings | getSettings () |
| settings getter This function modify current settings, by copying HighlightBlocks stored, and possibly modified in slBlocks and mlBlocks into settings | |
| void | setSettings (HSyntaxHighlighterSettings _settings) |
| Set up initial settings This function is used to setup initial settings of HSyntaxHighlighterDialog, it should be used before executing dialog, if you forget about it behavior may be unexpected. | |
Private Slots | |
| void | editedItemChanged (const QString &_name) |
| Slot called to change edited item, after calling it destroys current userInterface.groupBox and then replaces it with new appropriate HBSettingPanel. | |
| void | addNewItem () |
| adds new block | |
| void | removeCurrentItem () |
| removes selected block | |
| void | renameCurrentItem () |
| renames current block | |
Private Member Functions | |
| HSyntaxHighlighterDialog (const HSyntaxHighlighterDialog &) | |
| void | constructBlockList () |
Private Attributes | |
| Ui::HSyntaxHighlighterDialogClass | userInterface |
| Qt Designer Generated basic UI for this dialog. | |
| HSyntaxHighlighterSettings | settings |
| Local copy of settings, user edit it, and any time it can be read via getSettings(). | |
Definition at line 29 of file HSyntaxHighlighterDialog.h.
| HSyntaxHighlighterDialog::HSyntaxHighlighterDialog | ( | const HSyntaxHighlighterDialog & | ) | [private] |
Copying constructor. Provided to ensure object ISN'T copied.
| HSyntaxHighlighterDialog::HSyntaxHighlighterDialog | ( | QWidget * | parent = 0 |
) |
Constructor creates UI and initialize slBlocks and mlBlocks with NULL.
| parent | Pointer to parent QWidget, used by QDialog constructor |
Definition at line 10 of file HSyntaxHighlighterDialog.cpp.
References addNewItem(), editedItemChanged(), removeCurrentItem(), renameCurrentItem(), and userInterface.
| HSyntaxHighlighterDialog::~HSyntaxHighlighterDialog | ( | ) |
Destructor If settings were set, it deletes HighlightBlocks pointed by slBlocks and mlBlocks.
Definition at line 20 of file HSyntaxHighlighterDialog.cpp.
| void HSyntaxHighlighterDialog::addNewItem | ( | ) | [inline, private, slot] |
adds new block
Definition at line 55 of file HSyntaxHighlighterDialog.h.
References constructBlockList(), HSyntaxHighlighterNewBlock::getName(), settings, and userInterface.
Referenced by HSyntaxHighlighterDialog().
| void HSyntaxHighlighterDialog::constructBlockList | ( | ) | [private] |
Function filling userInterface.HighlightBlocks QListWidget with all HighlightBlocks pointed by allBlocks
Definition at line 35 of file HSyntaxHighlighterDialog.cpp.
References HighlightBlock::getDescription(), HighlightBlock::getName(), HSyntaxHighlighterSettings::multiLines, settings, HSyntaxHighlighterSettings::singleLine, and userInterface.
Referenced by addNewItem(), removeCurrentItem(), renameCurrentItem(), and setSettings().
| void HSyntaxHighlighterDialog::editedItemChanged | ( | const QString & | _name | ) | [private, slot] |
Slot called to change edited item, after calling it destroys current userInterface.groupBox and then replaces it with new appropriate HBSettingPanel.
| _name | of new HighlightBlock to edit now. |
Definition at line 60 of file HSyntaxHighlighterDialog.cpp.
References HSyntaxHighlighterSettings::multiLines, settings, HSyntaxHighlighterSettings::singleLine, and userInterface.
Referenced by HSyntaxHighlighterDialog().
| HSyntaxHighlighterSettings HSyntaxHighlighterDialog::getSettings | ( | ) |
settings getter This function modify current settings, by copying HighlightBlocks stored, and possibly modified in slBlocks and mlBlocks into settings
Definition at line 30 of file HSyntaxHighlighterDialog.cpp.
References HSyntaxHighlighterSettings::modified, and settings.
Referenced by HSyntaxHighlighter::editConfig().
| void HSyntaxHighlighterDialog::removeCurrentItem | ( | ) | [inline, private, slot] |
removes selected block
Definition at line 69 of file HSyntaxHighlighterDialog.h.
References constructBlockList(), HSyntaxHighlighterSettings::removeBlock(), settings, and userInterface.
Referenced by HSyntaxHighlighterDialog().
| void HSyntaxHighlighterDialog::renameCurrentItem | ( | ) | [inline, private, slot] |
renames current block
Definition at line 85 of file HSyntaxHighlighterDialog.h.
References HSyntaxHighlighterSettings::blockExists(), constructBlockList(), HSyntaxHighlighterSettings::renameBlock(), settings, and userInterface.
Referenced by HSyntaxHighlighterDialog().
| void HSyntaxHighlighterDialog::setSettings | ( | HSyntaxHighlighterSettings | _settings | ) |
Set up initial settings This function is used to setup initial settings of HSyntaxHighlighterDialog, it should be used before executing dialog, if you forget about it behavior may be unexpected.
| _settings | Initial settings to store in settings |
Definition at line 25 of file HSyntaxHighlighterDialog.cpp.
References constructBlockList(), and settings.
Referenced by HSyntaxHighlighter::editConfig().
Local copy of settings, user edit it, and any time it can be read via getSettings().
Definition at line 40 of file HSyntaxHighlighterDialog.h.
Referenced by addNewItem(), constructBlockList(), editedItemChanged(), getSettings(), removeCurrentItem(), renameCurrentItem(), and setSettings().
Ui::HSyntaxHighlighterDialogClass HSyntaxHighlighterDialog::userInterface [private] |
Qt Designer Generated basic UI for this dialog.
Definition at line 39 of file HSyntaxHighlighterDialog.h.
Referenced by addNewItem(), constructBlockList(), editedItemChanged(), HSyntaxHighlighterDialog(), removeCurrentItem(), and renameCurrentItem().
1.5.8