Changeset 2214
- Timestamp:
- 12/28/08 07:53:07 (3 years ago)
- Location:
- trunk/Padre
- Files:
-
- 7 edited
-
Changes (modified) (1 diff)
-
lib/Padre/Config.pm (modified) (1 diff)
-
lib/Padre/Document.pm (modified) (1 diff)
-
lib/Padre/Document/Perl.pm (modified) (1 diff)
-
lib/Padre/Wx/Dialog/Preferences.pm (modified) (2 diffs)
-
lib/Padre/Wx/MainWindow.pm (modified) (1 diff)
-
t/02-new.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/Changes
r2209 r2214 3 3 v0.23 ?????????? 4 4 5 Add naive way to locate some of the annoying errors beginners 6 might make that perl does not catch. (SZABGAB) 5 7 Makefile.PL tricks EU:MM into not loading every single dependency, 6 8 making our dependency-heavy Makefile.PL far saner (ADAMK) -
trunk/Padre/lib/Padre/Config.pm
r2184 r2214 37 37 editor_methods => 'alphabetical', 38 38 editor_codefolding => 0, 39 editor_perl5_beginner => 1, 39 40 40 41 # Indentation settings -
trunk/Padre/lib/Padre/Document.pm
r2184 r2214 590 590 # abstract method, each subclass should implement it 591 591 sub keywords { return {} } 592 sub get_functions { return () }; 593 sub get_function_regex { return '' }; 592 sub get_functions { return () } 593 sub get_function_regex { return '' } 594 sub pre_process { return 1 } 594 595 595 596 # should return ($length, @words) -
trunk/Padre/lib/Padre/Document/Perl.pm
r2184 r2214 129 129 chdir $dir; 130 130 return qq{"$perl" "$filename"}; 131 } 132 133 sub pre_process { 134 my ( $self ) = @_; 135 my $config = Padre->ide->config; 136 137 print "pre\n"; 138 use Data::Dumper; 139 #print Dumper $config; 140 if ($config->{editor_perl5_beginner}) { 141 print "process\n"; 142 require Padre::Document::Perl::Beginner; 143 my $b = Padre::Document::Perl::Beginner->new; 144 if ($b->check( $self->text_get )) { 145 return 1; 146 } else { 147 $self->set_errstr( $b->error ); 148 return; 149 } 150 } 151 152 return 1; 131 153 } 132 154 -
trunk/Padre/lib/Padre/Wx/Dialog/Preferences.pm
r2184 r2214 54 54 ['Wx::CheckBox', 'editor_use_wordwrap', '', 55 55 ($config->{editor_use_wordwrap} ? 1 : 0) ], 56 ], 57 [ 58 [ 'Wx::StaticText', undef, Wx::gettext('Perl beginner mode')], 59 ['Wx::CheckBox', 'editor_perl5_beginner', '', 60 ($config->{editor_perl5_beginner} ? 1 : 0) ], 56 61 ], 57 62 [ … … 172 177 $config->{editor_current_line_background_color} =~ s/#//; 173 178 174 foreach my $f (qw(editor_use_tabs editor_use_wordwrap editor_auto_indentation_style )) {179 foreach my $f (qw(editor_use_tabs editor_use_wordwrap editor_auto_indentation_style editor_perl5_beginner)) { 175 180 $config->{$f} = $data->{$f} ? 1 : 0; 176 181 } -
trunk/Padre/lib/Padre/Wx/MainWindow.pm
r2202 r2214 844 844 } 845 845 if ($cmd) { 846 $self->run_command( $cmd ); 846 if ($document->pre_process) { 847 $self->run_command( $cmd ); 848 } else { 849 $self->error( $document->errstr ); 850 } 847 851 } 848 852 return; -
trunk/Padre/t/02-new.t
r2169 r2214 53 53 editor_indentwidth => 4, 54 54 editor_use_tabs => 1, 55 editor_perl5_beginner => 1, 55 56 56 57 search_terms => [],
Note: See TracChangeset
for help on using the changeset viewer.
