#include </home/clem/local/src/opie/libopie2/opieui/ofontselector.h>
Collaboration diagram for Opie::Ui::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 | |
| Internal::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 55 of file ofontselector.h.
|
||||||||||||||||||||
|
Constructs the Selector object
Definition at line 129 of file ofontselector.cpp. References d, fontFamilyClicked(), fontSizeClicked(), fontStyleClicked(), loadFonts(), Opie::Ui::Internal::OFontSelectorPrivate::m_font_family_list, Opie::Ui::Internal::OFontSelectorPrivate::m_font_size_list, Opie::Ui::Internal::OFontSelectorPrivate::m_font_style_list, Opie::Ui::Internal::OFontSelectorPrivate::m_pointbug, Opie::Ui::Internal::OFontSelectorPrivate::m_preview, qt_version(), and tr. |
|
|
Definition at line 174 of file ofontselector.cpp. References d. |
|
|
Definition at line 387 of file ofontselector.cpp. References d, f, fontSelected(), Opie::Ui::Internal::OFontSelectorPrivate::m_preview, and selectedFont(). Referenced by fontFamilyClicked(), fontSizeClicked(), and fontStyleClicked(). |
|
|
returns the charset of the font or QString::null Definition at line 282 of file ofontselector.cpp. References d, Opie::Ui::Internal::FontListItem::family(), Opie::Ui::Internal::OFontSelectorPrivate::m_fdb, Opie::Ui::Internal::OFontSelectorPrivate::m_font_family_list, and QString::null. Referenced by TerminalWidget::save(). |
|
|
This method does return the font family or QString::null if there is no font item selected
Definition at line 249 of file ofontselector.cpp. References d, Opie::Ui::Internal::FontListItem::family(), Opie::Ui::Internal::OFontSelectorPrivate::m_font_family_list, and QString::null. Referenced by TerminalWidget::save(). |
|
|
For internal use only.
Definition at line 332 of file ofontselector.cpp. References begin, changeFont(), d, end, findItemCB(), fontSizeClicked(), fontStyleClicked(), i, Opie::Ui::Internal::OFontSelectorPrivate::m_font_family_list, Opie::Ui::Internal::OFontSelectorPrivate::m_font_size_list, Opie::Ui::Internal::OFontSelectorPrivate::m_font_style_list, QString::number(), Opie::Ui::Internal::FontListItem::sizes(), and Opie::Ui::Internal::FontListItem::styles(). 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 271 of file ofontselector.cpp. References d, Opie::Ui::Internal::OFontSelectorPrivate::m_font_family_list, Opie::Ui::Internal::OFontSelectorPrivate::m_font_size_list, and Opie::Ui::Internal::FontListItem::sizes(). Referenced by TerminalWidget::save(). |
|
|
For internal use only.
Definition at line 382 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 260 of file ofontselector.cpp. References d, Opie::Ui::Internal::OFontSelectorPrivate::m_font_family_list, Opie::Ui::Internal::OFontSelectorPrivate::m_font_style_list, QString::null, and Opie::Ui::Internal::FontListItem::styles(). Referenced by TerminalWidget::save(). |
|
|
For internal use only.
Definition at line 377 of file ofontselector.cpp. References changeFont(). Referenced by fontFamilyClicked(), OFontSelector(), and setSelectedFont(). |
|
|
Definition at line 314 of file ofontselector.cpp. References begin, d, end, f, Opie::Ui::Internal::OFontSelectorPrivate::m_fdb, and Opie::Ui::Internal::OFontSelectorPrivate::m_pointbug. Referenced by OFontSelector(). |
|
|
Definition at line 419 of file ofontselector.cpp. References d, and Opie::Ui::Internal::OFontSelectorPrivate::m_preview. |
|
|
Return the selected font Definition at line 400 of file ofontselector.cpp. References d, Opie::Ui::Internal::OFontSelectorPrivate::m_fdb, Opie::Ui::Internal::OFontSelectorPrivate::m_font_family_list, Opie::Ui::Internal::OFontSelectorPrivate::m_font_size_list, Opie::Ui::Internal::OFontSelectorPrivate::m_font_style_list, and QString::null. Referenced by changeFont(), and selectedFont(). |
|
||||||||||||||||||||
|
Overloaded member function see above
Definition at line 293 of file ofontselector.cpp. References d, Opie::Ui::Internal::OFontSelectorPrivate::m_fdb, Opie::Ui::Internal::OFontSelectorPrivate::m_font_family_list, Opie::Ui::Internal::OFontSelectorPrivate::m_font_size_list, Opie::Ui::Internal::OFontSelectorPrivate::m_font_style_list, 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 237 of file ofontselector.cpp. References selectedFont(). Referenced by ConfigureDlg::selectedFont(). |
|
||||||||||||||||||||
|
This is an overloaded method
Definition at line 197 of file ofontselector.cpp. References d, findItemCB(), fontFamilyClicked(), fontSizeClicked(), fontStyleClicked(), Opie::Ui::Internal::OFontSelectorPrivate::m_font_family_list, Opie::Ui::Internal::OFontSelectorPrivate::m_font_size_list, Opie::Ui::Internal::OFontSelectorPrivate::m_font_style_list, QString::number(), and size. |
|
|
This methods tries to set the font
Definition at line 184 of file ofontselector.cpp. References d, and Opie::Ui::Internal::OFontSelectorPrivate::m_fdb. Referenced by ConfigureDlg::ConfigureDlg(), and TerminalWidget::load(). |
|
|
Definition at line 99 of file ofontselector.h. Referenced by changeFont(), fontCharSet(), fontFamily(), fontFamilyClicked(), fontSize(), fontStyle(), loadFonts(), OFontSelector(), resizeEvent(), selectedFont(), setSelectedFont(), and ~OFontSelector(). |
1.4.2