Class. More...
#include <gepetto/gui/mainwindow.hh>
Public Types | |
enum | RefreshType { RefreshBodyTree = 1, RefreshPlugins = 2, RefreshAll = RefreshBodyTree + RefreshPlugins } |
Public Slots | |
OSGWidget * | createView (const std::string &name) |
BodyTreeWidget * | bodyTree () const |
void | log (const QString &text) |
Add the text to logs. More... | |
void | logError (const QString &text) |
Add the text to logs and colors it in red. More... | |
void | logJobStarted (int id, const QString &text) |
Log that a job has started. More... | |
void | logJobDone (int id, const QString &text) |
Log that a job has successfuly finished. More... | |
void | logJobFailed (int id, const QString &text) |
Log that a job has failed. More... | |
void | requestRefresh () |
Request a refresh of the interface. More... | |
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) |
Display if a configuration is valid or not. More... | |
void | configurationValidationStatusChanged (QStringList bodiesInCollision) |
Display if a configuration is valid or not. More... | |
void | requestSelectJointFromBodyName (const QString bodyName) |
Emit a signal to tell that a body has been selected. More... | |
void | onOpenPluginManager () |
Open the plugin manager dialog. More... | |
void | registerSignal (const char *signal, QObject *obj) |
Register an object signal that can be accessible without knowing the class definition. More... | |
QObject * | getFromSignal (const char *signal) |
Get the instance of object which holds the signal. More... | |
void | connectSignal (const char *signal, const char *slot, QObject *obj) |
Connect an object's slot to a registered signal. More... | |
void | registerSlot (const char *slot, QObject *obj) |
Register an object slot that can be accessible without knowing the class definition. More... | |
QObject * | getFromSlot (const char *slot) |
Get the instance of object which holds the slot. More... | |
void | connectSlot (const char *slot, const char *signal, QObject *obj) |
Connect an object's signal to a registered slot. More... | |
void | registerShortcut (QString widgetName, QString actionName, QAction *action) |
Register an action on which users can change the shortcut to trigger it. More... | |
void | registerShortcut (QString widgetName, QAction *action) |
Register an action on which users can change the shortcut to trigger it. More... | |
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) |
Insert a dockwidget in the dock area of the window. More... | |
void | removeDockWidget (QDockWidget *dock) |
Remove a dock widget. More... | |
WindowsManagerPtr_t | osg () const |
Get. More... | |
SelectionHandler * | selectionHandler () |
QList< OSGWidget * > | osgWindows () const |
Get the list of windows. More... | |
PluginManager * | pluginManager () |
Get the plugin manager. More... | |
ActionSearchBar * | actionSearchBar () const |
QMenu * | pluginMenu () const |
PythonWidget * | pythonWidget () |
Get the python widget. More... | |
Static Public Member Functions | |
static MainWindow * | instance () |
Return the instance of MainWindow stored. More... | |
Public Attributes | |
Settings * | settings_ |
Class.
|
explicit |
gepetto::gui::MainWindow::~MainWindow | ( | ) |
ActionSearchBar* gepetto::gui::MainWindow::actionSearchBar | ( | ) | const |
|
signal |
|
slot |
Get the body tree widget.
|
signal |
|
slot |
Display if a configuration is valid or not.
valid | configuration is valid |
|
slot |
Display if a configuration is valid or not.
bodiesInCollision | list of bodies in collision |
|
slot |
Connect an object's slot to a registered signal.
signal | signal's name |
slot | slot's name |
obj | object's instance |
|
slot |
Connect an object's signal to a registered slot.
slot | slot's name |
signal | signal's name |
obj | object's instance |
|
slot |
|
slot |
Get the instance of object which holds the signal.
signal | signal's name |
|
slot |
Get the instance of object which holds the slot.
slot | slot's name |
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.
dock | widget to add |
area | where the widget will be add |
orientation | of the widget |
|
static |
Return the instance of MainWindow stored.
|
slot |
Add the text to logs.
text | text to log |
|
slot |
Add the text to logs and colors it in red.
text | text to log |
|
signal |
|
slot |
Log that a job has successfuly finished.
id | id of the job |
text | text to log |
|
slot |
Log that a job has failed.
id | id of the job |
text | text to log |
|
slot |
Log that a job has started.
id | id of the job |
text | text to log |
|
signal |
|
slot |
Open the plugin manager dialog.
WindowsManagerPtr_t gepetto::gui::MainWindow::osg | ( | ) | const |
Get.
QList<OSGWidget*> gepetto::gui::MainWindow::osgWindows | ( | ) | const |
Get the list of windows.
PluginManager* gepetto::gui::MainWindow::pluginManager | ( | ) |
Get the plugin manager.
QMenu* gepetto::gui::MainWindow::pluginMenu | ( | ) | const |
|
inline |
Get the python widget.
|
signal |
|
slot |
Register an action on which users can change the shortcut to trigger it.
widgetName | widget's name that handle the action |
actionName | action's name |
action | action to modify |
|
slot |
Register an action on which users can change the shortcut to trigger it.
User action->text() as action name.
widgetName | widget's name that handle the action |
action | action to modify |
|
slot |
Register an object signal that can be accessible without knowing the class definition.
signal | signal's name |
obj | object's instance |
|
slot |
Register an object slot that can be accessible without knowing the class definition.
slot | slot's name |
obj | object's instance |
void gepetto::gui::MainWindow::removeDockWidget | ( | QDockWidget * | dock | ) |
Remove a dock widget.
dock | widget to remove |
|
slot |
Emit a signal to display the current configuration in the viewer.
|
slot |
Emit a signal to check if the the current configuration is valid.
|
slot |
Request a refresh of the interface.
refreshType | tells what to refresh. See RefreshType |
|
slot |
Emit a signal to tell that a body has been selected.
bodyName | name of the body selected |
|
inline |
|
signal |
|
signal |
Triggered when an OSGWidget is created.
Settings* gepetto::gui::MainWindow::settings_ |