Ignore:
Timestamp:
Jan 28, 2010, 10:46:57 PM (14 years ago)
Author:
ronosman
Message:

Feature 1414 added : new improved layout for photo properties panel.

File:
1 edited

Legend:

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

    r4779 r4784  
    3030use base qw/Wx::Panel Uploader::GUI::DlgCommon/;
    3131use Wx::Event qw/
    32                     EVT_UPDATE_UI
    3332                    EVT_BUTTON
    3433                    EVT_CLOSE
     
    4645    # load controls
    4746    eval {
    48       &main::PhotoProperties($self, $params->{tags});
     47        &main::PhotoPropertiesCategoriesTags($self, $params->{tags});
    4948
    50             $self->properties(
    51             $params->{properties}
     49        $self->_initNotebook($params->{tags});
     50
     51
     52        $self->properties(
     53            $params->{properties}
    5254        );
    5355
    5456        $self->InitLabels();
    55                 $self->InitChoices();
     57        $self->InitChoices();
    5658        $self->SetProperties();
    57                 $self->InitHandler();
     59        $self->InitHandler();
    5860        $self->_initEventHandlers();
    5961
    60                 if($@){
    61                         Wx::LogMessage("Error during dialogbox initialization");
    62                 }
    63         };
     62        if($@){
     63            Wx::LogMessage("Error during dialogbox initialization");
     64        }
     65    };
     66
    6467
    6568    $self;   
     
    7477    EVT_CLOSE( $self, \&OnClose );
    7578   
    76        
     79}
     80
     81
     82sub _initNotebook{
     83    my ( $self, $tags ) = @_;
     84
     85    my $nb = $self->FindWindow(
     86        $main::PHOTO_PROPERTIES_NB
     87    );
     88
     89    my( $page1 ) = Wx::Panel->new( $nb, -1 );
     90    &main::photo_properties_caption_comments( $page1, 0 );
     91    $nb->AddPage( $page1, "Photo informations" );
     92
     93    my( $page2 ) = Wx::Panel->new( $nb, -1 );
     94    &main::photo_properties_tags( $page2, $tags );
     95    $nb->AddPage( $page2, "Tags" );
     96
    7797}
    7898
Note: See TracChangeset for help on using the changeset viewer.