source: extensions/pLoader/trunk/src/ploader.pl @ 4784

Last change on this file since 4784 was 4784, checked in by ronosman, 14 years ago

Feature 1414 added : new improved layout for photo properties panel.

  • Property svn:eol-style set to LF
File size: 2.7 KB
Line 
1# +-----------------------------------------------------------------------+
2# | pLoader - a Perl photo uploader for Piwigo                            |
3# +-----------------------------------------------------------------------+
4# | Copyright(C) 2008-2010 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
21use strict;
22use FindBin;
23use lib "$FindBin::Bin";
24use lib "$FindBin::Bin/../res";
25use lib "$FindBin::Bin/../lib";
26use Wx;
27use Class::Accessor::Fast;
28use Uploader::GUI::wxApp;
29use Uploader::GUI::Frame;
30use JSON;
31use Wx::Locale qw/:default/;
32use Data::Dumper;
33
34$SIG{__DIE__} = \&OnDieHandler;
35
36# search path defined by use lib "$Bin/../res"
37require 'global_settings_wdr.pl'; 
38require 'progress_wdr.pl'; 
39require 'login_wdr.pl'; 
40require 'reupload_wdr.pl'; 
41require 'photo_properties_wdr.pl';
42require 'photo_properties_with_categories_tags_wdr.pl';
43require 'image_properties_exif_wdr.pl';
44
45eval {
46    my $app = Uploader::GUI::wxApp->new(
47            {
48                bin_dir      => $FindBin::Bin,
49                resource_dir => 'res',
50                locale_dir   => 'locale',
51            }
52    );
53    $app->SetFrame( 
54        Uploader::GUI::Frame->new(
55            {
56                title     => sprintf("pLoader - Piwigo uploader %s - [%s]", $app->version, $app->site_url),
57                pwg       => $app->pwg,
58                imagelist => $app->imagelist,
59                imageviewer_index => $app->imageviewerIndex,
60                frameLayout => $app->frameLayout,
61            }
62        )
63    );
64    $app->MainLoop();
65};
66
67sub OnDieHandler {
68    my ( $exception ) = @_;
69   
70    # if triggered in eval
71    # return if $^S;
72    print $exception;
73}
741;
75
76
Note: See TracBrowser for help on using the repository browser.