FreeCAD

Форк
0
/
TaskDlgRelocation.cpp 
126 строк · 4.0 Кб
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

32
using namespace Gui;
33

34
//**************************************************************************
35
//**************************************************************************
36
// TaskBoxPosition
37
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
38

39
/* TRANSLATOR Gui::TaskBoxPosition */
40

41
TaskBoxPosition::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 to
45
    proxy = new QWidget(this);
46
    ui = new Ui_Position();
47
    ui->setupUi(proxy);
48
    QMetaObject::connectSlotsByName(this);
49

50
    this->groupLayout()->addWidget(proxy);
51
}
52

53
TaskBoxPosition::~TaskBoxPosition()
54
{
55
    delete ui;
56
}
57

58

59
//**************************************************************************
60
//**************************************************************************
61
// TaskBoxAngle
62
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
63

64
/* TRANSLATOR Gui::TaskBoxAngle */
65

66
TaskBoxAngle::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 to
70
    proxy = new QWidget(this);
71
    ui = new Ui_Angle();
72
    ui->setupUi(proxy);
73
    QMetaObject::connectSlotsByName(this);
74

75
    this->groupLayout()->addWidget(proxy);
76
}
77

78
TaskBoxAngle::~TaskBoxAngle()
79
{
80
    delete ui;
81
}
82

83

84
//**************************************************************************
85
//**************************************************************************
86
// TaskDialog
87
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
88

89
/* TRANSLATOR Gui::TaskDlgRelocation */
90

91
TaskDlgRelocation::TaskDlgRelocation()
92
    : TaskDialog()
93
{
94
}
95

96
TaskDlgRelocation::~TaskDlgRelocation() = default;
97

98
//==== calls from the TaskView ===============================================================
99

100

101
void TaskDlgRelocation::open()
102
{
103
}
104

105
void TaskDlgRelocation::clicked(int)
106
{
107

108
}
109

110
bool TaskDlgRelocation::accept()
111
{
112
    return true;
113
}
114

115
bool TaskDlgRelocation::reject()
116
{
117
    return true;
118
}
119

120
void TaskDlgRelocation::helpRequested()
121
{
122

123
}
124

125

126
#include "moc_TaskDlgRelocation.cpp"
127

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.