src/primitives.h

changeset 504
6a1fa662bfc1
parent 503
bebe09014dd6
child 538
2f85d4d286e5
equal deleted inserted replaced
503:bebe09014dd6 504:6a1fa662bfc1
44 struct RegexEntry 44 struct RegexEntry
45 { QRegExp regex; 45 { QRegExp regex;
46 Type type; 46 Type type;
47 }; 47 };
48 48
49 List<RegexEntry> regexes; 49 QList<RegexEntry> regexes;
50 List<Primitive> prims; 50 QList<Primitive> prims;
51 static List<Primitive> uncat; 51 static QList<Primitive> uncat;
52 }; 52 };
53 53
54 // ============================================================================= 54 // =============================================================================
55 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 55 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
56 // ============================================================================= 56 // =============================================================================
72 void starting (int num); 72 void starting (int num);
73 void workDone(); 73 void workDone();
74 void update (int i); 74 void update (int i);
75 75
76 private: 76 private:
77 List<Primitive> m_prims; 77 QList<Primitive> m_prims;
78 }; 78 };
79 79
80 extern List<PrimitiveCategory> g_PrimitiveCategories; 80 extern QList<PrimitiveCategory> g_PrimitiveCategories;
81 81
82 void loadPrimitives(); 82 void loadPrimitives();
83 bool primitiveLoaderBusy(); 83 bool primitiveLoaderBusy();
84 84
85 enum PrimitiveType 85 enum PrimitiveType
102 102
103 public slots: 103 public slots:
104 void hiResToggled (bool on); 104 void hiResToggled (bool on);
105 }; 105 };
106 106
107 void makeCircle (int segs, int divs, double radius, List<QLineF>& lines); 107 void makeCircle (int segs, int divs, double radius, QList<QLineF>& lines);
108 LDFile* generatePrimitive (PrimitiveType type, int segs, int divs, int num); 108 LDFile* generatePrimitive (PrimitiveType type, int segs, int divs, int num);
109 109
110 // Gets a primitive by the given specs. If the primitive cannot be found, it will 110 // Gets a primitive by the given specs. If the primitive cannot be found, it will
111 // be automatically generated. 111 // be automatically generated.
112 LDFile* getPrimitive (PrimitiveType type, int segs, int divs, int num); 112 LDFile* getPrimitive (PrimitiveType type, int segs, int divs, int num);

mercurial