Ignore:
Timestamp:
Mar 30, 2010, 2:29:37 PM (14 years ago)
Author:
ronosman
Message:

Feature 1554 added : use caption as prefix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/pLoader/trunk/src/Uploader/GUI/Frame.pm

    r5447 r5472  
    305305                    $self->imagelist->current_image->site_name;
    306306                },
    307                 pre_process => sub { sub { $self->imagelist->GetCurrentImageDefaultName(@_); } },
     307                pre_process => sub { sub { $self->imagelist->GetCurrentImageCaption(@_); } },
    308308                choices =>
    309309                [
    310                     map { gettext $_ } @{wxTheApp->default_photo_names}
     310                    map { gettext $_ } @{wxTheApp->caption_patterns}
    311311                ],
    312312                frame_callback => sub { $self->imageviewer_item_refresh(1); },
     
    361361    $self->global_settings(
    362362        {
    363             $main::DEFAULT_PHOTO_CAPTION => { label => gettext("Default photo caption") },
     363            $main::DEFAULT_PHOTO_CAPTION => { label => gettext("Default caption pattern") },
    364364            $main::CPANE_RESIZE_ADVANCED => { label => gettext("Advanced") },
    365365            $main::CPANE_HD_ADVANCED => { label => gettext("Advanced") },
     
    370370            $main::GS_CLOSE => { label => gettext("Close")},
    371371            $main::GS_DEFAULT_PHOTO_CAPTION => {
    372                 string_selection => sub { $self->imagelist->default_photo_name(@_) },
     372                string_selection => sub { $self->imagelist->default_caption_pattern(@_) },
    373373                choices =>
    374374                [
    375                     map { gettext $_ } @{wxTheApp->default_photo_names}
     375                    map { gettext $_ } @{wxTheApp->caption_patterns}
    376376                ],
    377                 pre_process => sub { my ( $value ) = @_; wxTheApp->eng_default_photo_names->{$value} },
     377                pre_process => sub { my ( $value ) = @_; wxTheApp->eng_caption_patterns->{$value} },
    378378                frame_callback => sub {
    379379                    my( $self, $ctrl, $event ) = @_;
     
    381381                },
    382382            },
    383             $main::PHOTO_CAPTION_PREFIX => { label => gettext("Photo caption  prefix") },
     383            $main::PHOTO_CAPTION_PREFIX => { label => gettext("Default caption") },
    384384            $main::GS_PHOTO_CAPTION_PREFIX => {
    385                 value => sub { $self->imagelist->default_name_prefix(@_) },
     385                value => sub { $self->imagelist->default_caption(@_) },
    386386            },
    387387            $main::GS_AUTO_ROTATE => {
     
    895895
    896896
    897 sub OnDefaultPhotoNameChanged {
    898     my ( $self ) = @_;
    899    
    900     Wx::LogMessage("New default_photo_name %s", $self->imagelist->default_photo_name);   
    901 }
    902 
    903 
    904897sub OnGeneralSettingsClose {
    905898    my ( $self, $event ) = @_;
     
    10731066    Wx::Event::EVT_BUTTON( $self, $main::PHOTO_PROPERTIES_UPLOAD, \&OnUploadImages );
    10741067    Wx::Event::EVT_BUTTON( $self, $self->imageviewer->add_button->GetId, \&OnAddImages );
    1075 
     1068    Wx::Event::EVT_KEY_DOWN($self, \&OnKeyDown );
    10761069
    10771070    # only refresh when calling event is finished
     
    15131506
    15141507}
     1508
    15151509
    15161510sub OnUploadImages {
Note: See TracChangeset for help on using the changeset viewer.