okular/kpdf/searchwidget.h
Enrico Ros 69166fa927 Search widget using KConfigXT (removed actions/save params).
svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=358712
2004-10-29 10:32:25 +00:00

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