1 | # +-----------------------------------------------------------------------+ |
---|
2 | # | pLoader - a Perl photo uploader for Piwigo | |
---|
3 | # +-----------------------------------------------------------------------+ |
---|
4 | # | Copyright(C) 2008 Piwigo Team http://piwigo.org | |
---|
5 | # +-----------------------------------------------------------------------+ |
---|
6 | # | This program is free software; you can redistribute it and/or modify | |
---|
7 | # | it under the terms of the GNU General Public License as published by | |
---|
8 | # | the Free Software Foundation | |
---|
9 | # | | |
---|
10 | # | This program is distributed in the hope that it will be useful, but | |
---|
11 | # | WITHOUT ANY WARRANTY; without even the implied warranty of | |
---|
12 | # | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
---|
13 | # | General Public License for more details. | |
---|
14 | # | | |
---|
15 | # | You should have received a copy of the GNU General Public License | |
---|
16 | # | along with this program; if not, write to the Free Software | |
---|
17 | # | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | |
---|
18 | # | USA. | |
---|
19 | # +-----------------------------------------------------------------------+ |
---|
20 | package Uploader::GUI::wxPhotoExifPanel; |
---|
21 | use strict; |
---|
22 | use Wx qw/ |
---|
23 | wxDefaultSize |
---|
24 | wxDefaultPosition |
---|
25 | wxID_CANCEL |
---|
26 | wxID_OK |
---|
27 | wxGREEN |
---|
28 | /; |
---|
29 | #use base qw/Wx::Panel Class::Accessor::Fast/; |
---|
30 | |
---|
31 | use base qw/Wx::Panel Uploader::Object2/; |
---|
32 | |
---|
33 | use Wx::Event qw/ |
---|
34 | EVT_BUTTON |
---|
35 | /; |
---|
36 | |
---|
37 | |
---|
38 | __PACKAGE__->mk_accessors( |
---|
39 | qw/accessors/ |
---|
40 | ); |
---|
41 | |
---|
42 | |
---|
43 | |
---|
44 | sub new { |
---|
45 | my ($this, $params) = @_; |
---|
46 | #on recupere le nom de la classe en fonction du type d'appel de la méthode. |
---|
47 | my $class = ref($this) || $this; |
---|
48 | |
---|
49 | |
---|
50 | my $self = $class->SUPER::new( $params->{parentwnd}, -1, wxDefaultPosition, wxDefaultSize ); |
---|
51 | |
---|
52 | |
---|
53 | |
---|
54 | $self->accessors( $params->{accessors} ); |
---|
55 | |
---|
56 | # load controls |
---|
57 | &main::PhotoExif($self, 1); |
---|
58 | |
---|
59 | |
---|
60 | |
---|
61 | |
---|
62 | $self; |
---|
63 | } |
---|
64 | |
---|
65 | |
---|
66 | |
---|
67 | |
---|
68 | |
---|
69 | |
---|
70 | |
---|
71 | |
---|
72 | 1; |
---|