summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/LDFM/MainController.pm68
1 files changed, 68 insertions, 0 deletions
diff --git a/lib/LDFM/MainController.pm b/lib/LDFM/MainController.pm
index 328167e..9f7a16c 100644
--- a/lib/LDFM/MainController.pm
+++ b/lib/LDFM/MainController.pm
@@ -190,6 +190,74 @@ sub rename {
return;
}
+sub copy_lr {
+ my ($self)=@_;
+
+ my @files=$self->get_files_from_list('left');
+ my $destpath=$self->{cur_right_path};
+
+ $self->copy_files(@files,$destpath);
+
+ return;
+}
+
+sub copy_rl {
+ my ($self)=@_;
+
+ my @files=$self->get_files_from_list('right');
+ my $destpath=$self->{cur_left_path};
+
+ $self->copy_files(@files,$destpath);
+
+ return;
+}
+
+sub copy_files {
+ my $self=shift;
+ my $destdir=pop;
+ my @files=@_;
+
+ for my $file (@files) {
+ warn "Copierei $file in $destdir\n";
+ }
+
+ return;
+}
+
+sub move_lr {
+ my ($self)=@_;
+
+ my @files=$self->get_files_from_list('left');
+ my $destpath=$self->{cur_right_path};
+
+ $self->move_files(@files,$destpath);
+
+ return;
+}
+
+sub move_rl {
+ my ($self)=@_;
+
+ my @files=$self->get_files_from_list('right');
+ my $destpath=$self->{cur_left_path};
+
+ $self->move_files(@files,$destpath);
+
+ return;
+}
+
+sub move_files {
+ my $self=shift;
+ my $destdir=pop;
+ my @files=@_;
+
+ for my $file (@files) {
+ warn "Sposterei $file in $destdir\n";
+ }
+
+ return;
+}
+
sub quit {
Gtk2->main_quit;
}