Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

finddialog.cpp

Go to the documentation of this file.
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 
00037 FindDialog::FindDialog( const QString &appName, QWidget *parent,
00038                         const char *name, bool modal )
00039     : QDialog( parent, name, modal )
00040 {
00041     setCaption( tr("Find") );
00042     QVBoxLayout *vb;
00043     vb = new QVBoxLayout( this );
00044     fw = new FindWidget( appName, this, "Find Widget" );
00045     vb->addWidget( fw );
00046     QObject::connect( fw, SIGNAL(signalFindClicked(const QString&,bool,bool,int)),
00047                       this, SIGNAL(signalFindClicked(const QString&,bool,bool,int)) );
00048     QObject::connect( fw, SIGNAL(signalFindClicked(const QString&,const QDate&,bool,bool,int)),
00049                       this, SIGNAL(signalFindClicked(const QString&,const QDate&,bool,bool,int)) );
00050     d = 0;
00051 }
00052 
00053 FindDialog::~FindDialog()
00054 {
00055 }
00056 
00057 QString FindDialog::findText() const
00058 {
00059     return fw->findText();
00060 }
00061 
00062 void FindDialog::setUseDate( bool show )
00063 {
00064     fw->setUseDate( show );
00065 }
00066 
00067 void FindDialog::setDate( const QDate &dt )
00068 {
00069     fw->setDate( dt );
00070 }
00071 
00072 void FindDialog::slotNotFound()
00073 {
00074     fw->slotNotFound();
00075 }
00076 
00077 void FindDialog::slotWrapAround()
00078 {
00079     fw->slotWrapAround();
00080 }

Generated on Sat Nov 5 16:16:35 2005 for OPIE by  doxygen 1.4.2