Ignore:
Timestamp:
Apr 1, 2010, 4:23:43 PM (14 years ago)
Author:
ronosman
Message:

Refactor multiselection mode display.

File:
1 edited

Legend:

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

    r5391 r5537  
    3333                    EVT_CLOSE
    3434                /;
    35 
     35use Wx::Locale qw/:default/;
    3636use Carp;
    3737use Data::Dumper;
     
    119119}
    120120
     121
     122sub SetEnabled {
     123    my ( $self ) = @_;
     124
     125    $self->{_properties_notebook}->Enable(1);
     126}
     127
     128sub SetDisabled {
     129    my ( $self ) = @_;
     130
     131    $self->{_properties_notebook}->Enable(0);
     132}
     133
     134sub IsEnabled {
     135    my ( $self ) = @_;
     136
     137    $self->{_properties_notebook}->IsEnabled;
     138}
     139
     140
     141sub SetMultiSelectionMode {
     142    my ( $self, $count ) = @_;
     143
     144    $self->{_multi_selection_mode_panel}{_text1}->SetLabel(
     145        sprintf(gettext("You have selected a batch of %s photos"), $count )
     146    );
     147
     148    $self->{_multi_selection_mode_panel}{_text2}->SetLabel(
     149        gettext("Changes apply to the whole batch")
     150    );
     151
     152    $self->{_multi_selection_mode_panel}->Show(1);
     153    $self->Layout;
     154}
     155
     156
     157sub SetSingleSelectionMode {
     158    my ( $self ) = @_;
     159
     160    $self->{_multi_selection_mode_panel}->Show(0);
     161    $self->Layout;
     162}
    1211631;
Note: See TracChangeset for help on using the changeset viewer.