src/primitives.h

changeset 497
c51941e590b6
parent 494
bd005c78a089
child 498
791c831c8020
equal deleted inserted replaced
496:d6cbf21af8fb 497:c51941e590b6
22 #include "common.h" 22 #include "common.h"
23 #include "types.h" 23 #include "types.h"
24 #include <QRegExp> 24 #include <QRegExp>
25 #include <QDialog> 25 #include <QDialog>
26 26
27 class LDFile;
27 class Ui_MakePrimUI; 28 class Ui_MakePrimUI;
28 class PrimitiveCategory; 29 class PrimitiveCategory;
29 struct Primitive 30 struct Primitive
30 { str name, title; 31 { str name, title;
31 PrimitiveCategory* cat; 32 PrimitiveCategory* cat;
101 102
102 public slots: 103 public slots:
103 void hiResToggled (bool on); 104 void hiResToggled (bool on);
104 }; 105 };
105 106
106 void generatePrimitive(); 107 LDFile* generatePrimitive (PrimitiveType type, int segs, int divs, int num);
108
109 // Gets a primitive by the given specs. If the primitive cannot be found, it will
110 // be automatically generated.
111 LDFile* getPrimitive (PrimitiveType type, int segs, int divs, int num);
107 112
108 #endif // PRIMITIVES_H 113 #endif // PRIMITIVES_H

mercurial