Ignore:
Timestamp:
Jan 21, 2010, 11:36:13 PM (14 years ago)
Author:
ronosman
Message:

Feature 1389 added : remove AUI docking manager

File:
1 edited

Legend:

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

    r4322 r4718  
    2525         /;
    2626use Wx::Locale qw/:default/;
    27 use base qw/Wx::Grid Uploader::Object2/;
     27use base qw/Wx::Dialog Uploader::Object2/;
    2828
    2929use Wx::Event qw/
     
    3636        editor
    3737        properties
     38        grid
    3839      /
    3940);
     
    4748
    4849
    49     my $self = $class->SUPER::new( $params->{parentwnd}, -1, wxDefaultPosition, wxDefaultSize );
     50    my $self = $class->SUPER::new( undef, -1, "PropertyGrid", wxDefaultPosition, wxDefaultSize );
     51    $self->grid(
     52        Wx::Grid->new($self, -1, wxDefaultPosition, wxDefaultSize)
     53    );
    5054
    5155    $self->renderer(
     
    7579    $self->Initialize;
    7680     
    77     EVT_GRID_CMD_CELL_CHANGE( $self, $self, \&OnCellChanged );
     81    EVT_GRID_CMD_CELL_CHANGE( $self, $self->grid, \&OnCellChanged );
    7882    $self;   
    7983}
     
    8387
    8488
    85   $self->CreateGrid( scalar @{$self->properties}, 2 );
     89  $self->grid->CreateGrid( scalar @{$self->properties}, 2 );
    8690 
    8791
    88   $self->SetRowLabelSize(0);
    89   $self->SetColLabelSize(0);
    90   $self->SetColSize( 0, 200 );
    91   $self->SetColSize( 1, 200 );
     92  $self->grid->SetRowLabelSize(0);
     93  $self->grid->SetColLabelSize(0);
     94  $self->grid->SetColSize( 0, 200 );
     95  $self->grid->SetColSize( 1, 200 );
    9296 
    9397  $self->_init_property_grid();
     
    98102    my ( $self ) = @_;
    99103   
    100     $self->ClearGrid;
     104    $self->grid->ClearGrid;
    101105
    102106    my $row = 0;
     
    104108        eval {
    105109
    106             $self->SetCellValue(
     110            $self->grid->SetCellValue(
    107111                $row,
    108112                0,
     
    111115
    112116
    113             $self->SetCellValue(
     117            $self->grid->SetCellValue(
    114118                $row,
    115119                1,
     
    132136    map {
    133137        eval {
    134             $self->SetCellEditor(
     138            $self->grid->SetCellEditor(
    135139                $row,
    136140                1,
     
    142146            ) if $self->editor->{$_->{type}};
    143147
    144             $self->SetCellRenderer(
     148            $self->grid->SetCellRenderer(
    145149                $row,
    146150                1,
     
    152156            ) if $self->renderer->{$_->{type}};
    153157
    154             $self->SetReadOnly(
     158            $self->grid->SetReadOnly(
    155159                $row,
    156160                0,
    157161            );
    158162
    159             $self->SetCellValue(
     163            $self->grid->SetCellValue(
    160164                $row,
    161165                0,
     
    163167            ); 
    164168
    165             $self->SetCellValue(
     169            $self->grid->SetCellValue(
    166170                $row,
    167171                1,
     
    169173            ); 
    170174
    171             $self->SetReadOnly(
     175            $self->grid->SetReadOnly(
    172176                $row,
    173177                1,
     
    189193    );
    190194   
    191     my $value = $self->GetCellValue(
     195    my $value = $self->grid->GetCellValue(
    192196        $row,
    193197        $col,
Note: See TracChangeset for help on using the changeset viewer.