KCharSelect Class Reference
from PyKDE4.kdeui import *
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"
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().
Enumerations | |
Control | { SearchLine, FontCombo, FontSize, BlockCombos, CharacterTable, DetailBrowser, HistoryButtons, AllGuiElements } |
Signals | |
charSelected (QChar c) | |
currentCharChanged (QChar c) | |
currentFontChanged (QFont font) | |
displayedCharsChanged () | |
Methods | |
__init__ (self, QWidget parent, KCharSelect.Controls controls=KCharSelect.AllGuiElements) | |
__init__ (self, QWidget parent, KActionCollection collection, KCharSelect.Controls controls=KCharSelect.AllGuiElements) | |
charSelected (self, QChar c) | |
QChar | currentChar (self) |
currentCharChanged (self, QChar c) | |
QFont | currentFont (self) |
currentFontChanged (self, QFont font) | |
[QChar] | displayedChars (self) |
displayedCharsChanged (self) | |
setCurrentChar (self, QChar c) | |
setCurrentFont (self, QFont font) | |
QSize | sizeHint (self) |
Method Documentation
__init__ | ( | self, | ||
QWidget | parent, | |||
KCharSelect.Controls | controls=KCharSelect.AllGuiElements | |||
) |
__init__ | ( | self, | ||
QWidget | parent, | |||
KActionCollection | collection, | |||
KCharSelect.Controls | controls=KCharSelect.AllGuiElements | |||
) |
charSelected | ( | self, | ||
QChar | c | |||
) |
A character is selected to be inserted somewhere.
- Parameters:
-
c the selected character
- Signal syntax:
QObject.connect(source, SIGNAL("charSelected(const const QChar&)"), target_slot)
QChar currentChar | ( | self ) |
Returns the currently selected character.
currentCharChanged | ( | self, | ||
QChar | c | |||
) |
The current character is changed.
- Parameters:
-
c the new character
- Signal syntax:
QObject.connect(source, SIGNAL("currentCharChanged(const const QChar&)"), target_slot)
QFont currentFont | ( | self ) |
Returns the currently displayed font.
currentFontChanged | ( | self, | ||
QFont | font | |||
) |
A new font is selected or the font size changed.
- Parameters:
-
font the new font
- Signal syntax:
QObject.connect(source, SIGNAL("currentFontChanged(const const QFont&)"), target_slot)
[QChar] displayedChars | ( | self ) |
Returns a list of currently displayed characters.
displayedCharsChanged | ( | self ) |
The currently displayed characters are changed (search results or block).
- Signal syntax:
QObject.connect(source, SIGNAL("displayedCharsChanged()"), target_slot)
setCurrentChar | ( | self, | ||
QChar | c | |||
) |
Highlights the character c. If the character is not displayed, the block is changed.
- Parameters:
-
c the character to highlight
setCurrentFont | ( | self, | ||
QFont | font | |||
) |
Sets the font which is displayed to font
- Parameters:
-
font the display font for the widget
QSize sizeHint | ( | self ) |
Reimplemented.
Enumeration Documentation
Control |
- Enumerator:
-