]> Shamusworld >> Repos - architektonas/blob - src/forms/cadtoolbarinfo.cpp
Refactored CAD tool bars once more...
[architektonas] / src / forms / cadtoolbarinfo.cpp
1 // cadtoolbarinfo.cpp
2 //
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
7 //
8 // JLH = James L. Hammons <jlhamm@acm.org>
9 //
10 // Who  When        What
11 // ---  ----------  -----------------------------------------------------------
12 // JLH  05/10/2010  Created this file. :-)
13 //
14
15 #include "cadtoolbarinfo.h"
16
17 #include "cadtoolbar.h"
18 #include "createqtactions.h"
19
20 CadToolBarInfo::CadToolBarInfo(CadToolBar * parent, Qt::WindowFlags flags/*= 0*/):
21         QWidget((QWidget *)parent, flags)
22 {
23         QGridLayout * gridLayout = new QGridLayout(this);
24         gridLayout->setSpacing(0);
25         gridLayout->setContentsMargins(0, 0, 0, 0);
26
27         gridLayout->addWidget(parent->CreateBackButton(this), 0, 0, 1, 2);
28
29         gridLayout->addWidget(parent->CreateToolButton(actionInfoDist), 1, 0, 1, 1);
30         gridLayout->addWidget(parent->CreateToolButton(actionInfoDist2), 1, 1, 1, 1);
31         gridLayout->addWidget(parent->CreateToolButton(actionInfoAngle), 2, 0, 1, 1);
32         gridLayout->addWidget(parent->CreateToolButton(actionInfoTotalLength), 2, 1, 1, 1);
33         gridLayout->addWidget(parent->CreateToolButton(actionInfoArea), 3, 0, 1, 1);
34 }
35
36 CadToolBarInfo::~CadToolBarInfo()
37 {
38 }