X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatviewsearchbar.h;h=3305eb11cab9bf609bf7e88a0e5f44f23f33d28f;hp=8caf3f80cba3ff974d8a416fb391ff6e2199747e;hb=d1d1e6ef1d2073d629bf54fd8e0d31f647f9cb88;hpb=ba934ceb1bfe30d01d5fb5c072c3197f8080be04 diff --git a/src/qtui/chatviewsearchbar.h b/src/qtui/chatviewsearchbar.h index 8caf3f80..3305eb11 100644 --- a/src/qtui/chatviewsearchbar.h +++ b/src/qtui/chatviewsearchbar.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-2014 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef CHATVIEWSEARCHBAR_H @@ -24,26 +24,40 @@ #include "ui_chatviewsearchbar.h" #include +#include class QAction; -class ChatViewSearchBar : public QWidget { - Q_OBJECT +class ChatViewSearchBar : public QWidget +{ + Q_OBJECT public: - ChatViewSearchBar(QWidget *parent = 0); + ChatViewSearchBar(QWidget *parent = 0); - inline QLineEdit *searchEditLine() const { return ui.searchEditLine; } - inline QCheckBox *caseSensitiveBox() const { return ui.caseSensitiveBox; } - inline QCheckBox *searchSendersBox() const { return ui.searchSendersBox; } - inline QCheckBox *searchMsgsBox() const { return ui.searchMsgsBox; } - inline QCheckBox *searchOnlyRegularMsgsBox() const { return ui.searchOnlyRegularMsgsBox; } + inline QLineEdit *searchEditLine() const { return ui.searchEditLine; } + inline QCheckBox *caseSensitiveBox() const { return ui.caseSensitiveBox; } + inline QCheckBox *searchSendersBox() const { return ui.searchSendersBox; } + inline QCheckBox *searchMsgsBox() const { return ui.searchMsgsBox; } + inline QCheckBox *searchOnlyRegularMsgsBox() const { return ui.searchOnlyRegularMsgsBox; } + inline QToolButton *searchUpButton() const { return ui.searchUpButton; } + inline QToolButton *searchDownButton() const { return ui.searchDownButton; } public slots: - void setVisible(bool); + void setVisible(bool); + +signals: + void searchChanged(const QString &); + void hidden(); + +private slots: + void delaySearch(); + void search(); private: - Ui::ChatViewSearchBar ui; + Ui::ChatViewSearchBar ui; + QTimer _searchDelayTimer; }; + #endif //CHATVIEWSEARCHBAR_H