KDEUI
kfontdialog.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef K_FONT_DIALOG_H
00025 #define K_FONT_DIALOG_H
00026
00027 #include <kdialog.h>
00028 #include <kfontchooser.h>
00029
00030 class QFont;
00031 class QStringList;
00032
00056 class KDEUI_EXPORT KFontDialog : public KDialog {
00057 Q_OBJECT
00058
00059 public:
00082 explicit KFontDialog( QWidget *parent = 0,
00083 const KFontChooser::DisplayFlags& flags =
00084 KFontChooser::NoDisplayFlags,
00085 const QStringList &fontlist = QStringList(),
00086 Qt::CheckState *sizeIsRelativeState = 0 );
00087
00088 ~KFontDialog();
00096 void setFont( const QFont &font, bool onlyFixed = false );
00097
00101 QFont font() const;
00102
00109 void setSizeIsRelative( Qt::CheckState relative );
00110
00115 Qt::CheckState sizeIsRelative() const;
00116
00137 static int getFont( QFont &theFont,
00138 const KFontChooser::DisplayFlags& flags =
00139 KFontChooser::NoDisplayFlags,
00140 QWidget *parent = 0L,
00141 Qt::CheckState *sizeIsRelativeState = 0L );
00142
00175 static int getFontDiff( QFont &theFont,
00176 KFontChooser::FontDiffFlags& diffFlags,
00177 const KFontChooser::DisplayFlags& flags =
00178 KFontChooser::NoDisplayFlags,
00179 QWidget *parent = 0L,
00180 Qt::CheckState *sizeIsRelativeState = 0L );
00181
00201 static int getFontAndText( QFont &theFont, QString &theString,
00202 const KFontChooser::DisplayFlags& flags =
00203 KFontChooser::NoDisplayFlags,
00204 QWidget *parent = 0L,
00205 Qt::CheckState *sizeIsRelativeState = 0L );
00206
00207 Q_SIGNALS:
00213 void fontSelected( const QFont &font );
00214
00215 private:
00216 class Private;
00217 Private * const d;
00218
00219 Q_DISABLE_COPY(KFontDialog)
00220 };
00221
00222 #endif