]> Shamusworld >> Repos - architektonas/blobdiff - src/base/dialogfactoryinterface.h
Removed unnecessary RS_ prefix from classes and whatnot.
[architektonas] / src / base / dialogfactoryinterface.h
index c12ee70b5e2d1076dd961a3a66b3b31c2a3d48f1..4e413a02ca0f8f72798ea0f3ee634a114de24388 100644 (file)
@@ -2,49 +2,48 @@
 #define __DIALOGFACTORYINTERFACE_H__
 
 #include <QtCore>
-#include "rs.h"
+#include "enums.h"
 
 class ActionInterface;
-class RS_ArcData;
-class RS_AttributesData;
-class RS_BevelData;
-class RS_Block;
-class RS_BlockData;
-class RS_BlockList;
-class RS_CircleData;
-class RS_DimLinearData;
-class RS_DimensionData;
-class RS_Document;
+class ArcData;
+class AttributesData;
+class BevelData;
+class Block;
+class BlockData;
+class BlockList;
+class CircleData;
+class DimLinearData;
+class DimensionData;
+class Document;
 class Drawing;
-class RS_Entity;
-class RS_EventHandler;
+class Entity;
+class EventHandler;
 class GraphicView;
-class RS_Grid;
-class RS_Hatch;
-class RS_Insert;
-class RS_Layer;
-class RS_LayerList;
-class RS_MirrorData;
-class RS_MoveData;
-class RS_MoveRotateData;
-class RS_Painter;
-class RS_Rotate2Data;
-class RS_RotateData;
-class RS_RoundData;
-class RS_ScaleData;
-class RS_Solid;
-class RS_Text;
+class Grid;
+class Hatch;
+class Insert;
+class Layer;
+class LayerList;
+class MirrorData;
+class MoveData;
+class MoveRotateData;
+class Rotate2Data;
+class RotateData;
+class RoundData;
+class ScaleData;
+class Solid;
+class Text;
 class Vector;
 
 
 /**
  * Interface for objects that can create and show dialogs.
  */
-class RS_DialogFactoryInterface
+class DialogFactoryInterface
 {
 public:
-    RS_DialogFactoryInterface() {}
-    virtual ~RS_DialogFactoryInterface() {}
+    DialogFactoryInterface() {}
+    virtual ~DialogFactoryInterface() {}
 
     /**
      * This virtual method must be overwritten and must show the previously
@@ -64,7 +63,7 @@ public:
         * is given.
         */
     virtual GraphicView * requestNewDocument(const QString & fileName = QString::null,
-               RS_Document * doc = NULL) = 0;
+               Document * doc = NULL) = 0;
 
        /**
         * This virtual method must be overwritten and must create or show
@@ -82,7 +81,7 @@ public:
      *         to the newly created layer or NULL if the user
      *         cancels the dialog.
      */
-    virtual RS_Layer * requestNewLayerDialog(RS_LayerList * layerList = NULL) = 0;
+    virtual Layer * requestNewLayerDialog(LayerList * layerList = NULL) = 0;
 
     /**
      * This virtual method must be overwritten and must provide
@@ -94,7 +93,7 @@ public:
      *         to the layer which can ne removed or NULL if the user
      *         cancels the dialog.
      */
-    virtual RS_Layer * requestLayerRemovalDialog(RS_LayerList * layerList = NULL) = 0;
+    virtual Layer * requestLayerRemovalDialog(LayerList * layerList = NULL) = 0;
 
     /**
      * This virtual method must be overwritten and must provide
@@ -105,7 +104,7 @@ public:
      *         to the modified layer or NULL if the user
      *         cancels the dialog.
      */
-    virtual RS_Layer * requestEditLayerDialog(RS_LayerList * layerList = NULL) = 0;
+    virtual Layer * requestEditLayerDialog(LayerList * layerList = NULL) = 0;
 
     /**
      * This virtual method must be overwritten and must provide
@@ -120,7 +119,7 @@ public:
      *         to the newly created block or NULL if the user
      *         cancels the dialog.
      */
-    virtual RS_BlockData requestNewBlockDialog(RS_BlockList * blockList) = 0;
+    virtual BlockData requestNewBlockDialog(BlockList * blockList) = 0;
 
     /**
      * This virtual method must be overwritten and must provide
@@ -132,7 +131,7 @@ public:
      *         to the block which can be removed or NULL if the user
      *         cancels the dialog.
      */
-    virtual RS_Block * requestBlockRemovalDialog(RS_BlockList * blockList) = 0;
+    virtual Block * requestBlockRemovalDialog(BlockList * blockList) = 0;
 
     /**
      * This virtual method must be overwritten and must provide
@@ -143,15 +142,15 @@ public:
      *         to the block which was changed or NULL if the user
      *         cancels the dialog.
      */
-    virtual RS_BlockData requestBlockAttributesDialog(RS_BlockList * blockList) = 0;
+    virtual BlockData requestBlockAttributesDialog(BlockList * blockList) = 0;
 
     /**
      * This virtual method must be overwritten and should provide
      * a way to edit a block.
      */
-    virtual void requestEditBlockWindow(RS_BlockList * blockList) = 0;
+    virtual void requestEditBlockWindow(BlockList * blockList) = 0;
 
-       virtual void closeEditBlockWindow(RS_Block * block) = 0;
+       virtual void closeEditBlockWindow(Block * block) = 0;
 
     /**
      * This virtual method must be overwritten and must provide
@@ -214,7 +213,7 @@ public:
      * @param data Attribute data which can be directly changed
      *             by the presented widget.
      */
-    virtual bool requestAttributesDialog(RS_AttributesData & data, RS_LayerList & layerList) = 0;
+    virtual bool requestAttributesDialog(AttributesData & data, LayerList & layerList) = 0;
 
     /**
      * This virtual method must be overwritten and must present
@@ -223,7 +222,7 @@ public:
      * @param data Move data which can be directly changed
      *             by the presented widget.
      */
-    virtual bool requestMoveDialog(RS_MoveData & data) = 0;
+    virtual bool requestMoveDialog(MoveData & data) = 0;
 
     /**
      * This virtual method must be overwritten and must present
@@ -232,7 +231,7 @@ public:
      * @param data Rotation data which can be directly changed
      *             by the presented widget.
      */
-    virtual bool requestRotateDialog(RS_RotateData & data) = 0;
+    virtual bool requestRotateDialog(RotateData & data) = 0;
 
     /**
      * This virtual method must be overwritten and must present
@@ -241,7 +240,7 @@ public:
      * @param data Scaling data which can be directly changed
      *             by the presented widget.
      */
-    virtual bool requestScaleDialog(RS_ScaleData & data) = 0;
+    virtual bool requestScaleDialog(ScaleData & data) = 0;
 
     /**
      * This virtual method must be overwritten and must present
@@ -250,7 +249,7 @@ public:
      * @param data Mirror data which can be directly changed
      *             by the presented widget.
      */
-    virtual bool requestMirrorDialog(RS_MirrorData & data) = 0;
+    virtual bool requestMirrorDialog(MirrorData & data) = 0;
 
     /**
      * This virtual method must be overwritten and must present
@@ -259,7 +258,7 @@ public:
      * @param data Move/rotate data which can be directly changed
      *             by the presented widget.
      */
-    virtual bool requestMoveRotateDialog(RS_MoveRotateData & data) = 0;
+    virtual bool requestMoveRotateDialog(MoveRotateData & data) = 0;
 
     /**
      * This virtual method must be overwritten and must present
@@ -269,7 +268,7 @@ public:
      * @param data Rotate data which can be directly changed
      *             by the presented widget.
      */
-    virtual bool requestRotate2Dialog(RS_Rotate2Data & data) = 0;
+    virtual bool requestRotate2Dialog(Rotate2Data & data) = 0;
 
     /**
      * This virtual method must be overwritten and must show
@@ -294,7 +293,7 @@ public:
      *
      * @param entity Pointer to the entity.
      */
-    virtual bool requestModifyEntityDialog(RS_Entity * entity) = 0;
+    virtual bool requestModifyEntityDialog(Entity * entity) = 0;
 
     /**
      * This virtual method must be overwritten and must present
@@ -302,7 +301,7 @@ public:
      *
      * @param entity Pointer to the text entity.
      */
-    virtual bool requestTextDialog(RS_Text * text) = 0;
+    virtual bool requestTextDialog(Text * text) = 0;
 
     /**
      * This virtual method must be overwritten and must present
@@ -310,7 +309,7 @@ public:
      *
      * @param entity Pointer to the hatch entity.
      */
-    virtual bool requestHatchDialog(RS_Hatch * hatch) = 0;
+    virtual bool requestHatchDialog(Hatch * hatch) = 0;
 
     /**
      * This virtual method must be overwritten and must present