CharMapWidget.h
Go to the documentation of this file.
1
/* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2
3
This file is part of the TerraLib - a Framework for building GIS enabled applications.
4
5
TerraLib is free software: you can redistribute it and/or modify
6
it under the terms of the GNU Lesser General Public License as published by
7
the Free Software Foundation, either version 3 of the License,
8
or (at your option) any later version.
9
10
TerraLib is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU Lesser General Public License for more details.
14
15
You should have received a copy of the GNU Lesser General Public License
16
along with TerraLib. See COPYING. If not, write to
17
TerraLib Team at <terralib-team@terralib.org>.
18
*/
19
20
/*!
21
\file terralib/qt/widgets/se/CharMapWidget.h
22
23
\brief A widget used to show the set of characters of a specified font.
24
*/
25
26
#ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_CHARMAPWIDGET_H
27
#define __TERRALIB_QT_WIDGETS_SE_INTERNAL_CHARMAPWIDGET_H
28
29
// TerraLib
30
#include "../Config.h"
31
32
// Qt
33
#include <QWidget>
34
35
namespace
te
36
{
37
namespace
qt
38
{
39
namespace
widgets
40
{
41
/*!
42
\class CharMapWidget
43
44
\brief A widget used to show the set of characters of a specified font.
45
*/
46
class
TEQTWIDGETSEXPORT
CharMapWidget
:
public
QWidget
47
{
48
Q_OBJECT
49
50
public
:
51
52
/** @name Initializer Methods
53
* Methods related to instantiation and destruction.
54
*/
55
//@{
56
57
/*! \brief Constructs the character map widget which is a child of parent, with widget flags set to f. */
58
CharMapWidget
(QWidget* parent = 0, Qt::WindowFlags f = 0);
59
60
/*! \brief Destructor. */
61
~CharMapWidget
();
62
63
//@}
64
65
public
:
66
67
QSize
sizeHint
()
const
;
68
69
int
getCurrentChar
()
const
;
70
71
public
slots
:
72
73
void
updateFont
(
const
QFont& font);
74
75
signals:
76
77
void
charSelected
(
const
unsigned
int
& charCode);
78
79
protected
:
80
81
void
mouseMoveEvent
(QMouseEvent* e);
82
83
void
mousePressEvent
(QMouseEvent* e);
84
85
void
paintEvent
(QPaintEvent* e);
86
87
private
:
88
89
QFont
m_font
;
//!< Current font.
90
unsigned
int
m_currentChar
;
//!< Current selected char.
91
int
m_columns
;
//!< Character map number of column.
92
int
m_squareSize
;
//!< Cell size of character map.
93
};
94
95
}
// end namespace widgets
96
}
// end namespace qt
97
}
// end namespace te
98
99
#endif
// __TERRALIB_QT_WIDGETS_SE_INTERNAL_CHARMAPWIDGET_H
te::qt::widgets::CharMapWidget
A widget used to show the set of characters of a specified font.
Definition:
CharMapWidget.h:47
te::qt::widgets::CharMapWidget::mousePressEvent
void mousePressEvent(QMouseEvent *e)
te::qt::widgets::CharMapWidget::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *e)
te::qt::widgets::CharMapWidget::charSelected
void charSelected(const unsigned int &charCode)
te::qt::widgets::CharMapWidget::~CharMapWidget
~CharMapWidget()
Destructor.
te::qt::widgets::CharMapWidget::m_squareSize
int m_squareSize
Cell size of character map.
Definition:
CharMapWidget.h:92
te::qt::widgets::CharMapWidget::paintEvent
void paintEvent(QPaintEvent *e)
te::qt::widgets::CharMapWidget::m_font
QFont m_font
Current font.
Definition:
CharMapWidget.h:89
te::qt::widgets::CharMapWidget::sizeHint
QSize sizeHint() const
te::qt::widgets::CharMapWidget::m_columns
int m_columns
Character map number of column.
Definition:
CharMapWidget.h:91
te::qt::widgets::CharMapWidget::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::m_currentChar
unsigned int m_currentChar
Current selected char.
Definition:
CharMapWidget.h:90
te::qt::widgets::CharMapWidget::updateFont
void updateFont(const QFont &font)
te::qt::widgets::CharMapWidget::getCurrentChar
int getCurrentChar() const
te
TerraLib.
Definition:
AddressGeocodingOp.h:52
slots
#define slots
Definition:
VirtualMachine.h:48
TEQTWIDGETSEXPORT
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition:
Config.h:63
git_release
src
terralib
qt
widgets
se
CharMapWidget.h
Generated on Mon Dec 19 2022 08:37:06 for TerraLib by
1.9.1