#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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* @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
* @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
* @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
* @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
* @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
* @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
* @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
*
* @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
*
* @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
*
* @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