Class
List
Hierarchy
Modules
Common
Events
Math
Messages
Physics
Rendering
Sensors
Transport
Links
Gazebo Website
Wiki
Tutorials
Download
Report Documentation Issues
gazebo
gui
CloneWindow.hh
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2014-2015 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 _GAZEBO_CLONE_WINDOW_HH_
19
#define _GAZEBO_CLONE_WINDOW_HH_
20
21
#include "
gazebo/gui/qt.h
"
22
#include "
gazebo/util/system.hh
"
23
24
namespace
gazebo
25
{
26
namespace
gui
27
{
30
34
class
GAZEBO_VISIBLE
CloneWindow
:
public
QDialog
35
{
36
Q_OBJECT
37
40
public
:
CloneWindow
(QWidget *_parent = 0);
41
43
public
:
virtual
~
CloneWindow
();
44
47
public
:
int
GetPort();
48
52
public
:
bool
IsValidPort();
53
55
private
slots:
void
OnOkay();
56
58
private
slots:
void
OnCancel();
59
61
private
:
void
Update();
62
64
private
: QPushButton *okayButton;
65
67
private
: QLineEdit *portEdit;
68
70
private
:
int
port;
71
73
private
:
bool
validPort;
74
};
75
}
76
}
77
78
#endif
system.hh
gazebo::gui::CloneWindow
Definition:
CloneWindow.hh:34
qt.h
GAZEBO_VISIBLE
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition:
system.hh:66