Changeset 4467 for extensions/pLoader/trunk/src/Uploader/GUI/wxFrameAUI.pm
- Timestamp:
- Dec 10, 2009, 3:21:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/pLoader/trunk/src/Uploader/GUI/wxFrameAUI.pm
r4422 r4467 148 148 use Uploader::GUI::wxImageProcessingProgressDlg; 149 149 use Uploader::GUI::wxChoiceFilteredPanel; 150 use Uploader::GUI::wxImageReuploadDlg; 150 151 use Wx::Html; 151 152 use Uploader::GUI::wxImagePreview; … … 155 156 use Storable; 156 157 use Uploader::GUI::wxPropertyGridPanel; 158 use Uploader::GUI::wxPhotoProperties; 157 159 use utf8; 158 160 $|=1; … … 206 208 sub { $self->UploadImagesViewerRefresh(@_) } 207 209 ); 210 211 $self->imagelist->ReuploadCallback( 212 sub { 213 Uploader::GUI::wxImageReuploadDlg->new( 214 { 215 title => gettext("Photo update management"), 216 properties => { 217 $main::ID_REUPLOAD_ACTION_FILES => { 218 selection=>sub {$self->imagelist->reupload_action_files(@_)}, 219 label=>gettext("What shall we do with files? (thumbnail, resized, high resolution)"), 220 labels=>[ 221 gettext("nothing"), 222 gettext("replace"), 223 ], 224 }, 225 $main::ID_REUPLOAD_ACTION_PROPERTIES => { 226 selection=>sub{$self->imagelist->reupload_action_properties(@_)}, 227 label=>gettext("What shall we do with single value properties?(caption, comment, author, create date)"), 228 labels=>[ 229 gettext("nothing"), 230 gettext("fill if empty (only replace properties currently empty in Piwigo)"), 231 gettext("replace"), 232 ], 233 }, 234 $main::ID_REUPLOAD_ACTION_PROPERTIES_M => { 235 selection=>sub{$self->imagelist->reupload_action_properties_m(@_)}, 236 label=>gettext("What shall we do with multiple values properties? (categories, tags)"), 237 labels=>[ 238 gettext("nothing"), 239 gettext("append (keep existing and add new)"), 240 gettext("replace"), 241 ], 242 }, 243 $main::ID_REUPLOAD_NOT_ASK => { 244 value=>sub{$self->imagelist->reupload_not_ask(@_)}, 245 label=>gettext("Do not ask me again"), 246 }, 247 $main::ID_REUPLOAD_TEXT => { 248 label=>gettext("A least one photo has already been added in the past."), 249 }, 250 }, 251 } 252 )->ShowModal(); 253 } 254 ); 208 255 209 256 … … 277 324 sub _set_setting_properties { 278 325 my ( $self ) = @_; 326 279 327 280 328 $self->piwigo_properties( … … 607 655 } 608 656 ( 609 657 $self->image_prop_piwigo, 610 658 $self->image_prop_exif, 611 659 $self->image_prop_tags, … … 663 711 sub _refresh_settings_panels_properties { 664 712 my ( $self ) = @_; 665 713 666 714 $self->image_prop_piwigo->properties( 667 715 $self->piwigo_properties … … 701 749 sub _init_settings_panels { 702 750 my ( $self ) = @_; 751 703 752 704 753 $self->image_prop_piwigo( … … 868 917 ->CenterPane->Resizable->CloseButton(0) ); 869 918 919 870 920 $self->manager->AddPane( 871 921 $self->create_tree, … … 1079 1129 [ 1080 1130 $self->hd_settings_panel, 1081 gettext("H D"),1131 gettext("High definition"), 1082 1132 ], 1083 1133 [ … … 1745 1795 my ( $self ) = @_; 1746 1796 1797 1747 1798 $self->imageviewer->Refresh; 1799 1800 $self->image_preview->image( 1801 0 1802 ) if !$self->imageviewer->GetItemCount; 1803 1804 1805 $self->image_preview->Refresh; 1748 1806 Wx::Yield(); 1749 1807 } … … 1841 1899 1842 1900 my $wximagelist = $self->imagelist->wx_thumb_imglist; 1843 print Dumper "SetNewFilesViewerRefresh", $self->imagelist->current_image;1901 #print Dumper "SetNewFilesViewerRefresh", $self->imagelist->current_image; 1844 1902 my $indx = $wximagelist->Add( 1845 1903 Wx::Bitmap->new(
Note: See TracChangeset
for help on using the changeset viewer.