+++ /dev/null
-#ifndef __PATTERNLIST_H__
-#define __PATTERNLIST_H__
-
-#include <QtCore>
-#include "pattern.h"
-#include "entity.h"
-
-#define PATTERNLIST PatternList::instance()
-
-/**
- * The global list of patterns. This is implemented as a singleton.
- * Use PatternList::instance() to get a pointer to the object.
- *
- * @author James Hammons
- * @author Andrew Mustun
- */
-class PatternList
-{
- protected:
- PatternList();
-
- public:
- virtual ~PatternList();
-
- static PatternList * instance();
- void init();
- void clearPatterns();
- int countPatterns();
- virtual void removePattern(Pattern * pattern);
- Pattern * requestPattern(const QString & name);
- Pattern * firstPattern();
- Pattern * nextPattern();
- bool contains(const QString & name);
-
- friend std::ostream & operator<<(std::ostream & os, PatternList & l);
-
- protected:
- static PatternList * uniqueInstance;
-
- private:
- //! patterns in the graphic
- QList<Pattern *> patterns;
- QListIterator<Pattern *> patternIterator;
-};
-
-#endif // __PATTERNLIST_H__