// Who When What
// --- ---------- -----------------------------------------------------------
// JLH 06/03/2010 Added this text. :-)
-// JLH 06/03/2010 Scrubbed out all occurances of RS_CoordinateEvent
+// JLH 06/03/2010 Scrubbed out all occurances of CoordinateEvent
//
#include "actionblockscreate.h"
/**
* Constructor.
*/
-ActionBlocksCreate::ActionBlocksCreate(RS_EntityContainer & container, GraphicView & graphicView): ActionInterface("Blocks Create", container, graphicView)
+ActionBlocksCreate::ActionBlocksCreate(EntityContainer & container, GraphicView & graphicView): ActionInterface("Blocks Create", container, graphicView)
{
referencePoint = Vector(false);
}
//deletePreview();
//clearPreview();
- //RS_Modification m(*container, graphicView);
+ //Modification m(*container, graphicView);
//m.paste(data.insertionPoint);
- //std::cout << *RS_Clipboard::instance();
+ //std::cout << *Clipboard::instance();
if (graphic != NULL)
{
- RS_BlockList * blockList = graphic->getBlockList();
+ BlockList * blockList = graphic->getBlockList();
if (blockList != NULL)
{
- RS_BlockData d = RS_DIALOGFACTORY->requestNewBlockDialog(blockList);
+ BlockData d = DIALOGFACTORY->requestNewBlockDialog(blockList);
if (!d.name.isEmpty())
{
- RS_Creation creation(container, graphicView);
+ Creation creation(container, graphicView);
creation.createBlock(d, referencePoint, true);
- RS_InsertData id(d.name, referencePoint, Vector(1.0, 1.0), 0.0, 1, 1, Vector(0.0, 0.0));
+ InsertData id(d.name, referencePoint, Vector(1.0, 1.0), 0.0, 1, 1, Vector(0.0, 0.0));
creation.createInsert(id);
}
}
clearPreview();
//preview->addAllFrom(*block);
//preview->move(data.insertionPoint);
- RS_Creation creation(preview, NULL, false);
+ Creation creation(preview, NULL, false);
creation.createInsert(data);
drawPreview();
}*/
switch (getStatus())
{
case SetReferencePoint:
- RS_DIALOGFACTORY->updateMouseWidget(tr("Specify reference point"), tr("Cancel"));
+ DIALOGFACTORY->updateMouseWidget(tr("Specify reference point"), tr("Cancel"));
break;
default:
- RS_DIALOGFACTORY->updateMouseWidget("", "");
+ DIALOGFACTORY->updateMouseWidget("", "");
break;
}
}
void ActionBlocksCreate::updateToolBar()
{
if (!isFinished())
- RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap);
+ DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap);
else
- RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarMain);
+ DIALOGFACTORY->requestToolBar(RS2::ToolBarMain);
}