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 05/10/2010 Created this file. :-)
15 #include "cadtoolbardim.h"
17 #include "cadtoolbar.h"
18 #include "createqtactions.h"
20 CadToolBarDim::CadToolBarDim(CadToolBar * parent, Qt::WindowFlags flags/*= 0*/):
21 QWidget((QWidget *)parent, flags)
23 QGridLayout * gridLayout = new QGridLayout(this);
24 gridLayout->setSpacing(0);
25 gridLayout->setContentsMargins(0, 0, 0, 0);
27 gridLayout->addWidget(parent->CreateBackButton(this), 0, 0, 1, 2);
29 gridLayout->addWidget(parent->CreateToolButton(actionDimAligned), 1, 0, 1, 1);
30 gridLayout->addWidget(parent->CreateToolButton(actionDimLinear), 1, 1, 1, 1);
31 gridLayout->addWidget(parent->CreateToolButton(actionDimLinearHor), 2, 0, 1, 1);
32 gridLayout->addWidget(parent->CreateToolButton(actionDimLinearVer), 2, 1, 1, 1);
33 gridLayout->addWidget(parent->CreateToolButton(actionDimRadial), 3, 0, 1, 1);
34 gridLayout->addWidget(parent->CreateToolButton(actionDimDiametric), 3, 1, 1, 1);
35 gridLayout->addWidget(parent->CreateToolButton(actionDimAngular), 4, 0, 1, 1);
36 gridLayout->addWidget(parent->CreateToolButton(actionDimLeader), 4, 1, 1, 1);
39 CadToolBarDim::~CadToolBarDim()