]> Shamusworld >> Repos - architektonas/blobdiff - src/base/creation.h
Removed unnecessary RS_ prefix from classes and whatnot.
[architektonas] / src / base / creation.h
index 35c8d3000fa57fd48986177f8b80a2e93cd6b7e7..3492f48db75449c6cad25693e0ce53c3cb35da32 100644 (file)
@@ -4,25 +4,25 @@
 #include <QtCore>
 #include "vector.h"
 
-class RS_Arc;
-class RS_Block;
-class RS_BlockData;
-class RS_Circle;
-class RS_Document;
+class Arc;
+class Block;
+class BlockData;
+class Circle;
+class Document;
 class Drawing;
-class RS_Entity;
-class RS_EntityContainer;
+class Entity;
+class EntityContainer;
 class GraphicView;
-class RS_Image;
-class RS_ImageData;
-class RS_Insert;
-class RS_InsertData;
-class RS_Line;
+class Image;
+class ImageData;
+class Insert;
+class InsertData;
+class Line;
 
 /**
  * Data needed to insert library items.
  */
-struct RS_LibraryInsertData
+struct LibraryInsertData
 {
        QString file;
        Vector insertionPoint;
@@ -37,59 +37,59 @@ struct RS_LibraryInsertData
  *
  * @author Andrew Mustun
  */
-class RS_Creation
+class Creation
 {
        public:
-               RS_Creation(RS_EntityContainer * container, GraphicView * graphicView = NULL,
+               Creation(EntityContainer * container, GraphicView * graphicView = NULL,
                        bool handleUndo = true);
 
-               RS_Entity * createParallelThrough(const Vector & coord, int number,
-                       RS_Entity * e);
+               Entity * createParallelThrough(const Vector & coord, int number,
+                       Entity * e);
 
-               RS_Entity * createParallel(const Vector & coord, double distance,
-                       int number, RS_Entity * e);
+               Entity * createParallel(const Vector & coord, double distance,
+                       int number, Entity * e);
 
-               RS_Line * createParallelLine(const Vector & coord, double distance, int number,
-                       RS_Line * e);
+               Line * createParallelLine(const Vector & coord, double distance, int number,
+                       Line * e);
 
-               RS_Arc * createParallelArc(const Vector & coord, double distance, int number,
-                       RS_Arc * e);
+               Arc * createParallelArc(const Vector & coord, double distance, int number,
+                       Arc * e);
 
-               RS_Circle * createParallelCircle(const Vector & coord, double distance, int number,
-                       RS_Circle * e);
+               Circle * createParallelCircle(const Vector & coord, double distance, int number,
+                       Circle * e);
 
-               RS_Line * createBisector(const Vector & coord1, const Vector & coord2, double length,
-                       int num, RS_Line * l1, RS_Line * l2);
+               Line * createBisector(const Vector & coord1, const Vector & coord2, double length,
+                       int num, Line * l1, Line * l2);
 
-               RS_Line * createTangent1(const Vector & coord, const Vector & point, RS_Entity * circle);
+               Line * createTangent1(const Vector & coord, const Vector & point, Entity * circle);
 
-               RS_Line * createTangent2(const Vector & coord, RS_Entity * circle1, RS_Entity * circle2);
+               Line * createTangent2(const Vector & coord, Entity * circle1, Entity * circle2);
 
-               RS_Line * createLineRelAngle(const Vector & coord, RS_Entity * entity,
+               Line * createLineRelAngle(const Vector & coord, Entity * entity,
                        double angle, double length);
 
-               RS_Line * createPolygon(const Vector & center, const Vector & corner, int number);
+               Line * createPolygon(const Vector & center, const Vector & corner, int number);
 
-               RS_Line * createPolygon2(const Vector & corner1, const Vector & corner2, int number);
+               Line * createPolygon2(const Vector & corner1, const Vector & corner2, int number);
 
-               RS_Insert * createInsert(RS_InsertData & data);
+               Insert * createInsert(InsertData & data);
 
-               RS_Image * createImage(RS_ImageData & data);
+               Image * createImage(ImageData & data);
 
-               RS_Block * createBlock(const RS_BlockData & data, const Vector & referencePoint,
+               Block * createBlock(const BlockData & data, const Vector & referencePoint,
                        const bool remove);
 
-               RS_Insert * createLibraryInsert(RS_LibraryInsertData & data);
+               Insert * createLibraryInsert(LibraryInsertData & data);
 
                //void createPoint(const Vector& p);
                //void createLine2P(const Vector& p1, const Vector& p2);
                //void createRectangle(const Vector& e1, const Vector& e2);
-               //RS_Polyline* createPolyline(const Vector& p);
+               //Polyline* createPolyline(const Vector& p);
 
        protected:
-               RS_EntityContainer * container;
+               EntityContainer * container;
                Drawing * graphic;
-               RS_Document * document;
+               Document * document;
                GraphicView * graphicView;
                bool handleUndo;
 };