HSyntaxHighlighterNewBlock Class Reference

Class provides a simple dialog for creating new blocks. More...

#include <HSyntaxHighlighterNewBlock.h>

Inheritance diagram for HSyntaxHighlighterNewBlock:

QDialog

List of all members.

Public Member Functions

 HSyntaxHighlighterNewBlock (HSyntaxHighlighterSettings *_settings, QWidget *parent=0)
 Constructs dialog with settings pointer.
 ~HSyntaxHighlighterNewBlock ()
const QString & getName ()
 you can check used name

Private Slots

void addName ()
 Checks if it is possible and creates new highlight block.

Private Attributes

Ui::HSyntaxHighlighterNewBlockClass ui
 auto generated GUI
HSyntaxHighlighterSettingssettings
 pinter to settings
QString name
 stored name of new block


Detailed Description

Class provides a simple dialog for creating new blocks.

Definition at line 17 of file HSyntaxHighlighterNewBlock.h.


Constructor & Destructor Documentation

HSyntaxHighlighterNewBlock::HSyntaxHighlighterNewBlock ( HSyntaxHighlighterSettings _settings,
QWidget *  parent = 0 
)

Constructs dialog with settings pointer.

Parameters:
_settings pointer to affected settings
parent owner widget

Definition at line 11 of file HSyntaxHighlighterNewBlock.cpp.

References addName(), settings, and ui.

HSyntaxHighlighterNewBlock::~HSyntaxHighlighterNewBlock (  ) 

Default destructor

Definition at line 21 of file HSyntaxHighlighterNewBlock.cpp.


Member Function Documentation

void HSyntaxHighlighterNewBlock::addName (  )  [private, slot]

Checks if it is possible and creates new highlight block.

Definition at line 25 of file HSyntaxHighlighterNewBlock.cpp.

References HSyntaxHighlighterSettings::addBlock(), HSyntaxHighlighterSettings::blockExists(), HighlightBlock::ml, name, settings, HighlightBlock::sl, and ui.

Referenced by HSyntaxHighlighterNewBlock().

const QString& HSyntaxHighlighterNewBlock::getName (  )  [inline]

you can check used name

Returns:
Name that user entered

Definition at line 37 of file HSyntaxHighlighterNewBlock.h.

References name.

Referenced by HSyntaxHighlighterDialog::addNewItem().


Member Data Documentation

stored name of new block

Definition at line 44 of file HSyntaxHighlighterNewBlock.h.

Referenced by addName(), and getName().

pinter to settings

Definition at line 43 of file HSyntaxHighlighterNewBlock.h.

Referenced by addName(), and HSyntaxHighlighterNewBlock().

Ui::HSyntaxHighlighterNewBlockClass HSyntaxHighlighterNewBlock::ui [private]

auto generated GUI

Definition at line 42 of file HSyntaxHighlighterNewBlock.h.

Referenced by addName(), and HSyntaxHighlighterNewBlock().


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