X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fstructs.h;h=62366adaca188179d705dfe97e6c76f4819b1ab6;hb=b8bab716d9302fbb04d97679ee499eac781f1b22;hp=0d16ff8d30f5c81772766997d20ebae3b652b434;hpb=cdde036d71eb0ea9b450345bd297c8730591b26b;p=architektonas diff --git a/src/structs.h b/src/structs.h index 0d16ff8..62366ad 100644 --- a/src/structs.h +++ b/src/structs.h @@ -16,6 +16,8 @@ enum ToolType { TTNone, TTLine, TTCircle, TTEllipse, TTArc, TTDimension, TTText, enum ToolState { TSNone, TSPoint1, TSPoint2, TSPoint3, TSPoint4, TSDone }; +enum BasicUnit { BUInch = 0, BUFoot, BUYard, BUMile, BUMM, BUCM, BUM, BUKM, BUCount }; + const char objName[OTCount][16] = { "None", "Line", "Circle", "Ellipse", "Arc", "Polygon", "Dimension", "Spline", "Text", "Container" @@ -25,6 +27,12 @@ const char dimName[DTCount][32] = { "Circumferential", "Angular", "Leader" }; +const char buShortName[BUCount][8] = { + "in", "ft", "yd", "mi", "mm", "cm", "m", "km" +}; + +const double buInInches[BUCount] = { 1.0, 12.0, 36.0, 1.0/25.4, 1.0/2.54, 1.0/0.0254, 1.0/0.0000254 }; + #define OBJECT_COMMON \ int type; \ uint32_t id; \