20 #include <QRegExp> |
20 #include <QRegExp> |
21 #include <QDialog> |
21 #include <QDialog> |
22 #include <QTreeWidgetItem> |
22 #include <QTreeWidgetItem> |
23 #include <QDirIterator> |
23 #include <QDirIterator> |
24 #include "main.h" |
24 #include "main.h" |
|
25 #include "model.h" |
25 |
26 |
26 class LDDocument; |
27 class LDDocument; |
27 class Ui_GeneratePrimitiveDialog; |
28 class Ui_GeneratePrimitiveDialog; |
28 class PrimitiveCategory; |
29 class PrimitiveCategory; |
29 class PrimitiveScanner; |
30 class PrimitiveScanner; |
49 int segments; |
50 int segments; |
50 int divisions; |
51 int divisions; |
51 int ringNumber; |
52 int ringNumber; |
52 |
53 |
53 QString typeName() const; |
54 QString typeName() const; |
54 LDObjectList generateBody() const; |
55 void generateBody(Model& model) const; |
55 static QString typeName(Type type); |
56 static QString typeName(Type type); |
56 QString makeFileName() const; |
57 QString makeFileName() const; |
57 }; |
58 }; |
58 |
59 |
59 class PrimitiveCategory : public QObject |
60 class PrimitiveCategory : public QObject |