Skip to content
Snippets Groups Projects
Commit 54c977fd authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Remove unused OSGWidget::wid and add decorator to get window ID

parent 4e01b1e5
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,6 @@ namespace gepetto {
/// Replace the camera at her home position.
virtual void onHome();
int wid () const;
void addFloor();
void attachToWindow (const std::string nodeName);
......
......@@ -79,7 +79,7 @@ class Client:
try:
from PythonQt.gepetto import MainWindow
# At this point, we are in the python interpreter of gepetto-gui
self.gui.createWindow = lambda x: MainWindow.instance().createView(x).wid()
self.gui.createWindow = lambda x: MainWindow.instance().createView(x).windowID()
except ImportError:
# At this point, we are NOT in the python interpreter of gepetto-gui
pass
......
......@@ -165,11 +165,6 @@ namespace gepetto {
return wid_;
}
int OSGWidget::wid() const
{
return int(wid_);
}
graphics::WindowManagerPtr_t OSGWidget::window() const
{
return wm_;
......
......@@ -14,6 +14,8 @@ namespace gepetto {
public slots:
MainWindow* static_MainWindow_instance () const { return MainWindow::instance (); }
int windowID (OSGWidget* o) const { return o->windowID(); }
};
} // namespace gui
} // namespace gepetto
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment