KDEUI
Go to the documentation of this file. 24 #ifndef K_FONT_CHOOSER_H 25 #define K_FONT_CHOOSER_H 28 #include <QtGui/QWidget> 50 Q_PROPERTY(
QFont font READ font WRITE setFont NOTIFY fontSelected USER
true )
51 Q_PROPERTY(
QColor color READ color WRITE setColor )
52 Q_PROPERTY(
QColor backgroundColor READ backgroundColor WRITE setBackgroundColor )
53 Q_PROPERTY( Qt::CheckState sizeIsRelative READ sizeIsRelative WRITE setSizeIsRelative )
54 Q_PROPERTY( QString sampleText READ sampleText WRITE setSampleText )
62 enum
FontColumn { FamilyList=0x01, StyleList=0x02, SizeList=0x04};
73 AllFontDiffs = FontDiffFamily | FontDiffStyle | FontDiffSize };
74 Q_DECLARE_FLAGS( FontDiffFlags,
FontDiff )
84 ShowDifferences = 4 };
117 const DisplayFlags& flags = DisplayFrame,
118 const QStringList &fontList = QStringList(),
119 int visibleListSize = 8,
120 Qt::CheckState *sizeIsRelativeState = 0L );
138 void enableColumn(
int column,
bool state );
147 void setFont(
const QFont &font,
bool onlyFixed =
false );
153 FontDiffFlags fontDiffFlags()
const;
163 void setColor(
const QColor & col );
174 void setBackgroundColor(
const QColor & col );
180 QColor backgroundColor()
const;
188 void setSizeIsRelative( Qt::CheckState relative );
194 Qt::CheckState sizeIsRelative()
const;
200 QString sampleText()
const;
212 void setSampleText(
const QString &text );
219 void setSampleBoxVisible(
bool visible );
232 enum FontListCriteria { FixedWidthFonts=0x01, ScalableFonts=0x02, SmoothScalableFonts=0x04 };
241 static void getFontList( QStringList &list, uint fontListCriteria);
246 virtual QSize sizeHint(
void )
const;
252 void fontSelected(
const QFont &font );
260 Q_PRIVATE_SLOT(d,
void _k_toggled_checkbox())
261 Q_PRIVATE_SLOT(d,
void _k_family_chosen_slot(
const QString&))
262 Q_PRIVATE_SLOT(d,
void _k_size_chosen_slot(
const QString&))
263 Q_PRIVATE_SLOT(d,
void _k_style_chosen_slot(
const QString&))
264 Q_PRIVATE_SLOT(d,
void _k_displaySample(
const QFont &font))
265 Q_PRIVATE_SLOT(d,
void _k_showXLFDArea(
bool))
266 Q_PRIVATE_SLOT(d,
void _k_size_value_slot(
double))
269 Q_DECLARE_OPERATORS_FOR_FLAGS( KFontChooser::DisplayFlags )
FontListCriteria
The selection criteria for the font families shown in the dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2017 The KDE developers.
Generated on Tue May 16 2017 10:20:56 by
doxygen 1.8.13 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.