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,44 +1,43 @@ | |||
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> |
@@ -62,49 +61,48 @@ | |||
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 |