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

Add button to close CORBA connections

parent 8adb5750
No related branches found
No related tags found
No related merge requests found
......@@ -196,6 +196,7 @@ signals:
void handleWorkerDone (int id);
void resetConnection ();
void closeConnection ();
void about ();
private:
......
......@@ -67,6 +67,8 @@
</property>
<addaction name="actionRefresh"/>
<addaction name="actionPlugins"/>
<addaction name="separator"/>
<addaction name="actionClose_connections"/>
<addaction name="actionReconnect"/>
</widget>
<widget class="QMenu" name="menuHelp">
......@@ -97,6 +99,7 @@
<bool>false</bool>
</attribute>
<addaction name="actionPlugins"/>
<addaction name="actionClose_connections"/>
<addaction name="actionReconnect"/>
<addaction name="actionRefresh"/>
<addaction name="actionFetch_configuration"/>
......@@ -404,7 +407,7 @@
</iconset>
</property>
<property name="text">
<string>Reset connection</string>
<string>Reset connections</string>
</property>
<property name="shortcut">
<string>Shift+F5</string>
......@@ -425,6 +428,14 @@
<string>Change &amp;shortcut</string>
</property>
</action>
<action name="actionClose_connections">
<property name="icon">
<iconset theme="network-disconnect"/>
</property>
<property name="text">
<string>Close connections</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
......
......@@ -325,6 +325,13 @@ namespace gepetto {
}
}
void MainWindow::closeConnection()
{
foreach (CorbaInterface* e, pluginManager()->get <CorbaInterface> ()) {
e->closeConnection ();
}
}
void MainWindow::about()
{
QString devString;
......@@ -417,6 +424,7 @@ namespace gepetto {
connect (collisionIndicator_, SIGNAL (mouseClickEvent()), SLOT(requestConfigurationValidation()));
connect (ui_->actionAbout, SIGNAL (triggered ()), SLOT(about()));
connect (ui_->actionReconnect, SIGNAL (triggered ()), SLOT(resetConnection()));
connect (ui_->actionClose_connections, SIGNAL (triggered ()), SLOT(closeConnection()));
connect (ui_->actionFetch_configuration, SIGNAL (triggered ()), SLOT(requestApplyCurrentConfiguration()));
connect (this, SIGNAL(logString(QString)), SLOT(log(QString)));
......
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