1 /***************************************************************************
2 * Copyright (C) 2004 by Enrico Ros <eros.kde@email.it> *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
10 #ifndef _OKULAR_SEARCHWIDGET_H_
11 #define _OKULAR_SEARCHWIDGET_H_
25 * @short A widget for find-as-you-type search. Outputs to the Document.
27 * This widget accepts keyboard input and performs a call to findTextAll(..)
28 * in the Okular::Document class when there are 3 or more chars to search for.
29 * It supports case sensitive/unsensitive(default) and provieds a button
30 * for switching between the 2 modes.
32 class SearchWidget
: public QWidget
36 SearchWidget( QWidget
*parent
, Okular::Document
*document
);
41 QAction
*m_matchPhraseAction
, *m_caseSensitiveAction
, * m_marchAllWordsAction
, *m_marchAnyWordsAction
;
42 SearchLineEdit
*m_lineEdit
;
45 void slotMenuChaged( QAction
* );