Changeset 5380


Ignore:
Timestamp:
06/19/09 22:27:46 (3 years ago)
Author:
azawawi
Message:

[Perl 6] Removed the excessive use of menu separators and organizing the menu a bit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre-Plugin-Perl6/lib/Padre/Plugin/Perl6.pm

    r5378 r5380  
    136136    ); 
    137137 
    138     $self->{menu}->AppendSeparator; 
    139      
    140     # Perl6 S29 documentation 
    141     Wx::Event::EVT_MENU( 
    142         $main, 
    143         $self->{menu}->Append( -1, Wx::gettext("Show Perl 6 Help\tF2"), ), 
    144         sub { $self->show_perl6_doc; }, 
    145     ); 
    146  
    147     $self->{menu}->AppendSeparator; 
    148  
    149138    # Toggle Auto Perl6 syntax highlighting 
    150139    $self->{p6_highlight} = 
     
    157146    $self->{p6_highlight}->Check($config->{p6_highlight} ? 1 : 0); 
    158147 
    159     $self->{menu}->AppendSeparator; 
    160  
    161148    # Export into HTML 
    162149    my $export_menu = Wx::Menu->new(); 
     
    182169    ); 
    183170 
    184     $self->{menu}->AppendSeparator; 
    185  
    186171    # Generate Perl 6 Executable 
    187172    Wx::Event::EVT_MENU( 
     
    198183    ); 
    199184     
    200     $self->{menu}->AppendSeparator; 
    201  
    202185    # Cleanup STD.pm lex cache 
    203186    Wx::Event::EVT_MENU( 
     
    207190    ); 
    208191 
    209     $self->{menu}->AppendSeparator; 
     192    # Perl6 S29 documentation 
     193    Wx::Event::EVT_MENU( 
     194        $main, 
     195        $self->{menu}->Append( -1, Wx::gettext("Show Perl 6 Help\tF2"), ), 
     196        sub { $self->show_perl6_doc; }, 
     197    ); 
    210198 
    211199    # Preferences 
     
    215203        sub { $self->show_preferences; }, 
    216204    ); 
    217  
    218     $self->{menu}->AppendSeparator; 
    219205 
    220206    # the famous about menu item... 
Note: See TracChangeset for help on using the changeset viewer.