2004-09-16 21:27:34 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2004 by Enrico Ros <eros.kde@email.it> *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _KPDF_SEARCHWIDGET_H_
|
|
|
|
#define _KPDF_SEARCHWIDGET_H_
|
|
|
|
|
|
|
|
#include <qhbox.h>
|
|
|
|
|
|
|
|
class KPopupMenu;
|
|
|
|
class KLineEdit;
|
|
|
|
|
|
|
|
class KPDFDocument;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @short A search widget for find-as-you-type search.
|
|
|
|
*
|
|
|
|
* ...
|
|
|
|
*/
|
|
|
|
class SearchWidget : public QHBox
|
|
|
|
{
|
2004-10-29 10:32:25 +00:00
|
|
|
Q_OBJECT
|
2004-09-16 21:27:34 +00:00
|
|
|
|
2004-10-29 10:32:25 +00:00
|
|
|
public:
|
|
|
|
SearchWidget( QWidget *parent, KPDFDocument *document );
|
2004-09-16 21:27:34 +00:00
|
|
|
|
2004-10-29 10:32:25 +00:00
|
|
|
protected:
|
|
|
|
void hideEvent( QHideEvent * );
|
2004-09-16 21:27:34 +00:00
|
|
|
|
2004-10-29 10:32:25 +00:00
|
|
|
private:
|
|
|
|
KPDFDocument * m_document;
|
|
|
|
KLineEdit * m_lineEdit;
|
|
|
|
KPopupMenu * m_caseMenu;
|
|
|
|
bool m_caseSensitive;
|
2004-09-16 21:27:34 +00:00
|
|
|
|
2004-10-29 10:32:25 +00:00
|
|
|
private slots:
|
|
|
|
void slotTextChanged( const QString & text );
|
2004-11-26 11:34:16 +00:00
|
|
|
void slotCaseChanged( int index );
|
2004-09-16 21:27:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|