3 // Part of the Architektonas Project
4 // Originally part of QCad Community Edition by Andrew Mustun
5 // Extensively rewritten and refactored by James L. Hammons
6 // (C) 2010 Underground Software
8 // JLH = James L. Hammons <jlhamm@acm.org>
11 // --- ---------- -----------------------------------------------------------
12 // JLH 06/12/2010 Created this file. :-)
21 DlgPoint::DlgPoint(QWidget * parent/*= NULL*/, Qt::WindowFlags flags/*= 0*/):
22 QDialog(parent, flags)
31 void DlgPoint::setPoint(RS_Point & p)
35 ui.wPen->setPen(point->getPen(false), true, false, "Pen");
36 Drawing * graphic = point->getGraphic();
39 ui.cbLayer->init(*(graphic->getLayerList()), false, false);
41 RS_Layer * lay = point->getLayer(false);
44 ui.cbLayer->setLayer(*lay);
47 s.setNum(point->getPos().x);
48 ui.lePosX->setText(s);
49 s.setNum(point->getPos().y);
50 ui.lePosY->setText(s);
53 void DlgPoint::updatePoint()
55 point->setPos(Vector(RS_Math::eval(ui.lePosX->text()),
56 RS_Math::eval(ui.lePosY->text())));
57 point->setPen(ui.wPen->getPen());
58 point->setLayer(ui.cbLayer->currentText());