projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename socketConnected() to socketOpen() to reduce confusion
[quassel.git]
/
src
/
qtui
/
nicklistwidget.h
diff --git
a/src/qtui/nicklistwidget.h
b/src/qtui/nicklistwidget.h
index
9525803
..
a3b8436
100644
(file)
--- 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-
2014 by the Quassel Project
*
* 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 *
@@
-15,49
+15,72
@@
* 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., *
* 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., *
- * 5
9 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
+ * 5
1 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
***************************************************************************/
***************************************************************************/
-#ifndef
_
NICKLISTWIDGET_H_
-#define
_
NICKLISTWIDGET_H_
+#ifndef NICKLISTWIDGET_H_
+#define NICKLISTWIDGET_H_
#include "ui_nicklistwidget.h"
#include "abstractitemview.h"
#include "ui_nicklistwidget.h"
#include "abstractitemview.h"
+#include "buffermodel.h"
#include "types.h"
#include <QHash>
#include "types.h"
#include <QHash>
-
-#include "buffermodel.h"
+#include <QDockWidget>
class Buffer;
class NickView;
class QDockWidget;
class Buffer;
class NickView;
class QDockWidget;
-class NickListWidget : public AbstractItemView {
- Q_OBJECT
+class NickListWidget : public AbstractItemView
+{
+ Q_OBJECT
public:
public:
- NickListWidget(QWidget *parent = 0);
+
NickListWidget(QWidget *parent = 0);
public slots:
public slots:
- void showWidget(bool visible);
+ void showWidget(bool visible);
+
+signals:
+ void nickSelectionChanged(const QModelIndexList &);
protected:
protected:
- virtual QSize sizeHint() const;
+ virtual QSize sizeHint() const;
+ virtual void hideEvent(QHideEvent *);
+ virtual void showEvent(QShowEvent *);
protected slots:
protected slots:
- virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous);
- virtual void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end);
+
virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous);
+
virtual void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end);
private slots:
private slots:
- void removeBuffer(BufferId bufferId);
-
+ void removeBuffer(BufferId bufferId);
+ void nickSelectionChanged();
+
private:
private:
- Ui::NickListWidget ui;
- QHash<BufferId, NickView *> nickViews;
+ Ui::NickListWidget ui;
+ QHash<BufferId, NickView *> nickViews;
+
+ QDockWidget *dock() const;
+};
+
+
+// ==============================
+// NickList Dock
+// ==============================
+class NickListDock : public QDockWidget
+{
+ Q_OBJECT
- QDockWidget *dock() const;
+public:
+ NickListDock(const QString &title, QWidget *parent = 0);
+ // ~NickListDock();
+
+ // virtual bool event(QEvent *event);
};
};
+
#endif
#endif