X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=gui%2Fchannelwidget.h;fp=gui%2Fchannelwidget.h;h=0000000000000000000000000000000000000000;hp=936cf5f4e85f7af9adffc70f8080ffc8a729cb47;hb=12369966345e76e3bba92f64c84c940ef4d8d916;hpb=3e7ed151306ef44a9be5ca7e3f37c89408d4a6d1 diff --git a/gui/channelwidget.h b/gui/channelwidget.h deleted file mode 100644 index 936cf5f4..00000000 --- a/gui/channelwidget.h +++ /dev/null @@ -1,108 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2005 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 _CHANNELWIDGET_H_ -#define _CHANNELWIDGET_H_ - -#include "ui_channelwidget.h" -#include "ui_ircwidget.h" - -#include "global.h" -#include "message.h" - -class ChannelWidget : public QWidget { - Q_OBJECT - - public: - ChannelWidget(QString netname, QString bufname, QString ownNick, QWidget *parent = 0); - - QString bufferName() { return _bufferName; } - QString networkName() { return _networkName; } - - signals: - void sendInput(QString, QString, QString); - void nickListChanged(QStringList); - - public slots: - void recvMessage(Message); - void recvStatusMsg(QString msg); - void setTopic(QString); - void setNicks(QStringList); - void addNick(QString nick, VarMap props); - void renameNick(QString oldnick, QString newnick); - void removeNick(QString nick); - void updateNick(QString nick, VarMap props); - void setOwnNick(QString nick); - - - private slots: - void enterPressed(); - void updateNickList(); - - void itemExpansionChanged(QTreeWidgetItem *); - - private: - Ui::ChannelWidget ui; - - QString stdCol, errorCol, noticeCol, joinCol, quitCol, partCol, kickCol, serverCol, nickCol; - QString CSS; - QString _networkName; - QString _bufferName; - VarMap nicks; - - QCompleter *completer; - - bool opsExpanded, voicedExpanded, usersExpanded; -}; - -/** Temporary widget for displaying a set of ChannelWidgets. */ -class IrcWidget : public QWidget { - Q_OBJECT - - public: - IrcWidget(QWidget *parent = 0); - - public slots: - void recvMessage(QString network, QString buffer, Message message); - void recvStatusMsg(QString network, QString message); - void setTopic(QString, QString, QString); - void setNicks(QString, QString, QStringList); - void addNick(QString net, QString nick, VarMap props); - void removeNick(QString net, QString nick); - void renameNick(QString net, QString oldnick, QString newnick); - void updateNick(QString net, QString nick, VarMap props); - void setOwnNick(QString net, QString nick); - - signals: - void sendInput(QString network, QString buffer, QString message); - - private slots: - void userInput(QString, QString, QString); - - private: - Ui::IrcWidget ui; - QHash buffers; - VarMap nicks; - QHash ownNick; - - ChannelWidget * getBuffer(QString net, QString buf); -}; - -#endif