aboutsummaryrefslogtreecommitdiff
path: root/src/MTools/Comp/MReconizer.pm
diff options
context:
space:
mode:
authordidier2007-11-23 16:58:58 +0000
committerdidier2007-11-23 16:58:58 +0000
commitfc06e0835731ec39d2a0c53bd7720b2b40ccc97a (patch)
tree9a30fc15e0aa7608f037e18d7c7ac09140c975ca /src/MTools/Comp/MReconizer.pm
parentc0b4003bc4fd76d6885648881c0b4c518ec76e08 (diff)
downloadmtc-fc06e0835731ec39d2a0c53bd7720b2b40ccc97a.zip
mtc-fc06e0835731ec39d2a0c53bd7720b2b40ccc97a.tar.gz
mtc-fc06e0835731ec39d2a0c53bd7720b2b40ccc97a.tar.bz2
mtc-fc06e0835731ec39d2a0c53bd7720b2b40ccc97a.tar.xz
Reinitialisation des bindings(MWritable MReconizer)
->Effacement de toutes les curves (MWritable) ->Variables Position fleche pour la MMultiselection
Diffstat (limited to 'src/MTools/Comp/MReconizer.pm')
-rw-r--r--src/MTools/Comp/MReconizer.pm26
1 files changed, 24 insertions, 2 deletions
diff --git a/src/MTools/Comp/MReconizer.pm b/src/MTools/Comp/MReconizer.pm
index b3238d4..f30ec20 100644
--- a/src/MTools/Comp/MReconizer.pm
+++ b/src/MTools/Comp/MReconizer.pm
@@ -60,7 +60,6 @@ sub new {
$self -> recordProperty ('callback', undef);
$self -> mconfigure (%options);
-
binding ($src, "<Button-$button>", [\&__pressed, $self, Ev('x'), Ev('y')]);
binding ($src, "<Button$button-Motion>", [\&__moved, $self, Ev('x'), Ev('y')]);
binding ($src, "<ButtonRelease-$button>", [\&__released, $self, Ev('x'), Ev('y')]);
@@ -72,6 +71,8 @@ sub new {
executer ($methode, @_);
}
});
+ $self -> {__button} = $button;
+ $self -> {__source} = $src;
$self -> {__dessin} = undef;
$self -> {__dessin} = my $dessin = new MTools::GUI::MGroup (1);
@@ -141,6 +142,27 @@ sub __released {
$self -> {__anim__disparition} -> start ();
}
}
-
+sub getpoints {
+ my ($self) = @_;
+ return $self -> {__points};
+}
+sub stopanim
+{
+ my ($self) = @_;
+ if ($self -> {__anim__disparition})
+ {
+
+ $self -> {__anim__disparition}->stop();
+ }
+}
+sub reinitBindings
+{
+ my ($self) = @_;
+ my $button = $self->{__button};
+ binding ($self->{__source}, "<Button-$button>", [\&__pressed, $self, Ev('x'), Ev('y')]);
+ binding ($self->{__source}, "<Button$button-Motion>", [\&__moved, $self, Ev('x'), Ev('y')]);
+ binding ($self->{__source}, "<ButtonRelease-$button>", [\&__released, $self, Ev('x'), Ev('y')]);
+
+}
1;