HSyntaxHighlighterDialog Class Reference

Class implementing Dialog, which is used to edit HSyntaxHighlighterSettings, it contains list of all HighlightBlock s and QGroupBox with editing panel. More...

#include <HSyntaxHighlighterDialog.h>

Inheritance diagram for HSyntaxHighlighterDialog:

QDialog

List of all members.

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().


Detailed Description

Class implementing Dialog, which is used to edit HSyntaxHighlighterSettings, it contains list of all HighlightBlock s and QGroupBox with editing panel.

Definition at line 29 of file HSyntaxHighlighterDialog.h.


Constructor & Destructor Documentation

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.

Parameters:
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.


Member Function Documentation

void HSyntaxHighlighterDialog::addNewItem (  )  [inline, private, slot]

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.

Parameters:
_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

Returns:
Possibly modified HSyntaxHighlighter 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]

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.

Parameters:
_settings Initial settings to store in settings

Definition at line 25 of file HSyntaxHighlighterDialog.cpp.

References constructBlockList(), and settings.

Referenced by HSyntaxHighlighter::editConfig().


Member Data Documentation

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().


The documentation for this class was generated from the following files:

Generated on Fri Jan 9 00:50:44 2009 for HSyntaxHighlighter by  doxygen 1.5.8