]> Shamusworld >> Repos - architektonas/blobdiff - src/base/patternlist.h
Major refactor of Architektonas: Jettisoning old cruft.
[architektonas] / src / base / patternlist.h
diff --git a/src/base/patternlist.h b/src/base/patternlist.h
deleted file mode 100644 (file)
index 1661b3b..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-#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__