-RS_Insert::RS_Insert(RS_EntityContainer * parent, const RS_InsertData & d):
- RS_EntityContainer(parent), data(d)
+Insert::Insert(EntityContainer * parent, const InsertData & d):
+ EntityContainer(parent), data(d)
#warning "!!! Need to deal with setAutoDelete() Qt3->Qt4 !!!"
// i->entities.setAutoDelete(entities.autoDelete());
i->initId();
#warning "!!! Need to deal with setAutoDelete() Qt3->Qt4 !!!"
// i->entities.setAutoDelete(entities.autoDelete());
i->initId();
* Updates the entity buffer of this insert entity. This method
* needs to be called whenever the block this insert is based on changes.
*/
* Updates the entity buffer of this insert entity. This method
* needs to be called whenever the block this insert is based on changes.
*/
- RS_DEBUG->print("RS_Insert::update");
- RS_DEBUG->print("RS_Insert::update: name: %s", data.name.toLatin1().data());
- RS_DEBUG->print("RS_Insert::update: insertionPoint: %f/%f",
+ DEBUG->print("Insert::update");
+ DEBUG->print("Insert::update: name: %s", data.name.toLatin1().data());
+ DEBUG->print("Insert::update: insertionPoint: %f/%f",
- RS_DEBUG->print("RS_Insert::update: cols: %d, rows: %d", data.cols, data.rows);
- RS_DEBUG->print("RS_Insert::update: block has %d entities", blk->count());
+ DEBUG->print("Insert::update: cols: %d, rows: %d", data.cols, data.rows);
+ DEBUG->print("Insert::update: block has %d entities", blk->count());
if (fabs(data.scaleFactor.x) > 1.0e-6 && fabs(data.scaleFactor.y) > 1.0e-6)
{
ne->move(data.insertionPoint + Vector(data.spacing.x / data.scaleFactor.x * c, data.spacing.y / data.scaleFactor.y * r));
if (fabs(data.scaleFactor.x) > 1.0e-6 && fabs(data.scaleFactor.y) > 1.0e-6)
{
ne->move(data.insertionPoint + Vector(data.spacing.x / data.scaleFactor.x * c, data.spacing.y / data.scaleFactor.y * r));
ne->rotate(data.insertionPoint, data.angle);
// Select:
ne->setSelected(isSelected());
ne->rotate(data.insertionPoint, data.angle);
// Select:
ne->setSelected(isSelected());
data.insertionPoint.x, data.insertionPoint.y);
data.insertionPoint.move(offset);
data.insertionPoint.x, data.insertionPoint.y);
data.insertionPoint.move(offset);
"/ center: %f/%f",
data.insertionPoint.x, data.insertionPoint.y,
center.x, center.y);
data.insertionPoint.rotate(center, angle);
"/ center: %f/%f",
data.insertionPoint.x, data.insertionPoint.y,
center.x, center.y);
data.insertionPoint.rotate(center, angle);
- data.angle = RS_Math::correctAngle(data.angle + angle);
- RS_DEBUG->print("RS_Insert::rotate2: insertionPoint: %f/%f",
+ data.angle = Math::correctAngle(data.angle + angle);
+ DEBUG->print("Insert::rotate2: insertionPoint: %f/%f",
data.insertionPoint.x, data.insertionPoint.y);
data.insertionPoint.scale(center, factor);
data.scaleFactor.scale(Vector(0.0, 0.0), factor);
data.spacing.scale(Vector(0.0, 0.0), factor);
data.insertionPoint.x, data.insertionPoint.y);
data.insertionPoint.scale(center, factor);
data.scaleFactor.scale(Vector(0.0, 0.0), factor);
data.spacing.scale(Vector(0.0, 0.0), factor);