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