Ignore:
Timestamp:
02/07/10 10:46:27 (2 years ago)
Author:
azawawi
Message:

Added "Open with Default System Editor" in "File -> Open..." sub-menu. This is only implemented for Win32. Other platform implementations are welcome

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Wx/Main.pm

    r10589 r10602  
    36583658} 
    36593659 
     3660sub on_open_with_default_system_editor { 
     3661    my $self = shift; 
     3662    my $document = $self->current->document or return; 
     3663    my $filename = $document->filename or return; 
     3664 
     3665    if(Padre::Constant::WIN32) { 
     3666        # Win32 
     3667        require Padre::Util::Win32; 
     3668        Padre::Util::Win32::ExecuteProcessAndWait( 
     3669            directory  => $self->{cwd}, 
     3670            file       => $document->filename, 
     3671            parameters => '', 
     3672            show       => 1); 
     3673    } else { 
     3674        #TODO please implement for other platforms 
     3675        $self->error(Wx::gettext("Not implemented!")); 
     3676    } 
     3677} 
     3678 
    36603679sub on_open_example { 
    36613680    $_[0]->open_file_dialog( Padre::Util::sharedir('examples') ); 
Note: See TracChangeset for help on using the changeset viewer.