Last change
on this file since 3361 was
3361,
checked in by ronosman, 15 years ago
|
Feature 1012. Fix missing file for rev 3357.
|
-
Property svn:eol-style set to
LF
|
File size:
788 bytes
|
Line | |
---|
1 | package Uploader::GUI::wxImagePreview; |
---|
2 | use strict; |
---|
3 | use Wx qw/ |
---|
4 | wxID_ANY |
---|
5 | wxDefaultPosition |
---|
6 | wxDefaultSize |
---|
7 | wxVERTICAL |
---|
8 | wxALIGN_CENTER |
---|
9 | wxALL |
---|
10 | wxNullBitmap |
---|
11 | |
---|
12 | /; |
---|
13 | use base qw/Wx::Panel/; |
---|
14 | |
---|
15 | sub new { |
---|
16 | my ( $class, $parentwnd, $bitmap, $width, $height ) = @_; |
---|
17 | |
---|
18 | my $self = $class->SUPER::new( $parentwnd, wxDefaultPosition, [$width, $height] ); |
---|
19 | |
---|
20 | |
---|
21 | # $self->{bitmap} = Wx::StaticBitmap->new( $self, -1, wxNullBitmap, wxDefaultPosition, [$width, $height] ); |
---|
22 | $self->{bitmap} = Wx::StaticBitmap->new( $self, -1, wxNullBitmap, wxDefaultPosition, wxDefaultSize ); |
---|
23 | |
---|
24 | $self; |
---|
25 | } |
---|
26 | |
---|
27 | sub SetBitmap { |
---|
28 | my ( $self, $bitmap ) = @_; |
---|
29 | |
---|
30 | $self->{bitmap}->SetBitmap($bitmap); |
---|
31 | } |
---|
32 | |
---|
33 | 1; |
---|
Note: See
TracBrowser
for help on using the repository browser.