// Part of the Architektonas Project
// Originally part of QCad Community Edition by Andrew Mustun
// Extensively rewritten and refactored by James L. Hammons
-// (C) 2010 Underground Software
+// Portions copyright (C) 2001-2003 RibbonSoft
+// Copyright (C) 2010 Underground Software
+// See the README and GPLv2 files for licensing and warranty information
//
// JLH = James L. Hammons <jlhamm@acm.org>
//
#include "actionblocksadd.h"
#include "drawing.h"
-#include "rs_dialogfactory.h"
+#include "dialogfactory.h"
-ActionBlocksAdd::ActionBlocksAdd(RS_EntityContainer & container, GraphicView & graphicView):
+ActionBlocksAdd::ActionBlocksAdd(EntityContainer & container, GraphicView & graphicView):
ActionInterface("Add Block", container, graphicView)
{
}
void ActionBlocksAdd::trigger()
{
- RS_DEBUG->print("adding block");
+ DEBUG->print("adding block");
if (graphic)
{
- RS_BlockList * blockList = graphic->getBlockList();
+ BlockList * blockList = graphic->getBlockList();
if (blockList)
{
- RS_BlockData d = RS_DIALOGFACTORY->requestNewBlockDialog(blockList);
+ BlockData d = DIALOGFACTORY->requestNewBlockDialog(blockList);
if (d.isValid())
- graphic->addBlock(new RS_Block(container, d));
+ graphic->addBlock(new Block(container, d));
}
}