Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-gui
Commits
390e096f
Commit
390e096f
authored
Mar 06, 2018
by
Joseph Mirabel
Committed by
Joseph Mirabel
Mar 06, 2018
Browse files
Set object name of dock widgets and tool bars
parent
45f055e1
Changes
3
Hide whitespace changes
Inline
Side-by-side
plugins/hppmanipulationwidgetsplugin/hppmanipulationwidgetsplugin.cc
View file @
390e096f
...
...
@@ -50,6 +50,7 @@ namespace hpp {
gepetto
::
gui
::
MainWindow
*
main
=
gepetto
::
gui
::
MainWindow
::
instance
();
toolBar_
=
gepetto
::
gui
::
MainWindow
::
instance
()
->
addToolBar
(
"Manipulation tools"
);
toolBar_
->
setObjectName
(
"hppmanipulationwidgetsplugin.manipulationtools"
);
QAction
*
drawRContact
=
new
QAction
(
"Draw robot contacts"
,
toolBar_
);
QAction
*
drawEContact
=
new
QAction
(
"Draw environment contacts"
,
toolBar_
);
toolBar_
->
addAction
(
drawRContact
);
...
...
@@ -511,6 +512,7 @@ namespace hpp {
{
gepetto
::
gui
::
MainWindow
*
main
=
gepetto
::
gui
::
MainWindow
::
instance
();
QDockWidget
*
dock
=
new
QDockWidget
(
"&Constraint creator"
,
main
);
dock
->
setObjectName
(
"hppmanipulationwidgetsplugin.constraintcreator"
);
constraintWidget_
=
new
ManipulationConstraintWidget
(
this
,
dock
);
dock
->
setWidget
(
constraintWidget_
);
main
->
insertDockWidget
(
dock
,
Qt
::
RightDockWidgetArea
,
Qt
::
Vertical
);
...
...
plugins/hppwidgetsplugin/hppwidgetsplugin.cc
View file @
390e096f
...
...
@@ -79,6 +79,7 @@ namespace hpp {
// Configuration list widget
dock
=
new
QDockWidget
(
"&Configuration List"
,
main
);
dock
->
setObjectName
(
"hppwidgetplugin.configurationlist"
);
configListWidget_
=
new
ConfigurationListWidget
(
this
,
dock
);
dock
->
setWidget
(
configListWidget_
);
main
->
insertDockWidget
(
dock
,
Qt
::
RightDockWidgetArea
,
Qt
::
Vertical
);
...
...
@@ -88,6 +89,7 @@ namespace hpp {
// Solver widget
dock
=
new
QDockWidget
(
"Problem &solver"
,
main
);
dock
->
setObjectName
(
"hppwidgetplugin.problemsolver"
);
solverWidget_
=
new
SolverWidget
(
this
,
dock
);
dock
->
setWidget
(
solverWidget_
);
main
->
insertDockWidget
(
dock
,
Qt
::
RightDockWidgetArea
,
Qt
::
Horizontal
);
...
...
@@ -97,6 +99,7 @@ namespace hpp {
// Path player widget
dock
=
new
QDockWidget
(
"&Path player"
,
main
);
dock
->
setObjectName
(
"hppwidgetplugin.pathplayer"
);
pathPlayer_
=
new
PathPlayer
(
this
,
dock
);
dock
->
setWidget
(
pathPlayer_
);
main
->
insertDockWidget
(
dock
,
Qt
::
BottomDockWidgetArea
,
Qt
::
Horizontal
);
...
...
@@ -106,6 +109,7 @@ namespace hpp {
// Joint tree widget
dock
=
new
QDockWidget
(
"&Joint Tree"
,
main
);
dock
->
setObjectName
(
"hppwidgetplugin.jointtree"
);
jointTreeWidget_
=
new
JointTreeWidget
(
this
,
dock
);
dock
->
setWidget
(
jointTreeWidget_
);
jointTreeWidget_
->
dockWidget
(
dock
);
...
...
@@ -494,6 +498,7 @@ namespace hpp {
{
MainWindow
*
main
=
MainWindow
::
instance
();
QDockWidget
*
dock
=
new
QDockWidget
(
"&Constraint creator"
,
main
);
dock
->
setObjectName
(
"hppwidgetplugin.constraintcreator"
);
constraintWidget_
=
new
ConstraintWidget
(
this
,
dock
);
dock
->
setWidget
(
constraintWidget_
);
main
->
insertDockWidget
(
dock
,
Qt
::
RightDockWidgetArea
,
Qt
::
Vertical
);
...
...
pyplugins/hpp/gui/plugin.py
View file @
390e096f
...
...
@@ -162,6 +162,7 @@ class Plugin(QtGui.QDockWidget):
super
(
Plugin
,
self
).
__init__
(
title
,
mainWindow
)
else
:
super
(
Plugin
,
self
).
__init__
(
title
,
mainWindow
,
flags
)
self
.
setObjectName
(
"hpp.gui.plugin"
)
self
.
main
=
mainWindow
self
.
hppPlugin
=
self
.
main
.
getFromSlot
(
"getHppIIOPurl"
)
self
.
resetConnection
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment