GraspEditorDialog.cpp
Go to the documentation of this file.
1 /*
2 * This file is part of ArmarX.
3 *
4 * ArmarX is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as
6 * published by the Free Software Foundation; either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * ArmarX is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 *
17 * @package MemoryX::MemoryX::PriorMemoryEditorPlugin
18 * @author Kai Welke (welke at kit dot edu)
19 * @date 2013
20 * @copyright http://www.gnu.org/licenses/gpl.txt
21 * GNU General Public License
22 */
23 
24 #include "GraspEditorDialog.h"
25 #include <qboxlayout.h>
26 
27 #include <MemoryX/gui-plugins/PriorMemoryEditor/ui_GraspEditorDialog.h>
28 
29 using namespace memoryx;
30 using namespace VirtualRobot;
31 
32 GraspEditorDialog::GraspEditorDialog(std::string objectFile,
33  std::string robotFile,
34  QWidget* parent) :
35  QDialog(parent), ui(new Ui::GraspEditorDialog)
36 {
37  ui->setupUi(this);
38 
39  graspEditor = new GraspEditorWindow(objectFile, robotFile, true);
40  this->setLayout(new QVBoxLayout(this));
41  this->layout()->addWidget(graspEditor);
42 }
43 
45 {
46  delete graspEditor;
47  delete ui;
48 }
GraspEditorDialog.h
VirtualRobot
Definition: FramedPose.h:42
memoryx
VirtualRobot headers.
Definition: CommonPlacesTester.cpp:48
memoryx::GraspEditorDialog::~GraspEditorDialog
~GraspEditorDialog() override
Definition: GraspEditorDialog.cpp:44
memoryx::GraspEditorDialog
Definition: GraspEditorDialog.h:38
Ui
ArmarX Headers.
Definition: ArmarXMainWindow.h:54
memoryx::GraspEditorDialog::GraspEditorDialog
GraspEditorDialog(std::string objectFile, std::string robotFile, QWidget *parent=0)
Definition: GraspEditorDialog.cpp:32