Changeset 872
- Timestamp:
- 11/10/08 13:10:18 (3 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
lib/Padre/Config.pm (modified) (1 diff)
-
lib/Padre/Wx/Dialog/Preferences.pm (modified) (4 diffs)
-
t/02-new.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Padre/Config.pm
r861 r872 120 120 editor_indentationguides => 0, 121 121 editor_calltips => 1, 122 editor_autoindent => 'deep', 122 123 123 124 # When running a script from the application some of the files might have not been saved yet. -
trunk/lib/Padre/Wx/Dialog/Preferences.pm
r858 r872 12 12 13 13 sub get_layout { 14 my ($config, $main_startup ) = @_;14 my ($config, $main_startup, $editor_autoindent) = @_; 15 15 16 16 return [ … … 36 36 ], 37 37 [ 38 [ 'Wx::StaticText', undef, gettext('Autoindent:')], 39 [ 'Wx::Choice', 'editor_autoindent', $editor_autoindent], 40 ], 41 [ 38 42 [ 'Wx::Button', '_ok_', Wx::wxID_OK ], 39 43 [ 'Wx::Button', '_cancel_', Wx::wxID_CANCEL ], … … 43 47 44 48 sub dialog { 45 my ($class, $win, $main_startup ) = @_;49 my ($class, $win, $main_startup, $editor_autoindent) = @_; 46 50 47 51 my $config = Padre->ide->config; 48 my $layout = get_layout($config, $main_startup );52 my $layout = get_layout($config, $main_startup, $editor_autoindent); 49 53 my $dialog = Padre::Wx::Dialog->new( 50 54 parent => $win, … … 74 78 grep { $_ ne $config->{main_startup} } qw( new nothing last ) 75 79 ); 80 my @editor_autoindent = ( 81 $config->{editor_autoindent}, 82 grep { $_ ne $config->{editor_autoindent} } qw( no same_level deep ) 83 ); 76 84 77 my $dialog = $class->dialog( $win, \@main_startup );85 my $dialog = $class->dialog( $win, \@main_startup, \@editor_autoindent ); 78 86 return if not $dialog->show_modal; 79 87 -
trunk/t/02-new.t
r865 r872 41 41 editor_calltips => 1, 42 42 editor_use_tabs => 1, 43 editor_autoindent => 'deep', 43 44 44 45 search_terms => [],
Note: See TracChangeset
for help on using the changeset viewer.
