gepetto::gui::MainWindow Class Reference

Class. More...

#include <gepetto/gui/mainwindow.hh>

Inheritance diagram for gepetto::gui::MainWindow:
Collaboration diagram for gepetto::gui::MainWindow:

Public Types

enum  RefreshType { RefreshBodyTree = 1, RefreshPlugins = 2, RefreshAll = RefreshBodyTree + RefreshPlugins }
 

Public Slots

OSGWidgetcreateView (const std::string &name)
 
BodyTreeWidgetbodyTree () const
 Get the body tree widget. More...
 
void log (const QString &text)
 
void logError (const QString &text)
 
void logJobStarted (int id, const QString &text)
 
void logJobDone (int id, const QString &text)
 
void logJobFailed (int id, const QString &text)
 
void requestRefresh ()
 
void requestApplyCurrentConfiguration ()
 Emit a signal to display the current configuration in the viewer. More...
 
void requestConfigurationValidation ()
 Emit a signal to check if the the current configuration is valid. More...
 
void configurationValidationStatusChanged (bool valid)
 
void configurationValidationStatusChanged (QStringList bodiesInCollision)
 
void requestSelectJointFromBodyName (const QString bodyName)
 
void onOpenPluginManager ()
 Open the plugin manager dialog. More...
 
void registerSignal (const char *signal, QObject *obj)
 
QObject * getFromSignal (const char *signal)
 
void connectSignal (const char *signal, const char *slot, QObject *obj)
 
void registerSlot (const char *slot, QObject *obj)
 
QObject * getFromSlot (const char *slot)
 
void connectSlot (const char *slot, const char *signal, QObject *obj)
 
void registerShortcut (QString widgetName, QString actionName, QAction *action)
 
void registerShortcut (QString widgetName, QAction *action)
 

Signals

void viewCreated (OSGWidget *widget)
 Triggered when an OSGWidget is created. More...
 
void refresh ()
 
void applyCurrentConfiguration ()
 
void configurationValidation ()
 
void selectJointFromBodyName (const QString bodyName)
 
void logString (QString msg)
 
void logErrorString (QString msg)
 

Public Member Functions

 MainWindow (Settings *settings, QWidget *parent=0)
 
 ~MainWindow ()
 
void insertDockWidget (QDockWidget *dock, Qt::DockWidgetArea area=Qt::AllDockWidgetAreas, Qt::Orientation orientation=Qt::Horizontal)
 
void removeDockWidget (QDockWidget *dock)
 
WindowsManagerPtr_t osg () const
 Get. More...
 
SelectionHandlerselectionHandler ()
 
QList< OSGWidget * > osgWindows () const
 Get the list of windows. More...
 
PluginManagerpluginManager ()
 Get the plugin manager. More...
 
ActionSearchBaractionSearchBar () const
 
QMenu * pluginMenu () const
 
PythonWidgetpythonWidget ()
 Get the python widget. More...
 

Static Public Member Functions

static MainWindowinstance ()
 Return the instance of MainWindow stored. More...
 

Public Attributes

Settingssettings_
 

Detailed Description

Class.

Member Enumeration Documentation

◆ RefreshType

Enumerator
RefreshBodyTree 
RefreshPlugins 
RefreshAll 

Constructor & Destructor Documentation

◆ MainWindow()

gepetto::gui::MainWindow::MainWindow ( Settings settings,
QWidget *  parent = 0 
)
explicit

◆ ~MainWindow()

gepetto::gui::MainWindow::~MainWindow ( )

Member Function Documentation

◆ actionSearchBar()

ActionSearchBar* gepetto::gui::MainWindow::actionSearchBar ( ) const

◆ applyCurrentConfiguration

void gepetto::gui::MainWindow::applyCurrentConfiguration ( )
signal

◆ configurationValidation

void gepetto::gui::MainWindow::configurationValidation ( )
signal

◆ createView

OSGWidget* gepetto::gui::MainWindow::createView ( const std::string &  name)
slot

◆ insertDockWidget()

void gepetto::gui::MainWindow::insertDockWidget ( QDockWidget *  dock,
Qt::DockWidgetArea  area = Qt::AllDockWidgetAreas,
Qt::Orientation  orientation = Qt::Horizontal 
)

Insert a dockwidget in the dock area of the window.

Parameters
dockwidget to add
areawhere the widget will be add
orientationof the widget

◆ instance()

static MainWindow* gepetto::gui::MainWindow::instance ( )
static

Return the instance of MainWindow stored.

◆ logErrorString

void gepetto::gui::MainWindow::logErrorString ( QString  msg)
signal

◆ logString

void gepetto::gui::MainWindow::logString ( QString  msg)
signal

◆ osg()

WindowsManagerPtr_t gepetto::gui::MainWindow::osg ( ) const

Get.

◆ osgWindows()

QList<OSGWidget*> gepetto::gui::MainWindow::osgWindows ( ) const

Get the list of windows.

◆ pluginManager()

PluginManager* gepetto::gui::MainWindow::pluginManager ( )

Get the plugin manager.

◆ pluginMenu()

QMenu* gepetto::gui::MainWindow::pluginMenu ( ) const

◆ pythonWidget()

PythonWidget* gepetto::gui::MainWindow::pythonWidget ( )
inline

Get the python widget.

◆ refresh

void gepetto::gui::MainWindow::refresh ( )
signal

◆ removeDockWidget()

void gepetto::gui::MainWindow::removeDockWidget ( QDockWidget *  dock)

Remove a dock widget.

Parameters
dockwidget to remove

◆ selectionHandler()

SelectionHandler* gepetto::gui::MainWindow::selectionHandler ( )
inline

◆ selectJointFromBodyName

void gepetto::gui::MainWindow::selectJointFromBodyName ( const QString  bodyName)
signal

◆ viewCreated

void gepetto::gui::MainWindow::viewCreated ( OSGWidget widget)
signal

Triggered when an OSGWidget is created.

Member Data Documentation

◆ settings_

Settings* gepetto::gui::MainWindow::settings_

The documentation for this class was generated from the following file: