diff options
Diffstat (limited to 'src/findbar.h')
-rw-r--r-- | src/findbar.h | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/src/findbar.h b/src/findbar.h index fa369f66..39bb28c9 100644 --- a/src/findbar.h +++ b/src/findbar.h @@ -2,8 +2,8 @@ * * This file is a part of the rekonq project * -* Copyright (C) 2008-2009 by Andrea Diamantini <adjam7 at gmail dot com> -* Copyright (C) 2009 by Lionel Chauvin <megabigbug@yahoo.fr> +* Copyright (C) 2008-2010 by Andrea Diamantini <adjam7 at gmail dot com> +* Copyright (C) 2009-2010 by Lionel Chauvin <megabigbug@yahoo.fr> * * * This program is free software; you can redistribute it and/or @@ -11,9 +11,9 @@ * published by the Free Software Foundation; either version 2 of * the License or (at your option) version 3 or any later version * accepted by the membership of KDE e.V. (or its successor approved -* by the membership of KDE e.V.), which shall act as a proxy +* by the membership of KDE e.V.), which shall act as a proxy * defined in Section 14 of version 3 of the license. -* +* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -29,46 +29,44 @@ #define FINDBAR_H +// Rekonq Includes +#include "rekonq_defines.h" + // KDE Includes #include <KLineEdit> // Qt Includes #include <QtGui/QWidget> #include <QtGui/QCheckBox> -#include <QtGui/QKeyEvent> // Forward Declarations -class KMainWindow; -class QKeyEvent; class QString; -class FindBar : public QWidget +class REKONQ_TESTS_EXPORT FindBar : public QWidget { Q_OBJECT public: - FindBar(KMainWindow *mainwindow); + FindBar(QWidget *parent); ~FindBar(); KLineEdit *lineEdit() const; bool matchCase() const; + void notifyMatch(bool match); + bool highlightAllState() const; public slots: - void clear(); void show(); - void notifyMatch(bool match); - -protected Q_SLOTS: - void keyPressEvent(QKeyEvent* event); + void hide(); signals: void searchString(const QString &); private: KLineEdit *m_lineEdit; - QCheckBox *m_matchCase; QTimer *m_hideTimer; - + QCheckBox *m_matchCase; + QCheckBox *m_highlightAll; }; #endif |