You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.3 KiB
46 lines
1.3 KiB
/*************************************************************************** |
|
* 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
|
|
|