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 // Portions copyright (C) 2001-2003 RibbonSoft
7 // Copyright (C) 2010 Underground Software
8 // See the README and GPLv2 files for licensing and warranty information
10 // JLH = James L. Hammons <jlhamm@acm.org>
13 // --- ---------- -----------------------------------------------------------
14 // JLH 06/12/2010 Created this file. :-)
23 DlgPoint::DlgPoint(QWidget * parent/*= NULL*/, Qt::WindowFlags flags/*= 0*/):
24 QDialog(parent, flags)
33 void DlgPoint::setPoint(Point & p)
37 ui.wPen->setPen(point->getPen(false), true, false, "Pen");
38 Drawing * graphic = point->getGraphic();
41 ui.cbLayer->init(*(graphic->getLayerList()), false, false);
43 Layer * lay = point->getLayer(false);
46 ui.cbLayer->setLayer(*lay);
49 s.setNum(point->getPos().x);
50 ui.lePosX->setText(s);
51 s.setNum(point->getPos().y);
52 ui.lePosY->setText(s);
55 void DlgPoint::updatePoint()
57 point->setPos(Vector(Math::eval(ui.lePosX->text()),
58 Math::eval(ui.lePosY->text())));
59 point->setPen(ui.wPen->getPen());
60 point->setLayer(ui.cbLayer->currentText());