Gazebo Sim
API Reference
7.9.0
insert_drive_file
Tutorials
library_books
Classes
toc
Namespaces
insert_drive_file
Files
launch
Gazebo Website
Index
List
Hierarchy
Members: All
Members: Functions
Members: Variables
Members: Typedefs
Members: Enumerations
Members: Enumerator
List
Members
Functions
Typedefs
Variables
Enumerations
Enumerator
src
gz-sim
src
gui
plugins
copy_paste
CopyPaste.hh
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2021 Open Source Robotics Foundation
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*
16
*/
17
18
#ifndef GZ_SIM_GUI_COPYPASTE_HH_
19
#define GZ_SIM_GUI_COPYPASTE_HH_
20
21
#include <memory>
22
23
#include <gz/msgs/boolean.pb.h>
24
#include <gz/msgs/empty.pb.h>
25
#include <gz/msgs/stringmsg.pb.h>
26
27
#include "
gz/sim/gui/GuiSystem.hh
"
28
29
namespace
gz
30
{
31
namespace
sim
32
{
33
class
CopyPastePrivate;
34
36
class
CopyPaste
:
public
gz::sim::GuiSystem
37
{
38
Q_OBJECT
39
41
public
:
CopyPaste
();
42
44
public
:
~CopyPaste
()
override
;
45
46
// Documentation inherited
47
public
:
void
LoadConfig
(
const
tinyxml2::XMLElement *_pluginElem)
override
;
48
49
// Documentation inherited
50
public
:
void
Update
(
const
UpdateInfo
&_info,
51
EntityComponentManager
&_ecm)
override
;
52
54
public
slots:
void
OnCopy
();
55
58
public
slots:
void
OnPaste
();
59
60
// Documentation inherited
61
protected
:
bool
eventFilter
(QObject *_obj, QEvent *_event)
override
;
62
68
private
:
bool
CopyServiceCB(
const
gz::msgs::StringMsg
&_req,
69
gz::msgs::Boolean
&_resp);
70
75
private
:
bool
PasteServiceCB(
const
gz::msgs::Empty
&_req,
76
gz::msgs::Boolean
&_resp);
77
80
private
:
std::unique_ptr<CopyPastePrivate>
dataPtr;
81
};
82
}
83
}
84
85
#endif