X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Fblocklist.h;fp=src%2Fbase%2Fblocklist.h;h=0000000000000000000000000000000000000000;hb=9f6ad3fe0b9cb30115a5d38e8af3aebed0d70c08;hp=72a0123077cfae51fbaddbfa5ddcb84e246b55d6;hpb=43c13b052d069ba435277d93867380d00c04931f;p=architektonas diff --git a/src/base/blocklist.h b/src/base/blocklist.h deleted file mode 100644 index 72a0123..0000000 --- a/src/base/blocklist.h +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef __BLOCKLIST_H__ -#define __BLOCKLIST_H__ - -#include -#include "block.h" -//#include "blocklistlistener.h" -#include "entity.h" - -/** - * List of blocks. - * - * @see Block - * - * @author Andrew Mustun - */ -class BlockList -{ - public: - BlockList(bool owner = false); - virtual ~BlockList(); - - void clear(); - uint count(); - Block * at(uint i); - void activate(const QString & name); - void activate(Block * block); - Block * getActive(); - virtual bool add(Block * block, bool notify = true); - virtual void addNotification(); - virtual void remove(Block * block); - virtual bool rename(Block * block, const QString & name); - //virtual void editBlock(Block* block, const Block& source); - Block * find(const QString & name); - QString newName(const QString & suggestion = ""); - void toggle(const QString & name); - void toggle(Block * block); - void freezeAll(bool freeze); -// void addListener(BlockListListener * listener); -// void removeListener(BlockListListener * listener); - void setModified(bool m); - virtual bool isModified() const; - - friend std::ostream & operator<<(std::ostream & os, BlockList & b); - - private: - //! Is the list owning the blocks? - bool owner; - //! Blocks in the graphic - QList blocks; - //! List of registered BlockListListeners -// QList blockListListeners; - //! Currently active block - Block * activeBlock; - /** Flag set if the layer list was modified and not yet saved. */ - bool modified; -}; - -#endif