summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2004-04-09 14:06:05 (UTC)
committer mickeyl <mickeyl>2004-04-09 14:06:05 (UTC)
commit5f294a018a0f44a6547485bc73a095cd0c153903 (patch) (side-by-side diff)
treeea19ba0afea3e8d4a226719a3590cf11e5fc5178
parent208a155ee480e5c1ae0fd6e8876a6ffea7f1c4a5 (diff)
downloadopie-5f294a018a0f44a6547485bc73a095cd0c153903.zip
opie-5f294a018a0f44a6547485bc73a095cd0c153903.tar.gz
opie-5f294a018a0f44a6547485bc73a095cd0c153903.tar.bz2
libopie1 --> libopie2
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-gutenbrowser/browserDialog.cpp7
-rw-r--r--noncore/apps/opie-gutenbrowser/config.in6
-rw-r--r--noncore/apps/opie-gutenbrowser/openetext.cpp9
-rw-r--r--noncore/apps/opie-gutenbrowser/opie-gutenbrowser.pro5
4 files changed, 16 insertions, 11 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
@@ -1,41 +1,44 @@
/****************************************************************************
copyright 2001 by L.J. Potter ljp@llornkcor.com
copyright : (C) 2000 -2004 by llornkcor
email : ljp@llornkcor.com
****************************************************************************/
#include "optionsDialog.h"
//#include "fileBrowser.h"
+/* OPIE */
+#include <opie2/ofiledialog.h>
+using namespace Opie::Ui;
+
+/* QT */
#include <qlabel.h>
#include <qlistbox.h>
#include <qpushbutton.h>
#include <qlayout.h>
-#include <opie/ofiledialog.h>
-
void optionsDialog::BrowserDlg( )
{
// setCaption( tr( "Choose Browser" ) );
http_ListBox1->insertItem( tr( "Opera"));
http_ListBox1->insertItem( tr( "Konqueror"));
http_ListBox1->insertItem( tr( "wget"));
}
void optionsDialog::select_title(int) {
browserName = http_ListBox1->currentText();
Config config("Gutenbrowser");
config.setGroup( "Browser" );
printf("Brow is: "+browserName+"\n");
config.writeEntry("Preferred", browserName);
TextLabel3_3->setText( "Current http browser: "+browserName );
}
void optionsDialog::BrowseSelected() {
QString fileName;
Config cfg("Gutenbrowser");
cfg. setGroup ( "View" );
QString dir = cfg.readEntry("LastOpenDirectory", QPEApplication::documentDir());
QMap<QString, QStringList> map;
map.insert(tr("All"), QStringList() );
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 @@
- config OPIE-GUTENBROWSER
+ config GUTENBROWSER
boolean "gutenbrowser - Gutenberg Project etext reader and selector"
default "n"
- depends ( LIBQPE || LIBQPE-X11 ) && FTPLIB
+ depends ( LIBQPE || LIBQPE-X11 ) && FTPLIB && LIBOPIE2CORE && LIBOPIE2UI
+ comment "gutenbrowser needs a libqpe, ftplib, libopie2core and libopie2ui"
+ 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
@@ -1,51 +1,52 @@
/***************************************************************************
openetext.cpp - description
begin : Sat Dec 4 1999
begin : Tue Jul 25 2000
copyright : (C) 2000 -2004 by llornkcor
email : ljp@llornkcor.com
***************************************************************************/
/***************************************************************************
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
***************************************************************************/
#include "gutenbrowser.h"
#include "openetext.h"
#include "editTitle.h"
-#include <qfileinfo.h>
+/* OPIE */
+#include <opie2/ofiledialog.h>
#include <qpe/applnk.h>
+#include <qpe/config.h>
#include <qpe/qpeapplication.h>
+using namespace Opie::Ui;
#include <stdlib.h>
#include <qtextstream.h>
-#include <qpe/config.h>
-
-#include <opie/ofiledialog.h>
+#include <qfileinfo.h>
#if defined(_WS_WIN_)
#include <windows.h>
#else
#include <unistd.h>
#include "sys/stat.h"
#endif
OpenEtext::OpenEtext(QWidget *parent, QString name) : QDialog(parent,name,true)
{
local_library = (QDir::homeDirPath ()) +"/Applications/gutenbrowser/";
local_index=local_library+"GUTINDEX.ALL";
initDialog();
connect( QListBox_1, SIGNAL(selected ( int)),this, SLOT(select_title(int)) );
getTitles();
}
OpenEtext::~OpenEtext()
{
}
void OpenEtext::getTitles()
{
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,45 +1,44 @@
TEMPLATE = app
-CONFIG += qt warn_on release quick-app
-#CONFIG += qt warn_on release qpp
+CONFIG += qt warn_on quick-app
HEADERS = LibraryDialog.h \
SearchDialog.h \
SearchResults.h \
helpme.h \
multiline_ex.h \
openetext.h \
editTitle.h \
fontDialog.h \
optionsDialog.h \
helpwindow.h \
output.h \
NetworkDialog.h \
gutenbrowser.h \
resource.h
SOURCES = LibraryDialog.cpp \
LibraryDialogData.cpp \
SearchDialog.cpp \
SearchResults.cpp \
browserDialog.cpp \
helpme.cpp \
multiline_ex.cpp \
fontDialog.cpp \
openetext.cpp \
openetextdata.cpp \
editTitle.cpp \
ftpsitedlg.cpp \
optionsDialog.cpp \
optionsDialogData.cpp \
helpwindow.cpp \
output.cpp \
NetworkDialog.cpp \
gutenbrowserData.cpp \
gutenbrowser.cpp \
main.cpp
TARGET = gutenbrowser
INCLUDEPATH += $(OPIEDIR)/include
DEPENDPATH += $(OPIEDIR)/include
DESTDIR = $(OPIEDIR)/bin
-LIBS += -lqpe -lpthread -lftplib -lopie
+LIBS += -lqpe -lpthread -lftplib -lopiecore2 -lopieui2
include ( $(OPIEDIR)/include.pro )