1 #ifndef __PATTERNLIST_H__
2 #define __PATTERNLIST_H__
8 #define PATTERNLIST PatternList::instance()
11 * The global list of patterns. This is implemented as a singleton.
12 * Use PatternList::instance() to get a pointer to the object.
14 * @author James Hammons
15 * @author Andrew Mustun
23 virtual ~PatternList();
25 static PatternList * instance();
29 virtual void removePattern(Pattern * pattern);
30 Pattern * requestPattern(const QString & name);
31 Pattern * firstPattern();
32 Pattern * nextPattern();
33 bool contains(const QString & name);
35 friend std::ostream & operator<<(std::ostream & os, PatternList & l);
38 static PatternList * uniqueInstance;
41 //! patterns in the graphic
42 QList<Pattern *> patterns;
43 QListIterator<Pattern *> patternIterator;
46 #endif // __PATTERNLIST_H__