projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename Network toolbar to Main toolbar
[quassel.git]
/
src
/
common
/
bufferviewconfig.cpp
diff --git
a/src/common/bufferviewconfig.cpp
b/src/common/bufferviewconfig.cpp
index
27d3297
..
0ec0348
100644
(file)
--- a/
src/common/bufferviewconfig.cpp
+++ b/
src/common/bufferviewconfig.cpp
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-0
8
by the Quassel Project *
+ * Copyright (C) 2005-0
9
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 *
@@
-28,6
+28,7
@@
BufferViewConfig::BufferViewConfig(int bufferViewId, QObject *parent)
_addNewBuffersAutomatically(true),
_sortAlphabetically(true),
_hideInactiveBuffers(false),
_addNewBuffersAutomatically(true),
_sortAlphabetically(true),
_hideInactiveBuffers(false),
+ _disableDecoration(false),
_allowedBufferTypes(BufferInfo::StatusBuffer | BufferInfo::ChannelBuffer | BufferInfo::QueryBuffer | BufferInfo::GroupBuffer),
_minimumActivity(0)
{
_allowedBufferTypes(BufferInfo::StatusBuffer | BufferInfo::ChannelBuffer | BufferInfo::QueryBuffer | BufferInfo::GroupBuffer),
_minimumActivity(0)
{
@@
-74,6
+75,14
@@
void BufferViewConfig::setSortAlphabetically(bool sortAlphabetically) {
emit sortAlphabeticallySet(sortAlphabetically);
}
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;
void BufferViewConfig::setAllowedBufferTypes(int bufferTypes) {
if(_allowedBufferTypes == bufferTypes)
return;
@@
-177,10
+186,10
@@
void BufferViewConfig::addBuffer(const BufferId &bufferId, int pos) {
if(_removedBuffers.contains(bufferId))
_removedBuffers.remove(bufferId);
if(_removedBuffers.contains(bufferId))
_removedBuffers.remove(bufferId);
-
+
if(_temporarilyRemovedBuffers.contains(bufferId))
_temporarilyRemovedBuffers.remove(bufferId);
if(_temporarilyRemovedBuffers.contains(bufferId))
_temporarilyRemovedBuffers.remove(bufferId);
-
+
_buffers.insert(pos, bufferId);
emit bufferAdded(bufferId, pos);
}
_buffers.insert(pos, bufferId);
emit bufferAdded(bufferId, pos);
}
@@
-201,7
+210,7
@@
void BufferViewConfig::moveBuffer(const BufferId &bufferId, int pos) {
void BufferViewConfig::removeBuffer(const BufferId &bufferId) {
if(_buffers.contains(bufferId))
_buffers.removeAt(_buffers.indexOf(bufferId));
void BufferViewConfig::removeBuffer(const BufferId &bufferId) {
if(_buffers.contains(bufferId))
_buffers.removeAt(_buffers.indexOf(bufferId));
-
+
if(_removedBuffers.contains(bufferId))
_removedBuffers.remove(bufferId);
if(_removedBuffers.contains(bufferId))
_removedBuffers.remove(bufferId);
@@
-216,7
+225,7
@@
void BufferViewConfig::removeBufferPermanently(const BufferId &bufferId) {
if(_temporarilyRemovedBuffers.contains(bufferId))
_temporarilyRemovedBuffers.remove(bufferId);
if(_temporarilyRemovedBuffers.contains(bufferId))
_temporarilyRemovedBuffers.remove(bufferId);
-
+
_removedBuffers << bufferId;
emit bufferPermanentlyRemoved(bufferId);
_removedBuffers << bufferId;
emit bufferPermanentlyRemoved(bufferId);