Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Instrument Control
Ploty2
Commits
8a5bd42a
Commit
8a5bd42a
authored
Jun 24, 2019
by
Locatelli
Browse files
Add USR1 signal for re-activate plot already opened
parent
60086230
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/manager/PlotManager.cpp
View file @
8a5bd42a
...
...
@@ -26,6 +26,9 @@
#include "Trace.h"
#include "Error.h"
#include <sys/types.h>
#include <signal.h>
using
namespace
std
;
using
namespace
cameo
;
...
...
@@ -245,6 +248,11 @@ void PlotManager::displayPropertyPlot(const proto::Message& message, const proto
//TODO show in front
// Send signal USR1 to process pid , waiting for the new version of cameo cpp api
DBGMSG
(
"plot already opened : "
<<
plotMessage
.
plotkey
());
for
(
auto
info
:
application
::
This
::
getServer
().
getApplicationInfos
())
{
if
(
info
.
getId
()
==
m_PlotsProcesses
[
plotMessage
.
plotkey
()]
->
getId
())
{
kill
(
info
.
getPid
(),
SIGUSR1
);
}
}
}
}
...
...
src/plot/PlotWindow.cpp
View file @
8a5bd42a
...
...
@@ -135,6 +135,7 @@ void PlotWindow::activateWindow() {
//// Show plot windows
////
try
{
m_QtWindow
->
showNormal
();
m_QtWindow
->
activateWindow
();
}
catch
(...)
{
Error
(
"PlotWindow"
,
"activateWindow"
,
"Failed to activate window"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment