1 // cadtoolbarmodify.cpp
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 05/10/2010 Created this file. :-)
17 #include "cadtoolbarmodify.h"
19 #include "cadtoolbar.h"
20 #include "createqtactions.h"
22 CadToolBarModify::CadToolBarModify(CadToolBar * parent, Qt::WindowFlags flags/*= 0*/):
23 QWidget((QWidget *)parent, flags)
25 QGridLayout * gridLayout = new QGridLayout(this);
26 gridLayout->setSpacing(0);
27 gridLayout->setContentsMargins(0, 0, 0, 0);
29 gridLayout->addWidget(parent->CreateBackButton(this), 0, 0, 1, 2);
31 gridLayout->addWidget(parent->CreateToolButton(actionModifyMove), 1, 0, 1, 1);
32 gridLayout->addWidget(parent->CreateToolButton(actionModifyRotate), 1, 1, 1, 1);
33 gridLayout->addWidget(parent->CreateToolButton(actionModifyScale), 2, 0, 1, 1);
34 gridLayout->addWidget(parent->CreateToolButton(actionModifyMirror), 2, 1, 1, 1);
35 gridLayout->addWidget(parent->CreateToolButton(actionModifyMoveRotate), 3, 0, 1, 1);
36 gridLayout->addWidget(parent->CreateToolButton(actionModifyRotate2), 3, 1, 1, 1);
38 gridLayout->addWidget(parent->CreateToolButton(actionModifyTrim), 5, 0, 1, 1);
39 gridLayout->addWidget(parent->CreateToolButton(actionModifyTrim2), 5, 1, 1, 1);
40 gridLayout->addWidget(parent->CreateToolButton(actionModifyTrimAmount), 6, 0, 1, 1);
42 gridLayout->addWidget(parent->CreateToolButton(actionModifyBevel), 8, 0, 1, 1);
43 gridLayout->addWidget(parent->CreateToolButton(actionModifyRound), 8, 1, 1, 1);
45 gridLayout->addWidget(parent->CreateToolButton(actionModifyCut), 10, 0, 1, 1);
46 gridLayout->addWidget(parent->CreateToolButton(actionModifyStretch), 10, 1, 1, 1);
48 gridLayout->addWidget(parent->CreateToolButton(actionModifyEntity), 12, 0, 1, 1);
49 gridLayout->addWidget(parent->CreateToolButton(actionModifyAttributes), 12, 1, 1, 1);
50 gridLayout->addWidget(parent->CreateToolButton(actionModifyDelete), 13, 0, 1, 1);
51 gridLayout->addWidget(parent->CreateToolButton(actionModifyExplode), 13, 1, 1, 1);
53 gridLayout->addWidget(parent->CreateToolButton(actionModifyExplodeText), 15, 0, 1, 1);
54 #warning "!!! actionModifyEntityText is missing !!!"
56 // gridLayout->addWidget(parent->CreateToolButton(actionModifyEntityText), 15, 1, 1, 1);
59 CadToolBarModify::~CadToolBarModify()