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