00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
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 }