-rw-r--r-- | libopie/ofontselector.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libopie/ofontselector.h b/libopie/ofontselector.h index 2011e43..b3aa862 100644 --- a/libopie/ofontselector.h +++ b/libopie/ofontselector.h | |||
@@ -28,48 +28,49 @@ | |||
28 | 28 | ||
29 | #ifndef __OPIE_FONTSELECTOR_H__ | 29 | #ifndef __OPIE_FONTSELECTOR_H__ |
30 | #define __OPIE_FONTSELECTOR_H__ | 30 | #define __OPIE_FONTSELECTOR_H__ |
31 | 31 | ||
32 | #include <qwidget.h> | 32 | #include <qwidget.h> |
33 | #include <qpe/fontdatabase.h> | 33 | #include <qpe/fontdatabase.h> |
34 | 34 | ||
35 | class QComboBox; | 35 | class QComboBox; |
36 | class QListBox; | 36 | class QListBox; |
37 | class QFont; | 37 | class QFont; |
38 | 38 | ||
39 | class OFontSelector : public QWidget | 39 | class OFontSelector : public QWidget |
40 | { | 40 | { |
41 | Q_OBJECT | 41 | Q_OBJECT |
42 | 42 | ||
43 | public: | 43 | public: |
44 | OFontSelector ( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 44 | OFontSelector ( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
45 | virtual ~OFontSelector ( ); | 45 | virtual ~OFontSelector ( ); |
46 | 46 | ||
47 | bool selectedFont ( QString &family, QString &style, int &size ); | 47 | bool selectedFont ( QString &family, QString &style, int &size ); |
48 | bool selectedFont ( QString &family, QString &style, int &size, QString &charset ); | 48 | bool selectedFont ( QString &family, QString &style, int &size, QString &charset ); |
49 | 49 | ||
50 | QFont selectedFont ( ); | 50 | QFont selectedFont ( ); |
51 | 51 | ||
52 | bool setSelectedFont ( const QFont & ); | ||
52 | bool setSelectedFont ( const QString &family, const QString &style, int size, const QString &charset = 0 ); | 53 | bool setSelectedFont ( const QString &family, const QString &style, int size, const QString &charset = 0 ); |
53 | 54 | ||
54 | QString fontFamily ( ) const; | 55 | QString fontFamily ( ) const; |
55 | QString fontStyle ( ) const; | 56 | QString fontStyle ( ) const; |
56 | int fontSize ( ) const; | 57 | int fontSize ( ) const; |
57 | QString fontCharSet ( ) const; | 58 | QString fontCharSet ( ) const; |
58 | 59 | ||
59 | signals: | 60 | signals: |
60 | void fontSelected ( const QFont & ); | 61 | void fontSelected ( const QFont & ); |
61 | 62 | ||
62 | protected slots: | 63 | protected slots: |
63 | virtual void fontFamilyClicked ( int ); | 64 | virtual void fontFamilyClicked ( int ); |
64 | virtual void fontStyleClicked ( int ); | 65 | virtual void fontStyleClicked ( int ); |
65 | virtual void fontSizeClicked ( int ); | 66 | virtual void fontSizeClicked ( int ); |
66 | 67 | ||
67 | private: | 68 | private: |
68 | void loadFonts ( QListBox * ); | 69 | void loadFonts ( QListBox * ); |
69 | 70 | ||
70 | void changeFont ( ); | 71 | void changeFont ( ); |
71 | 72 | ||
72 | private: | 73 | private: |
73 | QListBox * m_font_family_list; | 74 | QListBox * m_font_family_list; |
74 | QComboBox * m_font_style_list; | 75 | QComboBox * m_font_style_list; |
75 | QComboBox * m_font_size_list; | 76 | QComboBox * m_font_size_list; |