X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Fblocklist.h;h=72a0123077cfae51fbaddbfa5ddcb84e246b55d6;hb=2ee84c5948ede7fc2f7b4435c5edef42a030ac05;hp=6b1c630c4929e40aa1de1f1a063d168c3783285d;hpb=3239ef39dcee08fa6e8cd68cdf2727fc68cc7a8c;p=architektonas diff --git a/src/base/blocklist.h b/src/base/blocklist.h index 6b1c630..72a0123 100644 --- a/src/base/blocklist.h +++ b/src/base/blocklist.h @@ -9,48 +9,48 @@ /** * List of blocks. * - * @see RS_Block + * @see Block * * @author Andrew Mustun */ -class RS_BlockList +class BlockList { public: - RS_BlockList(bool owner = false); - virtual ~RS_BlockList(); + BlockList(bool owner = false); + virtual ~BlockList(); void clear(); uint count(); - RS_Block * at(uint i); + Block * at(uint i); void activate(const QString & name); - void activate(RS_Block * block); - RS_Block * getActive(); - virtual bool add(RS_Block * block, bool notify = true); + void activate(Block * block); + Block * getActive(); + virtual bool add(Block * block, bool notify = true); virtual void addNotification(); - virtual void remove(RS_Block * block); - virtual bool rename(RS_Block * block, const QString & name); - //virtual void editBlock(RS_Block* block, const RS_Block& source); - RS_Block * find(const QString & name); + 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(RS_Block * block); + void toggle(Block * block); void freezeAll(bool freeze); -// void addListener(RS_BlockListListener * listener); -// void removeListener(RS_BlockListListener * listener); +// void addListener(BlockListListener * listener); +// void removeListener(BlockListListener * listener); void setModified(bool m); virtual bool isModified() const; - friend std::ostream & operator<<(std::ostream & os, RS_BlockList & b); + friend std::ostream & operator<<(std::ostream & os, BlockList & b); private: //! Is the list owning the blocks? bool owner; //! Blocks in the graphic - QList blocks; + QList blocks; //! List of registered BlockListListeners -// QList blockListListeners; +// QList blockListListeners; //! Currently active block - RS_Block * activeBlock; + Block * activeBlock; /** Flag set if the layer list was modified and not yet saved. */ bool modified; };