X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Frs_blocklist.cpp;h=76e78e97936653513c36e093de8f06847eeada47;hb=20cce16e98fc9b052c5862efa6394a285971e846;hp=fd5dbf59db5296058c1899ddbbe7d8e0912ce862;hpb=16ce54abf01ca3032e42a5bb11a4afcf9014dcca;p=architektonas diff --git a/src/base/rs_blocklist.cpp b/src/base/rs_blocklist.cpp index fd5dbf5..76e78e9 100644 --- a/src/base/rs_blocklist.cpp +++ b/src/base/rs_blocklist.cpp @@ -3,7 +3,9 @@ // Part of the Architektonas Project // Originally part of QCad Community Edition by Andrew Mustun // Extensively rewritten and refactored by James L. Hammons -// (C) 2010 Underground Software +// Portions copyright (C) 2001-2003 RibbonSoft +// Copyright (C) 2010 Underground Software +// See the README and GPLv2 files for licensing and warranty information // // JLH = James L. Hammons // @@ -14,6 +16,8 @@ #include "rs_blocklist.h" +#include "rs_debug.h" + /** * Constructor. * @@ -146,11 +150,13 @@ bool RS_BlockList::add(RS_Block * block, bool notify) */ void RS_BlockList::addNotification() { +#if 0 for(int i=0; iblockAdded(NULL); } +#endif } /** @@ -166,11 +172,13 @@ void RS_BlockList::remove(RS_Block * block) // blocks.remove(block); blocks.removeAll(block); +#if 0 for(int i=0; iblockRemoved(block); } +#endif setModified(true); @@ -234,20 +242,16 @@ void RS_BlockList::editBlock(RS_Block* block, const RS_Block& source) { RS_Block * RS_BlockList::find(const QString & name) { //RS_DEBUG->print("RS_BlockList::find"); - RS_Block * ret = NULL; - for(uint i=0; igetName() == name) - { - ret = b; - break; - } + return b; } - return ret; + return NULL; } /** @@ -290,6 +294,7 @@ void RS_BlockList::toggle(RS_Block * block) block->toggle(); +#if 0 // Notify listeners: for(int i=0; iblockToggled(block); } +#endif } /** @@ -309,11 +315,13 @@ void RS_BlockList::freezeAll(bool freeze) for(uint l=0; lfreeze(freeze); +#if 0 for(int i=0; iblockToggled(NULL); } +#endif } /** @@ -338,6 +346,7 @@ void RS_BlockList::toggleBlock(const QString& name) { * adds a BlockListListener to the list of listeners. Listeners * are notified when the block list changes. */ +#if 0 void RS_BlockList::addListener(RS_BlockListListener * listener) { blockListListeners.append(listener); @@ -348,9 +357,9 @@ void RS_BlockList::addListener(RS_BlockListListener * listener) */ void RS_BlockList::removeListener(RS_BlockListListener * listener) { -// blockListListeners.remove(listener); blockListListeners.removeAll(listener); } +#endif /** * Sets the layer lists modified status to 'm'. @@ -385,4 +394,3 @@ std::ostream & operator<<(std::ostream & os, RS_BlockList & b) return os; } -