author | pohly <pohly> | 2004-08-26 05:57:55 (UTC) |
---|---|---|
committer | pohly <pohly> | 2004-08-26 05:57:55 (UTC) |
commit | 3f36482d9a6c096fdf5d8ab8831eb736746c0565 (patch) (unidiff) | |
tree | fb213ba05e20c9a02bca3d805f8f5c96c1c45da0 /noncore/apps/opie-reader/QTReaderApp.cpp | |
parent | e00962edd9d4be58c6184e5b6c5f6ef07f449689 (diff) | |
download | opie-3f36482d9a6c096fdf5d8ab8831eb736746c0565.zip opie-3f36482d9a6c096fdf5d8ab8831eb736746c0565.tar.gz opie-3f36482d9a6c096fdf5d8ab8831eb736746c0565.tar.bz2 |
removed obsolete static.h and useqpe.h
Diffstat (limited to 'noncore/apps/opie-reader/QTReaderApp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/QTReaderApp.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/noncore/apps/opie-reader/QTReaderApp.cpp b/noncore/apps/opie-reader/QTReaderApp.cpp index ec7a29c..876b65a 100644 --- a/noncore/apps/opie-reader/QTReaderApp.cpp +++ b/noncore/apps/opie-reader/QTReaderApp.cpp | |||
@@ -1,134 +1,132 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. Allrights reserved. | 2 | ** Copyright (C) 2000 Trolltech AS. Allrights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qt Palmtop Environment. | 4 | ** This file is part of Qt Palmtop Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #include "useqpe.h" | ||
21 | #include <qregexp.h> | 20 | #include <qregexp.h> |
22 | #include <qclipboard.h> | 21 | #include <qclipboard.h> |
23 | #include <qwidgetstack.h> | 22 | #include <qwidgetstack.h> |
24 | #ifdef USEQPE | 23 | #ifdef USEQPE |
25 | #include <qpe/qpemenubar.h> | 24 | #include <qpe/qpemenubar.h> |
26 | #include <qpe/qpetoolbar.h> | 25 | #include <qpe/qpetoolbar.h> |
27 | #endif | 26 | #endif |
28 | #include <qmenubar.h> | 27 | #include <qmenubar.h> |
29 | #include <qtoolbar.h> | 28 | #include <qtoolbar.h> |
30 | #ifdef USEQPE | 29 | #ifdef USEQPE |
31 | #include <qpe/menubutton.h> | 30 | #include <qpe/menubutton.h> |
32 | #endif | 31 | #endif |
33 | #include <qcombobox.h> | 32 | #include <qcombobox.h> |
34 | #include <qpopupmenu.h> | 33 | #include <qpopupmenu.h> |
35 | #include <qaction.h> | 34 | #include <qaction.h> |
36 | #include <qapplication.h> | 35 | #include <qapplication.h> |
37 | #include <qlineedit.h> | 36 | #include <qlineedit.h> |
38 | #include <qtoolbutton.h> | 37 | #include <qtoolbutton.h> |
39 | #include <qspinbox.h> | 38 | #include <qspinbox.h> |
40 | #include <qobjectlist.h> | 39 | #include <qobjectlist.h> |
41 | #include <qstatusbar.h> | 40 | #include <qstatusbar.h> |
42 | #ifdef USEQPE | 41 | #ifdef USEQPE |
43 | #include <qpe/global.h> | 42 | #include <qpe/global.h> |
44 | #include <qpe/applnk.h> | 43 | #include <qpe/applnk.h> |
45 | #endif | 44 | #endif |
46 | #include <qfileinfo.h> | 45 | #include <qfileinfo.h> |
47 | #include <stdlib.h> //getenv | 46 | #include <stdlib.h> //getenv |
48 | #include <qprogressbar.h> | 47 | #include <qprogressbar.h> |
49 | #ifdef USEQPE | 48 | #ifdef USEQPE |
50 | #include <qpe/config.h> | 49 | #include <qpe/config.h> |
51 | #endif | 50 | #endif |
52 | #include <qbuttongroup.h> | 51 | #include <qbuttongroup.h> |
53 | #include <qradiobutton.h> | 52 | #include <qradiobutton.h> |
54 | #ifdef USEQPE | 53 | #ifdef USEQPE |
55 | #include <qpe/qcopenvelope_qws.h> | 54 | #include <qpe/qcopenvelope_qws.h> |
56 | #endif | 55 | #endif |
57 | #include "QTReader.h" | 56 | #include "QTReader.h" |
58 | #include "GraphicWin.h" | 57 | #include "GraphicWin.h" |
59 | #include "Bkmks.h" | 58 | #include "Bkmks.h" |
60 | #include "cbkmkselector.h" | 59 | #include "cbkmkselector.h" |
61 | #include "infowin.h" | 60 | #include "infowin.h" |
62 | #include "ToolbarPrefs.h" | 61 | #include "ToolbarPrefs.h" |
63 | #include "Prefs.h" | 62 | #include "Prefs.h" |
64 | #include "CAnnoEdit.h" | 63 | #include "CAnnoEdit.h" |
65 | #include "QFloatBar.h" | 64 | #include "QFloatBar.h" |
66 | #include "FixedFont.h" | 65 | #include "FixedFont.h" |
67 | #include "URLDialog.h" | 66 | #include "URLDialog.h" |
68 | #include "util.h" | 67 | #include "util.h" |
69 | #include <qfontdatabase.h> | 68 | #include <qfontdatabase.h> |
70 | #ifdef USEQPE | 69 | #ifdef USEQPE |
71 | #include <qpe/resource.h> | 70 | #include <qpe/resource.h> |
72 | #ifdef OPIE | 71 | #ifdef OPIE |
73 | //#include <qpe/applnk.h> | 72 | //#include <qpe/applnk.h> |
74 | #include <opie2/ofiledialog.h> | 73 | #include <opie2/ofiledialog.h> |
75 | using namespace Opie::Ui; | 74 | using namespace Opie::Ui; |
76 | #else | 75 | #else |
77 | #include "fileBrowser.h" | 76 | #include "fileBrowser.h" |
78 | #endif | 77 | #endif |
79 | #else | 78 | #else |
80 | #include "qfiledialog.h" | 79 | #include "qfiledialog.h" |
81 | #endif | 80 | #endif |
82 | 81 | ||
83 | #include "QTReaderApp.h" | 82 | #include "QTReaderApp.h" |
84 | #include "CDrawBuffer.h" | 83 | #include "CDrawBuffer.h" |
85 | #include "Filedata.h" | 84 | #include "Filedata.h" |
86 | #include "useqpe.h" | ||
87 | #include "names.h" | 85 | #include "names.h" |
88 | #include "CEncoding_tables.h" | 86 | #include "CEncoding_tables.h" |
89 | #include "CloseDialog.h" | 87 | #include "CloseDialog.h" |
90 | 88 | ||
91 | #include "ButtonPrefs.h" | 89 | #include "ButtonPrefs.h" |
92 | 90 | ||
93 | bool CheckVersion(int&, int&, char&); | 91 | bool CheckVersion(int&, int&, char&); |
94 | 92 | ||
95 | #ifdef _WINDOWS | 93 | #ifdef _WINDOWS |
96 | #define PICDIR "c:\\uqtreader\\pics\\" | 94 | #define PICDIR "c:\\uqtreader\\pics\\" |
97 | #else | 95 | #else |
98 | #ifdef USEQPE | 96 | #ifdef USEQPE |
99 | #define USEMSGS | 97 | #define USEMSGS |
100 | #define PICDIR "opie-reader/" | 98 | #define PICDIR "opie-reader/" |
101 | #else | 99 | #else |
102 | //#define PICDIR "/home/tim/uqtreader/pics/" | 100 | //#define PICDIR "/home/tim/uqtreader/pics/" |
103 | QString picdir() | 101 | QString picdir() |
104 | { | 102 | { |
105 | QString hd(getenv("READERDIR")); | 103 | QString hd(getenv("READERDIR")); |
106 | return hd + "/pics"; | 104 | return hd + "/pics"; |
107 | } | 105 | } |
108 | #define PICDIR picdir() | 106 | #define PICDIR picdir() |
109 | #endif | 107 | #endif |
110 | #endif | 108 | #endif |
111 | 109 | ||
112 | unsigned long QTReaderApp::m_uid = 0; | 110 | unsigned long QTReaderApp::m_uid = 0; |
113 | 111 | ||
114 | void QTReaderApp::setScrollState(bool _b) { m_scrollButton->setOn(_b); } | 112 | void QTReaderApp::setScrollState(bool _b) { m_scrollButton->setOn(_b); } |
115 | 113 | ||
116 | #ifdef USEQPE | 114 | #ifdef USEQPE |
117 | #define geticon(iconname) Resource::loadPixmap( iconname ) | 115 | #define geticon(iconname) Resource::loadPixmap( iconname ) |
118 | #define getmyicon(iconname) Resource::loadPixmap( PICDIR iconname ) | 116 | #define getmyicon(iconname) Resource::loadPixmap( PICDIR iconname ) |
119 | #else | 117 | #else |
120 | //#define geticon(iconname) QPixmap(PICDIR iconname ".png") | 118 | //#define geticon(iconname) QPixmap(PICDIR iconname ".png") |
121 | #define geticon(iconname) QPixmap(PICDIR +"/"+iconname+".png") | 119 | #define geticon(iconname) QPixmap(PICDIR +"/"+iconname+".png") |
122 | #define getmyicon(iconname) geticon(iconname) | 120 | #define getmyicon(iconname) geticon(iconname) |
123 | //#define geticon(iconname) QIconSet( QPixmap(PICDIR iconname) ) | 121 | //#define geticon(iconname) QIconSet( QPixmap(PICDIR iconname) ) |
124 | #endif | 122 | #endif |
125 | 123 | ||
126 | #ifndef _WINDOWS | 124 | #ifndef _WINDOWS |
127 | #include <unistd.h> | 125 | #include <unistd.h> |
128 | #endif | 126 | #endif |
129 | #include <stddef.h> | 127 | #include <stddef.h> |
130 | #ifndef _WINDOWS | 128 | #ifndef _WINDOWS |
131 | #include <dirent.h> | 129 | #include <dirent.h> |
132 | #endif | 130 | #endif |
133 | 131 | ||
134 | void QTReaderApp::listBkmkFiles() | 132 | void QTReaderApp::listBkmkFiles() |