17 #ifndef GEPETTO_GUI_MAINWINDOW_HH
18 #define GEPETTO_GUI_MAINWINDOW_HH
23 #include <QMainWindow>
24 #include <QStandardItemModel>
63 Qt::DockWidgetArea area = Qt::AllDockWidgetAreas,
64 Qt::Orientation orientation = Qt::Horizontal);
85 #if GEPETTO_GUI_HAS_PYTHONQT
110 void log(
const QString& text);
182 void connectSlot(
const char* slot,
const char* signal, QObject* obj);
203 void createDefaultView();
204 void openLoadRobotDialog();
205 void openLoadEnvironmentDialog();
206 void activateCollision(
bool activate);
207 void dockVisibilityChanged(
bool visible);
208 void hsplitTabifiedDockWidget();
209 void vsplitTabifiedDockWidget();
211 void handleWorkerDone(
int id);
213 void resetConnection();
214 void closeConnection();
218 void splitTabifiedDockWidget(Qt::Orientation orientation);
219 void setupInterface();
220 void createCentralWidget();
224 ::Ui::MainWindow* ui_;
226 QList<OSGWidget*> osgWindows_;
227 #if GEPETTO_GUI_HAS_PYTHONQT
236 QCheckBox* collisionValidationActivated_;
238 QLabel* collisionLabel_;
240 QStandardItemModel* bodyTreeModel_;
244 QStringList robotNames_;
245 QStringList lastBodiesInCollision_;
247 std::map<std::string, QObject*> registeredSlots_;
248 std::map<std::string, QObject*> registeredSignals_;
253 Q_DECLARE_METATYPE(std::string)
Definition: action-search-bar.hh:29
Contains the list of all the bodies in the scene.
Definition: bodytreewidget.hh:31
Definition: ledindicator.hh:24
Class.
Definition: mainwindow.hh:40
void viewCreated(OSGWidget *widget)
Triggered when an OSGWidget is created.
static MainWindow * instance()
Return the instance of MainWindow stored.
void logString(QString msg)
void applyCurrentConfiguration()
void selectJointFromBodyName(const QString bodyName)
WindowsManagerPtr_t osg() const
Get.
SelectionHandler * selectionHandler()
Definition: mainwindow.hh:73
void configurationValidation()
MainWindow(Settings *settings, QWidget *parent=0)
void removeDockWidget(QDockWidget *dock)
void logErrorString(QString msg)
void insertDockWidget(QDockWidget *dock, Qt::DockWidgetArea area=Qt::AllDockWidgetAreas, Qt::Orientation orientation=Qt::Horizontal)
Settings * settings_
Definition: mainwindow.hh:50
OSGWidget * createView(const std::string &name)
ActionSearchBar * actionSearchBar() const
QList< OSGWidget * > osgWindows() const
Get the list of windows.
PythonWidget * pythonWidget()
Get the python widget.
Definition: mainwindow.hh:87
QMenu * pluginMenu() const
PluginManager * pluginManager()
Get the plugin manager.
RefreshType
Definition: mainwindow.hh:44
@ RefreshPlugins
Definition: mainwindow.hh:46
@ RefreshAll
Definition: mainwindow.hh:47
@ RefreshBodyTree
Definition: mainwindow.hh:45
Definition: pluginmanagerdialog.hh:34
Definition: selection-handler.hh:85
Definition: shortcut-factory.hh:29
void configurationValidationStatusChanged(bool valid)
void logJobFailed(int id, const QString &text)
void logError(const QString &text)
void connectSignal(const char *signal, const char *slot, QObject *obj)
QObject * getFromSignal(const char *signal)
BodyTreeWidget * bodyTree() const
Get the body tree widget.
void log(const QString &text)
void registerSlot(const char *slot, QObject *obj)
void registerSignal(const char *signal, QObject *obj)
void logJobDone(int id, const QString &text)
void requestApplyCurrentConfiguration()
Emit a signal to display the current configuration in the viewer.
void registerShortcut(QString widgetName, QString actionName, QAction *action)
void requestSelectJointFromBodyName(const QString bodyName)
void onOpenPluginManager()
Open the plugin manager dialog.
QObject * getFromSlot(const char *slot)
void configurationValidationStatusChanged(QStringList bodiesInCollision)
void logJobStarted(int id, const QString &text)
void registerShortcut(QString widgetName, QAction *action)
void requestConfigurationValidation()
Emit a signal to check if the the current configuration is valid.
void connectSlot(const char *slot, const char *signal, QObject *obj)
Definition: dialogloadenvironment.hh:23
viewer::shared_ptr< WindowsManager > WindowsManagerPtr_t
Definition: fwd.hh:58
Definition: action-search-bar.hh:27
Definition: settings.hh:36