finddialog.cpp
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 #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 }
This file is part of the documentation for OPIE Version 1.5.5.