Changeset 3374


Ignore:
Timestamp:
05/30/09 13:41:26 (10 years ago)
Author:
ronosman
Message:

Feature 1019 added : limit preview refresh to single selection.

File:
1 edited

Legend:

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

    r3373 r3374  
    343343          imageviewer_mnu 
    344344          tree_mnu 
     345          imageviewer_select_multi 
    345346      /; 
    346347__PACKAGE__->mk_accessors( @properties ); 
     
    16091610 
    16101611    $self->_on_imageviewer_item_selected($indx); 
    1611     # retrieve photo info for the last selected photo 
     1612 
    16121613    $event->Skip; 
    16131614} 
     
    16221623        $self->imageviewer->GetSelectedItems 
    16231624    ); 
     1625 
     1626    $self->_image_preview_refresh if @{$self->imagelist->image_selection} < 2; 
     1627     
     1628    $self->manager->Update; 
     1629     
     1630    $self->image_prop_piwigo->Refresh; 
     1631    $self->image_prop_exif->Refresh; 
     1632 
     1633} 
     1634 
     1635sub _image_preview_refresh { 
     1636    my ( $self ) = @_;   
    16241637 
    16251638    $self->image_preview->SetBitmap( 
     
    16431656     
    16441657    $self->image_preview->Refresh; 
    1645      
    1646     $self->manager->Update; 
    1647      
    1648     $self->image_prop_piwigo->Refresh; 
    1649     $self->image_prop_exif->Refresh; 
    1650  
    16511658} 
    16521659 
     
    16581665         
    16591666        my $index = $self->current_imageviewer_index < $self->imageviewer->GetItemCount ? 
    1660             $self->current_imageviewer_index : $self->current_imageviewer_index -1 ; 
     1667            $self->current_imageviewer_index : $self->imageviewer->GetItemCount -1 ; 
    16611668        $self->imageviewer->SelectItem( 
    16621669            $index 
    16631670        ); 
    16641671    }    
     1672 
    16651673} 
    16661674 
Note: See TracChangeset for help on using the changeset viewer.