summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-gutenbrowser/browserDialog.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-gutenbrowser/browserDialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-gutenbrowser/browserDialog.cpp9
1 files changed, 6 insertions, 3 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,29 +1,32 @@
1/**************************************************************************** 1/****************************************************************************
2copyright 2001 by L.J. Potter ljp@llornkcor.com 2copyright 2001 by L.J. Potter ljp@llornkcor.com
3 copyright : (C) 2000 -2004 by llornkcor 3 copyright : (C) 2000 -2004 by llornkcor
4 email : ljp@llornkcor.com 4 email : ljp@llornkcor.com
5 5
6****************************************************************************/ 6****************************************************************************/
7 7
8#include "optionsDialog.h" 8#include "optionsDialog.h"
9//#include "fileBrowser.h" 9//#include "fileBrowser.h"
10 10
11/* OPIE */
12#include <opie2/ofiledialog.h>
13using namespace Opie::Ui;
14
15/* QT */
11#include <qlabel.h> 16#include <qlabel.h>
12#include <qlistbox.h> 17#include <qlistbox.h>
13#include <qpushbutton.h> 18#include <qpushbutton.h>
14#include <qlayout.h> 19#include <qlayout.h>
15 20
16#include <opie/ofiledialog.h>
17
18void optionsDialog::BrowserDlg( ) 21void optionsDialog::BrowserDlg( )
19{ 22{
20// setCaption( tr( "Choose Browser" ) ); 23// setCaption( tr( "Choose Browser" ) );
21 http_ListBox1->insertItem( tr( "Opera")); 24 http_ListBox1->insertItem( tr( "Opera"));
22 http_ListBox1->insertItem( tr( "Konqueror")); 25 http_ListBox1->insertItem( tr( "Konqueror"));
23 http_ListBox1->insertItem( tr( "wget")); 26 http_ListBox1->insertItem( tr( "wget"));
24} 27}
25 28
26void optionsDialog::select_title(int) { 29void optionsDialog::select_title(int) {
27 browserName = http_ListBox1->currentText(); 30 browserName = http_ListBox1->currentText();
28 Config config("Gutenbrowser"); 31 Config config("Gutenbrowser");
29 config.setGroup( "Browser" ); 32 config.setGroup( "Browser" );
@@ -62,22 +65,22 @@ void optionsDialog::BrowseSelected() {
62// } else { 65// } else {
63// QString sMsg; 66// QString sMsg;
64// sMsg = "Error opening library filelist "+fileName; 67// sMsg = "Error opening library filelist "+fileName;
65// } 68// }
66 if ( !fileName.isNull() ) { // got a file name 69 if ( !fileName.isNull() ) { // got a file name
67 // ... 70 // ...
68 } 71 }
69 } 72 }
70 73
71} 74}
72 75
73void optionsDialog::setHttp(int index) { 76void 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");
77 if( index== 0) { 80 if( index== 0) {
78 config.writeEntry("Preferred", "http://sailor.gutenberg.org"); 81 config.writeEntry("Preferred", "http://sailor.gutenberg.org");
79 } else { 82 } else {
80 config.writeEntry("Preferred", "http://www.prairienet.org/pg"); 83 config.writeEntry("Preferred", "http://www.prairienet.org/pg");
81 } 84 }
82 85
83} 86}