SVN_SILENT made messages (.desktop file)
[kdegraphics.git] / okular / ui / searchwidget.h
blobb93fc46fd825d7642cc89aa45bb76f2aabbe86bd
1 /***************************************************************************
2 * Copyright (C) 2004 by Enrico Ros <eros.kde@email.it> *
3 * *
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_
13 #include <qwidget.h>
15 namespace Okular {
16 class Document;
19 class QAction;
20 class QMenu;
22 class SearchLineEdit;
24 /**
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
34 Q_OBJECT
35 public:
36 SearchWidget( QWidget *parent, Okular::Document *document );
37 void clearText();
39 private:
40 QMenu * m_menu;
41 QAction *m_matchPhraseAction, *m_caseSensitiveAction, * m_marchAllWordsAction, *m_marchAnyWordsAction;
42 SearchLineEdit *m_lineEdit;
44 private slots:
45 void slotMenuChaged( QAction * );
48 #endif