Changeset 4727 for extensions/pLoader/trunk/res
- Timestamp:
- Jan 23, 2010, 11:59:18 AM (15 years ago)
- Location:
- extensions/pLoader/trunk/res
- Files:
-
- 4 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/pLoader/trunk/res/global_settings_wdr.pl
r4718 r4727 17 17 use Wx qw( wxVERTICAL wxHORIZONTAL wxALL wxLEFT wxRIGHT wxTOP wxBOTTOM wxCENTRE wxGROW ); 18 18 use Wx qw( wxALIGN_RIGHT wxALIGN_BOTTOM wxALIGN_CENTER wxALIGN_CENTER_VERTICAL wxALIGN_CENTER_HORIZONTAL ); 19 use Wx qw( wxST_NO_AUTORESIZE wxLI_HORIZONTAL);19 use Wx qw( wxST_NO_AUTORESIZE ); 20 20 21 21 # Bitmap functions … … 32 32 use vars qw($GS_DEFAULT_AUTHOR); $GS_DEFAULT_AUTHOR = 10005; 33 33 use 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 35 sub GS_photo_properties { 92 36 my( $parent ) = $_[0]; 93 37 my( $item0 ) = Wx::BoxSizer->new( wxVERTICAL ); 94 38 95 my( $item2 ) = Wx::StaticBox->new( $parent, -1, " Text" );39 my( $item2 ) = Wx::StaticBox->new( $parent, -1, "" ); 96 40 my( $item1 ) = Wx::StaticBoxSizer->new( $item2, wxVERTICAL ); 97 41 $parent->{sb_photo_properties} = $item1; … … 135 79 136 80 $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 );403 81 404 82 my( $set_size ) = @_ >= 3 ? $_[2] : 1; … … 415 93 } 416 94 95 use vars qw($GS_THUMBNAIL); $GS_THUMBNAIL = 10007; 96 use vars qw($CPANE_THUMBNAIL); $CPANE_THUMBNAIL = 10008; 97 use vars qw($THUMBNAIL_SIZE); $THUMBNAIL_SIZE = 10009; 98 use vars qw($GS_THUMBNAIL_SIZE); $GS_THUMBNAIL_SIZE = 10010; 99 use vars qw($THUMBNAIL_JPEG_QUALITY); $THUMBNAIL_JPEG_QUALITY = 10011; 100 use vars qw($GS_THUMBNAIL_JPEG_QUALITY); $GS_THUMBNAIL_JPEG_QUALITY = 10012; 101 use vars qw($GS_SITE_IMG); $GS_SITE_IMG = 10013; 102 use vars qw($GS_CREATE_RESIZED); $GS_CREATE_RESIZED = 10014; 103 use vars qw($CPANE_RESIZE); $CPANE_RESIZE = 10015; 104 use vars qw($SITE_IMG_WIDTH); $SITE_IMG_WIDTH = 10016; 105 use vars qw($GS_SITE_IMG_WIDTH); $GS_SITE_IMG_WIDTH = 10017; 106 use vars qw($SITE_IMG_HEIGHT); $SITE_IMG_HEIGHT = 10018; 107 use vars qw($GS_SITE_IMG_HEIGHT); $GS_SITE_IMG_HEIGHT = 10019; 108 use vars qw($SITE_IMG_JPEG_QUALITY); $SITE_IMG_JPEG_QUALITY = 10020; 109 use vars qw($GS_SITE_IMG_JPEG_QUALITY); $GS_SITE_IMG_JPEG_QUALITY = 10021; 110 use vars qw($CPANE_RESIZE_ADVANCED); $CPANE_RESIZE_ADVANCED = 10022; 111 use vars qw($SITE_IMG_FILTER); $SITE_IMG_FILTER = 10023; 112 use vars qw($GS_SITE_IMG_FILTER); $GS_SITE_IMG_FILTER = 10024; 113 use vars qw($SITE_IMG_BLUR); $SITE_IMG_BLUR = 10025; 114 use vars qw($GS_SITE_IMG_BLUR); $GS_SITE_IMG_BLUR = 10026; 115 use vars qw($SITE_IMG_INTERLACE); $SITE_IMG_INTERLACE = 10027; 116 use vars qw($GS_SITE_IMG_INTERLACE); $GS_SITE_IMG_INTERLACE = 10028; 117 use vars qw($GS_HD); $GS_HD = 10029; 118 use vars qw($GS_HD_UPLOAD); $GS_HD_UPLOAD = 10030; 119 use vars qw($CPANE_HD); $CPANE_HD = 10031; 120 use vars qw($HD_IMG_WIDTH); $HD_IMG_WIDTH = 10032; 121 use vars qw($GS_HD_IMG_WIDTH); $GS_HD_IMG_WIDTH = 10033; 122 use vars qw($HD_IMG_HEIGHT); $HD_IMG_HEIGHT = 10034; 123 use vars qw($GS_HD_IMG_HEIGHT); $GS_HD_IMG_HEIGHT = 10035; 124 use vars qw($HD_IMG_JPEG_QUALITY); $HD_IMG_JPEG_QUALITY = 10036; 125 use vars qw($GS_HD_IMG_JPEG_QUALITY); $GS_HD_IMG_JPEG_QUALITY = 10037; 126 use vars qw($CPANE_HD_ADVANCED); $CPANE_HD_ADVANCED = 10038; 127 use vars qw($HD_IMG_FILTER); $HD_IMG_FILTER = 10039; 128 use vars qw($GS_HD_IMG_FILTER); $GS_HD_IMG_FILTER = 10040; 129 use vars qw($HD_IMG_BLUR); $HD_IMG_BLUR = 10041; 130 use vars qw($GS_HD_IMG_BLUR); $GS_HD_IMG_BLUR = 10042; 131 use vars qw($HD_IMG_INTERLACE); $HD_IMG_INTERLACE = 10043; 132 use vars qw($GS_HD_IMG_INTERLACE); $GS_HD_IMG_INTERLACE = 10044; 133 134 sub 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 331 use vars qw($GS_WMARK_ACTIVATE); $GS_WMARK_ACTIVATE = 10045; 332 use vars qw($GS_WMARK_ACTIVATE_HD); $GS_WMARK_ACTIVATE_HD = 10046; 333 use vars qw($CPANE_WATERMARK); $CPANE_WATERMARK = 10047; 334 use vars qw($WMARK_TEXT); $WMARK_TEXT = 10048; 335 use vars qw($GS_WMARK_TEXT); $GS_WMARK_TEXT = 10049; 336 use vars qw($WMARK_TEXT_SIZE); $WMARK_TEXT_SIZE = 10050; 337 use vars qw($GS_WMARK_TEXT_SIZE); $GS_WMARK_TEXT_SIZE = 10051; 338 use vars qw($WMARK_COLOR); $WMARK_COLOR = 10052; 339 use vars qw($GS_WMARK_COLOR); $GS_WMARK_COLOR = 10053; 340 use vars qw($WMARK_POSITION); $WMARK_POSITION = 10054; 341 use vars qw($GS_WMARK_POSITION); $GS_WMARK_POSITION = 10055; 342 use vars qw($WMARK_MARGIN_TOP); $WMARK_MARGIN_TOP = 10056; 343 use vars qw($GS_WMARK_MARGIN_TOP); $GS_WMARK_MARGIN_TOP = 10057; 344 use vars qw($WMARK_MARGIN_LEFT); $WMARK_MARGIN_LEFT = 10058; 345 use vars qw($GS_WMARK_MARGIN_LEFT); $GS_WMARK_MARGIN_LEFT = 10059; 346 347 sub 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 427 use vars qw($GS_REMOVE_UPLOADED_FROM_SELECTION); $GS_REMOVE_UPLOADED_FROM_SELECTION = 10060; 428 use vars qw($CPANE_TRANSFERT_ADVANCED); $CPANE_TRANSFERT_ADVANCED = 10061; 429 use vars qw($CHUNK_SIZE); $CHUNK_SIZE = 10062; 430 use vars qw($GS_CHUNK_SIZE); $GS_CHUNK_SIZE = 10063; 431 432 sub 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 417 475 # Menu bar functions 418 476
Note: See TracChangeset
for help on using the changeset viewer.