X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fbufferview.h;h=011deabadeeafa8f67e45830f832cc838e3ae648;hb=3456106b07bfc3000e50df9322ddefd4f872e0fb;hp=b4fcbee054319052fba74e9cf8ec2231f8a4b2f4;hpb=83efa7dcd9771008e7600b4c35db0dde6e0bc995;p=quassel.git diff --git a/src/uisupport/bufferview.h b/src/uisupport/bufferview.h index b4fcbee0..011deaba 100644 --- a/src/uisupport/bufferview.h +++ b/src/uisupport/bufferview.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2010 by the Quassel Project * + * Copyright (C) 2005-2012 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -41,6 +41,11 @@ class BufferView : public QTreeView { Q_OBJECT public: + enum Direction { + Forward = 1, + Backward = -1 + }; + BufferView(QWidget *parent = 0); void init(); @@ -58,6 +63,9 @@ public slots: void setRootIndexForNetworkId(const NetworkId &networkId); void removeSelectedBuffers(bool permanently = false); void menuActionTriggered(QAction *); + void nextBuffer(); + void previousBuffer(); + void hideCurrentBuffer(); signals: void removeBuffer(const QModelIndex &); @@ -83,6 +91,8 @@ private slots: void on_configChanged(); void on_layoutChanged(); + void changeBuffer(Direction direction); + private: QPointer _config;