Changeset 10475

Show
Ignore:
Timestamp:
02/02/10 23:39:19 (6 months ago)
Author:
azawawi
Message:

No need to center-align them in various regex sizers

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Wx/Dialog/RegexEditor.pm

    r10474 r10475  
    205205 
    206206        my $regex = Wx::BoxSizer->new(Wx::wxVERTICAL); 
    207         $regex->Add( 
    208                 $self->{regex}, 
    209                 1, 
    210                 Wx::wxALL | Wx::wxALIGN_CENTER_HORIZONTAL | Wx::wxEXPAND, 
    211                 1 
    212         ); 
     207        $regex->Add( $self->{regex}, 1, Wx::wxALL | Wx::wxEXPAND, 1 ); 
    213208 
    214209        my $regex_groups = Wx::BoxSizer->new(Wx::wxVERTICAL); 
    215210        foreach my $code ( keys %regex_groups ) { 
    216                 $regex_groups->Add( $self->{$code}, 0, Wx::wxEXPAND | Wx::wxALIGN_CENTER_HORIZONTAL, 1 ); 
     211                $regex_groups->Add( $self->{$code}, 0, Wx::wxEXPAND, 1 ); 
    217212        } 
    218213 
     
    230225 
    231226        $left->Add( $substitute_label, 0, Wx::wxALL | Wx::wxEXPAND, 1 ); 
    232         $left->Add( 
    233                 $self->{substitute}, 
    234                 1, 
    235                 Wx::wxALL | Wx::wxALIGN_CENTER_HORIZONTAL | Wx::wxEXPAND, 
    236                 1 
    237         ); 
    238  
     227        $left->Add( $self->{substitute},  1, Wx::wxALL | Wx::wxEXPAND, 1 ); 
    239228 
    240229        $left->Add( $original_label, 0, Wx::wxALL | Wx::wxEXPAND, 1 ); 
    241         $left->Add( 
    242                 $self->{original_text}, 
    243                 1, 
    244                 Wx::wxALL | Wx::wxALIGN_CENTER_HORIZONTAL | Wx::wxEXPAND, 
    245                 1 
    246         ); 
     230        $left->Add( $self->{original_text}, 1, Wx::wxALL | Wx::wxEXPAND, 1 ); 
    247231        $left->Add( $matched_label, 0, Wx::wxALL | Wx::wxEXPAND, 1 ); 
    248         $left->Add( 
    249                 $self->{matched_text}, 
    250                 1, 
    251                 Wx::wxALL | Wx::wxALIGN_CENTER_HORIZONTAL | Wx::wxEXPAND, 
    252                 1 
    253         ); 
     232        $left->Add( $self->{matched_text}, 1, Wx::wxALL | Wx::wxEXPAND, 1 ); 
    254233        $left->AddSpacer(5); 
    255234        $left->Add( $self->{close_button}, 0, Wx::wxALIGN_CENTER_HORIZONTAL, 1 );