]> Shamusworld >> Repos - architektonas/blob - src/forms/cadtoolbarpolylines.cpp
07c6331e1bf7dd8bd67d2b02fd7fb32d638e291d
[architektonas] / src / forms / cadtoolbarpolylines.cpp
1 // cadtoolbarpolylines.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 // Portions copyright (C) 2001-2003 RibbonSoft
7 // Copyright (C) 2010 Underground Software
8 // See the README and GPLv2 files for licensing and warranty information
9 //
10 // JLH = James L. Hammons <jlhamm@acm.org>
11 //
12 // Who  When        What
13 // ---  ----------  -----------------------------------------------------------
14 // JLH  05/10/2010  Created this file. :-)
15 //
16
17 #include "cadtoolbarpolylines.h"
18
19 #include "cadtoolbar.h"
20 #include "createqtactions.h"
21
22 CadToolBarPolylines::CadToolBarPolylines(CadToolBar * parent, Qt::WindowFlags flags/*= 0*/):
23         QWidget((QWidget *)parent, flags)
24 {
25         QGridLayout * gridLayout = new QGridLayout(this);
26         gridLayout->setSpacing(0);
27         gridLayout->setContentsMargins(0, 0, 0, 0);
28
29         gridLayout->addWidget(parent->CreateBackButton(this), 0, 0, 1, 2);
30
31         gridLayout->addWidget(parent->CreateToolButton(actionDrawPolyline), 1, 0, 1, 1);
32         gridLayout->addWidget(parent->CreateToolButton(actionPolylineAdd), 1, 1, 1, 1);
33 #warning "!!! Missing actionPolylineAppend !!!"
34 //      gridLayout->addWidget(parent->CreateToolButton(actionPolylineAppend), 2, 0, 1, 1);
35         gridLayout->addWidget(parent->CreateToolButton(actionPolylineDel), 2, 1, 1, 1);
36         gridLayout->addWidget(parent->CreateToolButton(actionPolylineDelBetween), 3, 0, 1, 1);
37         gridLayout->addWidget(parent->CreateToolButton(actionPolylineTrim), 3, 1, 1, 1);
38 }
39
40 CadToolBarPolylines::~CadToolBarPolylines()
41 {
42 }