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/11/2010 Created this file. :-)
15 #include "dlgdimension.h"
17 #include "rs_dimension.h"
20 DlgDimension::DlgDimension(QWidget * parent/*= NULL*/, Qt::WindowFlags flags/*= 0*/):
21 QDialog(parent, flags)
26 DlgDimension::~DlgDimension()
30 void DlgDimension::setDim(RS_Dimension & d)
33 ui.wPen->setPen(dim->getPen(false), true, false, "Pen");
34 Drawing * graphic = dim->getGraphic();
37 ui.cbLayer->init(*(graphic->getLayerList()), false, false);
39 RS_Layer * lay = dim->getLayer(false);
42 ui.cbLayer->setLayer(*lay);
44 ui.wLabel->setLabel(dim->getLabel(false));
47 void DlgDimension::updateDim()
49 dim->setLabel(ui.wLabel->getLabel());