X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fnicklistwidget.h;h=a004f2a2ceaed14699a6c6b32b0da2192a2a24c9;hb=d1192c9aeef46d5d995c728812740b765cb98b28;hp=5a091b8cacacde67fe69c568f279de1a4d92aae3;hpb=36b2b9680ff608f41c681b8c23865abb06a2464c;p=quassel.git diff --git a/src/qtui/nicklistwidget.h b/src/qtui/nicklistwidget.h index 5a091b8c..a004f2a2 100644 --- a/src/qtui/nicklistwidget.h +++ b/src/qtui/nicklistwidget.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-07 by the Quassel IRC 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 * @@ -22,6 +22,7 @@ #define _NICKLISTWIDGET_H_ #include "ui_nicklistwidget.h" +#include "types.h" #include @@ -31,20 +32,27 @@ class NickView; class NickListWidget : public QWidget { Q_OBJECT - public: - NickListWidget(QWidget *parent = 0); + Q_PROPERTY(BufferId currentBuffer READ currentBuffer WRITE setCurrentBuffer); // FIXME BufferId - public slots: - void setBuffer(Buffer *); - void reset(); +public: + NickListWidget(QWidget *parent = 0); - private slots: - void bufferDestroyed(QObject *); +public slots: + BufferId currentBuffer() const; + void setCurrentBuffer(BufferId bufferId); + void reset(); - private: - Ui::NickListWidget ui; - QHash nickViews; +protected: + virtual QSize sizeHint() const; +private slots: + void removeBuffer(BufferId bufferId); + +private: + Ui::NickListWidget ui; + QHash nickViews; + BufferId _currentBuffer; + }; #endif