Diffstat (limited to 'noncore/apps/opie-gutenbrowser/browserDialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-gutenbrowser/browserDialog.cpp | 7 |
1 files changed, 5 insertions, 2 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 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | copyright 2001 by L.J. Potter ljp@llornkcor.com | 2 | copyright 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> | ||
13 | using 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 | |||
18 | void optionsDialog::BrowserDlg( ) | 21 | void 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 | ||
26 | void optionsDialog::select_title(int) { | 29 | void 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" ); |
30 | printf("Brow is: "+browserName+"\n"); | 33 | printf("Brow is: "+browserName+"\n"); |
31 | config.writeEntry("Preferred", browserName); | 34 | config.writeEntry("Preferred", browserName); |
32 | TextLabel3_3->setText( "Current http browser: "+browserName ); | 35 | TextLabel3_3->setText( "Current http browser: "+browserName ); |
33 | } | 36 | } |
34 | 37 | ||
35 | void optionsDialog::BrowseSelected() { | 38 | void optionsDialog::BrowseSelected() { |
36 | QString fileName; | 39 | QString fileName; |
37 | Config cfg("Gutenbrowser"); | 40 | Config cfg("Gutenbrowser"); |
38 | cfg. setGroup ( "View" ); | 41 | cfg. setGroup ( "View" ); |
39 | QString dir = cfg.readEntry("LastOpenDirectory", QPEApplication::documentDir()); | 42 | QString dir = cfg.readEntry("LastOpenDirectory", QPEApplication::documentDir()); |
40 | QMap<QString, QStringList> map; | 43 | QMap<QString, QStringList> map; |
41 | map.insert(tr("All"), QStringList() ); | 44 | map.insert(tr("All"), QStringList() ); |