X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fbufferviewconfig.h;h=d9a52f3102c6d18d04956a90b15f10adeaaea66d;hp=3c88580c37d0d0cbd357819f145712384b7f0b34;hb=9e531f113fbca51739ac6e2cf4eed7005b005c8f;hpb=72f1a93311815cc637358f52046a4cf311bbd9f4 diff --git a/src/common/bufferviewconfig.h b/src/common/bufferviewconfig.h index 3c88580c..d9a52f31 100644 --- a/src/common/bufferviewconfig.h +++ b/src/common/bufferviewconfig.h @@ -32,6 +32,7 @@ class BufferViewConfig : public SyncableObject { Q_PROPERTY(bool addNewBuffersAutomatically READ addNewBuffersAutomatically WRITE setAddNewBuffersAutomatically) Q_PROPERTY(bool sortAlphabetically READ sortAlphabetically WRITE setSortAlphabetically) Q_PROPERTY(bool hideInactiveBuffers READ hideInactiveBuffers WRITE setHideInactiveBuffers) + Q_PROPERTY(bool disableDecoration READ disableDecoration WRITE setDisableDecoration) Q_PROPERTY(int allowedBufferTypes READ allowedBufferTypes WRITE setAllowedBufferTypes) Q_PROPERTY(int minimumActivity READ minimumActivity WRITE setMinimumActivity) @@ -55,6 +56,9 @@ public slots: inline bool sortAlphabetically() const { return _sortAlphabetically; } void setSortAlphabetically(bool sortAlphabetically); + inline bool disableDecoration() const { return _disableDecoration; } + void setDisableDecoration(bool disableDecoration); + inline int allowedBufferTypes() const { return _allowedBufferTypes; } void setAllowedBufferTypes(int bufferTypes); @@ -63,7 +67,7 @@ public slots: inline bool hideInactiveBuffers() const { return _hideInactiveBuffers; } void setHideInactiveBuffers(bool hideInactiveBuffers); - + virtual inline void requestSetBufferViewName(const QString &bufferViewName) { emit setBufferViewNameRequested(bufferViewName); } const QList &bufferList() const { return _buffers; } @@ -88,13 +92,14 @@ public slots: virtual inline void requestRemoveBuffer(const BufferId &bufferId) { emit removeBufferRequested(bufferId); } void removeBufferPermanently(const BufferId &bufferId); virtual inline void requestRemoveBufferPermanently(const BufferId &bufferId) { emit removeBufferPermanentlyRequested(bufferId); } - - + + signals: void bufferViewNameSet(const QString &bufferViewName); void networkIdSet(const NetworkId &networkId); void addNewBuffersAutomaticallySet(bool addNewBuffersAutomatically); - void sortAlphabeticallySet(bool sortAlphabetically); + void sortAlphabeticallySet(bool sortAlphabetically); + void disableDecorationSet(bool disableDecoration); void allowedBufferTypesSet(int allowedBufferTypes); void minimumActivitySet(int activity); void hideInactiveBuffersSet(bool hideInactiveBuffers); @@ -108,7 +113,7 @@ signals: void bufferPermanentlyRemoved(const BufferId &bufferId); void removeBufferRequested(const BufferId &bufferId); void removeBufferPermanentlyRequested(const BufferId &bufferId); - + void setBufferViewNameRequested(const QString &bufferViewName); private: @@ -118,6 +123,7 @@ private: bool _addNewBuffersAutomatically; bool _sortAlphabetically; bool _hideInactiveBuffers; + bool _disableDecoration; int _allowedBufferTypes; int _minimumActivity; QList _buffers;