• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

Signals | Public Member Functions | Protected Slots | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
KCharSelect Class Reference

#include <kcharselect.h>

Inherits TQVBox.

Signals

void highlighted (const TQChar &c)
 
void highlighted ()
 
void activated (const TQChar &c)
 
void activated ()
 
void fontChanged (const TQString &_font)
 
void focusItemChanged ()
 
void focusItemChanged (const TQChar &c)
 
void doubleClicked ()
 

Public Member Functions

 KCharSelect (TQWidget *parent, const char *name, const TQString &font=TQString::null, const TQChar &chr=' ', int tableNum=0)
 
virtual TQSize sizeHint () const
 
virtual void setFont (const TQString &font)
 
virtual void setChar (const TQChar &chr)
 
virtual void setTableNum (int tableNum)
 
virtual TQChar chr () const
 
virtual TQString font () const
 
virtual int tableNum () const
 
virtual void enableFontCombo (bool e)
 
virtual void enableTableSpinBox (bool e)
 
virtual bool isFontComboEnabled () const
 
virtual bool isTableSpinBoxEnabled () const
 

Protected Slots

void fontSelected (const TQString &_font)
 
void tableChanged (int _value)
 
void charHighlighted (const TQChar &c)
 
void charHighlighted ()
 
void charActivated (const TQChar &c)
 
void charActivated ()
 
void charFocusItemChanged ()
 
void charFocusItemChanged (const TQChar &c)
 
void charTableUp ()
 
void charTableDown ()
 
void slotDoubleClicked ()
 
void slotUnicodeEntered ()
 
void slotUpdateUnicode (const TQChar &c)
 

Protected Member Functions

virtual void fillFontCombo ()
 
virtual void virtual_hook (int id, void *data)
 

Static Protected Member Functions

static void cleanupFontDatabase ()
 

Protected Attributes

TQComboBox * fontCombo
 
TQSpinBox * tableSpinBox
 
KCharSelectTable * charTable
 
TQStringList fontList
 

Static Protected Attributes

static TQFontDatabase * fontDataBase = 0
 

Detailed Description

Character selection widget.

This widget allows the user to select a character of a specified font in a table

Character Selection Widget

You can specify the font whose characters should be displayed via setFont() or in the constructor. Using enableFontCombo() you can allow the user to choose the font from a combob-box. As only 256 characters are displayed at once in the table, using the spinbox on the top the user can choose starting from which character the table displays them. This spinbox also can be enabled or disabled using enableTableSpinBox().

KCharSelect supports keyboard and mouse navigation. Click+Move always selects the character below the mouse cursor. Using the arrow keys moves the focus mark around and pressing RETURN or SPACE selects the cell which contains the focus mark.

To get the current selected character, use the chr() method. You can set the character which should be displayed with setChar() and the table number which should be displayed with setTableNum().

Author
Reginald Stadlbauer reggi.nosp@m.e@kd.nosp@m.e.org

Definition at line 140 of file kcharselect.h.

Constructor & Destructor Documentation

◆ KCharSelect()

KCharSelect::KCharSelect ( TQWidget *  parent,
const char *  name,
const TQString &  font = TQString::null,
const TQChar &  chr = ' ',
int  tableNum = 0 
)

Constructor.

font specifies which font should be displayed, chr which character should be selected and tableNum specifies the number of the table which should be displayed.

Definition at line 376 of file kcharselect.cpp.

◆ ~KCharSelect()

KCharSelect::~KCharSelect ( )

Definition at line 449 of file kcharselect.cpp.

Member Function Documentation

◆ charActivated [1/2]

void KCharSelect::charActivated ( )
inlineprotectedslot

Definition at line 239 of file kcharselect.h.

◆ charActivated [2/2]

void KCharSelect::charActivated ( const TQChar &  c)
inlineprotectedslot

Definition at line 238 of file kcharselect.h.

◆ charFocusItemChanged [1/2]

void KCharSelect::charFocusItemChanged ( )
inlineprotectedslot

Definition at line 240 of file kcharselect.h.

◆ charFocusItemChanged [2/2]

void KCharSelect::charFocusItemChanged ( const TQChar &  c)
inlineprotectedslot

Definition at line 241 of file kcharselect.h.

◆ charHighlighted [1/2]

void KCharSelect::charHighlighted ( )
inlineprotectedslot

Definition at line 237 of file kcharselect.h.

◆ charHighlighted [2/2]

void KCharSelect::charHighlighted ( const TQChar &  c)
inlineprotectedslot

Definition at line 236 of file kcharselect.h.

◆ charTableDown

void KCharSelect::charTableDown ( )
inlineprotectedslot

Definition at line 243 of file kcharselect.h.

◆ charTableUp

void KCharSelect::charTableUp ( )
inlineprotectedslot

Definition at line 242 of file kcharselect.h.

◆ chr()

virtual TQChar KCharSelect::chr ( ) const
inlinevirtual

Returns the currently selected character.

Definition at line 180 of file kcharselect.h.

◆ cleanupFontDatabase()

void KCharSelect::cleanupFontDatabase ( )
staticprotected

Definition at line 53 of file kcharselect.cpp.

◆ enableFontCombo()

virtual void KCharSelect::enableFontCombo ( bool  e)
inlinevirtual

If e is set to true, the combobox which allows the user to select the font which should be displayed is enabled, else disabled.

Definition at line 197 of file kcharselect.h.

◆ enableTableSpinBox()

virtual void KCharSelect::enableTableSpinBox ( bool  e)
inlinevirtual

If e is set to true, the spinbox which allows the user to specify which characters of the font should be displayed, is enabled, else disabled.

Definition at line 205 of file kcharselect.h.

◆ fillFontCombo()

void KCharSelect::fillFontCombo ( )
protectedvirtual

Definition at line 490 of file kcharselect.cpp.

◆ font()

virtual TQString KCharSelect::font ( ) const
inlinevirtual

Returns the currently displayed font.

Definition at line 185 of file kcharselect.h.

◆ fontSelected

void KCharSelect::fontSelected ( const TQString &  _font)
protectedslot

Definition at line 501 of file kcharselect.cpp.

◆ isFontComboEnabled()

virtual bool KCharSelect::isFontComboEnabled ( ) const
inlinevirtual

Returns wether the font combobox on the top is enabled or disabled.

See also
enableFontCombo()

Definition at line 213 of file kcharselect.h.

◆ isTableSpinBoxEnabled()

virtual bool KCharSelect::isTableSpinBoxEnabled ( ) const
inlinevirtual

Returns wether the table spinbox on the top is enabled or disabled.

See also
enableTableSpinBox()

Definition at line 221 of file kcharselect.h.

◆ setChar()

void KCharSelect::setChar ( const TQChar &  chr)
virtual

Sets the currently selected character to chr.

Definition at line 476 of file kcharselect.cpp.

◆ setFont()

void KCharSelect::setFont ( const TQString &  font)
virtual

Sets the font which is displayed to font.

Definition at line 461 of file kcharselect.cpp.

◆ setTableNum()

void KCharSelect::setTableNum ( int  tableNum)
virtual

Sets the currently displayed table to tableNum.

Definition at line 483 of file kcharselect.cpp.

◆ sizeHint()

TQSize KCharSelect::sizeHint ( void  ) const
virtual

Reimplemented.

Definition at line 455 of file kcharselect.cpp.

◆ slotDoubleClicked

void KCharSelect::slotDoubleClicked ( )
inlineprotectedslot

Definition at line 244 of file kcharselect.h.

◆ slotUnicodeEntered

void KCharSelect::slotUnicodeEntered ( )
protectedslot

Definition at line 514 of file kcharselect.cpp.

◆ slotUpdateUnicode

void KCharSelect::slotUpdateUnicode ( const TQChar &  c)
protectedslot

Definition at line 533 of file kcharselect.cpp.

◆ tableChanged

void KCharSelect::tableChanged ( int  _value)
protectedslot

Definition at line 508 of file kcharselect.cpp.

◆ tableNum()

virtual int KCharSelect::tableNum ( ) const
inlinevirtual

Returns the currently displayed table.

Definition at line 190 of file kcharselect.h.

◆ virtual_hook()

void KCharSelect::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Definition at line 544 of file kcharselect.cpp.

Member Data Documentation

◆ charTable

KCharSelectTable* KCharSelect::charTable
protected

Definition at line 229 of file kcharselect.h.

◆ fontCombo

TQComboBox* KCharSelect::fontCombo
protected

Definition at line 227 of file kcharselect.h.

◆ fontDataBase

TQFontDatabase * KCharSelect::fontDataBase = 0
staticprotected

Definition at line 231 of file kcharselect.h.

◆ fontList

TQStringList KCharSelect::fontList
protected

Definition at line 230 of file kcharselect.h.

◆ tableSpinBox

TQSpinBox* KCharSelect::tableSpinBox
protected

Definition at line 228 of file kcharselect.h.


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

tdeui

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

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.