Qtopia library API Documentation

finddialog.cpp

00001 /**********************************************************************
00002 ** Copyright (C) 2000-2002 Trolltech AS.  All rights reserved.
00003 **
00004 ** This file is part of the Qtopia Environment.
00005 **
00006 ** This file may be distributed and/or modified under the terms of the
00007 ** GNU General Public License version 2 as published by the Free Software
00008 ** Foundation and appearing in the file LICENSE.GPL included in the
00009 ** packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00015 **
00016 ** Contact info@trolltech.com if any conditions of this licensing are
00017 ** not clear to you.
00018 **
00019 **********************************************************************/
00020 
00021 // WARNING: Do *NOT* define this yourself. The SL5xxx from SHARP does NOT
00022 //      have this class.
00023 #define QTOPIA_INTERNAL_FD
00024 
00025 #include "finddialog.h"
00026 #include "findwidget_p.h"
00027 
00028 #include <qlayout.h>
00029 #include <qpushbutton.h>
00030 
00038 FindDialog::FindDialog( const QString &appName, QWidget *parent,
00039                         const char *name, bool modal )
00040     : QDialog( parent, name, modal )
00041 {
00042     setCaption( tr("Find") );
00043     QVBoxLayout *vb;
00044     vb = new QVBoxLayout( this );
00045     fw = new FindWidget( appName, this, "Find Widget" );
00046     vb->addWidget( fw );
00047     QObject::connect( fw, SIGNAL(signalFindClicked(const QString&,
00048                            bool,bool,int)),
00049               this, SIGNAL(signalFindClicked(const QString&,
00050                              bool,bool,int)) );
00051     QObject::connect( fw, SIGNAL(signalFindClicked(const QString&,const QDate&,
00052                            bool,bool,int)),
00053               this, SIGNAL(signalFindClicked(const QString&,
00054                              const QDate&,bool,bool,int)) );
00055     d = 0;
00056 }
00057 
00058 FindDialog::~FindDialog()
00059 {
00060 }
00061 
00062 QString FindDialog::findText() const
00063 {
00064     return fw->findText();
00065 }
00066 
00067 void FindDialog::setUseDate( bool show )
00068 {
00069     fw->setUseDate( show );
00070 }
00071 
00072 void FindDialog::setDate( const QDate &dt )
00073 {
00074     fw->setDate( dt );
00075 }
00076 
00077 void FindDialog::slotNotFound()
00078 {
00079     fw->slotNotFound();
00080 }
00081 
00082 void FindDialog::slotWrapAround()
00083 {
00084     fw->slotWrapAround();
00085 }
KDE Logo
This file is part of the documentation for OPIE Version 1.5.5.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:24:05 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001