lib
KFontChooser_local Class Reference
#include <KFontDialog_local.h>
Detailed Description
A font selection widget.While KFontChooser_local as an ordinary widget can be embedded in custom dialogs and therefore is very flexible, in most cases it is preferable to use the convenience functions in KFontDialog_local.
- Author:
- Preston Brown <pbrown@kde.org>, Bernd Wuebben <wuebben@kde.org>
- Version:
- Id
- kfontdialog.h,v 1.71 2004/10/10 10:27:49 bhards Exp
Definition at line 57 of file KFontDialog_local.h.
Public Types | |
enum | FontColumn { FamilyList = 0x01, StyleList = 0x02, SizeList = 0x04 } |
enum | FontDiff { FontDiffFamily = 0x01, FontDiffStyle = 0x02, FontDiffSize = 0x04 } |
enum | FontListCriteria { FixedWidthFonts = 0x01, ScalableFonts = 0x02, SmoothScalableFonts = 0x04 } |
Signals | |
void | fontSelected (const QFont &font) |
Public Member Functions | |
KFontChooser_local (QWidget *parent=0L, const char *name=0L, bool onlyFixed=false, const QStringList &fontList=QStringList(), bool makeFrame=true, int visibleListSize=8, bool diff=false, QButton::ToggleState *sizeIsRelativeState=0L) | |
virtual | ~KFontChooser_local () |
void | enableColumn (int column, bool state) |
void | setFont (const QFont &font, bool onlyFixed=false) |
int | fontDiffFlags () |
QFont | font () const |
void | setColor (const QColor &col) |
QColor | color () const |
void | setBackgroundColor (const QColor &col) |
QColor | backgroundColor () const |
void | setSizeIsRelative (QButton::ToggleState relative) |
QButton::ToggleState | sizeIsRelative () const |
QString | sampleText () const |
void | setSampleText (const QString &text) |
void | setSampleBoxVisible (bool visible) |
void | setFamilyList (QStringList list) |
virtual QSize | sizeHint (void) const |
Static Public Member Functions | |
static QString | getXLFD (const QFont &theFont) |
static void | getFontList (QStringList &list, uint fontListCriteria) |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
Properties | |
QFont | font |
Member Enumeration Documentation
|
Definition at line 68 of file KFontDialog_local.h. |
|
Definition at line 75 of file KFontDialog_local.h. |
|
The selection criteria for the font families shown in the dialog.
Definition at line 243 of file KFontDialog_local.h. |
Constructor & Destructor Documentation
|
Constructs a font picker widget. It normally comes up with all font families present on the system; the getFont method below does allow some more fine-tuning of the selection of fonts that will be displayed in the dialog. Consider the following code snippet; QStringList list; KFontChooser_local::getFontList(list,SmoothScalableFonts); KFontChooser_local chooseFont = new KFontChooser_local(0, "FontList", false, list); The above creates a font chooser dialog with only SmoothScaleble fonts.
Definition at line 95 of file KFontDialog_local.cpp. |
|
Destructs the font chooser.
Definition at line 340 of file KFontDialog_local.cpp. |
Member Function Documentation
|
Definition at line 385 of file KFontDialog_local.cpp. |
|
Definition at line 372 of file KFontDialog_local.cpp. |
|
Enables or disable a font column in the chooser. Use this function if your application does not need or supports all font properties.
Definition at line 414 of file KFontDialog_local.cpp. |
|
Definition at line 153 of file KFontDialog_local.h. |
|
Definition at line 448 of file KFontDialog_local.cpp. |
|
Emitted whenever the selected font changes.
|
|
Creates a list of font strings.
Definition at line 654 of file KFontDialog_local.cpp. |
|
Converts a QFont into the corresponding X Logical Font Description (XLFD).
Definition at line 229 of file KFontDialog_local.h. |
|
Definition at line 195 of file KFontDialog_local.h. |
|
Sets the background color to use in the preview.
Definition at line 377 of file KFontDialog_local.cpp. |
|
Sets the color to use in the preview.
Definition at line 364 of file KFontDialog_local.cpp. |
|
Fill the font family list of the KFontChooser.
Definition at line 723 of file KFontDialog_local.cpp. |
|
Sets the currently selected font in the chooser.
Definition at line 431 of file KFontDialog_local.cpp. |
|
Shows or hides the sample text box.
Definition at line 217 of file KFontDialog_local.h. |
|
Sets the sample text. Normally you should not change this text, but it can be better to do this if the default text is too large for the edit area when using the default font of your application.
Definition at line 207 of file KFontDialog_local.h. |
|
Sets the state of the checkbox indicating whether the font size is to be interpreted as relative size. NOTE: If parameter sizeIsRelative was not set in the constructor of the widget this setting will be ignored. Definition at line 390 of file KFontDialog_local.cpp. |
|
Reimplemented for internal reasons.
Definition at line 408 of file KFontDialog_local.cpp. |
|
Definition at line 401 of file KFontDialog_local.cpp. |
The documentation for this class was generated from the following files: