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:

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.

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

Destructor.

Member Function Documentation

void te::qt::widgets::CharMapWidget::charSelected ( const unsigned int &  charCode)
signal
int te::qt::widgets::CharMapWidget::getCurrentChar ( ) const
void te::qt::widgets::CharMapWidget::mouseMoveEvent ( QMouseEvent *  e)
protected
void te::qt::widgets::CharMapWidget::mousePressEvent ( QMouseEvent *  e)
protected
void te::qt::widgets::CharMapWidget::paintEvent ( QPaintEvent *  e)
protected
QSize te::qt::widgets::CharMapWidget::sizeHint ( ) const
void te::qt::widgets::CharMapWidget::updateFont ( const QFont &  font)
slot

Member Data Documentation

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

Character map number of column.

Definition at line 91 of file CharMapWidget.h.

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

Current selected char.

Definition at line 90 of file CharMapWidget.h.

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

Current font.

Definition at line 89 of file CharMapWidget.h.

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

Cell size of character map.

Definition at line 92 of file CharMapWidget.h.


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