-rw-r--r-- | noncore/apps/odict/config.in | 2 | ||||
-rw-r--r-- | noncore/apps/odict/main.cpp | 4 | ||||
-rw-r--r-- | noncore/apps/odict/odict.pro | 4 | ||||
-rw-r--r-- | noncore/apps/odict/opie-odict.control | 2 | ||||
-rw-r--r-- | noncore/apps/odict/searchmethoddlg.cpp | 7 | ||||
-rw-r--r-- | noncore/apps/odict/searchmethoddlg.h | 8 |
6 files changed, 12 insertions, 15 deletions
diff --git a/noncore/apps/odict/config.in b/noncore/apps/odict/config.in index 0ec2c89..c1f5eb4 100644 --- a/noncore/apps/odict/config.in +++ b/noncore/apps/odict/config.in | |||
@@ -1,4 +1,4 @@ | |||
1 | config ODICT | 1 | config ODICT |
2 | boolean "opie-odict (electronic dictionary)" | 2 | boolean "opie-odict (electronic dictionary)" |
3 | default "n" | 3 | default "n" |
4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE | 4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && LIBOPIE2UI |
diff --git a/noncore/apps/odict/main.cpp b/noncore/apps/odict/main.cpp index 0642022..d5b08d3 100644 --- a/noncore/apps/odict/main.cpp +++ b/noncore/apps/odict/main.cpp | |||
@@ -1,24 +1,24 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | application: : ODict | 2 | application: : ODict |
3 | 3 | ||
4 | begin : December 2002 | 4 | begin : December 2002 |
5 | copyright : ( C ) 2002, 2003 by Carsten Niehaus | 5 | copyright : ( C ) 2002, 2003 by Carsten Niehaus |
6 | email : cniehaus@handhelds.org | 6 | email : cniehaus@handhelds.org |
7 | **************************************************************************/ | 7 | **************************************************************************/ |
8 | 8 | ||
9 | /*************************************************************************** | 9 | /*************************************************************************** |
10 | * * | 10 | * * |
11 | * This program is free software; you can redistribute it and/or modify * | 11 | * This program is free software; you can redistribute it and/or modify * |
12 | * it under the terms of the GNU General Public License as published by * | 12 | * it under the terms of the GNU General Public License as published by * |
13 | * the Free Software Foundation; either version 2 of the License, or * | 13 | * the Free Software Foundation; either version 2 of the License, or * |
14 | * ( at your option ) any later version. * | 14 | * ( at your option ) any later version. * |
15 | * * | 15 | * * |
16 | **************************************************************************/ | 16 | **************************************************************************/ |
17 | 17 | ||
18 | 18 | ||
19 | #include <qpe/qpeapplication.h> | 19 | #include <opie2/oapplicationfactory.h> |
20 | #include <opie/oapplicationfactory.h> | 20 | |
21 | #include "odict.h" | 21 | #include "odict.h" |
22 | 22 | ||
23 | 23 | ||
24 | OPIE_EXPORT_APP( OApplicationFactory<ODict> ) | 24 | OPIE_EXPORT_APP( OApplicationFactory<ODict> ) |
diff --git a/noncore/apps/odict/odict.pro b/noncore/apps/odict/odict.pro index 32e0ecc..7480cd7 100644 --- a/noncore/apps/odict/odict.pro +++ b/noncore/apps/odict/odict.pro | |||
@@ -1,17 +1,17 @@ | |||
1 | CONFIG = qt warn_on release quick-app | 1 | CONFIG = qt warn_on release quick-app |
2 | HEADERS = odict.h \ | 2 | HEADERS = odict.h \ |
3 | searchmethoddlg.h \ | 3 | searchmethoddlg.h \ |
4 | configdlg.h \ | 4 | configdlg.h \ |
5 | dingwidget.h | 5 | dingwidget.h |
6 | 6 | ||
7 | SOURCES = main.cpp \ | 7 | SOURCES = main.cpp \ |
8 | odict.cpp \ | 8 | odict.cpp \ |
9 | searchmethoddlg.cpp \ | 9 | searchmethoddlg.cpp \ |
10 | configdlg.cpp \ | 10 | configdlg.cpp \ |
11 | dingwidget.cpp | 11 | dingwidget.cpp |
12 | INCLUDEPATH += $(OPIEDIR)/include | 12 | INCLUDEPATH += $(OPIEDIR)/include |
13 | DEPENDPATH += $(OPIEDIR)/include | 13 | DEPENDPATH += $(OPIEDIR)/include |
14 | LIBS += -lqpe -lstdc++ -lopie | 14 | LIBS += -lqpe -lstdc++ -lopiecore2 -lopieui2 |
15 | TARGET = odict | 15 | TARGET = odict |
16 | 16 | ||
17 | include ( $(OPIEDIR)/include.pro ) | 17 | include ( $(OPIEDIR)/include.pro ) |
diff --git a/noncore/apps/odict/opie-odict.control b/noncore/apps/odict/opie-odict.control index b5cf931..bd4101b 100644 --- a/noncore/apps/odict/opie-odict.control +++ b/noncore/apps/odict/opie-odict.control | |||
@@ -1,10 +1,10 @@ | |||
1 | Package: opie-odict | 1 | Package: opie-odict |
2 | Files: plugins/application/libodict.so* bin/odict apps/Applications/odict.desktop pics/odict/odict.png | 2 | Files: plugins/application/libodict.so* bin/odict apps/Applications/odict.desktop pics/odict/odict.png |
3 | Priority: optional | 3 | Priority: optional |
4 | Section: opie/applications | 4 | Section: opie/applications |
5 | Maintainer: Carsten Niehaus <cniehaus@handhelds.org> | 5 | Maintainer: Carsten Niehaus <cniehaus@handhelds.org> |
6 | Architecture: arm | 6 | Architecture: arm |
7 | Depends: task-opie-minimal | 7 | Depends: task-opie-minimal, libopiecore2, libopieui2 |
8 | Description: Dictionary look-up program | 8 | Description: Dictionary look-up program |
9 | Look up words :) | 9 | Look up words :) |
10 | Version: $QPE_VERSION$EXTRAVERSION | 10 | Version: $QPE_VERSION$EXTRAVERSION |
diff --git a/noncore/apps/odict/searchmethoddlg.cpp b/noncore/apps/odict/searchmethoddlg.cpp index 8ed7152..abe2966 100644 --- a/noncore/apps/odict/searchmethoddlg.cpp +++ b/noncore/apps/odict/searchmethoddlg.cpp | |||
@@ -1,81 +1,84 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | application: : ODict | 2 | application: : ODict |
3 | 3 | ||
4 | begin : December 2002 | 4 | begin : December 2002 |
5 | copyright : ( C ) 2002, 2003 by Carsten Niehaus | 5 | copyright : ( C ) 2002, 2003 by Carsten Niehaus |
6 | email : cniehaus@handhelds.org | 6 | email : cniehaus@handhelds.org |
7 | **************************************************************************/ | 7 | **************************************************************************/ |
8 | 8 | ||
9 | /*************************************************************************** | 9 | /*************************************************************************** |
10 | * * | 10 | * * |
11 | * This program is free software; you can redistribute it and/or modify * | 11 | * This program is free software; you can redistribute it and/or modify * |
12 | * it under the terms of the GNU General Public License as published by * | 12 | * it under the terms of the GNU General Public License as published by * |
13 | * the Free Software Foundation; either version 2 of the License, or * | 13 | * the Free Software Foundation; either version 2 of the License, or * |
14 | * ( at your option ) any later version. * | 14 | * ( at your option ) any later version. * |
15 | * * | 15 | * * |
16 | **************************************************************************/ | 16 | **************************************************************************/ |
17 | #include "searchmethoddlg.h" | 17 | #include "searchmethoddlg.h" |
18 | 18 | ||
19 | #include <opie2/ofileselector.h> | ||
20 | #include <opie2/ofiledialog.h> | ||
21 | |||
19 | #include <qpe/config.h> | 22 | #include <qpe/config.h> |
20 | #include <qpe/qpeapplication.h> | 23 | #include <qpe/qpeapplication.h> |
21 | 24 | ||
22 | #include <qdialog.h> | 25 | #include <qdialog.h> |
23 | #include <qlayout.h> | 26 | #include <qlayout.h> |
24 | #include <qhbox.h> | 27 | #include <qhbox.h> |
25 | #include <qvbox.h> | 28 | #include <qvbox.h> |
26 | #include <qlabel.h> | 29 | #include <qlabel.h> |
27 | #include <qpushbutton.h> | 30 | #include <qpushbutton.h> |
28 | #include <qstring.h> | 31 | #include <qstring.h> |
29 | #include <qlineedit.h> | 32 | #include <qlineedit.h> |
30 | #include <qdir.h> | 33 | #include <qdir.h> |
31 | 34 | ||
32 | #include <opie/ofileselector.h> | 35 | using Opie::OFileDialog; |
33 | #include <opie/ofiledialog.h> | 36 | using Opie::OFileSelector; |
34 | 37 | ||
35 | SearchMethodDlg::SearchMethodDlg(QWidget *parent, const char *name, bool modal, QString itemname) : QDialog(parent, name, modal) | 38 | SearchMethodDlg::SearchMethodDlg(QWidget *parent, const char *name, bool modal, QString itemname) : QDialog(parent, name, modal) |
36 | { | 39 | { |
37 | 40 | ||
38 | QVBoxLayout *vbox_layout = new QVBoxLayout( this, 4,4,"vbox_layout" ); | 41 | QVBoxLayout *vbox_layout = new QVBoxLayout( this, 4,4,"vbox_layout" ); |
39 | QVBox *vbox = new QVBox( this ); | 42 | QVBox *vbox = new QVBox( this ); |
40 | 43 | ||
41 | QHBox *hbox1 = new QHBox( vbox ); | 44 | QHBox *hbox1 = new QHBox( vbox ); |
42 | QLabel *nameLabel = new QLabel( tr( "Name:" ) , hbox1 ); | 45 | QLabel *nameLabel = new QLabel( tr( "Name:" ) , hbox1 ); |
43 | nameLE = new QLineEdit( hbox1 ); | 46 | nameLE = new QLineEdit( hbox1 ); |
44 | 47 | ||
45 | QLabel *dictLabel = new QLabel( tr( "Dictionary file" ), vbox ); | 48 | QLabel *dictLabel = new QLabel( tr( "Dictionary file" ), vbox ); |
46 | QHBox *hbox2 = new QHBox( vbox ); | 49 | QHBox *hbox2 = new QHBox( vbox ); |
47 | dictFileLE = new QLineEdit( hbox2 ); | 50 | dictFileLE = new QLineEdit( hbox2 ); |
48 | QPushButton *browseButton = new QPushButton( tr( "Browse" ) , hbox2 ); | 51 | QPushButton *browseButton = new QPushButton( tr( "Browse" ) , hbox2 ); |
49 | connect( browseButton, SIGNAL( clicked() ), this, SLOT( slotBrowse() ) ); | 52 | connect( browseButton, SIGNAL( clicked() ), this, SLOT( slotBrowse() ) ); |
50 | 53 | ||
51 | QWidget *dummywidget = new QWidget( vbox ); | 54 | QWidget *dummywidget = new QWidget( vbox ); |
52 | QLabel *lag1 = new QLabel( tr( "Language 1" ),dummywidget); | 55 | QLabel *lag1 = new QLabel( tr( "Language 1" ),dummywidget); |
53 | QLabel *devider = new QLabel( tr( "Decollator" ),dummywidget); | 56 | QLabel *devider = new QLabel( tr( "Decollator" ),dummywidget); |
54 | QLabel *lag2 = new QLabel( tr( "Language 2" ),dummywidget); | 57 | QLabel *lag2 = new QLabel( tr( "Language 2" ),dummywidget); |
55 | lang1 = new QLineEdit( dummywidget ); | 58 | lang1 = new QLineEdit( dummywidget ); |
56 | lang2 = new QLineEdit( dummywidget ); | 59 | lang2 = new QLineEdit( dummywidget ); |
57 | trenner = new QLineEdit( dummywidget ); | 60 | trenner = new QLineEdit( dummywidget ); |
58 | trenner->setText( "::" ); | 61 | trenner->setText( "::" ); |
59 | 62 | ||
60 | QGridLayout *grid = new QGridLayout( dummywidget, 2,3 ); | 63 | QGridLayout *grid = new QGridLayout( dummywidget, 2,3 ); |
61 | grid->addWidget( lag1, 0,0 ); | 64 | grid->addWidget( lag1, 0,0 ); |
62 | grid->addWidget( devider, 0,1 ); | 65 | grid->addWidget( devider, 0,1 ); |
63 | grid->addWidget( lag2, 0,2 ); | 66 | grid->addWidget( lag2, 0,2 ); |
64 | grid->addWidget( lang1, 1,0 ); | 67 | grid->addWidget( lang1, 1,0 ); |
65 | grid->addWidget( trenner, 1,1 ); | 68 | grid->addWidget( trenner, 1,1 ); |
66 | grid->addWidget( lang2, 1,2 ); | 69 | grid->addWidget( lang2, 1,2 ); |
67 | 70 | ||
68 | vbox_layout->addWidget( vbox ); | 71 | vbox_layout->addWidget( vbox ); |
69 | 72 | ||
70 | QPEApplication::execDialog ( this ); | 73 | QPEApplication::execDialog ( this ); |
71 | 74 | ||
72 | if( !itemname ) | 75 | if( !itemname ) |
73 | setCaption( tr( "New Searchmethod" ) ); | 76 | setCaption( tr( "New Searchmethod" ) ); |
74 | else | 77 | else |
75 | { | 78 | { |
76 | setCaption( tr( "Change Searchmethod" ) ); | 79 | setCaption( tr( "Change Searchmethod" ) ); |
77 | itemName = itemname; | 80 | itemName = itemname; |
78 | setupEntries(itemname); | 81 | setupEntries(itemname); |
79 | } | 82 | } |
80 | } | 83 | } |
81 | 84 | ||
diff --git a/noncore/apps/odict/searchmethoddlg.h b/noncore/apps/odict/searchmethoddlg.h index 706bbc1..ee9513b 100644 --- a/noncore/apps/odict/searchmethoddlg.h +++ b/noncore/apps/odict/searchmethoddlg.h | |||
@@ -1,39 +1,33 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | * * | 2 | * * |
3 | * This program is free software; you can redistribute it and/or modify * | 3 | * This program is free software; you can redistribute it and/or modify * |
4 | * it under the terms of the GNU General Public License as published by * | 4 | * it under the terms of the GNU General Public License as published by * |
5 | * the Free Software Foundation; either version 2 of the License, or * | 5 | * the Free Software Foundation; either version 2 of the License, or * |
6 | * ( at your option ) any later version. * | 6 | * ( at your option ) any later version. * |
7 | * * | 7 | * * |
8 | **************************************************************************/ | 8 | **************************************************************************/ |
9 | 9 | ||
10 | class QWidget; | ||
11 | class QLineEdit; | 10 | class QLineEdit; |
12 | class OTabWidget; | ||
13 | class QListView; | ||
14 | class QPushButton; | ||
15 | class QLabel; | ||
16 | class QString; | ||
17 | 11 | ||
18 | #include <qdialog.h> | 12 | #include <qdialog.h> |
19 | 13 | ||
20 | class SearchMethodDlg : public QDialog | 14 | class SearchMethodDlg : public QDialog |
21 | { | 15 | { |
22 | Q_OBJECT | 16 | Q_OBJECT |
23 | 17 | ||
24 | public: | 18 | public: |
25 | SearchMethodDlg(QWidget *parent, const char *name, bool modal=FALSE, QString itemname=0 ); | 19 | SearchMethodDlg(QWidget *parent, const char *name, bool modal=FALSE, QString itemname=0 ); |
26 | 20 | ||
27 | QString itemName; | 21 | QString itemName; |
28 | QLineEdit *nameLE; | 22 | QLineEdit *nameLE; |
29 | QLineEdit *lang1, *lang2, *trenner; | 23 | QLineEdit *lang1, *lang2, *trenner; |
30 | void saveItem(); | 24 | void saveItem(); |
31 | 25 | ||
32 | private: | 26 | private: |
33 | QLineEdit *dictFileLE; | 27 | QLineEdit *dictFileLE; |
34 | void setupEntries( QString ); | 28 | void setupEntries( QString ); |
35 | 29 | ||
36 | private slots: | 30 | private slots: |
37 | void slotBrowse(); | 31 | void slotBrowse(); |
38 | 32 | ||
39 | }; | 33 | }; |