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/11/2010 Created this file. :-)
17 #include "dlgdimension.h"
19 #include "dimension.h"
22 DlgDimension::DlgDimension(QWidget * parent/*= NULL*/, Qt::WindowFlags flags/*= 0*/):
23 QDialog(parent, flags)
28 DlgDimension::~DlgDimension()
32 void DlgDimension::setDim(Dimension & d)
35 ui.wPen->setPen(dim->getPen(false), true, false, "Pen");
36 Drawing * graphic = dim->getGraphic();
39 ui.cbLayer->init(*(graphic->getLayerList()), false, false);
41 Layer * lay = dim->getLayer(false);
44 ui.cbLayer->setLayer(*lay);
46 ui.wLabel->setLabel(dim->getLabel(false));
49 void DlgDimension::updateDim()
51 dim->setLabel(ui.wLabel->getLabel());