X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Finputline.h;fp=src%2Fuisupport%2Finputline.h;h=b0d59bd68b5f55d0bd01e2b54848e77fd1c3c038;hp=0000000000000000000000000000000000000000;hb=5df99c1ab83baf3a6caef7e49177f84bd48d127e;hpb=99445d2c7ce2f5336798098963f4954eaafebdde diff --git a/src/uisupport/inputline.h b/src/uisupport/inputline.h new file mode 100644 index 00000000..b0d59bd6 --- /dev/null +++ b/src/uisupport/inputline.h @@ -0,0 +1,56 @@ +/*************************************************************************** + * Copyright (C) 2005/06 by The Quassel Team * + * 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. * + * * + * 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 * + * GNU General Public License for more details. * + * * + * 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. * + ***************************************************************************/ + +#ifndef _INPUTLINE_H_ +#define _INPUTLINE_H_ + +#include + +class TabCompleter; + +class InputLine : public QLineEdit { + Q_OBJECT + + public: + InputLine(QWidget *parent = 0); + ~InputLine(); + + protected: + virtual bool event(QEvent *); + virtual void keyPressEvent(QKeyEvent * event); + + private slots: + void enter(); + + public slots: + void updateNickList(QStringList); + + signals: + void nickListUpdated(QStringList); + + private: + qint32 idx; + QStringList history; + QStringList nickList; + + TabCompleter *tabComplete; +}; + +#endif