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 | |
---|
21 | use strict; |
---|
22 | use Wx; |
---|
23 | use Class::Accessor::Fast; |
---|
24 | use Uploader::GUI::wxApp; |
---|
25 | use JSON; |
---|
26 | use Wx::Locale qw/:default/; |
---|
27 | use Data::Dumper; |
---|
28 | |
---|
29 | $SIG{__DIE__} = \&OnDieHandler; |
---|
30 | |
---|
31 | require '../res/global_settings_wdr.pl'; |
---|
32 | require '../res/progress_wdr.pl'; |
---|
33 | require '../res/login_wdr.pl'; |
---|
34 | require '../res/reupload_wdr.pl'; |
---|
35 | require '../res/photo_properties_wdr.pl'; |
---|
36 | print Dumper \@INC; |
---|
37 | eval { |
---|
38 | my $app = Uploader::GUI::wxApp->new(@_); |
---|
39 | $app->MainLoop(); |
---|
40 | }; |
---|
41 | |
---|
42 | sub OnDieHandler { |
---|
43 | my ( $exception ) = @_; |
---|
44 | |
---|
45 | # if triggered in eval |
---|
46 | # return if $^S; |
---|
47 | print $exception; |
---|
48 | } |
---|
49 | 1; |
---|
50 | |
---|
51 | |
---|