#include </home/clem/local/src/opie/noncore/unsupported/libopie/ofontselector.h>
Collaboration diagram for OFontSelector:

Signals | |
| void | fontSelected (const QFont &) |
Public Member Functions | |
| OFontSelector (bool withpreview, QWidget *parent=0, const char *name=0, WFlags fl=0) | |
| virtual | ~OFontSelector () |
| bool | selectedFont (QString &family, QString &style, int &size) |
| bool | selectedFont (QString &family, QString &style, int &size, QString &charset) |
| QFont | selectedFont () |
| bool | setSelectedFont (const QFont &) |
| bool | setSelectedFont (const QString &family, const QString &style, int size, const QString &charset=0) |
| QString | fontFamily () const |
| QString | fontStyle () const |
| int | fontSize () const |
| QString | fontCharSet () const |
Protected Slots | |
| virtual void | fontFamilyClicked (int) |
| virtual void | fontStyleClicked (int) |
| virtual void | fontSizeClicked (int) |
Protected Member Functions | |
| virtual void | resizeEvent (QResizeEvent *re) |
Private Member Functions | |
| void | loadFonts (QListBox *) |
| void | changeFont () |
Private Attributes | |
| OFontSelectorPrivate * | d |
This class lets you chose a Font out of a list of Fonts. It can show a preview too. This selector will use all available fonts
QFont
Definition at line 48 of file ofontselector.h.
|
||||||||||||||||||||
|
Constructs the Selector object
Definition at line 113 of file ofontselector.cpp. References d, fontFamilyClicked(), fontSizeClicked(), fontStyleClicked(), loadFonts(), qt_version(), and tr. |
|
|
Definition at line 157 of file ofontselector.cpp. References d. |
|
|
Definition at line 367 of file ofontselector.cpp. References d, f, fontSelected(), and selectedFont(). Referenced by fontFamilyClicked(), fontSizeClicked(), and fontStyleClicked(). |
|
|
returns the charset of the font or QString::null Definition at line 264 of file ofontselector.cpp. References d, and QString::null. |
|
|
This method does return the font family or QString::null if there is no font item selected
Definition at line 231 of file ofontselector.cpp. References d, and QString::null. |
|
|
For internal use only.
Definition at line 314 of file ofontselector.cpp. References begin, changeFont(), d, end, findItemCB(), fontSizeClicked(), fontStyleClicked(), i, and QString::number(). Referenced by OFontSelector(), and setSelectedFont(). |
|
|
This signal gets emitted when a font got chosen Referenced by changeFont(). |
|
|
This method will return the font size or 10 if no font size is available Definition at line 253 of file ofontselector.cpp. References d. |
|
|
For internal use only.
Definition at line 362 of file ofontselector.cpp. References changeFont(). Referenced by fontFamilyClicked(), OFontSelector(), and setSelectedFont(). |
|
|
This method will return the style of the font or QString::null
Definition at line 242 of file ofontselector.cpp. References d, and QString::null. |
|
|
For internal use only.
Definition at line 357 of file ofontselector.cpp. References changeFont(). Referenced by fontFamilyClicked(), OFontSelector(), and setSelectedFont(). |
|
|
Definition at line 298 of file ofontselector.cpp. References begin, d, end, and f. Referenced by OFontSelector(). |
|
|
Definition at line 399 of file ofontselector.cpp. |
|
|
Return the selected font Definition at line 380 of file ofontselector.cpp. References d, and QString::null. Referenced by changeFont(), and selectedFont(). |
|
||||||||||||||||||||
|
Overloaded member function see above
Definition at line 275 of file ofontselector.cpp. References d, and QString::null. |
|
||||||||||||||||
|
This method returns the name, style and size of the currently selected font or false if no font is selected
Definition at line 219 of file ofontselector.cpp. References selectedFont(). |
|
||||||||||||||||||||
|
This is an overloaded method
Definition at line 180 of file ofontselector.cpp. References d, findItemCB(), fontFamilyClicked(), fontSizeClicked(), fontStyleClicked(), QString::number(), and size. |
|
|
This methods tries to set the font
Definition at line 167 of file ofontselector.cpp. References d. |
|
|
Definition at line 92 of file ofontselector.h. Referenced by changeFont(), fontCharSet(), fontFamily(), fontFamilyClicked(), fontSize(), fontStyle(), loadFonts(), OFontSelector(), resizeEvent(), selectedFont(), setSelectedFont(), and ~OFontSelector(). |
1.4.2