summaryrefslogtreecommitdiff
path: root/libopie/ofontmenu.h
Unidiff
Diffstat (limited to 'libopie/ofontmenu.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/ofontmenu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie/ofontmenu.h b/libopie/ofontmenu.h
index 609f240..5fd515f 100644
--- a/libopie/ofontmenu.h
+++ b/libopie/ofontmenu.h
@@ -1,83 +1,83 @@
1 1
2/* 2/*
3 3
4               =. This file is part of the OPIE Project 4               =. This file is part of the OPIE Project
5             .=l. Copyright (c) 2002 zekce <zecke@handhelds.org> 5             .=l. Copyright (c) 2002 zecke <zecke@handhelds.org>
6           .>+-= 6           .>+-=
7 _;:,     .>    :=|. This library is free software; you can 7 _;:,     .>    :=|. This library is free software; you can
8.> <`_,   >  .   <= redistribute it and/or modify it under 8.> <`_,   >  .   <= redistribute it and/or modify it under
9:`=1 )Y*s>-.--   : the terms of the GNU Library General Public 9:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
10.="- .-=="i,     .._ License as published by the Free Software 10.="- .-=="i,     .._ License as published by the Free Software
11 - .   .-<_>     .<> Foundation; either version 2 of the License, 11 - .   .-<_>     .<> Foundation; either version 2 of the License,
12     ._= =}       : or (at your option) any later version. 12     ._= =}       : or (at your option) any later version.
13    .%`+i>       _;_. 13    .%`+i>       _;_.
14    .i_,=:_.      -<s. This library is distributed in the hope that 14    .i_,=:_.      -<s. This library is distributed in the hope that
15     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 15     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
16    : ..    .:,     . . . without even the implied warranty of 16    : ..    .:,     . . . without even the implied warranty of
17    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 17    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
18  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 18  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
19..}^=.=       =       ; Library General Public License for more 19..}^=.=       =       ; Library General Public License for more
20++=   -.     .`     .: details. 20++=   -.     .`     .: details.
21 :     =  ...= . :.=- 21 :     =  ...= . :.=-
22 -.   .:....=;==+<; You should have received a copy of the GNU 22 -.   .:....=;==+<; You should have received a copy of the GNU
23  -_. . .   )=.  = Library General Public License along with 23  -_. . .   )=.  = Library General Public License along with
24    --        :-=` this library; see the file COPYING.LIB. 24    --        :-=` this library; see the file COPYING.LIB.
25 If not, write to the Free Software Foundation, 25 If not, write to the Free Software Foundation,
26 Inc., 59 Temple Place - Suite 330, 26 Inc., 59 Temple Place - Suite 330,
27 Boston, MA 02111-1307, USA. 27 Boston, MA 02111-1307, USA.
28 28
29*/ 29*/
30 30
31 31
32 32
33 33
34#ifndef ofontmenu_h 34#ifndef ofontmenu_h
35#define ofontmenu_h 35#define ofontmenu_h
36 36
37#include <qpopupmenu.h> 37#include <qpopupmenu.h>
38#include <qlist.h> 38#include <qlist.h>
39 39
40 40
41namespace { 41namespace {
42 struct WidSize { 42 struct WidSize {
43 QWidget *wid; 43 QWidget *wid;
44 int size; 44 int size;
45 }; 45 };
46 46
47}; 47};
48 48
49// if i would be on kde this would be a KActionMenu... 49// if i would be on kde this would be a KActionMenu...
50class Config; 50class Config;
51class OFontMenu : public QPopupMenu { 51class OFontMenu : public QPopupMenu {
52 Q_OBJECT 52 Q_OBJECT
53 public: 53 public:
54 OFontMenu(QWidget *parent, const char* name, const QList<QWidget> &list ); 54 OFontMenu(QWidget *parent, const char* name, const QList<QWidget> &list );
55 void save(Config *cfg ); 55 void save(Config *cfg );
56 void restore(Config *cfg ); 56 void restore(Config *cfg );
57 void setWidgets(const QList<QWidget> &list ); 57 void setWidgets(const QList<QWidget> &list );
58 void addWidget(QWidget *wid ); 58 void addWidget(QWidget *wid );
59 void forceSize(QWidget *wid, int size ); 59 void forceSize(QWidget *wid, int size );
60 void removeWidget(QWidget *wid ); 60 void removeWidget(QWidget *wid );
61 const QList<QWidget> &widgets()const; 61 const QList<QWidget> &widgets()const;
62 62
63 signals: 63 signals:
64 void fontChanged(int size ); 64 void fontChanged(int size );
65 private: 65 private:
66 QList<QWidget> m_list; 66 QList<QWidget> m_list;
67 QList<WidSize> m_wids; 67 QList<WidSize> m_wids;
68 int m_size; 68 int m_size;
69 class OFontMenuPrivate; 69 class OFontMenuPrivate;
70 OFontMenuPrivate *d; 70 OFontMenuPrivate *d;
71 private slots: 71 private slots:
72 virtual void slotSmall(); 72 virtual void slotSmall();
73 virtual void slotMedium(); 73 virtual void slotMedium();
74 virtual void slotLarge(); 74 virtual void slotLarge();
75 void setFontSize(int size ); 75 void setFontSize(int size );
76}; 76};
77 77
78#endif 78#endif
79 79
80 80
81 81
82 82
83 83