21 #ifndef _TDEFONTCOMBO_H_
22 #define _TDEFONTCOMBO_H_
24 #include <kcombobox.h>
38 TQ_PROPERTY(TQString family READ currentFont WRITE setCurrentFont)
39 TQ_PROPERTY(
bool bold READ bold WRITE setBold DESIGNABLE
true)
40 TQ_PROPERTY(
bool italic READ italic WRITE setItalic DESIGNABLE
true)
41 TQ_PROPERTY(
bool underline READ underline WRITE setUnderline DESIGNABLE
true)
42 TQ_PROPERTY(
bool strikeOut READ strikeOut WRITE setStrikeOut DESIGNABLE
true)
43 TQ_PROPERTY(
int fontSize READ size WRITE setSize DESIGNABLE
true)
59 TDEFontCombo(
const TQStringList &fonts, TQWidget *parent,
const char *name = 0);
70 void setFonts(
const TQStringList &fonts);
76 void setCurrentFont(
const TQString &family);
80 TQString currentFont()
const;
87 void setBold(
bool bold);
99 void setItalic(
bool italic);
111 void setUnderline(
bool underline);
117 bool underline()
const;
123 void setStrikeOut(
bool strikeOut);
129 bool strikeOut()
const;
135 void setSize(
int size);
149 static bool displayFonts();
158 void slotModified(
int i );
171 friend class TDEFontListItem;
173 virtual void virtual_hook(
int id,
void* data );
175 struct TDEFontComboPrivate *d;
void setCurrentItem(const TQString &item, bool insert=false, int index=-1)
Selects the first item that matches item.
A combobox that lists the available fonts.