author | mickeyl <mickeyl> | 2004-04-09 14:06:05 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-04-09 14:06:05 (UTC) |
commit | 5f294a018a0f44a6547485bc73a095cd0c153903 (patch) (unidiff) | |
tree | ea19ba0afea3e8d4a226719a3590cf11e5fc5178 | |
parent | 208a155ee480e5c1ae0fd6e8876a6ffea7f1c4a5 (diff) | |
download | opie-5f294a018a0f44a6547485bc73a095cd0c153903.zip opie-5f294a018a0f44a6547485bc73a095cd0c153903.tar.gz opie-5f294a018a0f44a6547485bc73a095cd0c153903.tar.bz2 |
libopie1 --> libopie2
-rw-r--r-- | noncore/apps/opie-gutenbrowser/browserDialog.cpp | 9 | ||||
-rw-r--r-- | noncore/apps/opie-gutenbrowser/config.in | 6 | ||||
-rw-r--r-- | noncore/apps/opie-gutenbrowser/openetext.cpp | 35 | ||||
-rw-r--r-- | noncore/apps/opie-gutenbrowser/opie-gutenbrowser.pro | 9 |
4 files changed, 32 insertions, 27 deletions
diff --git a/noncore/apps/opie-gutenbrowser/browserDialog.cpp b/noncore/apps/opie-gutenbrowser/browserDialog.cpp index 5c48da1..81dd516 100644 --- a/noncore/apps/opie-gutenbrowser/browserDialog.cpp +++ b/noncore/apps/opie-gutenbrowser/browserDialog.cpp | |||
@@ -9,4 +9,9 @@ copyright 2001 by L.J. Potter ljp@llornkcor.com | |||
9 | //#include "fileBrowser.h" | 9 | //#include "fileBrowser.h" |
10 | 10 | ||
11 | /* OPIE */ | ||
12 | #include <opie2/ofiledialog.h> | ||
13 | using namespace Opie::Ui; | ||
14 | |||
15 | /* QT */ | ||
11 | #include <qlabel.h> | 16 | #include <qlabel.h> |
12 | #include <qlistbox.h> | 17 | #include <qlistbox.h> |
@@ -14,6 +19,4 @@ copyright 2001 by L.J. Potter ljp@llornkcor.com | |||
14 | #include <qlayout.h> | 19 | #include <qlayout.h> |
15 | 20 | ||
16 | #include <opie/ofiledialog.h> | ||
17 | |||
18 | void optionsDialog::BrowserDlg( ) | 21 | void optionsDialog::BrowserDlg( ) |
19 | { | 22 | { |
@@ -72,5 +75,5 @@ void optionsDialog::BrowseSelected() { | |||
72 | 75 | ||
73 | void optionsDialog::setHttp(int index) { | 76 | void optionsDialog::setHttp(int index) { |
74 | Config config("Gutenbrowser"); | 77 | Config config("Gutenbrowser"); |
75 | config.setGroup( "HttpServer" ); | 78 | config.setGroup( "HttpServer" ); |
76 | qDebug("writing http server"); | 79 | qDebug("writing http server"); |
diff --git a/noncore/apps/opie-gutenbrowser/config.in b/noncore/apps/opie-gutenbrowser/config.in index ec67d6e..d2a3033 100644 --- a/noncore/apps/opie-gutenbrowser/config.in +++ b/noncore/apps/opie-gutenbrowser/config.in | |||
@@ -1,4 +1,6 @@ | |||
1 | config OPIE-GUTENBROWSER | 1 | config GUTENBROWSER |
2 | boolean "gutenbrowser - Gutenberg Project etext reader and selector" | 2 | boolean "gutenbrowser - Gutenberg Project etext reader and selector" |
3 | default "n" | 3 | default "n" |
4 | depends ( LIBQPE || LIBQPE-X11 ) && FTPLIB | 4 | depends ( LIBQPE || LIBQPE-X11 ) && FTPLIB && LIBOPIE2CORE && LIBOPIE2UI |
5 | comment "gutenbrowser needs a libqpe, ftplib, libopie2core and libopie2ui" | ||
6 | depends !(( LIBQPE || LIBQPE-X11 ) && FTPLIB && LIBOPIE2CORE && LIBOPIE2UI) | ||
diff --git a/noncore/apps/opie-gutenbrowser/openetext.cpp b/noncore/apps/opie-gutenbrowser/openetext.cpp index 40f35d6..bd44ce6 100644 --- a/noncore/apps/opie-gutenbrowser/openetext.cpp +++ b/noncore/apps/opie-gutenbrowser/openetext.cpp | |||
@@ -17,13 +17,14 @@ | |||
17 | #include "editTitle.h" | 17 | #include "editTitle.h" |
18 | 18 | ||
19 | #include <qfileinfo.h> | 19 | /* OPIE */ |
20 | #include <opie2/ofiledialog.h> | ||
20 | #include <qpe/applnk.h> | 21 | #include <qpe/applnk.h> |
22 | #include <qpe/config.h> | ||
21 | #include <qpe/qpeapplication.h> | 23 | #include <qpe/qpeapplication.h> |
24 | using namespace Opie::Ui; | ||
22 | 25 | ||
23 | #include <stdlib.h> | 26 | #include <stdlib.h> |
24 | #include <qtextstream.h> | 27 | #include <qtextstream.h> |
25 | #include <qpe/config.h> | 28 | #include <qfileinfo.h> |
26 | |||
27 | #include <opie/ofiledialog.h> | ||
28 | 29 | ||
29 | #if defined(_WS_WIN_) | 30 | #if defined(_WS_WIN_) |
@@ -150,11 +151,11 @@ OpenFileButton->setDown(TRUE); | |||
150 | 151 | ||
151 | if( filer.right(4) == ".txt" | 152 | if( filer.right(4) == ".txt" |
152 | || filer.right(4) == ".TXT" | 153 | || filer.right(4) == ".TXT" |
153 | || filer.right(4) == ".etx" | 154 | || filer.right(4) == ".etx" |
154 | || filer.right(4) == ".ETX" | 155 | || filer.right(4) == ".ETX" |
155 | || filer.right(4) == ".etx" | 156 | || filer.right(4) == ".etx" |
156 | || filer.right(4) == ".ETX" | 157 | || filer.right(4) == ".ETX" |
157 | || filer.right(4) == ".zip" | 158 | || filer.right(4) == ".zip" |
158 | || filer.right(4) == ".ZIP" ) { | 159 | || filer.right(4) == ".ZIP" ) { |
159 | QFileInfo zipFile( filer); | 160 | QFileInfo zipFile( filer); |
160 | QString s_fileName = zipFile.fileName(); | 161 | QString s_fileName = zipFile.fileName(); |
@@ -179,8 +180,8 @@ OpenFileButton->setDown(TRUE); | |||
179 | } | 180 | } |
180 | } else | 181 | } else |
181 | fileName = str; | 182 | fileName = str; |
182 | 183 | ||
183 | FindTitle(fileName); | 184 | FindTitle(fileName); |
184 | 185 | ||
185 | QFileInfo fi( fileName); | 186 | QFileInfo fi( fileName); |
186 | name_file = fi.fileName(); | 187 | name_file = fi.fileName(); |
@@ -225,5 +226,5 @@ bool OpenEtext::FindTitle( QString filename) | |||
225 | 226 | ||
226 | if ( indexLib.open( IO_ReadOnly) ) { | 227 | if ( indexLib.open( IO_ReadOnly) ) { |
227 | qDebug("file opened successfully"); | 228 | qDebug("file opened successfully"); |
228 | QTextStream indexStream( &indexLib ); | 229 | QTextStream indexStream( &indexLib ); |
229 | QString target = "Project Gutenberg Etext of"; | 230 | QString target = "Project Gutenberg Etext of"; |
@@ -265,6 +266,6 @@ bool OpenEtext::FindTitle( QString filename) | |||
265 | } | 266 | } |
266 | } //endof file | 267 | } //endof file |
267 | indexLib.close(); | 268 | indexLib.close(); |
268 | 269 | ||
269 | if( !findCheck || title.length() < 2) { | 270 | if( !findCheck || title.length() < 2) { |
270 | qDebug("Trying hard to find title from GUTINDEX.ALL"); | 271 | qDebug("Trying hard to find title from GUTINDEX.ALL"); |
diff --git a/noncore/apps/opie-gutenbrowser/opie-gutenbrowser.pro b/noncore/apps/opie-gutenbrowser/opie-gutenbrowser.pro index e34e922..5c1d0c4 100644 --- a/noncore/apps/opie-gutenbrowser/opie-gutenbrowser.pro +++ b/noncore/apps/opie-gutenbrowser/opie-gutenbrowser.pro | |||
@@ -1,5 +1,4 @@ | |||
1 | TEMPLATE = app | 1 | TEMPLATE = app |
2 | CONFIG += qt warn_on release quick-app | 2 | CONFIG += qt warn_on quick-app |
3 | #CONFIG += qt warn_on release qpp | ||
4 | HEADERS = LibraryDialog.h \ | 3 | HEADERS = LibraryDialog.h \ |
5 | SearchDialog.h \ | 4 | SearchDialog.h \ |
@@ -12,5 +11,5 @@ HEADERS = LibraryDialog.h \ | |||
12 | optionsDialog.h \ | 11 | optionsDialog.h \ |
13 | helpwindow.h \ | 12 | helpwindow.h \ |
14 | output.h \ | 13 | output.h \ |
15 | NetworkDialog.h \ | 14 | NetworkDialog.h \ |
16 | gutenbrowser.h \ | 15 | gutenbrowser.h \ |
@@ -33,5 +32,5 @@ SOURCES = LibraryDialog.cpp \ | |||
33 | output.cpp \ | 32 | output.cpp \ |
34 | NetworkDialog.cpp \ | 33 | NetworkDialog.cpp \ |
35 | gutenbrowserData.cpp \ | 34 | gutenbrowserData.cpp \ |
36 | gutenbrowser.cpp \ | 35 | gutenbrowser.cpp \ |
37 | main.cpp | 36 | main.cpp |
@@ -41,5 +40,5 @@ INCLUDEPATH += $(OPIEDIR)/include | |||
41 | DEPENDPATH += $(OPIEDIR)/include | 40 | DEPENDPATH += $(OPIEDIR)/include |
42 | DESTDIR = $(OPIEDIR)/bin | 41 | DESTDIR = $(OPIEDIR)/bin |
43 | LIBS += -lqpe -lpthread -lftplib -lopie | 42 | LIBS += -lqpe -lpthread -lftplib -lopiecore2 -lopieui2 |
44 | 43 | ||
45 | include ( $(OPIEDIR)/include.pro ) | 44 | include ( $(OPIEDIR)/include.pro ) |