Commit 390e096f authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Set object name of dock widgets and tool bars

parent 45f055e1
......@@ -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);
......
......@@ -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);
......
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment