|
QGIS API Documentation
master-59fd5e0
|
[0] More...
#include <characterwidget.h>
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 |
[0]
Definition at line 62 of file characterwidget.h.
| CharacterWidget::CharacterWidget | ( | QWidget * | parent = 0 | ) |
| 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 |
| void CharacterWidget::updateColumns | ( | int | cols | ) | [slot] |
Definition at line 102 of file characterwidget.cpp.
References columns.
| void CharacterWidget::updateFont | ( | const QFont & | font | ) | [slot] |
[0]
[1]
Definition at line 62 of file characterwidget.cpp.
References displayFont, and squareSize.
Referenced by QgsCharacterSelectorDialog::selectCharacter(), and QgsFontMarkerSymbolLayerV2Widget::setFontFamily().
| 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().
int CharacterWidget::columns [private] |
Definition at line 90 of file characterwidget.h.
Referenced by CharacterWidget(), getColumns(), mouseMoveEvent(), mousePressEvent(), paintEvent(), sizeHint(), and updateColumns().
QFont CharacterWidget::displayFont [private] |
Definition at line 89 of file characterwidget.h.
Referenced by mouseMoveEvent(), paintEvent(), updateFont(), updateFontMerging(), updateSize(), and updateStyle().
int CharacterWidget::lastKey [private] |
Definition at line 91 of file characterwidget.h.
Referenced by CharacterWidget(), mousePressEvent(), and paintEvent().
int CharacterWidget::squareSize [private] |
Definition at line 92 of file characterwidget.h.
Referenced by CharacterWidget(), getSquareSize(), mouseMoveEvent(), mousePressEvent(), paintEvent(), sizeHint(), updateFont(), updateSize(), and updateStyle().