Ignore:
Timestamp:
Dec 30, 2009, 10:52:22 PM (14 years ago)
Author:
ronosman
Message:

Bug fixes for new global settings dialog box.

File:
1 edited

Legend:

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

    r4573 r4589  
    105105          image_prop_tags
    106106          notebook_image_properties
    107           notebook_global_settings
    108107          global_settings_panel
    109108          piwigo_property_list
     
    426425                choices =>
    427426                [
    428                     map { gettext $_ } ( "Use resized original", "Use original" )
     427                    map { gettext $_ } ( "Use original", "Use resized original" )
    429428                ],
    430429                frame_callback => sub {
     
    450449            $main::SITE_IMG_FILTER => { label => gettext("Site image filter") },
    451450            $main::GS_SITE_IMG_FILTER => {
    452                 selection =>  sub { $self->imagelist->filter(@_) },
     451                string_selection =>  sub { $self->imagelist->filter(@_) },
    453452                choices =>
    454453                [
     
    463462            $main::SITE_IMG_INTERLACE => { label => gettext("Site image interlace") },
    464463            $main::GS_SITE_IMG_INTERLACE => {
    465                 selection => sub { $self->imagelist->interlace(@_) },
     464                string_selection => sub { $self->imagelist->interlace(@_) },
    466465                choices =>
    467466                [
     
    504503            $main::HD_IMG_FILTER => { label => gettext("HD image filter") },
    505504            $main::GS_HD_IMG_FILTER => {
    506                 selection =>  sub { $self->imagelist->hd_filter(@_) },
     505                string_selection =>  sub { $self->imagelist->hd_filter(@_) },
    507506                choices =>
    508507                [
     
    517516            $main::HD_IMG_INTERLACE => { label => gettext("HD image interlace") },
    518517            $main::GS_HD_IMG_INTERLACE => {
    519                 selection => sub { $self->imagelist->hd_interlace(@_) },
     518                string_selection => sub { $self->imagelist->hd_interlace(@_) },
    520519                choices =>
    521520                [
     
    709708
    710709    if( $self->imagelist->wx_thumb_imglist->GetImageCount){
    711         printf("%s images\n", $self->imagelist->wx_thumb_imglist->GetImageCount);
     710        #printf("%s images\n", $self->imagelist->wx_thumb_imglist->GetImageCount);
    712711        $self->ShowImageViewer;
    713712       
     
    756755                parentwnd       => $self,
    757756                properties      => $self->global_settings,
     757                frame_callback  => sub { my ($size)=@_;
     758                    $self->manager->GetPane("global_settings")->FloatingSize(
     759                        [
     760                            $size->GetWidth,
     761                            40+ $size->GetHeight
     762                        ]
     763                    );
     764                    $self->manager->Update
     765                },
    758766            }
    759767        )
     
    934942        $self->global_settings_panel,
    935943        Wx::AuiPaneInfo->new->Name( "global_settings" )
    936         ->DefaultPane->CloseButton(1)->MinSize([720, 620])->Float->Hide );
     944        ->Floatable(1)->Dockable(0)->CloseButton(1)->Float->Hide );
    937945
    938946}
Note: See TracChangeset for help on using the changeset viewer.