• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

KCharSelect Class Reference

#include <kcharselect.h>

Inheritance diagram for KCharSelect:

Inheritance graph
[legend]

List of all members.


Detailed Description

Character selection widget.

This widget allows the user to select a character of a specified font and to browse Unicode information

kcharselect.png

Character Selection Widget

You can specify the font whose characters should be displayed via setCurrentFont(). Using the Controls argument in the contructor you can create a compact version of KCharSelect if there is not enough space and if you don't need all features.

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

Author:
Reginald Stadlbauer <reggie@kde.org>

Daniel Laidig <d.laidig@gmx.de>

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 currentFontChanged (const QFont &_font)
void currentCharChanged (const QChar &c)
void displayedCharsChanged ()
void charSelected (const QChar &c)

Public Member Functions

 Q_DECLARE_FLAGS (Controls, Control) explicit KCharSelect(QWidget *parent
 ~KCharSelect ()
virtual QSize sizeHint () const
QChar currentChar () const
QFont currentFont () const
QList< QChar > displayedChars () const

Public Attributes

const Controls controls = AllGuiElements)

Properties

QFont currentFont
QChar currentChar
QList< QChar > displayedChars

Member Enumeration Documentation

enum KCharSelect::Control

Flags to set the shown widgets.

Enumerator:
SearchLine  Shows the search widgets.
FontCombo  Shows the font combo box.
FontSize  Shows the font size spin box.
BlockCombos  Shows the category/block selection combo boxes.
CharacterTable  Shows the actual table.
DetailBrowser  Shows the detail browser.
AllGuiElements  Shows everything.

Definition at line 70 of file kcharselect.h.


Constructor & Destructor Documentation

KCharSelect::~KCharSelect (  ) 

Definition at line 388 of file kcharselect.cpp.


Member Function Documentation

KCharSelect::Q_DECLARE_FLAGS ( Controls  ,
Control   
)

Constructor.

controls can be used to show a custom set of widgets.

QSize KCharSelect::sizeHint ( void   )  const [virtual]

Reimplemented.

Definition at line 393 of file kcharselect.cpp.

QChar KCharSelect::currentChar (  )  const

Returns the currently selected character.

QFont KCharSelect::currentFont (  )  const

Returns the currently displayed font.

QList<QChar> KCharSelect::displayedChars (  )  const

Returns a list of currently displayed characters.

void KCharSelect::setCurrentChar ( const QChar &  c  )  [slot]

Highlights the character c.

If the character is not displayed, the block is changed.

Definition at line 420 of file kcharselect.cpp.

void KCharSelect::setCurrentFont ( const QFont &  font  )  [slot]

Sets the font which is displayed to font.

Definition at line 398 of file kcharselect.cpp.

void KCharSelect::currentFontChanged ( const QFont &  _font  )  [signal]

A new font is selected or the font size changed.

void KCharSelect::currentCharChanged ( const QChar &  c  )  [signal]

The current character is changed.

void KCharSelect::displayedCharsChanged (  )  [signal]

The currently displayed characters are changed (search results or block).

void KCharSelect::charSelected ( const QChar &  c  )  [signal]

A character is selected to be inserted somewhere.


Member Data Documentation

const Controls KCharSelect::controls = AllGuiElements)

Definition at line 106 of file kcharselect.h.


Property Documentation

QFont KCharSelect::currentFont [read, write]

Definition at line 62 of file kcharselect.h.

QChar KCharSelect::currentChar [read, write]

Definition at line 63 of file kcharselect.h.

QList< QChar > KCharSelect::displayedChars [read]

Definition at line 64 of file kcharselect.h.


The documentation for this class was generated from the following files:
  • kcharselect.h
  • kcharselect.cpp

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   WTF
  • KJSEmbed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  •   core
  • Phonon
  •   Backend
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal