summaryrefslogtreecommitdiff
path: root/libopie
Unidiff
Diffstat (limited to 'libopie') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/libopie.pro19
-rw-r--r--libopie/odevice.h2
-rw-r--r--libopie/ofileselector.cc13
-rw-r--r--libopie/ofileview.h28
-rw-r--r--libopie/ofontmenu.h2
5 files changed, 39 insertions, 25 deletions
diff --git a/libopie/libopie.pro b/libopie/libopie.pro
index 891c03e..6c47e86 100644
--- a/libopie/libopie.pro
+++ b/libopie/libopie.pro
@@ -1,25 +1,40 @@
1TEMPLATE = lib 1TEMPLATE = lib
2CONFIG += qte warn_on release 2CONFIG += qte warn_on release
3HEADERS = ofontmenu.h ofileselector.h ofiledialog.h ofileview.h tododb.h todoevent.h todoresource.h todovcalresource.h xmltree.h colordialog.h colorpopupmenu.h oclickablelabel.h oprocctrl.h oprocess.h odevice.h otimepicker.h otabwidget.h otabbar.h otabinfo.h 3HEADERS = ofontmenu.h ofileselector.h \
4SOURCES = ofontmenu.cc ofileselector.cc ofiledialog.cc xmltree.cc tododb.cpp todoevent.cpp todovcalresource.cpp colordialog.cpp colorpopupmenu.cpp oclickablelabel.cpp oprocctrl.cpp oprocess.cpp odevice.cpp otimepicker.cpp otabwidget.cpp otabbar.cpp 4 ofiledialog.h tododb.h \
5 todoevent.h todoresource.h \
6 todovcalresource.h xmltree.h \
7 colordialog.h colorpopupmenu.h \
8 oclickablelabel.h oprocctrl.h \
9 oprocess.h odevice.h \
10 otimepicker.h otabwidget.h \
11 otabbar.h otabinfo.h
12SOURCES = ofontmenu.cc ofileselector.cc \
13 ofiledialog.cc xmltree.cc \
14 tododb.cpp todoevent.cpp \
15 todovcalresource.cpp colordialog.cpp \
16 colorpopupmenu.cpp oclickablelabel.cpp \
17 oprocctrl.cpp oprocess.cpp \
18 odevice.cpp otimepicker.cpp \
19 otabwidget.cpp otabbar.cpp
5TARGET = opie 20TARGET = opie
6INCLUDEPATH += $(OPIEDIR)/include 21INCLUDEPATH += $(OPIEDIR)/include
7DESTDIR = $(QTDIR)/lib$(PROJMAK) 22DESTDIR = $(QTDIR)/lib$(PROJMAK)
8#VERSION = 1.0.0 23#VERSION = 1.0.0
9 24
10INTERFACES = otimepickerbase.ui 25INTERFACES = otimepickerbase.ui
11 26
12TRANSLATIONS = ../i18n/de/libopie.ts \ 27TRANSLATIONS = ../i18n/de/libopie.ts \
13 ../i18n/en/libopie.ts \ 28 ../i18n/en/libopie.ts \
14 ../i18n/es/libopie.ts \ 29 ../i18n/es/libopie.ts \
15 ../i18n/fr/libopie.ts \ 30 ../i18n/fr/libopie.ts \
16 ../i18n/hu/libopie.ts \ 31 ../i18n/hu/libopie.ts \
17 ../i18n/ja/libopie.ts \ 32 ../i18n/ja/libopie.ts \
18 ../i18n/ko/libopie.ts \ 33 ../i18n/ko/libopie.ts \
19 ../i18n/no/libopie.ts \ 34 ../i18n/no/libopie.ts \
20 ../i18n/pl/libopie.ts \ 35 ../i18n/pl/libopie.ts \
21 ../i18n/pt/libopie.ts \ 36 ../i18n/pt/libopie.ts \
22 ../i18n/pt_BR/libopie.ts \ 37 ../i18n/pt_BR/libopie.ts \
23 ../i18n/sl/libopie.ts \ 38 ../i18n/sl/libopie.ts \
24 ../i18n/zh_CN/libopie.ts \ 39 ../i18n/zh_CN/libopie.ts \
25 ../i18n/zh_TW/libopie.ts 40 ../i18n/zh_TW/libopie.ts
diff --git a/libopie/odevice.h b/libopie/odevice.h
index 9dda68e..2f676ff 100644
--- a/libopie/odevice.h
+++ b/libopie/odevice.h
@@ -33,66 +33,64 @@ enum OModel {
33 OMODEL_iPAQ_H37xx, 33 OMODEL_iPAQ_H37xx,
34 OMODEL_iPAQ_H38xx, 34 OMODEL_iPAQ_H38xx,
35 35
36 OMODEL_Zaurus_SL5000 36 OMODEL_Zaurus_SL5000
37}; 37};
38 38
39 enum OVendor { 39 enum OVendor {
40 OVENDOR_Unknown, 40 OVENDOR_Unknown,
41 41
42 OVENDOR_HP, 42 OVENDOR_HP,
43 OVENDOR_Sharp 43 OVENDOR_Sharp
44 }; 44 };
45 45
46enum OSystem { 46enum OSystem {
47 OSYSTEM_Unknown, 47 OSYSTEM_Unknown,
48 48
49 OSYSTEM_Familiar, 49 OSYSTEM_Familiar,
50 OSYSTEM_Zaurus, 50 OSYSTEM_Zaurus,
51 OSYSTEM_OpenZaurus 51 OSYSTEM_OpenZaurus
52}; 52};
53 53
54enum OLedState { 54enum OLedState {
55 OLED_Off, 55 OLED_Off,
56 OLED_On, 56 OLED_On,
57 OLED_BlinkSlow, 57 OLED_BlinkSlow,
58 OLED_BlinkFast 58 OLED_BlinkFast
59}; 59};
60 60
61 61
62class ODevice 62class ODevice
63{ 63{
64public: 64public:
65
66public:
67 static ODevice *inst ( ); 65 static ODevice *inst ( );
68 66
69 // system 67 // system
70 enum PowerButtonHandler { 68 enum PowerButtonHandler {
71 KERNEL, 69 KERNEL,
72 OPIE 70 OPIE
73 }; 71 };
74 72
75 virtual bool setPowerButtonHandler ( PowerButtonHandler h ); 73 virtual bool setPowerButtonHandler ( PowerButtonHandler h );
76 virtual bool suspend ( ); 74 virtual bool suspend ( );
77 75
78 virtual bool setDisplayStatus ( bool on ); 76 virtual bool setDisplayStatus ( bool on );
79 virtual bool setDisplayBrightness ( int brightness ); 77 virtual bool setDisplayBrightness ( int brightness );
80 virtual int displayBrightnessResolution ( ) const; 78 virtual int displayBrightnessResolution ( ) const;
81 79
82// information 80// information
83 81
84 QString modelString ( ); 82 QString modelString ( );
85 OModel model ( ); 83 OModel model ( );
86 84
87 QString vendorString ( ); 85 QString vendorString ( );
88 OVendor vendor ( ); 86 OVendor vendor ( );
89 87
90 QString systemString ( ); 88 QString systemString ( );
91 OSystem system ( ); 89 OSystem system ( );
92 90
93 QString systemVersionString ( ); 91 QString systemVersionString ( );
94 92
95// input / output 93// input / output
96 94
97 virtual void alarmSound ( ); 95 virtual void alarmSound ( );
98 virtual void keySound ( ); 96 virtual void keySound ( );
diff --git a/libopie/ofileselector.cc b/libopie/ofileselector.cc
index 3c3a6c4..b3aacd6 100644
--- a/libopie/ofileselector.cc
+++ b/libopie/ofileselector.cc
@@ -156,70 +156,66 @@ void OFileSelector::setNewVisible( bool visible )
156 connect(m_select, SIGNAL(fileSelected( const DocLnk & ) ), 156 connect(m_select, SIGNAL(fileSelected( const DocLnk & ) ),
157 this, SLOT( slotFileBridgeSelected(const DocLnk & ) ) ); 157 this, SLOT( slotFileBridgeSelected(const DocLnk & ) ) );
158 connect(m_select, SIGNAL(closeMe() ), 158 connect(m_select, SIGNAL(closeMe() ),
159 this, SIGNAL(closeMe() ) ); 159 this, SIGNAL(closeMe() ) );
160 //connect to close me and other signals as well 160 //connect to close me and other signals as well
161 m_stack->addWidget( m_select, NORMAL ); 161 m_stack->addWidget( m_select, NORMAL );
162 }else{ 162 }else{
163 m_new->show(); 163 m_new->show();
164 } 164 }
165} 165}
166void OFileSelector::setCloseVisible( bool visible ) 166void OFileSelector::setCloseVisible( bool visible )
167{ 167{
168 m_shClose = visible; 168 m_shClose = visible;
169 if( m_selector == NORMAL ){ 169 if( m_selector == NORMAL ){
170 setNewVisible( m_shNew ); // yeah baby 170 setNewVisible( m_shNew ); // yeah baby
171 }else{ 171 }else{
172 m_close->show(); 172 m_close->show();
173 } 173 }
174} 174}
175void OFileSelector::reread() 175void OFileSelector::reread()
176{ 176{
177 if( m_selector == NORMAL ){ 177 if( m_selector == NORMAL ){
178 setNewVisible( m_shNew ); // make it a initializeSelector 178 setNewVisible( m_shNew ); // make it a initializeSelector
179 }else if ( m_selector == EXTENDED || m_selector == EXTENDED_ALL ){ 179 }else if ( m_selector == EXTENDED || m_selector == EXTENDED_ALL ){
180 reparse(); 180 reparse();
181 //}else{ 181 //}else{
182 //; 182 //;
183 } 183 }
184} 184}
185 185
186const DocLnk *OFileSelector::selected() 186const DocLnk *OFileSelector::selected()
187{ 187{
188 if( m_selector == NORMAL ){
189 return m_select->selected();
190 }else{
191 DocLnk *lnk = new DocLnk(selectedDocument() ); 188 DocLnk *lnk = new DocLnk(selectedDocument() );
192 return lnk; 189 return lnk;
193 }
194} 190}
195 191
196void OFileSelector::setYesCancelVisible( bool show ) 192void OFileSelector::setYesCancelVisible( bool show )
197{ 193{
198 initializeYes(); // FIXME if YesCancel is not shown we will initialize it to hide it :( 194 initializeYes(); // FIXME if YesCancel is not shown we will initialize it to hide it :(
199 m_shYesNo = show; 195 m_shYesNo = show;
200 if( m_shYesNo ) 196 if( m_shYesNo )
201 m_boxOk->show(); 197 m_boxOk->show();
202 else 198 else
203 m_boxOk->hide(); 199 m_boxOk->hide();
204 200
205} 201}
206void OFileSelector::setToolbarVisible( bool show ) 202void OFileSelector::setToolbarVisible( bool show )
207{ 203{
208 m_shTool = show; 204 m_shTool = show;
209 initializeListView(); // FIXME see above waste of memory 205 initializeListView(); // FIXME see above waste of memory
210 if(!m_shTool ){ 206 if(!m_shTool ){
211 m_location->hide(); 207 m_location->hide();
212 m_up->hide(); 208 m_up->hide();
213 m_homeButton->hide(); 209 m_homeButton->hide();
214 m_docButton->hide(); 210 m_docButton->hide();
215 }else{ 211 }else{
216 m_location->show(); 212 m_location->show();
217 m_up->show(); 213 m_up->show();
218 m_homeButton->show(); 214 m_homeButton->show();
219 m_docButton->show(); 215 m_docButton->show();
220 } 216 }
221} 217}
222void OFileSelector::setPermissionBarVisible( bool show ) 218void OFileSelector::setPermissionBarVisible( bool show )
223{ 219{
224 m_shPerm = show; 220 m_shPerm = show;
225 initializePerm(); 221 initializePerm();
@@ -297,67 +293,66 @@ bool OFileSelector::cd(const QString &path )
297 reparse(); 293 reparse();
298 return true; 294 return true;
299} 295}
300void OFileSelector::setSelector(int mode ) 296void OFileSelector::setSelector(int mode )
301{ 297{
302QString text; 298QString text;
303 switch( mode ){ 299 switch( mode ){
304 case NORMAL: 300 case NORMAL:
305 text = tr("Documents"); 301 text = tr("Documents");
306 break; 302 break;
307 case EXTENDED: 303 case EXTENDED:
308 text = tr("Files"); 304 text = tr("Files");
309 break; 305 break;
310 case EXTENDED_ALL: 306 case EXTENDED_ALL:
311 text = tr("All Files"); 307 text = tr("All Files");
312 break; 308 break;
313 } 309 }
314 slotViewCheck( text ); 310 slotViewCheck( text );
315} 311}
316 312
317void OFileSelector::setPopupMenu(QPopupMenu *popup ) 313void OFileSelector::setPopupMenu(QPopupMenu *popup )
318{ 314{
319 m_custom = popup; 315 m_custom = popup;
320 m_showPopup = true; 316 m_showPopup = true;
321} 317}
322 318
323//void OFileSelector::updateL 319//void OFileSelector::updateL
324 320
325QString OFileSelector::selectedName() const 321QString OFileSelector::selectedName() const
326{ 322{
327 QString name; 323 QString name;
328 if( m_selector == NORMAL ){ 324 if( m_selector == NORMAL ){
329 const DocLnk *lnk = m_select->selected(); 325 DocLnk lnk = m_select->selectedDocument();
330 name = lnk->file(); 326 name = lnk.file();
331 delete lnk;
332 }else if( m_selector == EXTENDED || m_selector == EXTENDED_ALL ){ 327 }else if( m_selector == EXTENDED || m_selector == EXTENDED_ALL ){
333 if ( m_shLne ) { 328 if ( m_shLne ) {
334 name = m_currentDir + "/" +m_edit->text(); 329 name = m_currentDir + "/" +m_edit->text();
335 }else{ 330 }else{
336 QListViewItem *item = m_View->currentItem(); 331 QListViewItem *item = m_View->currentItem();
337 if( item != 0 ) 332 if( item != 0 )
338 name = m_currentDir + "/" + item->text( 1 ); 333 name = m_currentDir + "/" + item->text( 1 );
339 } 334 }
340 }else { // installed view 335 }else { // installed view
341 ; 336 ;
342 } 337 }
343 return name; 338 return name;
344} 339}
345QStringList OFileSelector::selectedNames()const 340QStringList OFileSelector::selectedNames()const
346{ 341{
347 QStringList list; 342 QStringList list;
348 if( m_selector == NORMAL ){ 343 if( m_selector == NORMAL ){
349 list << selectedName(); 344 list << selectedName();
350 }else if ( m_selector == EXTENDED || m_selector == EXTENDED_ALL ) { 345 }else if ( m_selector == EXTENDED || m_selector == EXTENDED_ALL ) {
351 list << selectedName(); // FIXME implement multiple Selections 346 list << selectedName(); // FIXME implement multiple Selections
352 } 347 }
353 return list; 348 return list;
354} 349}
355/** If mode is set to the Dir selection this will return the selected path. 350/** If mode is set to the Dir selection this will return the selected path.
356 * 351 *
357 * 352 *
358 */ 353 */
359QString OFileSelector::selectedPath()const 354QString OFileSelector::selectedPath()const
360{ 355{
361 QString path; 356 QString path;
362 if( m_selector == NORMAL ){ 357 if( m_selector == NORMAL ){
363 path = QPEApplication::documentDir(); 358 path = QPEApplication::documentDir();
@@ -372,67 +367,65 @@ QStringList OFileSelector::selectedPaths() const
372 list << selectedPath(); 367 list << selectedPath();
373 return list; 368 return list;
374} 369}
375QString OFileSelector::directory()const 370QString OFileSelector::directory()const
376{ 371{
377 if( m_selector == NORMAL ) 372 if( m_selector == NORMAL )
378 return QPEApplication::documentDir(); 373 return QPEApplication::documentDir();
379 374
380 return QDir(m_currentDir).absPath(); 375 return QDir(m_currentDir).absPath();
381} 376}
382 377
383int OFileSelector::fileCount() 378int OFileSelector::fileCount()
384{ 379{
385 int count; 380 int count;
386 switch( m_selector ){ 381 switch( m_selector ){
387 case NORMAL: 382 case NORMAL:
388 count = m_select->fileCount(); 383 count = m_select->fileCount();
389 break; 384 break;
390 //case CUSTOM: 385 //case CUSTOM:
391 case EXTENDED: 386 case EXTENDED:
392 case EXTENDED_ALL: 387 case EXTENDED_ALL:
393 default: 388 default:
394 count = m_View->childCount(); 389 count = m_View->childCount();
395 break; 390 break;
396 } 391 }
397 return count; 392 return count;
398} 393}
399DocLnk OFileSelector::selectedDocument() const 394DocLnk OFileSelector::selectedDocument() const
400{ 395{
401 DocLnk lnk; 396 DocLnk lnk;
402 switch( m_selector ){ 397 switch( m_selector ){
403 case NORMAL:{ 398 case NORMAL:{
404 const DocLnk *lnk2 = m_select->selected(); 399 lnk = m_select->selectedDocument();
405 lnk = DocLnk(*lnk2 ); // copy
406 delete lnk2;
407 break; 400 break;
408 } 401 }
409 case EXTENDED: 402 case EXTENDED:
410 case EXTENDED_ALL: 403 case EXTENDED_ALL:
411 default: 404 default:
412 lnk = DocLnk( selectedName() ); // new DocLnk 405 lnk = DocLnk( selectedName() ); // new DocLnk
413 break; 406 break;
414 } 407 }
415 return lnk; 408 return lnk;
416} 409}
417QValueList<DocLnk> OFileSelector::selectedDocuments() const 410QValueList<DocLnk> OFileSelector::selectedDocuments() const
418{ 411{
419 QValueList<DocLnk> docs; 412 QValueList<DocLnk> docs;
420 docs.append( selectedDocument() ); 413 docs.append( selectedDocument() );
421 return docs; 414 return docs;
422} 415}
423 416
424 417
425// slots internal 418// slots internal
426 419
427void OFileSelector::slotOk() 420void OFileSelector::slotOk()
428{ 421{
429 emit ok(); 422 emit ok();
430} 423}
431void OFileSelector::slotCancel() 424void OFileSelector::slotCancel()
432{ 425{
433 emit cancel(); 426 emit cancel();
434} 427}
435void OFileSelector::slotViewCheck(const QString &sel) 428void OFileSelector::slotViewCheck(const QString &sel)
436{ 429{
437 if( sel == tr("Documents" ) ){ 430 if( sel == tr("Documents" ) ){
438 if( m_select == 0 ){ 431 if( m_select == 0 ){
diff --git a/libopie/ofileview.h b/libopie/ofileview.h
index ed256f1..e072477 100644
--- a/libopie/ofileview.h
+++ b/libopie/ofileview.h
@@ -1,76 +1,84 @@
1/* 1/*
2               =. This file is part of the OPIE Project 2               =. This file is part of the OPIE Project
3             .=l. Copyright (c) 2002 zecke <zecke@handhelds.org> 3             .=l. Copyright (c) 2002 zecke <zecke@handhelds.org>
4           .>+-= 4           .>+-=
5 _;:,     .>    :=|. This library is free software; you can 5 _;:,     .>    :=|. This library is free software; you can
6.> <`_,   >  .   <= redistribute it and/or modify it under 6.> <`_,   >  .   <= redistribute it and/or modify it under
7:`=1 )Y*s>-.--   : the terms of the GNU Library General Public 7:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
8.="- .-=="i,     .._ License as published by the Free Software 8.="- .-=="i,     .._ License as published by the Free Software
9 - .   .-<_>     .<> Foundation; either version 2 of the License, 9 - .   .-<_>     .<> Foundation; either version 2 of the License,
10     ._= =}       : or (at your option) any later version. 10     ._= =}       : or (at your option) any later version.
11    .%`+i>       _;_. 11    .%`+i>       _;_.
12    .i_,=:_.      -<s. This library is distributed in the hope that 12    .i_,=:_.      -<s. This library is distributed in the hope that
13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
14    : ..    .:,     . . . without even the implied warranty of 14    : ..    .:,     . . . without even the implied warranty of
15    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 15    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
16  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 16  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
17..}^=.=       =       ; Library General Public License for more 17..}^=.=       =       ; Library General Public License for more
18++=   -.     .`     .: details. 18++=   -.     .`     .: details.
19 :     =  ...= . :.=- 19 :     =  ...= . :.=-
20 -.   .:....=;==+<; You should have received a copy of the GNU 20 -.   .:....=;==+<; You should have received a copy of the GNU
21  -_. . .   )=.  = Library General Public License along with 21  -_. . .   )=.  = Library General Public License along with
22    --        :-=` this library; see the file COPYING.LIB. 22    --        :-=` this library; see the file COPYING.LIB.
23 If not, write to the Free Software Foundation, 23 If not, write to the Free Software Foundation,
24 Inc., 59 Temple Place - Suite 330, 24 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. 25 Boston, MA 02111-1307, USA.
26 26
27*/ 27*/
28 28
29#ifndef ofileview_h 29#ifndef ofileview_h
30#define ofileview_h 30#define ofileview_h
31 31
32#include <qobject.h> 32#include <qobject.h>
33#include <qwidget.h> 33#include <qwidget.h>
34 34
35class QFileInfo; 35class QFileInfo;
36class QDir; 36class QDir;
37class DocLnk; 37class DocLnk;
38class OFileSelectorView : public QWidget { 38
39/**
40 * A OFileView is a specialised View for the
41 * OFileSelector
42 * With a View you can chage the user visible
43 * representation of a OFileLister
44 * OFileView is just a basic interface which helps you to
45 * write new views
46 */
47class OFileView {
39 Q_OBJECT 48 Q_OBJECT
40 public: 49 public:
41 OFileSelectorView(QWidget *widget, 50 OFileView(QWidget *widget,
42 const char *name ) 51 const char *name );
43 : QWidget(widget, name ) 52 virtual OFileView();
44{ };
45 virtual ~OFileSelectorView() = 0; 53 virtual ~OFileSelectorView() = 0;
46 54
47 virtual void addFile(const QString &mine, 55 virtual void addFile(const QString &mine,
48 QFileInfo *info, 56 QFileInfo *info,
49 bool isSymlink = FALSE ) = 0; 57 bool isSymlink = FALSE ) = 0;
50 58
51 virtual void addDir (const QString &mine, 59 virtual void addDir (const QString &mine,
52 QFileInfo *info, 60 QFileInfo *info,
53 bool isSymlink = FALSE ) = 0; 61 bool isSymlink = FALSE ) = 0;
54 62
55 virtual void addSymlink(const QString &mime, 63 virtual void addSymlink(const QString &mime,
56 QFileInfo *info, 64 QFileInfo *info,
57 bool isSymlink = FALSE ) = 0; 65 bool isSymlink = FALSE ) = 0;
58 66
59 virtual void cd(const QString &path ) = 0; 67 virtual void cd(const QString &path ) = 0;
60 signals: 68 signals:
61 void fileSelected(const QString &); 69 void fileSelected(const QString &);
62 void fileSelected(const DocLnk & ); 70 void fileSelected(const DocLnk & );
63 void contextMenu(); 71 void contextMenu();
64 void changedDir(const QString &); 72 void changedDir(const QString &);
65 void changedDir(const QDir & ); 73 void changedDir(const QDir & );
66}; 74};
67 75
68class OFileViewFactory { 76class OFileViewFactory {
69 // Q_OBJECT 77 // Q_OBJECT
70 public: 78 public:
71 OFileViewFactory() {} ; 79 OFileViewFactory() {} ;
72 virtual ~OFileViewFactory() = 0; 80 virtual ~OFileViewFactory() = 0;
73 81
74 OFileSelectorView* newView(QWidget *parent, const char *name ); 82 OFileSelectorView* newView(QWidget *parent, const char *name );
75 QString name()const; 83 QString name()const;
76}; 84};
diff --git a/libopie/ofontmenu.h b/libopie/ofontmenu.h
index 609f240..5fd515f 100644
--- a/libopie/ofontmenu.h
+++ b/libopie/ofontmenu.h
@@ -1,37 +1,37 @@
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>