// blockdialog.cpp
//
+// 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 "blockdialog.h"
-#include "rs_blocklist.h"
+#include "blocklist.h"
+#include "debug.h"
BlockDialog::BlockDialog(QWidget * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
QDialog(parent, flags), blockList(NULL)
{
}
-void BlockDialog::setBlockList(RS_BlockList * l)
+void BlockDialog::setBlockList(BlockList * l)
{
- RS_DEBUG->print("BlockDialog::setBlockList");
+ DEBUG->print("BlockDialog::setBlockList");
blockList = l;
if (blockList != NULL)
{
- RS_Block * block = blockList->getActive();
+ Block * block = blockList->getActive();
if (block != NULL)
ui.leName->setText(block->getName());
else
- RS_DEBUG->print(RS_Debug::D_ERROR, "BlockDialog::setBlockList: No block active.");
+ DEBUG->print(Debug::D_ERROR, "BlockDialog::setBlockList: No block active.");
}
}
-RS_BlockData BlockDialog::getBlockData()
+BlockData BlockDialog::getBlockData()
{
/*if (blockList!=NULL) {
- RS_Block* block = blockList->getActive();
+ Block* block = blockList->getActive();
if (block!=NULL) {
return blockList->rename(block, leName->text().latin1());
}
return false;*/
- return RS_BlockData(ui.leName->text(), Vector(0.0, 0.0), false);
+ return BlockData(ui.leName->text(), Vector(0.0, 0.0), false);
}
void BlockDialog::validate()