00001 /*************************************************************************** 00002 * Copyright (c) 2010 Jürgen Riegel <juergen.riegel@web.de> * 00003 * * 00004 * This file is part of the FreeCAD CAx development system. * 00005 * * 00006 * This library is free software; you can redistribute it and/or * 00007 * modify it under the terms of the GNU Library General Public * 00008 * License as published by the Free Software Foundation; either * 00009 * version 2 of the License, or (at your option) any later version. * 00010 * * 00011 * This library is distributed in the hope that it will be useful, * 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00014 * GNU Library General Public License for more details. * 00015 * * 00016 * You should have received a copy of the GNU Library General Public * 00017 * License along with this library; see the file COPYING.LIB. If not, * 00018 * write to the Free Software Foundation, Inc., 59 Temple Place, * 00019 * Suite 330, Boston, MA 02111-1307, USA * 00020 * * 00021 ***************************************************************************/ 00022 00023 00024 #include "PreCompiled.h" 00025 00026 #ifndef _PreComp_ 00027 #endif 00028 00029 #include "ui_DlgLocationPos.h" 00030 #include "ui_DlgLocationAngle.h" 00031 00032 #include "TaskDlgRelocation.h" 00033 #include <Gui/BitmapFactory.h> 00034 00035 using namespace Gui; 00036 00037 //************************************************************************** 00038 //************************************************************************** 00039 // TaskBoxPosition 00040 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 00041 00042 /* TRANSLATOR Gui::TaskBoxPosition */ 00043 00044 TaskBoxPosition::TaskBoxPosition(QWidget *parent) 00045 : TaskBox(Gui::BitmapFactory().pixmap("Robot_CreateRobot"),tr("Position"),true, parent) 00046 { 00047 // we need a separate container widget to add all controls to 00048 proxy = new QWidget(this); 00049 ui = new Ui_Position(); 00050 ui->setupUi(proxy); 00051 QMetaObject::connectSlotsByName(this); 00052 00053 this->groupLayout()->addWidget(proxy); 00054 00055 //QObject::connect(ui->horizontalSlider_Axis1,SIGNAL(sliderMoved(int)),this,SLOT(changeSliderA1(int))); 00056 } 00057 00058 TaskBoxPosition::~TaskBoxPosition() 00059 { 00060 delete ui; 00061 } 00062 00063 00064 //************************************************************************** 00065 //************************************************************************** 00066 // TaskBoxAngle 00067 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 00068 00069 /* TRANSLATOR Gui::TaskBoxAngle */ 00070 00071 TaskBoxAngle::TaskBoxAngle(QWidget *parent) 00072 : TaskBox(Gui::BitmapFactory().pixmap("Robot_CreateRobot"),tr("Angle"),true, parent) 00073 { 00074 // we need a separate container widget to add all controls to 00075 proxy = new QWidget(this); 00076 ui = new Ui_Angle(); 00077 ui->setupUi(proxy); 00078 QMetaObject::connectSlotsByName(this); 00079 00080 this->groupLayout()->addWidget(proxy); 00081 00082 //QObject::connect(ui->horizontalSlider_Axis1,SIGNAL(sliderMoved(int)),this,SLOT(changeSliderA1(int))); 00083 } 00084 00085 TaskBoxAngle::~TaskBoxAngle() 00086 { 00087 delete ui; 00088 } 00089 00090 00091 //************************************************************************** 00092 //************************************************************************** 00093 // TaskDialog 00094 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 00095 00096 /* TRANSLATOR Gui::TaskDlgRelocation */ 00097 00098 TaskDlgRelocation::TaskDlgRelocation() 00099 : TaskDialog() 00100 { 00101 /* rob = new TaskRobot6Axis(pcRobotObject); 00102 ctr = new TaskRobotControl(pcRobotObject); 00103 00104 trac = new TaskTrajectory(pcRobotObject,pcTrajectoryObject); 00105 msg = new TaskRobotMessages(pcRobotObject); 00106 00107 00108 QObject::connect(trac ,SIGNAL(axisChanged(float,float,float,float,float,float,const Base::Placement &)), 00109 rob ,SLOT (setAxis(float,float,float,float,float,float,const Base::Placement &))); 00110 00111 Content.push_back(rob); 00112 Content.push_back(ctr); 00113 Content.push_back(trac); 00114 Content.push_back(msg);*/ 00115 } 00116 00117 TaskDlgRelocation::~TaskDlgRelocation() 00118 { 00119 00120 } 00121 00122 //==== calls from the TaskView =============================================================== 00123 00124 00125 void TaskDlgRelocation::open() 00126 { 00127 //msg->hideGroupBox(); 00128 //ctr->hideGroupBox(); 00129 } 00130 00131 void TaskDlgRelocation::clicked(int) 00132 { 00133 00134 } 00135 00136 bool TaskDlgRelocation::accept() 00137 { 00138 return true; 00139 } 00140 00141 bool TaskDlgRelocation::reject() 00142 { 00143 return true; 00144 } 00145 00146 void TaskDlgRelocation::helpRequested() 00147 { 00148 00149 } 00150 00151 00152 #include "moc_TaskDlgRelocation.cpp"