- Timestamp:
- Jan 28, 2010, 10:46:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/pLoader/trunk/src/Uploader/GUI/wxPhotoProperties.pm
r4779 r4784 30 30 use base qw/Wx::Panel Uploader::GUI::DlgCommon/; 31 31 use Wx::Event qw/ 32 EVT_UPDATE_UI33 32 EVT_BUTTON 34 33 EVT_CLOSE … … 46 45 # load controls 47 46 eval { 48 &main::PhotoProperties($self, $params->{tags});47 &main::PhotoPropertiesCategoriesTags($self, $params->{tags}); 49 48 50 $self->properties( 51 $params->{properties} 49 $self->_initNotebook($params->{tags}); 50 51 52 $self->properties( 53 $params->{properties} 52 54 ); 53 55 54 56 $self->InitLabels(); 55 57 $self->InitChoices(); 56 58 $self->SetProperties(); 57 59 $self->InitHandler(); 58 60 $self->_initEventHandlers(); 59 61 60 if($@){ 61 Wx::LogMessage("Error during dialogbox initialization"); 62 } 63 }; 62 if($@){ 63 Wx::LogMessage("Error during dialogbox initialization"); 64 } 65 }; 66 64 67 65 68 $self; … … 74 77 EVT_CLOSE( $self, \&OnClose ); 75 78 76 79 } 80 81 82 sub _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 77 97 } 78 98
Note: See TracChangeset
for help on using the changeset viewer.