Debian Codegraph @

src/Gui/TaskDlgRelocation.cpp

raw
1 /***************************************************************************
2 * Copyright (c) 2010 Jürgen Riegel <[email protected]> *
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
24 #include "Dialogs/ui_DlgLocationAngle.h"
25 #include "Dialogs/ui_DlgLocationPos.h"
26
27 #include "TaskDlgRelocation.h"
28 #include "BitmapFactory.h"
29
30
31 using namespace Gui;
32
33 //**************************************************************************
34 //**************************************************************************
35 // TaskBoxPosition
36 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
37
38 /* TRANSLATOR Gui::TaskBoxPosition */
39
40 TaskBoxPosition::TaskBoxPosition(QWidget* parent)
41 : TaskBox(Gui::BitmapFactory().pixmap("Robot_CreateRobot"), tr("Position"), true, parent)
42 {
43 // we need a separate container widget to add all controls to
44 proxy = new QWidget(this);
45 ui = new Ui_Position();
46 ui->setupUi(proxy);
47 QMetaObject::connectSlotsByName(this);
48
49 this->groupLayout()->addWidget(proxy);
50 }
51
52 TaskBoxPosition::~TaskBoxPosition()
53 {
54 delete ui;
55 }
56
57
58 //**************************************************************************
59 //**************************************************************************
60 // TaskBoxAngle
61 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
62
63 /* TRANSLATOR Gui::TaskBoxAngle */
64
65 TaskBoxAngle::TaskBoxAngle(QWidget* parent)
66 : TaskBox(Gui::BitmapFactory().pixmap("Robot_CreateRobot"), tr("Angle"), true, parent)
67 {
68 // we need a separate container widget to add all controls to
69 proxy = new QWidget(this);
70 ui = new Ui_Angle();
71 ui->setupUi(proxy);
72 QMetaObject::connectSlotsByName(this);
73
74 this->groupLayout()->addWidget(proxy);
75 }
76
77 TaskBoxAngle::~TaskBoxAngle()
78 {
79 delete ui;
80 }
81
82
83 //**************************************************************************
84 //**************************************************************************
85 // TaskDialog
86 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
87
88 /* TRANSLATOR Gui::TaskDlgRelocation */
89
90 TaskDlgRelocation::TaskDlgRelocation()
91 : TaskDialog()
92 {}
93
94 TaskDlgRelocation::~TaskDlgRelocation() = default;
95
96 //==== calls from the TaskView ===============================================================
97
98
99 void TaskDlgRelocation::open()
100 {}
101
102 void TaskDlgRelocation::clicked(int)
103 {}
104
105 bool TaskDlgRelocation::accept()
106 {
107 return true;
108 }
109
110 bool TaskDlgRelocation::reject()
111 {
112 return true;
113 }
114
115 void TaskDlgRelocation::helpRequested()
116 {}
117
118
119 #include "moc_TaskDlgRelocation.cpp"