/***************************************************************************
- * 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 *
_addNewBuffersAutomatically(true),
_sortAlphabetically(true),
_hideInactiveBuffers(false),
+ _disableDecoration(false),
_allowedBufferTypes(BufferInfo::StatusBuffer | BufferInfo::ChannelBuffer | BufferInfo::QueryBuffer | BufferInfo::GroupBuffer),
_minimumActivity(0)
{
emit sortAlphabeticallySet(sortAlphabetically);
}
+void BufferViewConfig::setDisableDecoration(bool disableDecoration) {
+ if(_disableDecoration == disableDecoration)
+ return;
+
+ _disableDecoration = disableDecoration;
+ emit disableDecorationSet(disableDecoration);
+}
+
void BufferViewConfig::setAllowedBufferTypes(int bufferTypes) {
if(_allowedBufferTypes == bufferTypes)
return;
if(_removedBuffers.contains(bufferId))
_removedBuffers.remove(bufferId);
-
+
if(_temporarilyRemovedBuffers.contains(bufferId))
_temporarilyRemovedBuffers.remove(bufferId);
-
+
_buffers.insert(pos, bufferId);
emit bufferAdded(bufferId, pos);
}
void BufferViewConfig::removeBuffer(const BufferId &bufferId) {
if(_buffers.contains(bufferId))
_buffers.removeAt(_buffers.indexOf(bufferId));
-
+
if(_removedBuffers.contains(bufferId))
_removedBuffers.remove(bufferId);
if(_temporarilyRemovedBuffers.contains(bufferId))
_temporarilyRemovedBuffers.remove(bufferId);
-
+
_removedBuffers << bufferId;
emit bufferPermanentlyRemoved(bufferId);