Changeset 4727


Ignore:
Timestamp:
01/23/10 11:59:18 (10 years ago)
Author:
ronosman
Message:

Feature 1395 added : new layout for Global settings panel, using a Toolbook.

Location:
extensions/pLoader/trunk
Files:
4 added
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/pLoader/trunk/locale/fr_FR/pLoader.po

    r4717 r4727  
    631631msgid "Upload the photo selection into your album." 
    632632msgstr "Transférer dans un album." 
     633 
     634msgid "Photo size" 
     635msgstr "Dimension des photos" 
  • extensions/pLoader/trunk/res/global_settings_wdr.pl

    r4718 r4727  
    1717use Wx qw( wxVERTICAL wxHORIZONTAL wxALL wxLEFT wxRIGHT wxTOP wxBOTTOM wxCENTRE wxGROW ); 
    1818use Wx qw( wxALIGN_RIGHT wxALIGN_BOTTOM wxALIGN_CENTER wxALIGN_CENTER_VERTICAL wxALIGN_CENTER_HORIZONTAL ); 
    19 use Wx qw( wxST_NO_AUTORESIZE wxLI_HORIZONTAL ); 
     19use Wx qw( wxST_NO_AUTORESIZE ); 
    2020 
    2121# Bitmap functions 
     
    3232use vars qw($GS_DEFAULT_AUTHOR); $GS_DEFAULT_AUTHOR = 10005; 
    3333use vars qw($GS_AUTO_ROTATE); $GS_AUTO_ROTATE = 10006; 
    34 use vars qw($CPANE_THUMBNAIL); $CPANE_THUMBNAIL = 10007; 
    35 use vars qw($THUMBNAIL_SIZE); $THUMBNAIL_SIZE = 10008; 
    36 use vars qw($GS_THUMBNAIL_SIZE); $GS_THUMBNAIL_SIZE = 10009; 
    37 use vars qw($THUMBNAIL_JPEG_QUALITY); $THUMBNAIL_JPEG_QUALITY = 10010; 
    38 use vars qw($GS_THUMBNAIL_JPEG_QUALITY); $GS_THUMBNAIL_JPEG_QUALITY = 10011; 
    39 use vars qw($GS_CREATE_RESIZED); $GS_CREATE_RESIZED = 10012; 
    40 use vars qw($CPANE_RESIZE); $CPANE_RESIZE = 10013; 
    41 use vars qw($SITE_IMG_WIDTH); $SITE_IMG_WIDTH = 10014; 
    42 use vars qw($GS_SITE_IMG_WIDTH); $GS_SITE_IMG_WIDTH = 10015; 
    43 use vars qw($SITE_IMG_HEIGHT); $SITE_IMG_HEIGHT = 10016; 
    44 use vars qw($GS_SITE_IMG_HEIGHT); $GS_SITE_IMG_HEIGHT = 10017; 
    45 use vars qw($SITE_IMG_JPEG_QUALITY); $SITE_IMG_JPEG_QUALITY = 10018; 
    46 use vars qw($GS_SITE_IMG_JPEG_QUALITY); $GS_SITE_IMG_JPEG_QUALITY = 10019; 
    47 use vars qw($CPANE_RESIZE_ADVANCED); $CPANE_RESIZE_ADVANCED = 10020; 
    48 use vars qw($SITE_IMG_FILTER); $SITE_IMG_FILTER = 10021; 
    49 use vars qw($GS_SITE_IMG_FILTER); $GS_SITE_IMG_FILTER = 10022; 
    50 use vars qw($SITE_IMG_BLUR); $SITE_IMG_BLUR = 10023; 
    51 use vars qw($GS_SITE_IMG_BLUR); $GS_SITE_IMG_BLUR = 10024; 
    52 use vars qw($SITE_IMG_INTERLACE); $SITE_IMG_INTERLACE = 10025; 
    53 use vars qw($GS_SITE_IMG_INTERLACE); $GS_SITE_IMG_INTERLACE = 10026; 
    54 use vars qw($GS_HD_UPLOAD); $GS_HD_UPLOAD = 10027; 
    55 use vars qw($CPANE_HD); $CPANE_HD = 10028; 
    56 use vars qw($HD_IMG_WIDTH); $HD_IMG_WIDTH = 10029; 
    57 use vars qw($GS_HD_IMG_WIDTH); $GS_HD_IMG_WIDTH = 10030; 
    58 use vars qw($HD_IMG_HEIGHT); $HD_IMG_HEIGHT = 10031; 
    59 use vars qw($GS_HD_IMG_HEIGHT); $GS_HD_IMG_HEIGHT = 10032; 
    60 use vars qw($HD_IMG_JPEG_QUALITY); $HD_IMG_JPEG_QUALITY = 10033; 
    61 use vars qw($GS_HD_IMG_JPEG_QUALITY); $GS_HD_IMG_JPEG_QUALITY = 10034; 
    62 use vars qw($CPANE_HD_ADVANCED); $CPANE_HD_ADVANCED = 10035; 
    63 use vars qw($HD_IMG_FILTER); $HD_IMG_FILTER = 10036; 
    64 use vars qw($GS_HD_IMG_FILTER); $GS_HD_IMG_FILTER = 10037; 
    65 use vars qw($HD_IMG_BLUR); $HD_IMG_BLUR = 10038; 
    66 use vars qw($GS_HD_IMG_BLUR); $GS_HD_IMG_BLUR = 10039; 
    67 use vars qw($HD_IMG_INTERLACE); $HD_IMG_INTERLACE = 10040; 
    68 use vars qw($GS_HD_IMG_INTERLACE); $GS_HD_IMG_INTERLACE = 10041; 
    69 use vars qw($GS_WMARK_ACTIVATE); $GS_WMARK_ACTIVATE = 10042; 
    70 use vars qw($GS_WMARK_ACTIVATE_HD); $GS_WMARK_ACTIVATE_HD = 10043; 
    71 use vars qw($CPANE_WATERMARK); $CPANE_WATERMARK = 10044; 
    72 use vars qw($WMARK_TEXT); $WMARK_TEXT = 10045; 
    73 use vars qw($GS_WMARK_TEXT); $GS_WMARK_TEXT = 10046; 
    74 use vars qw($WMARK_TEXT_SIZE); $WMARK_TEXT_SIZE = 10047; 
    75 use vars qw($GS_WMARK_TEXT_SIZE); $GS_WMARK_TEXT_SIZE = 10048; 
    76 use vars qw($WMARK_COLOR); $WMARK_COLOR = 10049; 
    77 use vars qw($GS_WMARK_COLOR); $GS_WMARK_COLOR = 10050; 
    78 use vars qw($WMARK_POSITION); $WMARK_POSITION = 10051; 
    79 use vars qw($GS_WMARK_POSITION); $GS_WMARK_POSITION = 10052; 
    80 use vars qw($WMARK_MARGIN_TOP); $WMARK_MARGIN_TOP = 10053; 
    81 use vars qw($GS_WMARK_MARGIN_TOP); $GS_WMARK_MARGIN_TOP = 10054; 
    82 use vars qw($WMARK_MARGIN_LEFT); $WMARK_MARGIN_LEFT = 10055; 
    83 use vars qw($GS_WMARK_MARGIN_LEFT); $GS_WMARK_MARGIN_LEFT = 10056; 
    84 use vars qw($GS_REMOVE_UPLOADED_FROM_SELECTION); $GS_REMOVE_UPLOADED_FROM_SELECTION = 10057; 
    85 use vars qw($CPANE_TRANSFERT_ADVANCED); $CPANE_TRANSFERT_ADVANCED = 10058; 
    86 use vars qw($CHUNK_SIZE); $CHUNK_SIZE = 10059; 
    87 use vars qw($GS_CHUNK_SIZE); $GS_CHUNK_SIZE = 10060; 
    88 use vars qw($ID_LINE); $ID_LINE = 10061; 
    89 use vars qw($GS_CLOSE); $GS_CLOSE = 10062; 
    90  
    91 sub GlobalSettings { 
     34 
     35sub GS_photo_properties { 
    9236    my( $parent ) = $_[0]; 
    9337    my( $item0 ) = Wx::BoxSizer->new( wxVERTICAL ); 
    9438     
    95     my( $item2 ) = Wx::StaticBox->new( $parent, -1, "Text" ); 
     39    my( $item2 ) = Wx::StaticBox->new( $parent, -1, "" ); 
    9640    my( $item1 ) = Wx::StaticBoxSizer->new( $item2, wxVERTICAL ); 
    9741    $parent->{sb_photo_properties} = $item1; 
     
    13579 
    13680    $item0->Add( $item1, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
    137  
    138     my( $item15 ) = Wx::StaticBox->new( $parent, -1, "text" ); 
    139     my( $item14 ) = Wx::StaticBoxSizer->new( $item15, wxHORIZONTAL ); 
    140     $parent->{sb_thumbnail} = $item14; 
    141      
    142     my( $item16 ) = Wx::CollapsiblePane->new( $parent, $main::CPANE_THUMBNAIL, "", wxDefaultPosition, [300,-1], 0|wxCP_DEFAULT_STYLE ); 
    143     my( $oldparent ) = $parent; 
    144     $parent = $item16->GetPane(); 
    145      
    146     my( $item17 ) = Wx::FlexGridSizer->new( 0, 2, 0, 0 ); 
    147      
    148     my( $item18 ) = Wx::StaticText->new( $parent, $main::THUMBNAIL_SIZE, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
    149     $item17->AddWindow( $item18, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
    150  
    151     my( $item19 ) = Wx::TextCtrl->new( $parent, $main::GS_THUMBNAIL_SIZE, "", wxDefaultPosition, [80,-1], 0 ); 
    152     $item17->AddWindow( $item19, 0, wxALIGN_CENTER|wxALL, 5 ); 
    153  
    154     my( $item20 ) = Wx::StaticText->new( $parent, $main::THUMBNAIL_JPEG_QUALITY, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
    155     $item17->AddWindow( $item20, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
    156  
    157     my( $item21 ) = Wx::TextCtrl->new( $parent, $main::GS_THUMBNAIL_JPEG_QUALITY, "", wxDefaultPosition, [80,-1], 0 ); 
    158     $item17->AddWindow( $item21, 0, wxALIGN_CENTER|wxALL, 5 ); 
    159  
    160     $parent->SetSizer( $item17 ); 
    161     $parent = $oldparent; 
    162      
    163     $item14->AddWindow( $item16, 0, wxALL, 5 ); 
    164  
    165     $item0->Add( $item14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
    166  
    167     my( $item23 ) = Wx::StaticBox->new( $parent, -1, "text" ); 
    168     my( $item22 ) = Wx::StaticBoxSizer->new( $item23, wxVERTICAL ); 
    169     $parent->{sb_web_sized_photo} = $item22; 
    170      
    171     my( $item24 ) = Wx::BoxSizer->new( wxHORIZONTAL ); 
    172      
    173     my( $item25 ) = Wx::Choice->new( $parent, $main::GS_CREATE_RESIZED, wxDefaultPosition, [250,-1], [], 0 ); 
    174     $item24->AddWindow( $item25, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 ); 
    175  
    176     my( $item26 ) = Wx::CollapsiblePane->new( $parent, $main::CPANE_RESIZE, "", wxDefaultPosition, wxDefaultSize, 0|wxCP_DEFAULT_STYLE ); 
    177     my( $oldparent ) = $parent; 
    178     $parent = $item26->GetPane(); 
    179      
    180     my( $item27 ) = Wx::FlexGridSizer->new( 0, 2, 0, 0 ); 
    181      
    182     my( $item28 ) = Wx::StaticText->new( $parent, $main::SITE_IMG_WIDTH, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
    183     $item27->AddWindow( $item28, 0, wxALL, 5 ); 
    184  
    185     my( $item29 ) = Wx::TextCtrl->new( $parent, $main::GS_SITE_IMG_WIDTH, "", wxDefaultPosition, wxDefaultSize, 0 ); 
    186     $item27->AddWindow( $item29, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
    187  
    188     my( $item30 ) = Wx::StaticText->new( $parent, $main::SITE_IMG_HEIGHT, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
    189     $item27->AddWindow( $item30, 0, wxALL, 5 ); 
    190  
    191     my( $item31 ) = Wx::TextCtrl->new( $parent, $main::GS_SITE_IMG_HEIGHT, "", wxDefaultPosition, wxDefaultSize, 0 ); 
    192     $item27->AddWindow( $item31, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
    193  
    194     my( $item32 ) = Wx::StaticText->new( $parent, $main::SITE_IMG_JPEG_QUALITY, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
    195     $item27->AddWindow( $item32, 0, wxALL, 5 ); 
    196  
    197     my( $item33 ) = Wx::TextCtrl->new( $parent, $main::GS_SITE_IMG_JPEG_QUALITY, "", wxDefaultPosition, wxDefaultSize, 0 ); 
    198     $item27->AddWindow( $item33, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
    199  
    200     $parent->SetSizer( $item27 ); 
    201     $parent = $oldparent; 
    202      
    203     $item24->AddWindow( $item26, 0, wxALL, 5 ); 
    204  
    205     my( $item34 ) = Wx::CollapsiblePane->new( $parent, $main::CPANE_RESIZE_ADVANCED, "Advanced", wxDefaultPosition, wxDefaultSize, 0|wxCP_DEFAULT_STYLE ); 
    206     my( $oldparent ) = $parent; 
    207     $parent = $item34->GetPane(); 
    208      
    209     my( $item35 ) = Wx::FlexGridSizer->new( 0, 2, 0, 0 ); 
    210      
    211     my( $item36 ) = Wx::StaticText->new( $parent, $main::SITE_IMG_FILTER, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
    212     $item35->AddWindow( $item36, 0, wxALL, 5 ); 
    213  
    214     my( $item37 ) = Wx::Choice->new( $parent, $main::GS_SITE_IMG_FILTER, wxDefaultPosition, [100,-1], [], 0 ); 
    215     $item35->AddWindow( $item37, 0, wxALIGN_CENTER|wxALL, 5 ); 
    216  
    217     my( $item38 ) = Wx::StaticText->new( $parent, $main::SITE_IMG_BLUR, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
    218     $item35->AddWindow( $item38, 0, wxALL, 5 ); 
    219  
    220     my( $item39 ) = Wx::TextCtrl->new( $parent, $main::GS_SITE_IMG_BLUR, "", wxDefaultPosition, wxDefaultSize, 0 ); 
    221     $item35->AddWindow( $item39, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
    222  
    223     my( $item40 ) = Wx::StaticText->new( $parent, $main::SITE_IMG_INTERLACE, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
    224     $item35->AddWindow( $item40, 0, wxALL, 5 ); 
    225  
    226     my( $item41 ) = Wx::Choice->new( $parent, $main::GS_SITE_IMG_INTERLACE, wxDefaultPosition, [100,-1], [], 0 ); 
    227     $item35->AddWindow( $item41, 0, wxALIGN_CENTER|wxALL, 5 ); 
    228  
    229     $parent->SetSizer( $item35 ); 
    230     $parent = $oldparent; 
    231      
    232     $item24->AddWindow( $item34, 0, wxALL, 5 ); 
    233  
    234     $item22->Add( $item24, 0, wxALIGN_CENTER_VERTICAL, 5 ); 
    235  
    236     $item0->Add( $item22, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
    237  
    238     my( $item43 ) = Wx::StaticBox->new( $parent, -1, "text" ); 
    239     my( $item42 ) = Wx::StaticBoxSizer->new( $item43, wxHORIZONTAL ); 
    240     $parent->{sb_high_definition_photo} = $item42; 
    241      
    242     my( $item44 ) = Wx::Choice->new( $parent, $main::GS_HD_UPLOAD, wxDefaultPosition, [250,-1], [], 0 ); 
    243     $item42->AddWindow( $item44, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 ); 
    244  
    245     my( $item45 ) = Wx::CollapsiblePane->new( $parent, $main::CPANE_HD, "", wxDefaultPosition, wxDefaultSize, 0|wxCP_DEFAULT_STYLE ); 
    246     my( $oldparent ) = $parent; 
    247     $parent = $item45->GetPane(); 
    248      
    249     my( $item46 ) = Wx::FlexGridSizer->new( 0, 2, 0, 0 ); 
    250      
    251     my( $item47 ) = Wx::StaticText->new( $parent, $main::HD_IMG_WIDTH, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
    252     $item46->AddWindow( $item47, 0, wxALL, 5 ); 
    253  
    254     my( $item48 ) = Wx::TextCtrl->new( $parent, $main::GS_HD_IMG_WIDTH, "", wxDefaultPosition, wxDefaultSize, 0 ); 
    255     $item46->AddWindow( $item48, 0, wxALIGN_CENTER|wxALL, 5 ); 
    256  
    257     my( $item49 ) = Wx::StaticText->new( $parent, $main::HD_IMG_HEIGHT, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
    258     $item46->AddWindow( $item49, 0, wxALL, 5 ); 
    259  
    260     my( $item50 ) = Wx::TextCtrl->new( $parent, $main::GS_HD_IMG_HEIGHT, "", wxDefaultPosition, wxDefaultSize, 0 ); 
    261     $item46->AddWindow( $item50, 0, wxALIGN_CENTER|wxALL, 5 ); 
    262  
    263     my( $item51 ) = Wx::StaticText->new( $parent, $main::HD_IMG_JPEG_QUALITY, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
    264     $item46->AddWindow( $item51, 0, wxALL, 5 ); 
    265  
    266     my( $item52 ) = Wx::TextCtrl->new( $parent, $main::GS_HD_IMG_JPEG_QUALITY, "", wxDefaultPosition, wxDefaultSize, 0 ); 
    267     $item46->AddWindow( $item52, 0, wxALIGN_CENTER|wxALL, 5 ); 
    268  
    269     $parent->SetSizer( $item46 ); 
    270     $parent = $oldparent; 
    271      
    272     $item42->AddWindow( $item45, 0, wxALL, 5 ); 
    273  
    274     my( $item53 ) = Wx::CollapsiblePane->new( $parent, $main::CPANE_HD_ADVANCED, "Advanced", wxDefaultPosition, wxDefaultSize, 0|wxCP_DEFAULT_STYLE ); 
    275     my( $oldparent ) = $parent; 
    276     $parent = $item53->GetPane(); 
    277      
    278     my( $item54 ) = Wx::FlexGridSizer->new( 0, 2, 0, 0 ); 
    279      
    280     my( $item55 ) = Wx::StaticText->new( $parent, $main::HD_IMG_FILTER, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
    281     $item54->AddWindow( $item55, 0, wxALL, 5 ); 
    282  
    283     my( $item56 ) = Wx::Choice->new( $parent, $main::GS_HD_IMG_FILTER, wxDefaultPosition, [100,-1], [], 0 ); 
    284     $item54->AddWindow( $item56, 0, wxALL, 5 ); 
    285  
    286     my( $item57 ) = Wx::StaticText->new( $parent, $main::HD_IMG_BLUR, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
    287     $item54->AddWindow( $item57, 0, wxALL, 5 ); 
    288  
    289     my( $item58 ) = Wx::TextCtrl->new( $parent, $main::GS_HD_IMG_BLUR, "", wxDefaultPosition, wxDefaultSize, 0 ); 
    290     $item54->AddWindow( $item58, 0, wxALL, 5 ); 
    291  
    292     my( $item59 ) = Wx::StaticText->new( $parent, $main::HD_IMG_INTERLACE, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
    293     $item54->AddWindow( $item59, 0, wxALL, 5 ); 
    294  
    295     my( $item60 ) = Wx::Choice->new( $parent, $main::GS_HD_IMG_INTERLACE, wxDefaultPosition, [100,-1], [], 0 ); 
    296     $item54->AddWindow( $item60, 0, wxALL, 5 ); 
    297  
    298     $parent->SetSizer( $item54 ); 
    299     $parent = $oldparent; 
    300      
    301     $item42->AddWindow( $item53, 0, wxALL, 5 ); 
    302  
    303     $item0->Add( $item42, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
    304  
    305     my( $item62 ) = Wx::StaticBox->new( $parent, -1, "text" ); 
    306     my( $item61 ) = Wx::StaticBoxSizer->new( $item62, wxHORIZONTAL ); 
    307     $parent->{sb_watermark} = $item61; 
    308      
    309     my( $item63 ) = Wx::BoxSizer->new( wxVERTICAL ); 
    310      
    311     my( $item64 ) = Wx::CheckBox->new( $parent, $main::GS_WMARK_ACTIVATE, "", wxDefaultPosition, wxDefaultSize, 0 ); 
    312     $item63->AddWindow( $item64, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
    313  
    314     my( $item65 ) = Wx::CheckBox->new( $parent, $main::GS_WMARK_ACTIVATE_HD, "", wxDefaultPosition, wxDefaultSize, 0 ); 
    315     $item63->AddWindow( $item65, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
    316  
    317     $item61->Add( $item63, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 ); 
    318  
    319     my( $item66 ) = Wx::CollapsiblePane->new( $parent, $main::CPANE_WATERMARK, "", wxDefaultPosition, wxDefaultSize, 0|wxCP_DEFAULT_STYLE ); 
    320     my( $oldparent ) = $parent; 
    321     $parent = $item66->GetPane(); 
    322      
    323     my( $item67 ) = Wx::FlexGridSizer->new( 0, 2, 0, 0 ); 
    324      
    325     my( $item68 ) = Wx::StaticText->new( $parent, $main::WMARK_TEXT, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
    326     $item67->AddWindow( $item68, 0, wxALL, 5 ); 
    327  
    328     my( $item69 ) = Wx::TextCtrl->new( $parent, $main::GS_WMARK_TEXT, "", wxDefaultPosition, [200,-1], 0 ); 
    329     $item67->AddWindow( $item69, 0, wxALL, 5 ); 
    330  
    331     my( $item70 ) = Wx::StaticText->new( $parent, $main::WMARK_TEXT_SIZE, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
    332     $item67->AddWindow( $item70, 0, wxALL, 5 ); 
    333  
    334     my( $item71 ) = Wx::SpinCtrl->new( $parent, $main::GS_WMARK_TEXT_SIZE, "0", wxDefaultPosition, [50,-1], 0, 0, 100, 0 ); 
    335     $item67->AddWindow( $item71, 0, wxALL, 5 ); 
    336  
    337     my( $item72 ) = Wx::StaticText->new( $parent, $main::WMARK_COLOR, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
    338     $item67->AddWindow( $item72, 0, wxALL, 5 ); 
    339  
    340     my( $item73 ) = Wx::Choice->new( $parent, $main::GS_WMARK_COLOR, wxDefaultPosition, [100,-1], [], 0 ); 
    341     $item67->AddWindow( $item73, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
    342  
    343     my( $item74 ) = Wx::StaticText->new( $parent, $main::WMARK_POSITION, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
    344     $item67->AddWindow( $item74, 0, wxALL, 5 ); 
    345  
    346     my( $item75 ) = Wx::Choice->new( $parent, $main::GS_WMARK_POSITION, wxDefaultPosition, [100,-1], [], 0 ); 
    347     $item67->AddWindow( $item75, 0, wxALL, 5 ); 
    348  
    349     my( $item76 ) = Wx::StaticText->new( $parent, $main::WMARK_MARGIN_TOP, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
    350     $item67->AddWindow( $item76, 0, wxALL, 5 ); 
    351  
    352     my( $item77 ) = Wx::SpinCtrl->new( $parent, $main::GS_WMARK_MARGIN_TOP, "0", wxDefaultPosition, [100,-1], 0, 0, 100, 0 ); 
    353     $item67->AddWindow( $item77, 0, wxALL, 5 ); 
    354  
    355     my( $item78 ) = Wx::StaticText->new( $parent, $main::WMARK_MARGIN_LEFT, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
    356     $item67->AddWindow( $item78, 0, wxALL, 5 ); 
    357  
    358     my( $item79 ) = Wx::SpinCtrl->new( $parent, $main::GS_WMARK_MARGIN_LEFT, "0", wxDefaultPosition, [100,-1], 0, 0, 100, 0 ); 
    359     $item67->AddWindow( $item79, 0, wxALL, 5 ); 
    360  
    361     $parent->SetSizer( $item67 ); 
    362     $parent = $oldparent; 
    363      
    364     $item61->AddWindow( $item66, 0, wxALL, 5 ); 
    365  
    366     $item0->Add( $item61, 0, wxALIGN_CENTER_VERTICAL, 5 ); 
    367  
    368     my( $item81 ) = Wx::StaticBox->new( $parent, -1, "Text" ); 
    369     my( $item80 ) = Wx::StaticBoxSizer->new( $item81, wxHORIZONTAL ); 
    370     $parent->{sb_transfert} = $item80; 
    371      
    372     my( $item82 ) = Wx::CheckBox->new( $parent, $main::GS_REMOVE_UPLOADED_FROM_SELECTION, "", wxDefaultPosition, wxDefaultSize, 0 ); 
    373     $item80->AddWindow( $item82, 0, wxALIGN_CENTER|wxALL, 5 ); 
    374  
    375     my( $item83 ) = Wx::CollapsiblePane->new( $parent, $main::CPANE_TRANSFERT_ADVANCED, "", wxDefaultPosition, wxDefaultSize, 0|wxCP_DEFAULT_STYLE ); 
    376     my( $oldparent ) = $parent; 
    377     $parent = $item83->GetPane(); 
    378      
    379     my( $item84 ) = Wx::FlexGridSizer->new( 0, 2, 0, 0 ); 
    380      
    381     my( $item85 ) = Wx::StaticText->new( $parent, $main::CHUNK_SIZE, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
    382     $item84->AddWindow( $item85, 0, wxALL, 5 ); 
    383  
    384     my( $item86 ) = Wx::TextCtrl->new( $parent, $main::GS_CHUNK_SIZE, "", wxDefaultPosition, wxDefaultSize, 0 ); 
    385     $item84->AddWindow( $item86, 0, wxALL, 5 ); 
    386  
    387     $parent->SetSizer( $item84 ); 
    388     $parent = $oldparent; 
    389      
    390     $item80->AddWindow( $item83, 0, wxALL, 5 ); 
    391  
    392     $item0->Add( $item80, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
    393  
    394     my( $item87 ) = Wx::BoxSizer->new( wxVERTICAL ); 
    395      
    396     my( $item88 ) = Wx::StaticLine->new( $parent, $main::ID_LINE, wxDefaultPosition, [20,-1], wxLI_HORIZONTAL ); 
    397     $item87->AddWindow( $item88, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
    398  
    399     my( $item89 ) = Wx::Button->new( $parent, $main::GS_CLOSE, "OK", wxDefaultPosition, wxDefaultSize, 0 ); 
    400     $item87->AddWindow( $item89, 0, wxALIGN_BOTTOM|wxALIGN_CENTER_HORIZONTAL|wxALL, 5 ); 
    401  
    402     $item0->Add( $item87, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
    40381 
    40482    my( $set_size ) = @_ >= 3 ? $_[2] : 1; 
     
    41593} 
    41694 
     95use vars qw($GS_THUMBNAIL); $GS_THUMBNAIL = 10007; 
     96use vars qw($CPANE_THUMBNAIL); $CPANE_THUMBNAIL = 10008; 
     97use vars qw($THUMBNAIL_SIZE); $THUMBNAIL_SIZE = 10009; 
     98use vars qw($GS_THUMBNAIL_SIZE); $GS_THUMBNAIL_SIZE = 10010; 
     99use vars qw($THUMBNAIL_JPEG_QUALITY); $THUMBNAIL_JPEG_QUALITY = 10011; 
     100use vars qw($GS_THUMBNAIL_JPEG_QUALITY); $GS_THUMBNAIL_JPEG_QUALITY = 10012; 
     101use vars qw($GS_SITE_IMG); $GS_SITE_IMG = 10013; 
     102use vars qw($GS_CREATE_RESIZED); $GS_CREATE_RESIZED = 10014; 
     103use vars qw($CPANE_RESIZE); $CPANE_RESIZE = 10015; 
     104use vars qw($SITE_IMG_WIDTH); $SITE_IMG_WIDTH = 10016; 
     105use vars qw($GS_SITE_IMG_WIDTH); $GS_SITE_IMG_WIDTH = 10017; 
     106use vars qw($SITE_IMG_HEIGHT); $SITE_IMG_HEIGHT = 10018; 
     107use vars qw($GS_SITE_IMG_HEIGHT); $GS_SITE_IMG_HEIGHT = 10019; 
     108use vars qw($SITE_IMG_JPEG_QUALITY); $SITE_IMG_JPEG_QUALITY = 10020; 
     109use vars qw($GS_SITE_IMG_JPEG_QUALITY); $GS_SITE_IMG_JPEG_QUALITY = 10021; 
     110use vars qw($CPANE_RESIZE_ADVANCED); $CPANE_RESIZE_ADVANCED = 10022; 
     111use vars qw($SITE_IMG_FILTER); $SITE_IMG_FILTER = 10023; 
     112use vars qw($GS_SITE_IMG_FILTER); $GS_SITE_IMG_FILTER = 10024; 
     113use vars qw($SITE_IMG_BLUR); $SITE_IMG_BLUR = 10025; 
     114use vars qw($GS_SITE_IMG_BLUR); $GS_SITE_IMG_BLUR = 10026; 
     115use vars qw($SITE_IMG_INTERLACE); $SITE_IMG_INTERLACE = 10027; 
     116use vars qw($GS_SITE_IMG_INTERLACE); $GS_SITE_IMG_INTERLACE = 10028; 
     117use vars qw($GS_HD); $GS_HD = 10029; 
     118use vars qw($GS_HD_UPLOAD); $GS_HD_UPLOAD = 10030; 
     119use vars qw($CPANE_HD); $CPANE_HD = 10031; 
     120use vars qw($HD_IMG_WIDTH); $HD_IMG_WIDTH = 10032; 
     121use vars qw($GS_HD_IMG_WIDTH); $GS_HD_IMG_WIDTH = 10033; 
     122use vars qw($HD_IMG_HEIGHT); $HD_IMG_HEIGHT = 10034; 
     123use vars qw($GS_HD_IMG_HEIGHT); $GS_HD_IMG_HEIGHT = 10035; 
     124use vars qw($HD_IMG_JPEG_QUALITY); $HD_IMG_JPEG_QUALITY = 10036; 
     125use vars qw($GS_HD_IMG_JPEG_QUALITY); $GS_HD_IMG_JPEG_QUALITY = 10037; 
     126use vars qw($CPANE_HD_ADVANCED); $CPANE_HD_ADVANCED = 10038; 
     127use vars qw($HD_IMG_FILTER); $HD_IMG_FILTER = 10039; 
     128use vars qw($GS_HD_IMG_FILTER); $GS_HD_IMG_FILTER = 10040; 
     129use vars qw($HD_IMG_BLUR); $HD_IMG_BLUR = 10041; 
     130use vars qw($GS_HD_IMG_BLUR); $GS_HD_IMG_BLUR = 10042; 
     131use vars qw($HD_IMG_INTERLACE); $HD_IMG_INTERLACE = 10043; 
     132use vars qw($GS_HD_IMG_INTERLACE); $GS_HD_IMG_INTERLACE = 10044; 
     133 
     134sub GS_photo_preparation { 
     135    my( $parent ) = $_[0]; 
     136    my( $item0 ) = Wx::BoxSizer->new( wxVERTICAL ); 
     137     
     138    my( $item2 ) = Wx::StaticBox->new( $parent, -1, "" ); 
     139    my( $item1 ) = Wx::StaticBoxSizer->new( $item2, wxHORIZONTAL ); 
     140    $parent->{sb_thumbnail} = $item1; 
     141     
     142    my( $item3 ) = Wx::StaticText->new( $parent, $main::GS_THUMBNAIL, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     143    $item1->AddWindow( $item3, 0, wxALL, 5 ); 
     144 
     145    my( $item4 ) = Wx::CollapsiblePane->new( $parent, $main::CPANE_THUMBNAIL, "", wxDefaultPosition, [300,-1], 0|wxCP_DEFAULT_STYLE ); 
     146    my( $oldparent ) = $parent; 
     147    $parent = $item4->GetPane(); 
     148     
     149    my( $item5 ) = Wx::FlexGridSizer->new( 0, 2, 0, 0 ); 
     150     
     151    my( $item6 ) = Wx::StaticText->new( $parent, $main::THUMBNAIL_SIZE, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     152    $item5->AddWindow( $item6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
     153 
     154    my( $item7 ) = Wx::TextCtrl->new( $parent, $main::GS_THUMBNAIL_SIZE, "", wxDefaultPosition, [80,-1], 0 ); 
     155    $item5->AddWindow( $item7, 0, wxALIGN_CENTER|wxALL, 5 ); 
     156 
     157    my( $item8 ) = Wx::StaticText->new( $parent, $main::THUMBNAIL_JPEG_QUALITY, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     158    $item5->AddWindow( $item8, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
     159 
     160    my( $item9 ) = Wx::TextCtrl->new( $parent, $main::GS_THUMBNAIL_JPEG_QUALITY, "", wxDefaultPosition, [80,-1], 0 ); 
     161    $item5->AddWindow( $item9, 0, wxALIGN_CENTER|wxALL, 5 ); 
     162 
     163    $parent->SetSizer( $item5 ); 
     164    $parent = $oldparent; 
     165     
     166    $item1->AddWindow( $item4, 0, wxALL, 5 ); 
     167 
     168    $item0->Add( $item1, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
     169 
     170    my( $item11 ) = Wx::StaticBox->new( $parent, -1, "" ); 
     171    my( $item10 ) = Wx::StaticBoxSizer->new( $item11, wxVERTICAL ); 
     172    $parent->{sb_web_sized_photo} = $item10; 
     173     
     174    my( $item12 ) = Wx::StaticText->new( $parent, $main::GS_SITE_IMG, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     175    $item10->AddWindow( $item12, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
     176 
     177    my( $item13 ) = Wx::BoxSizer->new( wxHORIZONTAL ); 
     178     
     179    my( $item14 ) = Wx::Choice->new( $parent, $main::GS_CREATE_RESIZED, wxDefaultPosition, [250,-1], [], 0 ); 
     180    $item13->AddWindow( $item14, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 ); 
     181 
     182    my( $item15 ) = Wx::CollapsiblePane->new( $parent, $main::CPANE_RESIZE, "", wxDefaultPosition, wxDefaultSize, 0|wxCP_DEFAULT_STYLE ); 
     183    my( $oldparent ) = $parent; 
     184    $parent = $item15->GetPane(); 
     185     
     186    my( $item16 ) = Wx::FlexGridSizer->new( 0, 2, 0, 0 ); 
     187     
     188    my( $item17 ) = Wx::StaticText->new( $parent, $main::SITE_IMG_WIDTH, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     189    $item16->AddWindow( $item17, 0, wxALL, 5 ); 
     190 
     191    my( $item18 ) = Wx::TextCtrl->new( $parent, $main::GS_SITE_IMG_WIDTH, "", wxDefaultPosition, wxDefaultSize, 0 ); 
     192    $item16->AddWindow( $item18, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
     193 
     194    my( $item19 ) = Wx::StaticText->new( $parent, $main::SITE_IMG_HEIGHT, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     195    $item16->AddWindow( $item19, 0, wxALL, 5 ); 
     196 
     197    my( $item20 ) = Wx::TextCtrl->new( $parent, $main::GS_SITE_IMG_HEIGHT, "", wxDefaultPosition, wxDefaultSize, 0 ); 
     198    $item16->AddWindow( $item20, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
     199 
     200    my( $item21 ) = Wx::StaticText->new( $parent, $main::SITE_IMG_JPEG_QUALITY, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     201    $item16->AddWindow( $item21, 0, wxALL, 5 ); 
     202 
     203    my( $item22 ) = Wx::TextCtrl->new( $parent, $main::GS_SITE_IMG_JPEG_QUALITY, "", wxDefaultPosition, wxDefaultSize, 0 ); 
     204    $item16->AddWindow( $item22, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
     205 
     206    $parent->SetSizer( $item16 ); 
     207    $parent = $oldparent; 
     208     
     209    $item13->AddWindow( $item15, 0, wxALL, 5 ); 
     210 
     211    my( $item23 ) = Wx::CollapsiblePane->new( $parent, $main::CPANE_RESIZE_ADVANCED, "Advanced", wxDefaultPosition, wxDefaultSize, 0|wxCP_DEFAULT_STYLE ); 
     212    my( $oldparent ) = $parent; 
     213    $parent = $item23->GetPane(); 
     214     
     215    my( $item24 ) = Wx::FlexGridSizer->new( 0, 2, 0, 0 ); 
     216     
     217    my( $item25 ) = Wx::StaticText->new( $parent, $main::SITE_IMG_FILTER, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     218    $item24->AddWindow( $item25, 0, wxALL, 5 ); 
     219 
     220    my( $item26 ) = Wx::Choice->new( $parent, $main::GS_SITE_IMG_FILTER, wxDefaultPosition, [100,-1], [], 0 ); 
     221    $item24->AddWindow( $item26, 0, wxALIGN_CENTER|wxALL, 5 ); 
     222 
     223    my( $item27 ) = Wx::StaticText->new( $parent, $main::SITE_IMG_BLUR, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     224    $item24->AddWindow( $item27, 0, wxALL, 5 ); 
     225 
     226    my( $item28 ) = Wx::TextCtrl->new( $parent, $main::GS_SITE_IMG_BLUR, "", wxDefaultPosition, wxDefaultSize, 0 ); 
     227    $item24->AddWindow( $item28, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
     228 
     229    my( $item29 ) = Wx::StaticText->new( $parent, $main::SITE_IMG_INTERLACE, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     230    $item24->AddWindow( $item29, 0, wxALL, 5 ); 
     231 
     232    my( $item30 ) = Wx::Choice->new( $parent, $main::GS_SITE_IMG_INTERLACE, wxDefaultPosition, [100,-1], [], 0 ); 
     233    $item24->AddWindow( $item30, 0, wxALIGN_CENTER|wxALL, 5 ); 
     234 
     235    $parent->SetSizer( $item24 ); 
     236    $parent = $oldparent; 
     237     
     238    $item13->AddWindow( $item23, 0, wxALL, 5 ); 
     239 
     240    $item10->Add( $item13, 0, wxALIGN_CENTER_VERTICAL, 5 ); 
     241 
     242    $item0->Add( $item10, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
     243 
     244    my( $item32 ) = Wx::StaticBox->new( $parent, -1, "" ); 
     245    my( $item31 ) = Wx::StaticBoxSizer->new( $item32, wxVERTICAL ); 
     246     
     247    my( $item33 ) = Wx::StaticText->new( $parent, $main::GS_HD, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     248    $item31->AddWindow( $item33, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
     249 
     250    my( $item34 ) = Wx::BoxSizer->new( wxHORIZONTAL ); 
     251    $parent->{sb_high_definition_photo} = $item34; 
     252     
     253    my( $item35 ) = Wx::Choice->new( $parent, $main::GS_HD_UPLOAD, wxDefaultPosition, [250,-1], [], 0 ); 
     254    $item34->AddWindow( $item35, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 ); 
     255 
     256    my( $item36 ) = Wx::CollapsiblePane->new( $parent, $main::CPANE_HD, "", wxDefaultPosition, wxDefaultSize, 0|wxCP_DEFAULT_STYLE ); 
     257    my( $oldparent ) = $parent; 
     258    $parent = $item36->GetPane(); 
     259     
     260    my( $item37 ) = Wx::FlexGridSizer->new( 0, 2, 0, 0 ); 
     261     
     262    my( $item38 ) = Wx::StaticText->new( $parent, $main::HD_IMG_WIDTH, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     263    $item37->AddWindow( $item38, 0, wxALL, 5 ); 
     264 
     265    my( $item39 ) = Wx::TextCtrl->new( $parent, $main::GS_HD_IMG_WIDTH, "", wxDefaultPosition, wxDefaultSize, 0 ); 
     266    $item37->AddWindow( $item39, 0, wxALIGN_CENTER|wxALL, 5 ); 
     267 
     268    my( $item40 ) = Wx::StaticText->new( $parent, $main::HD_IMG_HEIGHT, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     269    $item37->AddWindow( $item40, 0, wxALL, 5 ); 
     270 
     271    my( $item41 ) = Wx::TextCtrl->new( $parent, $main::GS_HD_IMG_HEIGHT, "", wxDefaultPosition, wxDefaultSize, 0 ); 
     272    $item37->AddWindow( $item41, 0, wxALIGN_CENTER|wxALL, 5 ); 
     273 
     274    my( $item42 ) = Wx::StaticText->new( $parent, $main::HD_IMG_JPEG_QUALITY, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     275    $item37->AddWindow( $item42, 0, wxALL, 5 ); 
     276 
     277    my( $item43 ) = Wx::TextCtrl->new( $parent, $main::GS_HD_IMG_JPEG_QUALITY, "", wxDefaultPosition, wxDefaultSize, 0 ); 
     278    $item37->AddWindow( $item43, 0, wxALIGN_CENTER|wxALL, 5 ); 
     279 
     280    $parent->SetSizer( $item37 ); 
     281    $parent = $oldparent; 
     282     
     283    $item34->AddWindow( $item36, 0, wxALL, 5 ); 
     284 
     285    my( $item44 ) = Wx::CollapsiblePane->new( $parent, $main::CPANE_HD_ADVANCED, "Advanced", wxDefaultPosition, wxDefaultSize, 0|wxCP_DEFAULT_STYLE ); 
     286    my( $oldparent ) = $parent; 
     287    $parent = $item44->GetPane(); 
     288     
     289    my( $item45 ) = Wx::FlexGridSizer->new( 0, 2, 0, 0 ); 
     290     
     291    my( $item46 ) = Wx::StaticText->new( $parent, $main::HD_IMG_FILTER, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     292    $item45->AddWindow( $item46, 0, wxALL, 5 ); 
     293 
     294    my( $item47 ) = Wx::Choice->new( $parent, $main::GS_HD_IMG_FILTER, wxDefaultPosition, [100,-1], [], 0 ); 
     295    $item45->AddWindow( $item47, 0, wxALL, 5 ); 
     296 
     297    my( $item48 ) = Wx::StaticText->new( $parent, $main::HD_IMG_BLUR, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     298    $item45->AddWindow( $item48, 0, wxALL, 5 ); 
     299 
     300    my( $item49 ) = Wx::TextCtrl->new( $parent, $main::GS_HD_IMG_BLUR, "", wxDefaultPosition, wxDefaultSize, 0 ); 
     301    $item45->AddWindow( $item49, 0, wxALL, 5 ); 
     302 
     303    my( $item50 ) = Wx::StaticText->new( $parent, $main::HD_IMG_INTERLACE, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     304    $item45->AddWindow( $item50, 0, wxALL, 5 ); 
     305 
     306    my( $item51 ) = Wx::Choice->new( $parent, $main::GS_HD_IMG_INTERLACE, wxDefaultPosition, [100,-1], [], 0 ); 
     307    $item45->AddWindow( $item51, 0, wxALL, 5 ); 
     308 
     309    $parent->SetSizer( $item45 ); 
     310    $parent = $oldparent; 
     311     
     312    $item34->AddWindow( $item44, 0, wxALL, 5 ); 
     313 
     314    $item31->Add( $item34, 0, wxALIGN_CENTER_VERTICAL, 5 ); 
     315 
     316    $item0->Add( $item31, 0, wxALIGN_CENTER|wxALL, 5 ); 
     317 
     318    my( $set_size ) = @_ >= 3 ? $_[2] : 1; 
     319    my( $call_fit ) = @_ >= 2 ? $_[1] : 1; 
     320    if( $set_size == 1 ) { 
     321         $_[0]->SetSizer( $item0 ); 
     322          
     323         if( $call_fit == 1 ) { 
     324             $item0->SetSizeHints( $_[0] ); 
     325         } 
     326    } 
     327     
     328    $item0; 
     329} 
     330 
     331use vars qw($GS_WMARK_ACTIVATE); $GS_WMARK_ACTIVATE = 10045; 
     332use vars qw($GS_WMARK_ACTIVATE_HD); $GS_WMARK_ACTIVATE_HD = 10046; 
     333use vars qw($CPANE_WATERMARK); $CPANE_WATERMARK = 10047; 
     334use vars qw($WMARK_TEXT); $WMARK_TEXT = 10048; 
     335use vars qw($GS_WMARK_TEXT); $GS_WMARK_TEXT = 10049; 
     336use vars qw($WMARK_TEXT_SIZE); $WMARK_TEXT_SIZE = 10050; 
     337use vars qw($GS_WMARK_TEXT_SIZE); $GS_WMARK_TEXT_SIZE = 10051; 
     338use vars qw($WMARK_COLOR); $WMARK_COLOR = 10052; 
     339use vars qw($GS_WMARK_COLOR); $GS_WMARK_COLOR = 10053; 
     340use vars qw($WMARK_POSITION); $WMARK_POSITION = 10054; 
     341use vars qw($GS_WMARK_POSITION); $GS_WMARK_POSITION = 10055; 
     342use vars qw($WMARK_MARGIN_TOP); $WMARK_MARGIN_TOP = 10056; 
     343use vars qw($GS_WMARK_MARGIN_TOP); $GS_WMARK_MARGIN_TOP = 10057; 
     344use vars qw($WMARK_MARGIN_LEFT); $WMARK_MARGIN_LEFT = 10058; 
     345use vars qw($GS_WMARK_MARGIN_LEFT); $GS_WMARK_MARGIN_LEFT = 10059; 
     346 
     347sub GS_photo_watermark { 
     348    my( $parent ) = $_[0]; 
     349    my( $item0 ) = Wx::BoxSizer->new( wxVERTICAL ); 
     350     
     351    my( $item2 ) = Wx::StaticBox->new( $parent, -1, "" ); 
     352    my( $item1 ) = Wx::StaticBoxSizer->new( $item2, wxHORIZONTAL ); 
     353    $parent->{sb_watermark} = $item1; 
     354     
     355    my( $item3 ) = Wx::BoxSizer->new( wxVERTICAL ); 
     356     
     357    my( $item4 ) = Wx::CheckBox->new( $parent, $main::GS_WMARK_ACTIVATE, "", wxDefaultPosition, wxDefaultSize, 0 ); 
     358    $item3->AddWindow( $item4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
     359 
     360    my( $item5 ) = Wx::CheckBox->new( $parent, $main::GS_WMARK_ACTIVATE_HD, "", wxDefaultPosition, wxDefaultSize, 0 ); 
     361    $item3->AddWindow( $item5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
     362 
     363    $item1->Add( $item3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 ); 
     364 
     365    my( $item6 ) = Wx::CollapsiblePane->new( $parent, $main::CPANE_WATERMARK, "", wxDefaultPosition, wxDefaultSize, 0|wxCP_DEFAULT_STYLE ); 
     366    my( $oldparent ) = $parent; 
     367    $parent = $item6->GetPane(); 
     368     
     369    my( $item7 ) = Wx::FlexGridSizer->new( 0, 2, 0, 0 ); 
     370     
     371    my( $item8 ) = Wx::StaticText->new( $parent, $main::WMARK_TEXT, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     372    $item7->AddWindow( $item8, 0, wxALL, 5 ); 
     373 
     374    my( $item9 ) = Wx::TextCtrl->new( $parent, $main::GS_WMARK_TEXT, "", wxDefaultPosition, [200,-1], 0 ); 
     375    $item7->AddWindow( $item9, 0, wxALL, 5 ); 
     376 
     377    my( $item10 ) = Wx::StaticText->new( $parent, $main::WMARK_TEXT_SIZE, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     378    $item7->AddWindow( $item10, 0, wxALL, 5 ); 
     379 
     380    my( $item11 ) = Wx::SpinCtrl->new( $parent, $main::GS_WMARK_TEXT_SIZE, "0", wxDefaultPosition, [50,-1], 0, 0, 100, 0 ); 
     381    $item7->AddWindow( $item11, 0, wxALL, 5 ); 
     382 
     383    my( $item12 ) = Wx::StaticText->new( $parent, $main::WMARK_COLOR, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     384    $item7->AddWindow( $item12, 0, wxALL, 5 ); 
     385 
     386    my( $item13 ) = Wx::Choice->new( $parent, $main::GS_WMARK_COLOR, wxDefaultPosition, [100,-1], [], 0 ); 
     387    $item7->AddWindow( $item13, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
     388 
     389    my( $item14 ) = Wx::StaticText->new( $parent, $main::WMARK_POSITION, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     390    $item7->AddWindow( $item14, 0, wxALL, 5 ); 
     391 
     392    my( $item15 ) = Wx::Choice->new( $parent, $main::GS_WMARK_POSITION, wxDefaultPosition, [100,-1], [], 0 ); 
     393    $item7->AddWindow( $item15, 0, wxALL, 5 ); 
     394 
     395    my( $item16 ) = Wx::StaticText->new( $parent, $main::WMARK_MARGIN_TOP, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     396    $item7->AddWindow( $item16, 0, wxALL, 5 ); 
     397 
     398    my( $item17 ) = Wx::SpinCtrl->new( $parent, $main::GS_WMARK_MARGIN_TOP, "0", wxDefaultPosition, [100,-1], 0, 0, 100, 0 ); 
     399    $item7->AddWindow( $item17, 0, wxALL, 5 ); 
     400 
     401    my( $item18 ) = Wx::StaticText->new( $parent, $main::WMARK_MARGIN_LEFT, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     402    $item7->AddWindow( $item18, 0, wxALL, 5 ); 
     403 
     404    my( $item19 ) = Wx::SpinCtrl->new( $parent, $main::GS_WMARK_MARGIN_LEFT, "0", wxDefaultPosition, [100,-1], 0, 0, 100, 0 ); 
     405    $item7->AddWindow( $item19, 0, wxALL, 5 ); 
     406 
     407    $parent->SetSizer( $item7 ); 
     408    $parent = $oldparent; 
     409     
     410    $item1->AddWindow( $item6, 0, wxALL, 5 ); 
     411 
     412    $item0->Add( $item1, 0, wxALIGN_CENTER_VERTICAL, 5 ); 
     413 
     414    my( $set_size ) = @_ >= 3 ? $_[2] : 1; 
     415    my( $call_fit ) = @_ >= 2 ? $_[1] : 1; 
     416    if( $set_size == 1 ) { 
     417         $_[0]->SetSizer( $item0 ); 
     418          
     419         if( $call_fit == 1 ) { 
     420             $item0->SetSizeHints( $_[0] ); 
     421         } 
     422    } 
     423     
     424    $item0; 
     425} 
     426 
     427use vars qw($GS_REMOVE_UPLOADED_FROM_SELECTION); $GS_REMOVE_UPLOADED_FROM_SELECTION = 10060; 
     428use vars qw($CPANE_TRANSFERT_ADVANCED); $CPANE_TRANSFERT_ADVANCED = 10061; 
     429use vars qw($CHUNK_SIZE); $CHUNK_SIZE = 10062; 
     430use vars qw($GS_CHUNK_SIZE); $GS_CHUNK_SIZE = 10063; 
     431 
     432sub GS_photo_transfer { 
     433    my( $parent ) = $_[0]; 
     434    my( $item0 ) = Wx::BoxSizer->new( wxVERTICAL ); 
     435     
     436    my( $item2 ) = Wx::StaticBox->new( $parent, -1, "" ); 
     437    my( $item1 ) = Wx::StaticBoxSizer->new( $item2, wxHORIZONTAL ); 
     438    $parent->{sb_transfert} = $item1; 
     439     
     440    my( $item3 ) = Wx::CheckBox->new( $parent, $main::GS_REMOVE_UPLOADED_FROM_SELECTION, "", wxDefaultPosition, wxDefaultSize, 0 ); 
     441    $item1->AddWindow( $item3, 0, wxALIGN_CENTER|wxALL, 5 ); 
     442 
     443    my( $item4 ) = Wx::CollapsiblePane->new( $parent, $main::CPANE_TRANSFERT_ADVANCED, "", wxDefaultPosition, wxDefaultSize, 0|wxCP_DEFAULT_STYLE ); 
     444    my( $oldparent ) = $parent; 
     445    $parent = $item4->GetPane(); 
     446     
     447    my( $item5 ) = Wx::FlexGridSizer->new( 0, 2, 0, 0 ); 
     448     
     449    my( $item6 ) = Wx::StaticText->new( $parent, $main::CHUNK_SIZE, "text", wxDefaultPosition, wxDefaultSize, 0 ); 
     450    $item5->AddWindow( $item6, 0, wxALL, 5 ); 
     451 
     452    my( $item7 ) = Wx::TextCtrl->new( $parent, $main::GS_CHUNK_SIZE, "", wxDefaultPosition, wxDefaultSize, 0 ); 
     453    $item5->AddWindow( $item7, 0, wxALL, 5 ); 
     454 
     455    $parent->SetSizer( $item5 ); 
     456    $parent = $oldparent; 
     457     
     458    $item1->AddWindow( $item4, 0, wxALL, 5 ); 
     459 
     460    $item0->Add( $item1, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
     461 
     462    my( $set_size ) = @_ >= 3 ? $_[2] : 1; 
     463    my( $call_fit ) = @_ >= 2 ? $_[1] : 1; 
     464    if( $set_size == 1 ) { 
     465         $_[0]->SetSizer( $item0 ); 
     466          
     467         if( $call_fit == 1 ) { 
     468             $item0->SetSizeHints( $_[0] ); 
     469         } 
     470    } 
     471     
     472    $item0; 
     473} 
     474 
    417475# Menu bar functions 
    418476 
  • extensions/pLoader/trunk/src/Uploader/GUI/Frame.pm

    r4719 r4727  
    9898          treeimglist 
    9999          tree_item_default 
    100           topsizer 
    101100          pwg 
    102101          logwnd 
    103102          oldlogwnd 
    104103          getting_started 
    105           notebook 
    106104          categories 
    107105          imagelist 
     
    110108          image_prop_exif 
    111109          image_prop_tags 
    112           notebook_image_properties 
    113110          global_settings_panel 
    114111          piwigo_property_list 
     
    383380            $main::CPANE_HD_ADVANCED => { label => gettext("Advanced") }, 
    384381            $main::CPANE_TRANSFERT_ADVANCED => { label => gettext("Advanced") }, 
    385             sb_thumbnail => { staticbox_label => gettext("Thumbnail") }, 
    386             sb_photo_properties => { staticbox_label => gettext("Photo properties") }, 
    387             sb_web_sized_photo => { staticbox_label => gettext("Web sized") }, 
    388             sb_high_definition_photo => { staticbox_label => gettext("High definition") }, 
    389             sb_watermark => { staticbox_label => gettext("Watermark") }, 
    390             sb_transfert => { staticbox_label => gettext("Transfert") }, 
     382            $main::GS_THUMBNAIL => { label => gettext("Thumbnail") }, 
     383            $main::GS_SITE_IMG => { label => gettext("Web sized") }, 
     384            $main::GS_HD => { label => gettext("High definition") }, 
    391385            $main::GS_CLOSE => { label => gettext("Close")}, 
    392386            $main::GS_DEFAULT_PHOTO_CAPTION => { 
     
    750744        $self->dlg_piwigo_photo_properties, 
    751745        $self->tree, 
    752         350 
     746        400 
    753747    ); 
    754748 
     
    805799                parentwnd       => $self, 
    806800                properties      => $self->exif_properties, 
    807                 caption         => gettext("Properties"), 
     801                caption         => sprintf("%s - EXIF", gettext("Properties")), 
    808802            } 
    809803        ) 
     
    817811                caption         => gettext("Global settings"), 
    818812                properties      => $self->global_settings, 
    819                 frame_callback  => sub { my ($size)=@_; }, 
    820813            } 
    821814        ) 
     
    12481241    my $dialog = Wx::FileDialog->new 
    12491242      ( $self, gettext("Select photos for upload"), $prevfile, $prevdir, 
    1250         sprintf("%s (*.jpg)|*.jpg|All(*.*)|*.*", gettext("JPEG files")), 
     1243        sprintf("%s (*.JPG)|*.JPG|(*.jpg)|*.jpg|All(*.*)|*.*", gettext("JPEG files")), 
    12511244        wxFD_OPEN|wxFD_MULTIPLE ); 
    12521245 
  • extensions/pLoader/trunk/src/Uploader/GUI/wxGlobalSettings.pm

    r4718 r4727  
    2323            wxDefaultSize 
    2424            wxDefaultPosition 
    25             wxTAB_TRAVERSAL  
    26             wxID_CANCEL 
    27             wxID_OK 
    28             wxGREEN 
    29             wxHORIZONTAL 
    3025            wxVERTICAL 
    31             wxFULL_REPAINT_ON_RESIZE 
    32             wxCLIP_CHILDREN 
    3326            wxDEFAULT_DIALOG_STYLE 
    3427            wxCAPTION 
     
    3831            wxRESIZE_BORDER 
    3932            wxSTAY_ON_TOP 
     33            wxALIGN_CENTER 
     34            wxALL 
     35            wxBK_DEFAULT 
     36            wxALIGN_CENTER_VERTICAL 
     37            wxGROW 
     38            wxALIGN_CENTER_VERTICAL 
     39            wxLI_HORIZONTAL 
     40            wxALIGN_BOTTOM 
     41            wxALIGN_CENTER_HORIZONTAL 
     42            wxBITMAP_TYPE_PNG 
     43            wxTheApp 
    4044        /; 
    4145use base qw/Wx::Dialog Uploader::GUI::DlgCommon/; 
     46use Wx::Locale qw/:default/; 
    4247use Wx::Event qw/ 
    4348            EVT_CLOSE 
     
    7580 
    7681    # load controls 
    77     &main::GlobalSettings($self); 
     82    GlobalSetting_ToolBook($self); 
    7883 
    7984    $self->properties( 
     
    8186    ); 
    8287 
    83     $self->frame_callback( 
    84         $params->{frame_callback} 
    85     ); 
    86  
    87     $self->{cpane_thumbnail} = $self->FindWindow($main::CPANE_THUMBNAIL); 
    88     $self->{cpane_resize} = $self->FindWindow($main::CPANE_RESIZE); 
    89     $self->{cpane_resize_advanced} = $self->FindWindow($main::CPANE_RESIZE_ADVANCED); 
    90     $self->{cpane_hd} = $self->FindWindow($main::CPANE_HD); 
    91     $self->{cpane_hd_advanced} = $self->FindWindow($main::CPANE_HD_ADVANCED); 
    92     $self->{cpane_watermark} = $self->FindWindow($main::CPANE_WATERMARK); 
    93     $self->{cpane_transfert_advanced} = $self->FindWindow($main::CPANE_TRANSFERT_ADVANCED); 
    9488 
    9589    $self->{gs_close} = $self->FindWindow($main::GS_CLOSE); 
     
    118112     
    119113    Wx::Event::EVT_BUTTON( $self, $self->{gs_close}, \&OnClose ); 
    120     Wx::Event::EVT_COLLAPSIBLEPANE_CHANGED( $self, $self->{cpane_thumbnail}, \&OnPaneChanged ); 
    121     Wx::Event::EVT_COLLAPSIBLEPANE_CHANGED( $self, $self->{cpane_resize}, \&OnPaneChanged ); 
    122     Wx::Event::EVT_COLLAPSIBLEPANE_CHANGED( $self, $self->{cpane_resize_advanced}, \&OnPaneChanged ); 
    123     Wx::Event::EVT_COLLAPSIBLEPANE_CHANGED( $self, $self->{cpane_hd}, \&OnPaneChanged ); 
    124     Wx::Event::EVT_COLLAPSIBLEPANE_CHANGED( $self, $self->{cpane_hd_advanced}, \&OnPaneChanged ); 
    125     Wx::Event::EVT_COLLAPSIBLEPANE_CHANGED( $self, $self->{cpane_watermark}, \&OnPaneChanged ); 
    126     Wx::Event::EVT_COLLAPSIBLEPANE_CHANGED( $self, $self->{cpane_transfert_advanced}, \&OnPaneChanged ); 
    127114 
    128115} 
     
    142129} 
    143130 
    144 sub OnPaneChanged { 
    145     my( $self, $event ) = @_; 
    146  
    147     #$self->_layout; 
    148     $event->Skip; 
    149 } 
    150  
    151 sub _layout { 
    152     my( $self ) = @_; 
    153  
    154     $self->Layout;  
    155     $self->GetSizer->Fit($self); 
    156     my $size = $self->GetSize; 
    157     $self->frame_callback->($size); 
    158  
    159 } 
    160  
    161131 
    162132sub OnDefaultPhotoCaption { 
     
    170140} 
    171141 
    172  
     142# Display prefix textfield when needed 
    173143sub _DefautPhotoCaption { 
    174144    my ( $self, $id ) = @_; 
     
    200170 
    201171    $self->{cpane_resize}->Collapse($b); 
    202     #$self->_layout; 
     172 
    203173    $event->Skip; 
    204174 
     
    219189    } 
    220190    $self->{cpane_hd}->Collapse($b); 
    221     #$self->_layout; 
     191 
    222192    $event->Skip; 
    223193} 
     
    233203 
    234204    $self->{cpane_watermark}->Collapse($b); 
    235     #$self->_layout; 
    236     $event->Skip; 
     205 
     206    $event->Skip; 
     207} 
     208 
     209 
     210sub GlobalSetting_ToolBook { 
     211    my( $parent ) = $_[0]; 
     212    my( $item0 ) = Wx::BoxSizer->new( wxVERTICAL ); 
     213     
     214    my( $item2 ) = Wx::Toolbook->new( $parent, $main::ID_NOTEBOOK, wxDefaultPosition, [-1,-1], wxBK_DEFAULT  ); 
     215    my( $item1 ) = $item2; 
     216    if( Wx->VERSION < 0.21 ) { 
     217        $item1 = Wx::NotebookSizer->new( $item2 ); 
     218    } 
     219 
     220    my $imgl = Wx::ImageList->new( 16, 16 ); 
     221 
     222    map { 
     223        $imgl->Add( 
     224            Wx::Bitmap->new( wxTheApp->resource_path($_), wxBITMAP_TYPE_PNG ) 
     225        ) 
     226    } qw/picture_edit.png pictures.png picture_key.png picture_go.png/; 
     227 
     228    $item2->AssignImageList($imgl); 
     229 
     230    my( $item3 ) = Wx::Panel->new( $item2, -1 ); 
     231    &main::GS_photo_properties( $item3, 0 ); 
     232    $item2->AddPage( $item3, gettext("Photo properties"), 0, 0 ); 
     233 
     234    my( $item4 ) = Wx::Panel->new( $item2, -1 ); 
     235    &main::GS_photo_preparation( $item4, 0 ); 
     236    $item2->AddPage( $item4, gettext("Photo size"), 0, 1 ); 
     237 
     238    my( $item5 ) = Wx::Panel->new( $item2, -1 ); 
     239    &main::GS_photo_watermark( $item5, 0 ); 
     240    $item2->AddPage( $item5, gettext("Watermark"), 0, 2 ); 
     241 
     242    my( $item6 ) = Wx::Panel->new( $item2, -1 ); 
     243    &main::GS_photo_transfer( $item6, 0 ); 
     244    $item2->AddPage( $item6, gettext("Transfer"), 0, 3 ); 
     245 
     246    $item0->Add( $item1, 0, wxALIGN_CENTER|wxALL, 5 ); 
     247 
     248    my( $item87 ) = Wx::BoxSizer->new( wxVERTICAL ); 
     249     
     250    my( $item88 ) = Wx::StaticLine->new( $parent, -1, wxDefaultPosition, [20,-1], wxLI_HORIZONTAL ); 
     251    $item87->AddWindow( $item88, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
     252 
     253    my( $item89 ) = Wx::Button->new( $parent, $main::GS_CLOSE, gettext("Close"), wxDefaultPosition, wxDefaultSize, 0 ); 
     254    $item87->AddWindow( $item89, 0, wxALIGN_BOTTOM|wxALIGN_CENTER_HORIZONTAL|wxALL, 5 ); 
     255 
     256    $item0->Add( $item87, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 
     257 
     258 
     259    my( $set_size ) = @_ >= 3 ? $_[2] : 1; 
     260    my( $call_fit ) = @_ >= 2 ? $_[1] : 1; 
     261    if( $set_size == 1 ) { 
     262         $_[0]->SetSizer( $item0 ); 
     263          
     264         if( $call_fit == 1 ) { 
     265             $item0->SetSizeHints( $_[0] ); 
     266         } 
     267    } 
     268     
     269    $item0; 
    237270} 
    238271 
Note: See TracChangeset for help on using the changeset viewer.