source: extensions/pLoader/trunk/res/reupload_wdr.pl @ 4827

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

Remove useless dependencies.

File size: 3.3 KB
Line 
1#-----------------------------------------------------------------------------
2# Perl source generated by wxDesigner from file: reupload.wdr
3# Do not modify this file, all changes will be lost!
4#-----------------------------------------------------------------------------
5
6use Wx;
7use Wx::DateTime;
8use strict;
9
10use Wx qw( wxDefaultSize wxDefaultPosition wxNullAnimation wxNullFont wxBLACK );
11use Wx qw( wxID_OK wxID_APPLY wxID_SAVE wxID_SAVEAS wxID_CANCEL wxID_YES wxID_NO wxID_EXIT wxID_ABOUT wxID_HELP );
12use Wx qw( wxVERTICAL wxHORIZONTAL wxALL wxLEFT wxRIGHT wxTOP wxBOTTOM wxCENTRE wxGROW );
13use Wx qw( wxALIGN_RIGHT wxALIGN_BOTTOM wxALIGN_CENTER wxALIGN_CENTER_VERTICAL wxALIGN_CENTER_HORIZONTAL );
14use Wx qw( wxRA_SPECIFY_COLS );
15
16# Bitmap functions
17
18use Wx qw( wxNullBitmap wxBITMAP_TYPE_PNG );
19
20# Window functions
21
22use vars qw($ID_REUPLOAD_TEXT); $ID_REUPLOAD_TEXT = 10000;
23use vars qw($ID_REUPLOAD_ACTION_FILES); $ID_REUPLOAD_ACTION_FILES = 10001;
24use vars qw($ID_REUPLOAD_ACTION_PROPERTIES); $ID_REUPLOAD_ACTION_PROPERTIES = 10002;
25use vars qw($ID_REUPLOAD_ACTION_PROPERTIES_M); $ID_REUPLOAD_ACTION_PROPERTIES_M = 10003;
26use vars qw($ID_REUPLOAD_NOT_ASK); $ID_REUPLOAD_NOT_ASK = 10004;
27use vars qw($ID_REUPLOAD_OK); $ID_REUPLOAD_OK = 10005;
28
29sub Reupload {
30    my( $parent ) = $_[0];
31    my( $item0 ) = Wx::BoxSizer->new( wxVERTICAL );
32   
33    my( $item1 ) = Wx::StaticText->new( $parent, $main::ID_REUPLOAD_TEXT, "Some photos in the selection have already been uploaded. What do you want to do ?", wxDefaultPosition, wxDefaultSize, 0 );
34    $item0->AddWindow( $item1, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
35
36    my( $item2 ) = Wx::RadioBox->new( $parent, $main::ID_REUPLOAD_ACTION_FILES, "Thumbnail, web size, high definition files", wxDefaultPosition, [600,-1], 
37        ["nothing","replace"] , 1, wxRA_SPECIFY_COLS );
38    $item0->AddWindow( $item2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
39
40    my( $item3 ) = Wx::RadioBox->new( $parent, $main::ID_REUPLOAD_ACTION_PROPERTIES, "Title, description, author, created date )", wxDefaultPosition, [600,-1], 
41        ["nothing","append ( keep existing and set if not defined in Piwigo )","replace"] , 1, wxRA_SPECIFY_COLS );
42    $item0->AddWindow( $item3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
43
44    my( $item4 ) = Wx::RadioBox->new( $parent, $main::ID_REUPLOAD_ACTION_PROPERTIES_M, "Categories, tags", wxDefaultPosition, [600,-1], 
45        ["nothing","append ( keep existing and add new )","replace"] , 1, wxRA_SPECIFY_COLS );
46    $item0->AddWindow( $item4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
47
48    my( $item5 ) = Wx::CheckBox->new( $parent, $main::ID_REUPLOAD_NOT_ASK, "Do not ask me again", wxDefaultPosition, wxDefaultSize, 0 );
49    $item0->AddWindow( $item5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
50
51    my( $item6 ) = Wx::Button->new( $parent, $main::ID_REUPLOAD_OK, "OK", wxDefaultPosition, wxDefaultSize, 0 );
52    $item0->AddWindow( $item6, 0, wxALIGN_CENTER|wxALL, 5 );
53
54    my( $set_size ) = @_ >= 3 ? $_[2] : 1;
55    my( $call_fit ) = @_ >= 2 ? $_[1] : 1;
56    if( $set_size == 1 ) {
57         $_[0]->SetSizer( $item0 );
58         
59         if( $call_fit == 1 ) {
60             $item0->SetSizeHints( $_[0] );
61         }
62    }
63   
64    $item0;
65}
66
67# Menu bar functions
68
69
70# Toolbar functions
71
72use Wx qw( wxITEM_NORMAL wxITEM_RADIO wxITEM_CHECK );
73
74
75# End of generated file
Note: See TracBrowser for help on using the repository browser.