KDEUI
KCharSelect Class Reference
#include <kcharselect.h>

Detailed Description
Character selection widget.This widget allows the user to select a character of a specified font and to browse Unicode information

Character Selection Widget
KCharSelect displays one Unicode block at a time and provides categorized access to them. Unicode character names and further details, including cross references, are displayed. Additionally, there is a search to find characters.
To get the current selected character, use the currentChar() method. You can set the character which should be displayed with setCurrentChar().
Definition at line 59 of file kcharselect.h.
Public Types | |
enum | Control { SearchLine = 0x01, FontCombo = 0x02, FontSize = 0x04, BlockCombos = 0x08, CharacterTable = 0x10, DetailBrowser = 0x20, AllGuiElements = 65535 } |
Public Slots | |
void | setCurrentChar (const QChar &c) |
void | setCurrentFont (const QFont &font) |
Signals | |
void | charSelected (const QChar &c) |
void | currentCharChanged (const QChar &c) |
void | currentFontChanged (const QFont &_font) |
void | displayedCharsChanged () |
Public Member Functions | |
QChar | currentChar () const |
QFont | currentFont () const |
QList< QChar > | displayedChars () const |
Q_DECLARE_FLAGS (Controls, Control) explicit KCharSelect(QWidget *parent | |
virtual QSize | sizeHint () const |
~KCharSelect () | |
Public Attributes | |
const Controls | controls = AllGuiElements) |
Properties | |
QChar | currentChar |
QFont | currentFont |
QList< QChar > | displayedChars |
Member Enumeration Documentation
enum KCharSelect::Control |
Flags to set the shown widgets.
- Enumerator:
Definition at line 70 of file kcharselect.h.
Constructor & Destructor Documentation
KCharSelect::~KCharSelect | ( | ) |
Definition at line 380 of file kcharselect.cpp.
Member Function Documentation
void KCharSelect::charSelected | ( | const QChar & | c | ) | [signal] |
A character is selected to be inserted somewhere.
QChar KCharSelect::currentChar | ( | ) | const |
Returns the currently selected character.
void KCharSelect::currentCharChanged | ( | const QChar & | c | ) | [signal] |
The current character is changed.
QFont KCharSelect::currentFont | ( | ) | const |
Returns the currently displayed font.
void KCharSelect::currentFontChanged | ( | const QFont & | _font | ) | [signal] |
A new font is selected or the font size changed.
Returns a list of currently displayed characters.
void KCharSelect::displayedCharsChanged | ( | ) | [signal] |
The currently displayed characters are changed (search results or block).
KCharSelect::Q_DECLARE_FLAGS | ( | Controls | , | |
Control | ||||
) |
Constructor.
controls
can be used to show a custom set of widgets.
void KCharSelect::setCurrentChar | ( | const QChar & | c | ) | [slot] |
Highlights the character c
.
If the character is not displayed, the block is changed.
Definition at line 412 of file kcharselect.cpp.
void KCharSelect::setCurrentFont | ( | const QFont & | font | ) | [slot] |
QSize KCharSelect::sizeHint | ( | void | ) | const [virtual] |
Member Data Documentation
const Controls KCharSelect::controls = AllGuiElements) |
Definition at line 106 of file kcharselect.h.
Property Documentation
QChar KCharSelect::currentChar [read, write] |
Definition at line 63 of file kcharselect.h.
QFont KCharSelect::currentFont [read, write] |
Definition at line 62 of file kcharselect.h.
Definition at line 64 of file kcharselect.h.
The documentation for this class was generated from the following files: