]> Shamusworld >> Repos - architektonas/blob - pattern.h
0c90a6cf5983665904350f7592c94746d1bb6836
[architektonas] / pattern.h
1 #ifndef __PATTERN_H__
2 #define __PATTERN_H__
3
4 #include "entitycontainer.h"
5
6 class PatternList;
7
8 /**
9  * Patterns are used for hatches. They are stored in a PatternList.
10  * Use PatternList to access a pattern.
11  *
12  * @author Andrew Mustun
13  */
14 class Pattern: public EntityContainer
15 {
16         public:
17                 Pattern(const QString & file);
18                 virtual ~Pattern();
19
20                 virtual bool loadPattern();
21                 QString getFileName() const;
22
23         protected:
24                 //! Pattern file name
25                 QString filename;
26                 //! Is this pattern currently loaded into memory?
27                 bool loaded;
28 };
29
30 #endif