te::qt::widgets::CharMapWidget Class Reference

A widget used to show the set of characters of a specified font. More...

#include <CharMapWidget.h>

Inheritance diagram for te::qt::widgets::CharMapWidget:
QWidget

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

Detailed Description

A widget used to show the set of characters of a specified font.

Definition at line 46 of file CharMapWidget.h.

Constructor & Destructor Documentation

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

te::qt::widgets::CharMapWidget::~CharMapWidget ( )
default

Destructor.

Referenced by CharMapWidget().

Member Function Documentation

void te::qt::widgets::CharMapWidget::charSelected ( const unsigned int charCode)
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().

void te::qt::widgets::CharMapWidget::mouseMoveEvent ( QMouseEvent *  e)
protected

Definition at line 62 of file CharMapWidget.cpp.

References m_columns, m_font, and m_squareSize.

void te::qt::widgets::CharMapWidget::mousePressEvent ( QMouseEvent *  e)
protected

Definition at line 75 of file CharMapWidget.cpp.

References charSelected(), m_columns, m_currentChar, and m_squareSize.

void te::qt::widgets::CharMapWidget::paintEvent ( QPaintEvent *  e)
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.

void te::qt::widgets::CharMapWidget::updateFont ( const QFont &  font)
slot

Definition at line 56 of file CharMapWidget.cpp.

References m_font.

Member Data Documentation

int te::qt::widgets::CharMapWidget::m_columns
private

Character map number of column.

Definition at line 91 of file CharMapWidget.h.

Referenced by mouseMoveEvent(), mousePressEvent(), paintEvent(), and sizeHint().

unsigned int te::qt::widgets::CharMapWidget::m_currentChar
private

Current selected char.

Definition at line 90 of file CharMapWidget.h.

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

QFont te::qt::widgets::CharMapWidget::m_font
private

Current font.

Definition at line 89 of file CharMapWidget.h.

Referenced by CharMapWidget(), mouseMoveEvent(), paintEvent(), and updateFont().

int te::qt::widgets::CharMapWidget::m_squareSize
private

Cell size of character map.

Definition at line 92 of file CharMapWidget.h.

Referenced by mouseMoveEvent(), mousePressEvent(), paintEvent(), and sizeHint().


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