Changeset 9640
- Timestamp:
- 12/12/09 07:46:46 (2 years ago)
- Location:
- trunk/Padre/lib/Padre
- Files:
-
- 4 edited
-
Document/Perl.pm (modified) (1 diff)
-
Wx/Dialog/OpenResource.pm (modified) (3 diffs)
-
Wx/Editor.pm (modified) (3 diffs)
-
Wx/Main.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre/Document/Perl.pm
r9630 r9640 1336 1336 1337 1337 my $key = $event->GetUnicodeKey; 1338 1338 1339 1339 my $pos = $editor->GetCurrentPos; 1340 1340 my $line = $editor->LineFromPosition($pos); -
trunk/Padre/lib/Padre/Wx/Dialog/OpenResource.pm
r9638 r9640 62 62 #Check if we have an open file so we can use its directory 63 63 my $doc = $self->_main->current->document; 64 my $filename = ( defined $doc ) ? $doc->filename : undef;64 my $filename = ( defined $doc ) ? $doc->filename : undef; 65 65 my $dir; 66 66 if ($filename) { … … 74 74 $dir = Cwd::getcwd(); 75 75 } 76 77 76 77 78 78 my $old_dir = $self->_directory; 79 if($old_dir && $old_dir ne $dir) { 79 if ( $old_dir && $old_dir ne $dir ) { 80 80 81 # Restart search if the project/current directory is different 81 82 $self->_matched_files(undef); … … 83 84 84 85 $self->_directory($dir); 85 $self->SetLabel( Wx::gettext('Open Resource') . ' - ' . $dir );86 $self->SetLabel( Wx::gettext('Open Resource') . ' - ' . $dir ); 86 87 } 87 88 -
trunk/Padre/lib/Padre/Wx/Editor.pm
r9632 r9640 91 91 # Setup EVT_KEY_UP for smart highlighting and non-destructive CTRL-L 92 92 Wx::Event::EVT_KEY_UP( $self, \&on_key_up ); 93 93 94 94 if ( $config->editor_wordwrap ) { 95 95 $self->SetWrapMode(Wx::wxSTC_WRAP_WORD); … … 208 208 $self->CmdKeyExecute(Wx::wxSTC_CMD_LINEDELETE); 209 209 } 210 $event->Skip(0); # done processing this nothing more to do210 $event->Skip(0); # done processing this nothing more to do 211 211 return; 212 212 } … … 217 217 } 218 218 219 $event->Skip(1); # we need to keep processing this event220 219 $event->Skip(1); # we need to keep processing this event 220 221 221 } 222 222 -
trunk/Padre/lib/Padre/Wx/Main.pm
r9633 r9640 5171 5171 my $code = $event->GetKeyCode; 5172 5172 5173 5173 5174 5174 # Remove the bit ( Wx::wxMOD_META) set by Num Lock being pressed on Linux 5175 5175 # () needed after the constants as they are functions in Perl and
Note: See TracChangeset
for help on using the changeset viewer.
