author | zecke <zecke> | 2003-04-16 10:57:59 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-04-16 10:57:59 (UTC) |
commit | eeb29547890a2d162de66d7d5b98d3840a7e2d79 (patch) (unidiff) | |
tree | 973c6de7aae2fd5ba368efb87fa24234f0e12aa3 /library/finddialog.cpp | |
parent | dfa2d294b3af09bf3757a3c2294a925093e72fc6 (diff) | |
download | opie-eeb29547890a2d162de66d7d5b98d3840a7e2d79.zip opie-eeb29547890a2d162de66d7d5b98d3840a7e2d79.tar.gz opie-eeb29547890a2d162de66d7d5b98d3840a7e2d79.tar.bz2 |
Fix API docu
-rw-r--r-- | library/finddialog.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/library/finddialog.cpp b/library/finddialog.cpp index d9f430a..ddf41a7 100644 --- a/library/finddialog.cpp +++ b/library/finddialog.cpp | |||
@@ -1,78 +1,85 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of the Qtopia Environment. | 4 | ** This file is part of the Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | // WARNING: Do *NOT* define this yourself. The SL5xxx from SHARP does NOT | 21 | // WARNING: Do *NOT* define this yourself. The SL5xxx from SHARP does NOT |
22 | // have this class. | 22 | // have this class. |
23 | #define QTOPIA_INTERNAL_FD | 23 | #define QTOPIA_INTERNAL_FD |
24 | 24 | ||
25 | #include "finddialog.h" | 25 | #include "finddialog.h" |
26 | #include "findwidget_p.h" | 26 | #include "findwidget_p.h" |
27 | 27 | ||
28 | #include <qlayout.h> | 28 | #include <qlayout.h> |
29 | #include <qpushbutton.h> | 29 | #include <qpushbutton.h> |
30 | 30 | ||
31 | /*! | ||
32 | \class FindDialog finddialog.h | ||
33 | \brief A simple FindDialog | ||
34 | |||
35 | A find dialog. FIXME!!!! | ||
36 | |||
37 | */ | ||
31 | FindDialog::FindDialog( const QString &appName, QWidget *parent, | 38 | FindDialog::FindDialog( const QString &appName, QWidget *parent, |
32 | const char *name, bool modal ) | 39 | const char *name, bool modal ) |
33 | : QDialog( parent, name, modal ) | 40 | : QDialog( parent, name, modal ) |
34 | { | 41 | { |
35 | setCaption( tr("Find") ); | 42 | setCaption( tr("Find") ); |
36 | QVBoxLayout *vb; | 43 | QVBoxLayout *vb; |
37 | vb = new QVBoxLayout( this ); | 44 | vb = new QVBoxLayout( this ); |
38 | fw = new FindWidget( appName, this, "Find Widget" ); | 45 | fw = new FindWidget( appName, this, "Find Widget" ); |
39 | vb->addWidget( fw ); | 46 | vb->addWidget( fw ); |
40 | QObject::connect( fw, SIGNAL(signalFindClicked(const QString&, | 47 | QObject::connect( fw, SIGNAL(signalFindClicked(const QString&, |
41 | bool,bool,int)), | 48 | bool,bool,int)), |
42 | this, SIGNAL(signalFindClicked(const QString&, | 49 | this, SIGNAL(signalFindClicked(const QString&, |
43 | bool,bool,int)) ); | 50 | bool,bool,int)) ); |
44 | QObject::connect( fw, SIGNAL(signalFindClicked(const QString&,const QDate&, | 51 | QObject::connect( fw, SIGNAL(signalFindClicked(const QString&,const QDate&, |
45 | bool,bool,int)), | 52 | bool,bool,int)), |
46 | this, SIGNAL(signalFindClicked(const QString&, | 53 | this, SIGNAL(signalFindClicked(const QString&, |
47 | const QDate&,bool,bool,int)) ); | 54 | const QDate&,bool,bool,int)) ); |
48 | d = 0; | 55 | d = 0; |
49 | } | 56 | } |
50 | 57 | ||
51 | FindDialog::~FindDialog() | 58 | FindDialog::~FindDialog() |
52 | { | 59 | { |
53 | } | 60 | } |
54 | 61 | ||
55 | QString FindDialog::findText() const | 62 | QString FindDialog::findText() const |
56 | { | 63 | { |
57 | return fw->findText(); | 64 | return fw->findText(); |
58 | } | 65 | } |
59 | 66 | ||
60 | void FindDialog::setUseDate( bool show ) | 67 | void FindDialog::setUseDate( bool show ) |
61 | { | 68 | { |
62 | fw->setUseDate( show ); | 69 | fw->setUseDate( show ); |
63 | } | 70 | } |
64 | 71 | ||
65 | void FindDialog::setDate( const QDate &dt ) | 72 | void FindDialog::setDate( const QDate &dt ) |
66 | { | 73 | { |
67 | fw->setDate( dt ); | 74 | fw->setDate( dt ); |
68 | } | 75 | } |
69 | 76 | ||
70 | void FindDialog::slotNotFound() | 77 | void FindDialog::slotNotFound() |
71 | { | 78 | { |
72 | fw->slotNotFound(); | 79 | fw->slotNotFound(); |
73 | } | 80 | } |
74 | 81 | ||
75 | void FindDialog::slotWrapAround() | 82 | void FindDialog::slotWrapAround() |
76 | { | 83 | { |
77 | fw->slotWrapAround(); | 84 | fw->slotWrapAround(); |
78 | } | 85 | } |