X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fnicklistwidget.h;h=18f966aa5b3c3071fc27701964bb2fd789d51b76;hp=9525803eefd8f755b87d56ec9bef2bf1422abc58;hb=6813a6cb41260d7c6d30d04761ac6f13d28bab06;hpb=4e0445e459c690cfa6013c5ad574e94f9214827b diff --git a/src/qtui/nicklistwidget.h b/src/qtui/nicklistwidget.h index 9525803e..18f966aa 100644 --- a/src/qtui/nicklistwidget.h +++ b/src/qtui/nicklistwidget.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -18,17 +18,17 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#ifndef _NICKLISTWIDGET_H_ -#define _NICKLISTWIDGET_H_ +#ifndef NICKLISTWIDGET_H_ +#define NICKLISTWIDGET_H_ #include "ui_nicklistwidget.h" #include "abstractitemview.h" +#include "buffermodel.h" #include "types.h" #include - -#include "buffermodel.h" +#include class Buffer; class NickView; @@ -43,8 +43,13 @@ public: public slots: void showWidget(bool visible); +signals: + void nickSelectionChanged(const QModelIndexList &); + protected: virtual QSize sizeHint() const; + virtual void hideEvent(QHideEvent *); + virtual void showEvent(QShowEvent *); protected slots: virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous); @@ -52,7 +57,8 @@ protected slots: private slots: void removeBuffer(BufferId bufferId); - + void nickSelectionChanged(); + private: Ui::NickListWidget ui; QHash nickViews; @@ -60,4 +66,18 @@ private: QDockWidget *dock() const; }; + +// ============================== +// NickList Dock +// ============================== +class NickListDock : public QDockWidget { + Q_OBJECT + +public: + NickListDock(const QString &title, QWidget *parent = 0); + // ~NickListDock(); + + // virtual bool event(QEvent *event); +}; + #endif