X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Finputline.h;h=de4206d987f17fd6542109ed905e66b8190f3987;hp=b0d59bd68b5f55d0bd01e2b54848e77fd1c3c038;hb=da28b86876edea39e97ffdd4cc5602072c001f93;hpb=5df99c1ab83baf3a6caef7e49177f84bd48d127e diff --git a/src/uisupport/inputline.h b/src/uisupport/inputline.h index b0d59bd6..de4206d9 100644 --- a/src/uisupport/inputline.h +++ b/src/uisupport/inputline.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (C) 2005/06 by The Quassel Team * + * Copyright (C) 2005-08 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * + * (at your option) version 3. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * @@ -28,29 +28,28 @@ class TabCompleter; class InputLine : public QLineEdit { Q_OBJECT - public: - InputLine(QWidget *parent = 0); - ~InputLine(); +public: + InputLine(QWidget *parent = 0); + ~InputLine(); - protected: - virtual bool event(QEvent *); - virtual void keyPressEvent(QKeyEvent * event); +protected: + // virtual bool event(QEvent *); + virtual void keyPressEvent(QKeyEvent * event); - private slots: - void enter(); +private slots: + void on_returnPressed(); + void on_textChanged(QString newText); - public slots: - void updateNickList(QStringList); - - signals: - void nickListUpdated(QStringList); - - private: - qint32 idx; - QStringList history; - QStringList nickList; +signals: + void sendText(QString text); + +private: + QStringList history; + qint32 idx; + TabCompleter *tabCompleter; - TabCompleter *tabComplete; + int bindModifier; + int jumpModifier; }; #endif