compile
[kdegraphics.git] / okular / ui / findbar.h
blobae4ac5862eb36efd3ecfe1a8b6da40fe052826c6
1 /***************************************************************************
2 * Copyright (C) 2007 by Pino Toscano <pino@kde.org> *
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 _FINDBAR_H_
11 #define _FINDBAR_H_
13 #include <qwidget.h>
15 class QAction;
16 class SearchLineEdit;
18 namespace Okular {
19 class Document;
22 class FindBar
23 : public QWidget
25 Q_OBJECT
27 public:
28 explicit FindBar( Okular::Document * document, QWidget * parent = 0 );
29 virtual ~FindBar();
31 QString text() const;
32 Qt::CaseSensitivity caseSensitivity() const;
34 void focusAndSetCursor();
36 public slots:
37 void findNext();
38 void findPrev();
40 private slots:
41 void caseSensitivityChanged();
42 void fromCurrentPageChanged();
44 private:
45 SearchLineEdit * m_text;
46 QAction * m_caseSensitiveAct;
47 QAction * m_fromCurrentPageAct;
51 #endif