mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
69166fa927
svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=358712
46 lines
1.3 KiB
C++
46 lines
1.3 KiB
C++
/***************************************************************************
|
|
* 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
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SearchWidget( QWidget *parent, KPDFDocument *document );
|
|
|
|
protected:
|
|
void hideEvent( QHideEvent * );
|
|
|
|
private:
|
|
KPDFDocument * m_document;
|
|
KLineEdit * m_lineEdit;
|
|
KPopupMenu * m_caseMenu;
|
|
bool m_caseSensitive;
|
|
|
|
private slots:
|
|
void slotTextChanged( const QString & text );
|
|
void slotChangeCase( int index );
|
|
};
|
|
|
|
#endif
|