FreeCAD
1/***************************************************************************
2* Copyright (c) 2010 Jürgen Riegel <juergen.riegel@web.de> *
3* *
4* This file is part of the FreeCAD CAx development system. *
5* *
6* This library is free software; you can redistribute it and/or *
7* modify it under the terms of the GNU Library General Public *
8* License as published by the Free Software Foundation; either *
9* version 2 of the License, or (at your option) any later version. *
10* *
11* This library is distributed in the hope that it will be useful, *
12* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14* GNU Library General Public License for more details. *
15* *
16* You should have received a copy of the GNU Library General Public *
17* License along with this library; see the file COPYING.LIB. If not, *
18* write to the Free Software Foundation, Inc., 59 Temple Place, *
19* Suite 330, Boston, MA 02111-1307, USA *
20* *
21***************************************************************************/
22
23#include "PreCompiled.h"24
25#include "ui_DlgLocationAngle.h"26#include "ui_DlgLocationPos.h"27
28#include "TaskDlgRelocation.h"29#include "BitmapFactory.h"30
31
32using namespace Gui;33
34//**************************************************************************
35//**************************************************************************
36// TaskBoxPosition
37//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
38
39/* TRANSLATOR Gui::TaskBoxPosition */
40
41TaskBoxPosition::TaskBoxPosition(QWidget *parent)42: TaskBox(Gui::BitmapFactory().pixmap("Robot_CreateRobot"),tr("Position"),true, parent)43{
44// we need a separate container widget to add all controls to45proxy = new QWidget(this);46ui = new Ui_Position();47ui->setupUi(proxy);48QMetaObject::connectSlotsByName(this);49
50this->groupLayout()->addWidget(proxy);51}
52
53TaskBoxPosition::~TaskBoxPosition()54{
55delete ui;56}
57
58
59//**************************************************************************
60//**************************************************************************
61// TaskBoxAngle
62//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
63
64/* TRANSLATOR Gui::TaskBoxAngle */
65
66TaskBoxAngle::TaskBoxAngle(QWidget *parent)67: TaskBox(Gui::BitmapFactory().pixmap("Robot_CreateRobot"),tr("Angle"),true, parent)68{
69// we need a separate container widget to add all controls to70proxy = new QWidget(this);71ui = new Ui_Angle();72ui->setupUi(proxy);73QMetaObject::connectSlotsByName(this);74
75this->groupLayout()->addWidget(proxy);76}
77
78TaskBoxAngle::~TaskBoxAngle()79{
80delete ui;81}
82
83
84//**************************************************************************
85//**************************************************************************
86// TaskDialog
87//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
88
89/* TRANSLATOR Gui::TaskDlgRelocation */
90
91TaskDlgRelocation::TaskDlgRelocation()92: TaskDialog()93{
94}
95
96TaskDlgRelocation::~TaskDlgRelocation() = default;97
98//==== calls from the TaskView ===============================================================
99
100
101void TaskDlgRelocation::open()102{
103}
104
105void TaskDlgRelocation::clicked(int)106{
107
108}
109
110bool TaskDlgRelocation::accept()111{
112return true;113}
114
115bool TaskDlgRelocation::reject()116{
117return true;118}
119
120void TaskDlgRelocation::helpRequested()121{
122
123}
124
125
126#include "moc_TaskDlgRelocation.cpp"127