Source Code (Use browser search to find items of interest.)
Class Index
kpresenter'KSearchDialog (./koffice/kpresenter/ksearchdialogs.h:37)
class KSearchDialog : public QDialog
{
Q_OBJECT
public:
KSearchDialog ( QWidget *parent=0, const char *name=0 );
void setText( QString text ) {value->setText( text ); }
void setCaseSensitive( bool s ) {sensitive->setChecked( s ); }
void setDirection( bool d ) {direction->setChecked( d ); }
protected:
QPushButton *ok, *cancel;
QCheckBox *sensitive;
QCheckBox *direction;
QGroupBox *frame;
QLineEdit *value;
protected slots:
void search() {emit doSearch( value->text(), sensitive->isChecked(), direction->isChecked() ); }
signals:
void doSearch( QString, bool, bool );
};
/******************************************************************/
/* Class: KSearchReplaceDialog */
/******************************************************************/
kpresenter'KSearchDialog::KSearchDialog() (./koffice/kpresenter/ksearchdialogs.cc:36)
KSearchDialog::KSearchDialog( QWidget *parent, const char *name )
: QDialog( parent, name, true )
{
setCaption( i18n( "Find" ) );
frame = new QGroupBox( i18n( "Find" ), this, "frame" );
value = new QLineEdit( frame, "value" );
value->setFocus();
connect( value, SIGNAL( returnPressed() ), this, SLOT( search() ) );
sensitive = new QCheckBox( i18n( "Case Sensitive" ), frame, "case" );
direction = new QCheckBox( i18n( "Find Backwards" ), frame, "direction" );
ok = new QPushButton( i18n( "Find" ), this, "find" );
connect( ok, SIGNAL( clicked() ), this, SLOT( search() ) );
cancel = new QPushButton( i18n( "Done" ), this, "cancel" );
connect( cancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
value->resize( 400, value->sizeHint().height() );
value->move( 15, 20 );
frame->move( 10, 10 );
sensitive->move( value->x(), value->y() + value->height() + 10 );
sensitive->resize( sensitive->sizeHint() );
direction->resize( direction->sizeHint() );
direction->move( value->x() + value->width() - direction->width(), sensitive->y() );
frame->resize( direction->x() + direction->width() + 15, direction->y() + direction->height() + 15 );
cancel->resize( cancel->sizeHint() );
ok->resize( ok->sizeHint() );
cancel->move( frame->x() + frame->width() - cancel->width(), frame->y() + frame->height() + 15 );
ok->move( cancel->x() - cancel->width() - 5, cancel->y() );
resize( cancel->x() + cancel->width() + 10, cancel->y() + cancel->height() + 10 );
}
/******************************************************************/
/* Class: KSearchReplaceDialog */
/******************************************************************/