KFontCombo Class Reference
A combobox that lists the available fonts. A combobox to choose a font. More...
#include <kfontcombo.h>
Inheritance diagram for KFontCombo:


Public Member Functions | |
| KFontCombo (QWidget *parent, const char *name=0) | |
| KFontCombo (const QStringList &fonts, QWidget *parent, const char *name=0) | |
| virtual | ~KFontCombo () |
| void | setFonts (const QStringList &fonts) |
| void | setCurrentFont (const QString &family) |
| QString | currentFont () const |
| void | setBold (bool bold) |
| bool | bold () const |
| void | setItalic (bool italic) |
| bool | italic () const |
| void | setUnderline (bool underline) |
| bool | underline () const |
| void | setStrikeOut (bool strikeOut) |
| bool | strikeOut () const |
| void | setSize (int size) |
| int | size () const |
| virtual void | setCurrentItem (int i) |
Static Public Member Functions | |
| bool | displayFonts () |
Protected Member Functions | |
| void | updateFonts () |
| virtual void | virtual_hook (int id, void *data) |
Friends | |
| class | KFontListItem |
Detailed Description
A combobox that lists the available fonts. A combobox to choose a font.The items are painted using the respective font itself, so the user can easily choose a font based on its look. This can be turned off globally if the user wishes so.
- Author:
- Malte Starostik <malte@kde.org>
- Version:
- Id
- kfontcombo.h,v 1.11 2003/08/17 19:24:45 coolo Exp
Definition at line 37 of file kfontcombo.h.
Constructor & Destructor Documentation
|
||||||||||||
|
Constructor.
Definition at line 164 of file kfontcombo.cpp. References KFontChooser::getFontList(), and setFonts(). |
|
||||||||||||||||
|
Constructor that takes an already initialzed font list.
Definition at line 173 of file kfontcombo.cpp. References setFonts(). |
|
|
Destructor.
Definition at line 255 of file kfontcombo.cpp. |
Member Function Documentation
|
|
Sets the font list.
Definition at line 180 of file kfontcombo.cpp. References QComboBox::clear(). Referenced by KFontCombo(). |
|
|
Sets the currently selected font.
Definition at line 190 of file kfontcombo.cpp. References QComboBox::count(), QString::find(), QString::left(), QString::lower(), setCurrentItem(), and QComboBox::text(). |
|
|
Definition at line 233 of file kfontcombo.cpp. References QComboBox::currentText(). |
|
|
Sets the listed fonts to bold or normal.
Definition at line 260 of file kfontcombo.cpp. References updateFonts(). |
|
|
Returns the current bold status.
Definition at line 268 of file kfontcombo.cpp. |
|
|
Sets the listed fonts to italic or regular.
Definition at line 273 of file kfontcombo.cpp. References updateFonts(). |
|
|
Returns the current italic status.
Definition at line 281 of file kfontcombo.cpp. |
|
|
Sets the listed fonts to underlined or not underlined.
Definition at line 286 of file kfontcombo.cpp. References updateFonts(). |
|
|
Returns the current underline status.
Definition at line 294 of file kfontcombo.cpp. |
|
|
Sets the listed fonts to striked out or not.
Definition at line 299 of file kfontcombo.cpp. References updateFonts(). |
|
|
Returns the current strike out status.
Definition at line 307 of file kfontcombo.cpp. |
|
|
Sets the listed fonts' size.
Definition at line 312 of file kfontcombo.cpp. References QFontMetrics::lineSpacing(), QFont::setPointSize(), and updateFonts(). |
|
|
Returns the current font size.
Definition at line 324 of file kfontcombo.cpp. |
|
|
Returns the user's setting of whether the items should be painted in the respective fonts or not.
Definition at line 341 of file kfontcombo.cpp. References KGlobal::config(), and KConfigBase::readBoolEntry(). |
|
|
Simply calls QComboBox' implementation. Only here to not become shadowed. Reimplemented from KComboBox. Definition at line 240 of file kfontcombo.cpp. References QComboBox::setCurrentItem(). Referenced by setCurrentFont(). |
|
|
Updated the combo's listBox() to reflect changes made to the fonts' attributed.
Definition at line 329 of file kfontcombo.cpp. References QComboBox::listBox(). Referenced by setBold(), setItalic(), setSize(), setStrikeOut(), and setUnderline(). |
The documentation for this class was generated from the following files:
