kfontcombo.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _KFONTCOMBO_H_
00022 #define _KFONTCOMBO_H_
00023
00024 #include <kcombobox.h>
00025
00037 class KFontCombo : public KComboBox
00038 {
00039 Q_OBJECT
00040 Q_PROPERTY(QString family READ currentFont WRITE setCurrentFont)
00041 Q_PROPERTY(bool bold READ bold WRITE setBold DESIGNABLE true)
00042 Q_PROPERTY(bool italic READ italic WRITE setItalic DESIGNABLE true)
00043 Q_PROPERTY(bool underline READ underline WRITE setUnderline DESIGNABLE true)
00044 Q_PROPERTY(bool strikeOut READ strikeOut WRITE setStrikeOut DESIGNABLE true)
00045 Q_PROPERTY(int fontSize READ size WRITE setSize DESIGNABLE true)
00046 public:
00053 KFontCombo(QWidget *parent, const char *name = 0);
00061 KFontCombo(const QStringList &fonts, QWidget *parent, const char *name = 0);
00065 virtual ~KFontCombo();
00066
00072 void setFonts(const QStringList &fonts);
00078 void setCurrentFont(const QString &family);
00082 QString currentFont() const;
00083
00089 void setBold(bool bold);
00095 bool bold() const;
00101 void setItalic(bool italic);
00107 bool italic() const;
00113 void setUnderline(bool underline);
00119 bool underline() const;
00125 void setStrikeOut(bool strikeOut);
00131 bool strikeOut() const;
00137 void setSize(int size);
00143 int size() const;
00144
00151 static bool displayFonts();
00152
00153 virtual void setCurrentItem(int i);
00154
00155 protected slots:
00160 void slotModified( int i );
00161
00162 protected:
00167 void updateFonts();
00168
00169 private:
00170 void init();
00171
00172 private:
00173 friend class KFontListItem;
00174 protected:
00175 virtual void virtual_hook( int id, void* data );
00176 private:
00177 struct KFontComboPrivate *d;
00178 };
00179
00180 #endif
00181
This file is part of the documentation for kdeui Library Version 3.3.1.