QGIS API Documentation  master-59fd5e0
CharacterWidget Class Reference

[0] More...

#include <characterwidget.h>

List of all members.

Public Slots

void updateColumns (int cols)
void updateFont (const QFont &font)
 [0]
void updateFontMerging (bool enable)
void updateSize (double fontSize)
 [1]
void updateStyle (const QString &fontStyle)
 [2]

Signals

void characterSelected (const QChar &character)

Public Member Functions

 CharacterWidget (QWidget *parent=0)
 [0]
int getColumns () const
int getSquareSize () const
QSize sizeHint () const
 [3]

Protected Member Functions

void mouseMoveEvent (QMouseEvent *event)
 [3]
void mousePressEvent (QMouseEvent *event)
 [4]
void paintEvent (QPaintEvent *event)
 [5]

Private Attributes

int columns
QFont displayFont
int lastKey
int squareSize

Detailed Description

[0]

Definition at line 62 of file characterwidget.h.


Constructor & Destructor Documentation

CharacterWidget::CharacterWidget ( QWidget *  parent = 0)

[0]

Definition at line 51 of file characterwidget.cpp.

References columns, lastKey, and squareSize.


Member Function Documentation

void CharacterWidget::characterSelected ( const QChar &  character) [signal]

Referenced by mousePressEvent().

int CharacterWidget::getColumns ( ) const [inline]

Definition at line 70 of file characterwidget.h.

References columns.

int CharacterWidget::getSquareSize ( ) const [inline]

Definition at line 71 of file characterwidget.h.

References squareSize.

void CharacterWidget::mouseMoveEvent ( QMouseEvent *  event) [protected]

[3]

[4]

Definition at line 119 of file characterwidget.cpp.

References columns, displayFont, squareSize, and tr.

void CharacterWidget::mousePressEvent ( QMouseEvent *  event) [protected]

[4]

[5]

Definition at line 133 of file characterwidget.cpp.

References characterSelected(), columns, lastKey, and squareSize.

void CharacterWidget::paintEvent ( QPaintEvent *  event) [protected]

[5]

[6]

[6]

[7]

[7]

[8]

[8] //! [9]

[9]

[10]

Definition at line 148 of file characterwidget.cpp.

References columns, displayFont, lastKey, and squareSize.

QSize CharacterWidget::sizeHint ( ) const

[3]

Definition at line 112 of file characterwidget.cpp.

References columns, and squareSize.

void CharacterWidget::updateColumns ( int  cols) [slot]

Definition at line 102 of file characterwidget.cpp.

References columns.

void CharacterWidget::updateFont ( const QFont &  font) [slot]
void CharacterWidget::updateFontMerging ( bool  enable) [slot]

Definition at line 92 of file characterwidget.cpp.

References displayFont.

void CharacterWidget::updateSize ( double  fontSize) [slot]

[1]

[2]

Definition at line 72 of file characterwidget.cpp.

References displayFont, and squareSize.

Referenced by QgsCharacterSelectorDialog::selectCharacter().

void CharacterWidget::updateStyle ( const QString &  fontStyle) [slot]

[2]

Definition at line 81 of file characterwidget.cpp.

References displayFont, and squareSize.

Referenced by QgsCharacterSelectorDialog::selectCharacter().


Member Data Documentation

int CharacterWidget::lastKey [private]

Definition at line 91 of file characterwidget.h.

Referenced by CharacterWidget(), mousePressEvent(), and paintEvent().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines