17 #ifndef GEPETTO_GUI_MAINWINDOW_HH 18 #define GEPETTO_GUI_MAINWINDOW_HH 23 #include <QStandardItemModel> 24 #include <QMainWindow> 51 RefreshAll = RefreshBodyTree + RefreshPlugins
66 void insertDockWidget (QDockWidget* dock,
67 Qt::DockWidgetArea area = Qt::AllDockWidgetAreas,
68 Qt::Orientation orientation = Qt::Horizontal);
72 void removeDockWidget (QDockWidget* dock);
79 return selectionHandler_;
83 QList <OSGWidget*> osgWindows ()
const;
90 QMenu* pluginMenu ()
const;
92 #if GEPETTO_GUI_HAS_PYTHONQT 104 void applyCurrentConfiguration();
105 void configurationValidation();
106 void selectJointFromBodyName(
const QString bodyName);
108 void logString(QString msg);
109 void logErrorString(QString msg);
120 void log (
const QString& text);
123 void logError (
const QString& text);
128 void logJobStarted (
int id,
const QString& text);
133 void logJobDone (
int id,
const QString& text);
138 void logJobFailed (
int id,
const QString& text);
142 void requestRefresh ();
144 void requestApplyCurrentConfiguration ();
147 void requestConfigurationValidation ();
151 void configurationValidationStatusChanged (
bool valid);
155 void configurationValidationStatusChanged (QStringList bodiesInCollision);
159 void requestSelectJointFromBodyName (
const QString bodyName);
162 void onOpenPluginManager ();
167 void registerSignal(
const char *signal, QObject* obj);
172 QObject* getFromSignal(
const char *signal);
178 void connectSignal(
const char *signal,
const char *slot, QObject* obj);
184 void registerSlot(
const char *slot, QObject* obj);
189 QObject* getFromSlot(
const char *slot);
195 void connectSlot(
const char *slot,
const char *signal, QObject* obj);
201 void registerShortcut(QString widgetName, QString actionName, QAction* action);
208 void registerShortcut(QString widgetName, QAction* action);
212 OSGWidget* createView (
const std::string& name);
217 void createDefaultView();
218 void openLoadRobotDialog ();
219 void openLoadEnvironmentDialog ();
220 void activateCollision(
bool activate);
221 void dockVisibilityChanged(
bool visible);
222 void hsplitTabifiedDockWidget();
223 void vsplitTabifiedDockWidget();
225 void handleWorkerDone (
int id);
227 void resetConnection ();
228 void closeConnection ();
232 void splitTabifiedDockWidget(Qt::Orientation orientation);
233 void setupInterface ();
234 void createCentralWidget ();
238 ::Ui::MainWindow* ui_;
240 QList <OSGWidget*> osgWindows_;
241 #if GEPETTO_GUI_HAS_PYTHONQT 250 QCheckBox* collisionValidationActivated_;
252 QLabel* collisionLabel_;
254 QStandardItemModel *bodyTreeModel_;
258 QStringList robotNames_;
259 QStringList lastBodiesInCollision_;
261 std::map<std::string, QObject *> registeredSlots_;
262 std::map<std::string, QObject *> registeredSignals_;
267 Q_DECLARE_METATYPE (std::string)
269 #endif // GEPETTO_GUI_MAINWINDOW_HH Definition: ledindicator.hh:24
Definition: action-search-bar.hh:29
Definition: dialogloadenvironment.hh:23
Class.
Definition: mainwindow.hh:43
Settings * settings_
Definition: mainwindow.hh:54
Contains the list of all the bodies in the scene.
Definition: bodytreewidget.hh:31
Definition: settings.hh:37
Definition: action-search-bar.hh:27
Definition: pluginmanagerdialog.hh:35
Definition: shortcut-factory.hh:30
RefreshType
Definition: mainwindow.hh:48
SelectionHandler * selectionHandler()
Definition: mainwindow.hh:77
Definition: config-osg.h:52
Definition: selection-handler.hh:90
viewer::shared_ptr< WindowsManager > WindowsManagerPtr_t
Definition: fwd.hh:55