1 #ifndef RS_PATTERNLIST_H
2 #define RS_PATTERNLIST_H
5 #include "rs_pattern.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 Andrew Mustun
22 virtual ~RS_PatternList();
24 static RS_PatternList * instance();
28 virtual void removePattern(RS_Pattern * pattern);
29 RS_Pattern * requestPattern(const QString & name);
30 RS_Pattern * firstPattern();
31 RS_Pattern * nextPattern();
32 bool contains(const QString & name);
34 friend std::ostream & operator<<(std::ostream & os, RS_PatternList & l);
37 static RS_PatternList * uniqueInstance;
40 //! patterns in the graphic
41 // Q3PtrList<RS_Pattern> patterns;
42 QList<RS_Pattern *> patterns;
43 QListIterator<RS_Pattern *> patternIterator;
44 //! List of registered PatternListListeners
45 //Q3PtrList<RS_PatternListListener> patternListListeners;