A widget used to show the set of characters of a specified font. More...
#include <CharMapWidget.h>
Public Slots | |
| void | updateFont (const QFont &font) |
Signals | |
| void | charSelected (const unsigned int &charCode) |
Public Member Functions | |
| int | getCurrentChar () const |
| QSize | sizeHint () const |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| CharMapWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
| Constructs the character map widget which is a child of parent, with widget flags set to f. More... | |
| ~CharMapWidget () | |
| Destructor. More... | |
Protected Member Functions | |
| void | mouseMoveEvent (QMouseEvent *e) |
| void | mousePressEvent (QMouseEvent *e) |
| void | paintEvent (QPaintEvent *e) |
Private Attributes | |
| int | m_columns |
| Character map number of column. More... | |
| unsigned int | m_currentChar |
| Current selected char. More... | |
| QFont | m_font |
| Current font. More... | |
| int | m_squareSize |
| Cell size of character map. More... | |
A widget used to show the set of characters of a specified font.
Definition at line 46 of file CharMapWidget.h.
| te::qt::widgets::CharMapWidget::CharMapWidget | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Constructs the character map widget which is a child of parent, with widget flags set to f.
Definition at line 34 of file CharMapWidget.cpp.
References m_font, and ~CharMapWidget().
|
default |
Destructor.
Referenced by CharMapWidget().
|
signal |
Referenced by mousePressEvent().
| int te::qt::widgets::CharMapWidget::getCurrentChar | ( | ) | const |
Definition at line 51 of file CharMapWidget.cpp.
References m_currentChar.
Referenced by te::qt::widgets::GlyphMarkWidget::updateMarkName().
|
protected |
Definition at line 62 of file CharMapWidget.cpp.
References m_columns, m_font, and m_squareSize.
|
protected |
Definition at line 75 of file CharMapWidget.cpp.
References charSelected(), m_columns, m_currentChar, and m_squareSize.
|
protected |
Definition at line 94 of file CharMapWidget.cpp.
References m_columns, m_currentChar, m_font, and m_squareSize.
| QSize te::qt::widgets::CharMapWidget::sizeHint | ( | ) | const |
Definition at line 46 of file CharMapWidget.cpp.
References m_columns, and m_squareSize.
|
slot |
Definition at line 56 of file CharMapWidget.cpp.
References m_font.
|
private |
Character map number of column.
Definition at line 91 of file CharMapWidget.h.
Referenced by mouseMoveEvent(), mousePressEvent(), paintEvent(), and sizeHint().
|
private |
Current selected char.
Definition at line 90 of file CharMapWidget.h.
Referenced by getCurrentChar(), mousePressEvent(), and paintEvent().
|
private |
Current font.
Definition at line 89 of file CharMapWidget.h.
Referenced by CharMapWidget(), mouseMoveEvent(), paintEvent(), and updateFont().
|
private |
Cell size of character map.
Definition at line 92 of file CharMapWidget.h.
Referenced by mouseMoveEvent(), mousePressEvent(), paintEvent(), and sizeHint().