summaryrefslogtreecommitdiff
path: root/libopie/ofontselector.h
authorsandman <sandman>2002-09-27 00:54:58 (UTC)
committer sandman <sandman>2002-09-27 00:54:58 (UTC)
commitdcd5eb6949787321c278b10772bd75a27ec6d508 (patch) (unidiff)
tree12525523ac676e6b43419f742afb6b1d007d61da /libopie/ofontselector.h
parentaec4806d28c0422e9d0572e9601d6dc41a9cdd61 (diff)
downloadopie-dcd5eb6949787321c278b10772bd75a27ec6d508.zip
opie-dcd5eb6949787321c278b10772bd75a27ec6d508.tar.gz
opie-dcd5eb6949787321c278b10772bd75a27ec6d508.tar.bz2
- size tweak for OColorButton
- new convenience methods in OFontSelector
Diffstat (limited to 'libopie/ofontselector.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie/ofontselector.h1
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
35class QComboBox; 35class QComboBox;
36class QListBox; 36class QListBox;
37class QFont; 37class QFont;
38 38
39class OFontSelector : public QWidget 39class OFontSelector : public QWidget
40{ 40{
41 Q_OBJECT 41 Q_OBJECT
42 42
43public: 43public:
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
59signals: 60signals:
60 void fontSelected ( const QFont & ); 61 void fontSelected ( const QFont & );
61 62
62protected slots: 63protected 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
67private: 68private:
68 void loadFonts ( QListBox * ); 69 void loadFonts ( QListBox * );
69 70
70 void changeFont ( ); 71 void changeFont ( );
71 72
72private: 73private:
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;