summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormariot2004-04-27 09:31:39 +0000
committermariot2004-04-27 09:31:39 +0000
commit8f53167c7add2c47400d0b9604ff59c5bb6f2ac0 (patch)
treed47afd2a7f3f2b10a4b32bbce563a1a24477317e
parentac97ec5434c67f818f5357489525e33288044589 (diff)
downloadivycontrolpanel-8f53167c7add2c47400d0b9604ff59c5bb6f2ac0.zip
ivycontrolpanel-8f53167c7add2c47400d0b9604ff59c5bb6f2ac0.tar.gz
ivycontrolpanel-8f53167c7add2c47400d0b9604ff59c5bb6f2ac0.tar.bz2
ivycontrolpanel-8f53167c7add2c47400d0b9604ff59c5bb6f2ac0.tar.xz
- msg 'IvyControlPanel KillAll'
-rw-r--r--debian/changelog6
-rw-r--r--src/IvyIO.pm10
-rwxr-xr-xsrc/ivycontrolpanel4
3 files changed, 20 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 8ca283f..440119c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+ivycontrolpanel (2.2) unstable; urgency=low
+
+ * Ajout du message 'IvyControlPanel KillAll'.
+
+ -- Cedirc Mariot <mariot@cena.fr> Thu, 27 Apr 2004 11:27:18 +0200
+
ivycontrolpanel (2.1) unstable; urgency=low
* Ajout de l'option -smallsize: affichage en 640x480.
diff --git a/src/IvyIO.pm b/src/IvyIO.pm
index 8283a02..c933ffc 100644
--- a/src/IvyIO.pm
+++ b/src/IvyIO.pm
@@ -110,5 +110,15 @@ sub bind_for_clock_and_rate_event {
} # end bind_for_clock_event
+# execute the callback kill all
+sub bind_for_kill_all {
+ my $cb = shift;
+ return unless $cb;
+ return unless $ivy;
+ $ivy->bindRegexp('IvyControlPanel KillAll',
+ [sub { shift; &$cb(); }]);
+
+} # end bind_for_clock_event
+
1;
diff --git a/src/ivycontrolpanel b/src/ivycontrolpanel
index 2dd638f..887d50c 100755
--- a/src/ivycontrolpanel
+++ b/src/ivycontrolpanel
@@ -354,6 +354,7 @@ $fm1->Button(@buttonattr,
)->place(-x => $x, -y => $y);
$x -= $fm_w + 10*$coef;
+IvyIO::bind_for_kill_all(\&killandquit);
#---------------------------------------------------------------------------------
#
@@ -797,6 +798,9 @@ ivycontrolpanel displays agents detected on a given ivy bus. For each agent, a l
At bottom of window, two areas are dedicated to a specific agent, the air traffic simulator Rejeu. At bottom left, you can adjust the traffic speed. At bottom center, you have a clock; when you click on one of time fields, two scrolling arrows appears which let you adjust time; validation is done by clicking on the last selected field. Near, play/pause buttons let you start or stop the traffic simulator. Then, at bottom right, the cross button will be used to kill all agents and quit.
+=head1 LISTENED MESSAGE
+
+listen to the message 'IvyControlPanel KillAll', to kill all the agent (like quit button).
=head1 OPTIONS