Various stuff, cosmetic fixes, fiddling with IrcUsers and NetworkInfos in Buffers.
authorManuel Nickschas <sputnick@quassel-irc.org>
Fri, 23 Nov 2007 02:58:22 +0000 (02:58 +0000)
committerManuel Nickschas <sputnick@quassel-irc.org>
Fri, 23 Nov 2007 02:58:22 +0000 (02:58 +0000)
16 files changed:
Quassel.kdevelop.filelist
src/client/buffer.cpp
src/client/buffer.h
src/client/buffertreemodel.h
src/client/client.cpp
src/client/client.h
src/client/nicktreemodel.cpp
src/client/nicktreemodel.h
src/common/ircchannel.cpp
src/common/ircchannel.h
src/common/networkinfo.cpp
src/common/networkinfo.h
src/qtopia/ui/nicklistwidget.ui
src/uisupport/nickview.cpp [new file with mode: 0644]
src/uisupport/nickview.h [new file with mode: 0644]
src/uisupport/uisupport.pri

index e59c1c4..ac277a1 100644 (file)
@@ -201,6 +201,8 @@ src/uisupport/bufferview.cpp
 src/uisupport/bufferview.h
 src/uisupport/bufferviewfilter.cpp
 src/uisupport/bufferviewfilter.h
 src/uisupport/bufferview.h
 src/uisupport/bufferviewfilter.cpp
 src/uisupport/bufferviewfilter.h
+src/uisupport/nickview.cpp
+src/uisupport/nickview.h
 src/uisupport/uistyle.cpp
 src/uisupport/uistyle.h
 src/uisupport/uisupport.pri
 src/uisupport/uistyle.cpp
 src/uisupport/uistyle.h
 src/uisupport/uisupport.pri
index 48d8a70..304d9ec 100644 (file)
 #include "buffer.h"
 
 #include "client.h"
 #include "buffer.h"
 
 #include "client.h"
+#include "ircchannel.h"
 #include "util.h"
 
 
 Buffer::Buffer(BufferInfo bufferid, QObject *parent)
   : QObject(parent),
     _bufferInfo(bufferid),
 #include "util.h"
 
 
 Buffer::Buffer(BufferInfo bufferid, QObject *parent)
   : QObject(parent),
     _bufferInfo(bufferid),
-    _active(false)
+    _active(false),
+    _ircChannel(0)
 {
   if(bufferid.buffer().isEmpty())
     _type = StatusType;
 {
   if(bufferid.buffer().isEmpty())
     _type = StatusType;
@@ -147,6 +149,21 @@ void Buffer::processUserInput(QString msg) {
   emit userInput(_bufferInfo, msg);
 }
 
   emit userInput(_bufferInfo, msg);
 }
 
+IrcChannel *Buffer::ircChannel() const {
+  return _ircChannel;
+}
+
+void Buffer::setIrcChannel(IrcChannel *ircchan) {
+  if(_ircChannel) {
+    disconnect(_ircChannel, 0, this, 0);
+    // TODO: remove model etc
+  }
+  _ircChannel = ircchan;
+  if(_ircChannel) {
+    connect(_ircChannel, SIGNAL(destroyed()), this, SLOT(setIrcChannel()));
+  }
+}
+
 // no longer needed
 // back reference:
 // void Buffer::setTopic(QString t) {
 // no longer needed
 // back reference:
 // void Buffer::setTopic(QString t) {
index e862d5a..fcf2805 100644 (file)
@@ -22,6 +22,7 @@
 #define _BUFFER_H_
 
 class AbstractUiMsg;
 #define _BUFFER_H_
 
 class AbstractUiMsg;
+class IrcChannel;
 
 struct BufferState;
 
 
 struct BufferState;
 
@@ -73,6 +74,13 @@ public:
   QString topic() const;
   QString ownNick() const;
 
   QString topic() const;
   QString ownNick() const;
 
+  //! Returns a pointer to the associated IrcChannel object for the buffer.
+  /** A buffer has an IrcChannel object only if it is a channel buffer
+   * (i.e. bufferType() == ChannelType), and if it is active at the moment.
+   * \returns A pointer to the associated IrcChannel object, if the buffer is a channel and online; 0 else.
+   */
+  IrcChannel *ircChannel() const;
+
 signals:
   void userInput(const BufferInfo &, QString);
   void nickListChanged(QVariantMap nicks);
 signals:
   void userInput(const BufferInfo &, QString);
   void nickListChanged(QVariantMap nicks);
@@ -89,6 +97,7 @@ public slots:
   void appendMsg(const Message &);
   void prependMsg(const Message &);
   bool layoutMsg();
   void appendMsg(const Message &);
   void prependMsg(const Message &);
   bool layoutMsg();
+  void setIrcChannel(IrcChannel *chan = 0);
 
   // no longer needed
 //   void setTopic(QString);
 
   // no longer needed
 //   void setTopic(QString);
@@ -106,6 +115,7 @@ private:
   bool _active;
   Type _type;
   BufferState *state;
   bool _active;
   Type _type;
   BufferState *state;
+  IrcChannel *_ircChannel;
 
   QList<Message> layoutQueue;
   QList<AbstractUiMsg *> layoutedMsgs;
 
   QList<Message> layoutQueue;
   QList<AbstractUiMsg *> layoutedMsgs;
index e194c27..7737dd3 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
 /***************************************************************************
- *   Copyright (C) 2005-07 by The Quassel Team                             *
+ *   Copyright (C) 2005-07 by the Quassel IRC Team                         *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -42,20 +42,20 @@ class QAbstractItemView;
  *****************************************/
 class BufferTreeItem : public TreeItem {
   Q_OBJECT
  *****************************************/
 class BufferTreeItem : public TreeItem {
   Q_OBJECT
-  
+
 public:
   BufferTreeItem(Buffer *, TreeItem *parent = 0);
 
   virtual uint id() const;
   QVariant data(int column, int role) const;
 public:
   BufferTreeItem(Buffer *, TreeItem *parent = 0);
 
   virtual uint id() const;
   QVariant data(int column, int role) const;
-  
+
   Buffer *buffer() const { return buf; }
   void setActivity(const Buffer::ActivityLevel &);
   Buffer *buffer() const { return buf; }
   void setActivity(const Buffer::ActivityLevel &);
-  
+
 private:
   QString text(int column) const;
   QColor foreground(int column) const;
 private:
   QString text(int column) const;
   QColor foreground(int column) const;
-  
+
   Buffer *buf;
   Buffer::ActivityLevel activity;
 };
   Buffer *buf;
   Buffer::ActivityLevel activity;
 };
@@ -65,13 +65,13 @@ private:
  *****************************************/
 class NetworkTreeItem : public TreeItem {
   Q_OBJECT
  *****************************************/
 class NetworkTreeItem : public TreeItem {
   Q_OBJECT
-  
+
 public:
   NetworkTreeItem(const uint &netid, const QString &, TreeItem *parent = 0);
 
   virtual QVariant data(int column, int row) const;
   virtual uint id() const;
 public:
   NetworkTreeItem(const uint &netid, const QString &, TreeItem *parent = 0);
 
   virtual QVariant data(int column, int row) const;
   virtual uint id() const;
-  
+
 private:
   uint _networkId;
   QString net;
 private:
   uint _networkId;
   QString net;
@@ -82,7 +82,7 @@ private:
  *****************************************/
 class BufferTreeModel : public TreeModel {
   Q_OBJECT
  *****************************************/
 class BufferTreeModel : public TreeModel {
   Q_OBJECT
-  
+
 public:
   enum myRoles {
     BufferTypeRole = Qt::UserRole,
 public:
   enum myRoles {
     BufferTypeRole = Qt::UserRole,
@@ -90,7 +90,7 @@ public:
     BufferUidRole,
     NetworkIdRole
   };
     BufferUidRole,
     NetworkIdRole
   };
-  
+
   BufferTreeModel(QObject *parent = 0);
   static QList<QVariant> defaultHeader();
 
   BufferTreeModel(QObject *parent = 0);
   static QList<QVariant> defaultHeader();
 
@@ -103,7 +103,7 @@ public:
 
   static bool mimeContainsBufferList(const QMimeData *mimeData);
   static QList< QPair<uint, uint> > mimeDataToBufferList(const QMimeData *mimeData);
 
   static bool mimeContainsBufferList(const QMimeData *mimeData);
   static QList< QPair<uint, uint> > mimeDataToBufferList(const QMimeData *mimeData);
-  
+
   virtual QStringList mimeTypes() const;
   virtual QMimeData *mimeData(const QModelIndexList &) const;
   virtual bool dropMimeData(const QMimeData *, Qt::DropAction, int, int, const QModelIndex &);
   virtual QStringList mimeTypes() const;
   virtual QMimeData *mimeData(const QModelIndexList &) const;
   virtual bool dropMimeData(const QMimeData *, Qt::DropAction, int, int, const QModelIndex &);
@@ -114,12 +114,12 @@ public slots:
   void setCurrentIndex(const QModelIndex &index, QItemSelectionModel::SelectionFlags command);
   void selectBuffer(Buffer *buffer);
   void bufferActivity(Buffer::ActivityLevel, Buffer *buffer);
   void setCurrentIndex(const QModelIndex &index, QItemSelectionModel::SelectionFlags command);
   void selectBuffer(Buffer *buffer);
   void bufferActivity(Buffer::ActivityLevel, Buffer *buffer);
-  
+
 signals:
   void bufferSelected(Buffer *);
   void invalidateFilter();
   void selectionChanged(const QModelIndex &);
 signals:
   void bufferSelected(Buffer *);
   void invalidateFilter();
   void selectionChanged(const QModelIndex &);
-    
+
 private:
   bool isBufferIndex(const QModelIndex &) const;
   Buffer *getBufferByIndex(const QModelIndex &) const;
 private:
   bool isBufferIndex(const QModelIndex &) const;
   Buffer *getBufferByIndex(const QModelIndex &) const;
index 899991f..bfce15d 100644 (file)
@@ -139,6 +139,7 @@ Client::Client(QObject *parent)
 }
 
 Client::~Client() {
 }
 
 Client::~Client() {
+  
 }
 
 void Client::init() {
 }
 
 void Client::init() {
@@ -281,7 +282,7 @@ void Client::coreSocketDisconnected() {
     net->deleteLater();
   }
   Q_ASSERT(_networkInfo.isEmpty());
     net->deleteLater();
   }
   Q_ASSERT(_networkInfo.isEmpty());
-  
+
   coreConnectionInfo.clear();
   sessionData.clear();
   layoutQueue.clear();
   coreConnectionInfo.clear();
   sessionData.clear();
   layoutQueue.clear();
@@ -448,6 +449,7 @@ void Client::networkConnected(uint netid) {
     connect(netinfo, SIGNAL(ircUserInitDone()), this, SLOT(updateCoreConnectionProgress()));
     connect(netinfo, SIGNAL(ircChannelInitDone()), this, SLOT(updateCoreConnectionProgress()));
   }
     connect(netinfo, SIGNAL(ircUserInitDone()), this, SLOT(updateCoreConnectionProgress()));
     connect(netinfo, SIGNAL(ircChannelInitDone()), this, SLOT(updateCoreConnectionProgress()));
   }
+  connect(netinfo, SIGNAL(ircChannelAdded(QString)), this, SLOT(ircChannelAdded(QString)));
   connect(netinfo, SIGNAL(destroyed()), this, SLOT(networkInfoDestroyed()));
   _networkInfo[netid] = netinfo;
 }
   connect(netinfo, SIGNAL(destroyed()), this, SLOT(networkInfoDestroyed()));
   _networkInfo[netid] = netinfo;
 }
@@ -460,7 +462,7 @@ void Client::networkDisconnected(uint networkid) {
     //buffer->displayMsg(Message(bufferid, Message::Server, tr("Server disconnected."))); FIXME
     buffer->setActive(false);
   }
     //buffer->displayMsg(Message(bufferid, Message::Server, tr("Server disconnected."))); FIXME
     buffer->setActive(false);
   }
-  
+
   Q_ASSERT(networkInfo(networkid));
   if(!networkInfo(networkid)->initialized()) {
     qDebug() << "Network" << networkid << "disconnected while not yet initialized!";
   Q_ASSERT(networkInfo(networkid));
   if(!networkInfo(networkid)->initialized()) {
     qDebug() << "Network" << networkid << "disconnected while not yet initialized!";
@@ -468,6 +470,15 @@ void Client::networkDisconnected(uint networkid) {
   }
 }
 
   }
 }
 
+void Client::ircChannelAdded(QString chanName) {
+  NetworkInfo *netInfo = qobject_cast<NetworkInfo*>(sender());
+  Q_ASSERT(netInfo);
+  Buffer *buf = buffer(bufferInfo(netInfo->networkName(), chanName));
+  Q_ASSERT(buf);
+  buf->setIrcChannel(netInfo->ircChannel(chanName));
+
+}
+
 void Client::updateBufferInfo(BufferInfo id) {
   buffer(id)->updateBufferInfo(id);
 }
 void Client::updateBufferInfo(BufferInfo id) {
   buffer(id)->updateBufferInfo(id);
 }
index 2f3d907..66ea75f 100644 (file)
@@ -51,7 +51,7 @@ public:
 
   static QList<NetworkInfo *> networkInfos();
   static NetworkInfo *networkInfo(uint networkid);
 
   static QList<NetworkInfo *> networkInfos();
   static NetworkInfo *networkInfo(uint networkid);
-  
+
   static QList<BufferInfo> allBufferInfos();
   static QList<Buffer *> buffers();
   static Buffer *buffer(uint bufferUid);
   static QList<BufferInfo> allBufferInfos();
   static QList<Buffer *> buffers();
   static Buffer *buffer(uint bufferUid);
@@ -68,7 +68,7 @@ public:
 
   static void fakeInput(uint bufferUid, QString message);
   static void fakeInput(BufferInfo bufferInfo, QString message);
 
   static void fakeInput(uint bufferUid, QString message);
   static void fakeInput(BufferInfo bufferInfo, QString message);
-  
+
   static void storeSessionData(const QString &key, const QVariant &data);
   static QVariant retrieveSessionData(const QString &key, const QVariant &def = QVariant());
   static QStringList sessionDataKeys();
   static void storeSessionData(const QString &key, const QVariant &data);
   static QVariant retrieveSessionData(const QString &key, const QVariant &def = QVariant());
   static QStringList sessionDataKeys();
@@ -89,7 +89,7 @@ signals:
   void coreConnectionError(QString errorMsg);
   void coreConnectionMsg(const QString &msg);
   void coreConnectionProgress(uint part, uint total);
   void coreConnectionError(QString errorMsg);
   void coreConnectionMsg(const QString &msg);
   void coreConnectionProgress(uint part, uint total);
-    
+
   void showConfigWizard(const QVariantMap &coredata);
 
   void connected();
   void showConfigWizard(const QVariantMap &coredata);
 
   void connected();
@@ -104,7 +104,7 @@ public slots:
   //void connectToLocalCore();
   void connectToCore(const QVariantMap &);
   void disconnectFromCore();
   //void connectToLocalCore();
   void connectToCore(const QVariantMap &);
   void disconnectFromCore();
-    
+
   void setCoreConfiguration(const QVariantMap &settings);
 
 private slots:
   void setCoreConfiguration(const QVariantMap &settings);
 
 private slots:
@@ -132,16 +132,17 @@ private slots:
 private slots:
   void bufferDestroyed();
   void networkInfoDestroyed();
 private slots:
   void bufferDestroyed();
   void networkInfoDestroyed();
+  void ircChannelAdded(QString);
 
 private:
   Client(QObject *parent = 0);
   virtual ~Client();
   void init();
 
 private:
   Client(QObject *parent = 0);
   virtual ~Client();
   void init();
-  
+
   void syncToCore(const QVariant &coreState);
 
   static QPointer<Client> instanceptr;
   void syncToCore(const QVariant &coreState);
 
   static QPointer<Client> instanceptr;
-  
+
   QPointer<QIODevice> socket;
   QPointer<SignalProxy> _signalProxy;
   QPointer<AbstractUi> mainUi;
   QPointer<QIODevice> socket;
   QPointer<SignalProxy> _signalProxy;
   QPointer<AbstractUi> mainUi;
@@ -151,7 +152,7 @@ private:
 
   quint32 blockSize;
   bool connectedToCore;
 
   quint32 blockSize;
   bool connectedToCore;
-  
+
   QVariantMap coreConnectionInfo;
   QHash<uint, Buffer *> _buffers;
   QHash<uint, NetworkInfo*> _networkInfo;
   QVariantMap coreConnectionInfo;
   QHash<uint, Buffer *> _buffers;
   QHash<uint, NetworkInfo*> _networkInfo;
index 25b6de8..1fcb411 100644 (file)
@@ -21,7 +21,7 @@
 #include "nicktreemodel.h"
 
 
 #include "nicktreemodel.h"
 
 
-NickTreeModel::NickTreeModel(QObject *parent) : TreeModel(QList<QVariant>(), parent) {
+NickTreeModel::NickTreeModel(QObject *parent) : TreeModel(defaultHeader(), parent) {
   //QStringList list; list << "test1" << "test2";
   //setStringList(list);
 
   //QStringList list; list << "test1" << "test2";
   //setStringList(list);
 
@@ -31,3 +31,9 @@ NickTreeModel::~NickTreeModel() {
 
 
 }
 
 
 }
+
+QList<QVariant> NickTreeModel::defaultHeader() {
+  QList<QVariant> data;
+  data << tr("Nick");
+  return data;
+}
index 5c57674..3006d12 100644 (file)
 #ifndef _NICKTREEMODEL_H_
 #define _NICKTREEMODEL_H_
 
 #ifndef _NICKTREEMODEL_H_
 #define _NICKTREEMODEL_H_
 
+#include "ircuser.h"
 #include "treemodel.h"
 
 #include "treemodel.h"
 
+//! Represents a single IrcUser within a NickTreeModel.
+class NickTreeItem : public TreeItem {
+  Q_OBJECT
+
+  public:
+    NickTreeItem(IrcUser *ircuser, TreeItem *parent = 0);
+
+    virtual QVariant data(int column, int row) const;
+
+  private:
+
+};
+
+//! Represents a group of nicks, such as Ops, Voiced etc.
+class NickTreeGroupItem : public TreeItem {
+  Q_OBJECT
+
+  public:
+    NickTreeGroupItem(const QString &title, TreeItem *parent = 0);
+
+    virtual QVariant data(int column, int row) const;
+
+  private:
+
+};
+
+//! Represents the IrcUsers in a given IrcChannel.
 class NickTreeModel : public TreeModel {
   Q_OBJECT
 
 class NickTreeModel : public TreeModel {
   Q_OBJECT
 
@@ -30,6 +58,8 @@ class NickTreeModel : public TreeModel {
     NickTreeModel(QObject *parent = 0);
     virtual ~NickTreeModel();
 
     NickTreeModel(QObject *parent = 0);
     virtual ~NickTreeModel();
 
+    static QList<QVariant> defaultHeader();
+
   private:
 
 };
   private:
 
 };
index 28d6c6e..906f4f0 100644 (file)
@@ -40,6 +40,10 @@ IrcChannel::IrcChannel(const QString &channelname, NetworkInfo *networkinfo)
   setObjectName(QString::number(networkInfo->networkId()) + "/" +  channelname);
 }
 
   setObjectName(QString::number(networkInfo->networkId()) + "/" +  channelname);
 }
 
+IrcChannel::~IrcChannel() {
+
+}
+
 // ====================
 //  PUBLIC:
 // ====================
 // ====================
 //  PUBLIC:
 // ====================
index e60634a..9cdf52a 100644 (file)
@@ -32,12 +32,13 @@ class IrcUser;
 
 class IrcChannel : public QObject {
   Q_OBJECT
 
 class IrcChannel : public QObject {
   Q_OBJECT
-  
+
   Q_PROPERTY(QString name READ name STORED false)
   Q_PROPERTY(QString topic READ topic WRITE setTopic STORED false)
 
 public:
   IrcChannel(const QString &channelname, NetworkInfo *networkInfo);
   Q_PROPERTY(QString name READ name STORED false)
   Q_PROPERTY(QString topic READ topic WRITE setTopic STORED false)
 
 public:
   IrcChannel(const QString &channelname, NetworkInfo *networkInfo);
+  ~IrcChannel();
 
   bool isKnownUser(IrcUser *ircuser) const;
   bool isValidChannelUserMode(const QString &mode) const;
 
   bool isKnownUser(IrcUser *ircuser) const;
   bool isValidChannelUserMode(const QString &mode) const;
@@ -46,9 +47,9 @@ public:
 
   QString name() const;
   QString topic() const;
 
   QString name() const;
   QString topic() const;
-  
+
   QList<IrcUser *> ircUsers() const;
   QList<IrcUser *> ircUsers() const;
-  
+
   QString userMode(IrcUser *ircuser) const;
   QString userMode(const QString &nick) const;
 
   QString userMode(IrcUser *ircuser) const;
   QString userMode(const QString &nick) const;
 
@@ -64,10 +65,10 @@ public slots:
 
   void setUserModes(IrcUser *ircuser, const QString &modes);
   void setUserModes(const QString &nick, const QString &modes);
 
   void setUserModes(IrcUser *ircuser, const QString &modes);
   void setUserModes(const QString &nick, const QString &modes);
-  
+
   void addUserMode(IrcUser *ircuser, const QString &mode);
   void addUserMode(const QString &nick, const QString &mode);
   void addUserMode(IrcUser *ircuser, const QString &mode);
   void addUserMode(const QString &nick, const QString &mode);
-  
+
   void removeUserMode(IrcUser *ircuser, const QString &mode);
   void removeUserMode(const QString &nick, const QString &mode);
 
   void removeUserMode(IrcUser *ircuser, const QString &mode);
   void removeUserMode(const QString &nick, const QString &mode);
 
@@ -76,7 +77,7 @@ public slots:
 
   // init seters
   void initSetUserModes(const QVariantMap &usermodes);
 
   // init seters
   void initSetUserModes(const QVariantMap &usermodes);
-  
+
   void setInitialized();
 
 signals:
   void setInitialized();
 
 signals:
@@ -87,7 +88,7 @@ signals:
 
   void ircUserJoined(IrcUser *ircuser);
   void ircUserParted(IrcUser *ircuser);
 
   void ircUserJoined(IrcUser *ircuser);
   void ircUserParted(IrcUser *ircuser);
-  
+
   void initDone();
 
 private slots:
   void initDone();
 
 private slots:
@@ -99,7 +100,7 @@ private:
   QString _topic;
 
   QHash<IrcUser *, QString> _userModes; 
   QString _topic;
 
   QHash<IrcUser *, QString> _userModes; 
-  
+
   NetworkInfo *networkInfo;
 };
 
   NetworkInfo *networkInfo;
 };
 
index 1a051f0..75a45c0 100644 (file)
@@ -45,13 +45,13 @@ NetworkInfo::NetworkInfo(const uint &networkid, QObject *parent)
 }
 
 // I think this is unnecessary since IrcUsers have us as their daddy :)
 }
 
 // I think this is unnecessary since IrcUsers have us as their daddy :)
-// NetworkInfo::~NetworkInfo() {
+//NetworkInfo::~NetworkInfo() {
 //   QHashIterator<QString, IrcUser *> ircuser(_ircUsers);
 //   while (ircuser.hasNext()) {
 //     ircuser.next();
 //     delete ircuser.value();
 //   }
 //   QHashIterator<QString, IrcUser *> ircuser(_ircUsers);
 //   while (ircuser.hasNext()) {
 //     ircuser.next();
 //     delete ircuser.value();
 //   }
-// }
+//}
 
 uint NetworkInfo::networkId() const {
   return _networkId;
 
 uint NetworkInfo::networkId() const {
   return _networkId;
index 8be0d98..776c7b7 100644 (file)
@@ -42,7 +42,7 @@ class NetworkInfo : public QObject {
 
 public:
   NetworkInfo(const uint &networkid, QObject *parent = 0);
 
 public:
   NetworkInfo(const uint &networkid, QObject *parent = 0);
-  //  virtual ~NetworkInfo();
+  //virtual ~NetworkInfo();
 
   uint networkId() const;
   bool initialized() const;
 
   uint networkId() const;
   bool initialized() const;
index 05e18a6..889ddae 100644 (file)
     <number>1</number>
    </property>
    <item>
     <number>1</number>
    </property>
    <item>
-    <widget class="QListView" name="nickView" />
+    <widget class="NickView" name="nickView" />
    </item>
   </layout>
  </widget>
    </item>
   </layout>
  </widget>
+ <customwidgets>
+  <customwidget>
+   <class>NickView</class>
+   <extends>QTreeView</extends>
+   <header>nickview.h</header>
+  </customwidget>
+ </customwidgets>
  <resources/>
  <connections/>
 </ui>
  <resources/>
  <connections/>
 </ui>
diff --git a/src/uisupport/nickview.cpp b/src/uisupport/nickview.cpp
new file mode 100644 (file)
index 0000000..7d9545c
--- /dev/null
@@ -0,0 +1,33 @@
+/***************************************************************************
+ *   Copyright (C) 2005-07 by the Quassel IRC 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.             *
+ ***************************************************************************/
+
+#include "nickview.h"
+
+NickView::NickView(QWidget *parent) : QTreeView(parent) {
+
+
+
+}
+
+NickView::~NickView() {
+
+
+}
+
diff --git a/src/uisupport/nickview.h b/src/uisupport/nickview.h
new file mode 100644 (file)
index 0000000..33effda
--- /dev/null
@@ -0,0 +1,38 @@
+/***************************************************************************
+ *   Copyright (C) 2005-07 by the Quassel IRC 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 _NICKVIEW_H_
+#define _NICKVIEW_H_
+
+#include <QTreeView>
+
+class NickView : public QTreeView {
+  Q_OBJECT
+
+  public:
+    NickView(QWidget *parent = 0);
+    virtual ~NickView();
+
+
+
+
+};
+
+#endif
index 642b98c..910bd69 100644 (file)
@@ -1,8 +1,8 @@
 DEPMOD = common client
 QT_MOD = core gui network
 
 DEPMOD = common client
 QT_MOD = core gui network
 
-SRCS += bufferview.cpp bufferviewfilter.cpp uistyle.cpp
-HDRS += bufferview.h bufferviewfilter.h uistyle.h
+SRCS += bufferview.cpp bufferviewfilter.cpp nickview.cpp uistyle.cpp
+HDRS += bufferview.h bufferviewfilter.h nickview.h uistyle.h
 
 FORMNAMES = 
 
 
 FORMNAMES =