Changeset 469
- Timestamp:
- 10/26/08 01:46:35 (3 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
lib/Padre/Config.pm (modified) (1 diff)
-
lib/Padre/Wx/MainWindow.pm (modified) (2 diffs)
-
lib/Padre/Wx/Menu.pm (modified) (1 diff)
-
lib/Padre/Wx/Output.pm (modified) (1 diff)
-
t/02-new.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Padre/Config.pm
r441 r469 109 109 # Look and feel preferences 110 110 $self->{main_statusbar} ||= 1; 111 $self->{main_output} ||= 0; 111 112 $self->{editor_tabwidth} ||= 4; 112 113 $self->{editor_linenumbers} ||= 0; -
trunk/lib/Padre/Wx/MainWindow.pm
r468 r469 210 210 $self, 211 211 -1, 212 sub { $_[0]->on_toggle_status_bar; $_[0]->refresh_all; }, 212 sub { 213 $_[0]->on_toggle_status_bar; 214 $_[0]->refresh_all; 215 216 my $output = $_[0]->{menu}->{view_output}->IsChecked; 217 # Firs we show the output window and then hide it if necessary 218 # in order to avoide some weird visual artifacts (empty square at 219 # top left part of the whole application) 220 # TODO maybe some users want to make sure the output window is always 221 # off at startup. 222 $_[0]->show_output(1); 223 $_[0]->show_output($output) if not $output; 224 }, 213 225 ); 214 226 $timer->Start( 500, 1 ); … … 1113 1125 sub show_output { 1114 1126 my $self = shift; 1115 my $on = @_ ? $_[0] ? 1 : 0 : 1; 1127 my $on = @_ ? $_[0] ? 1 : 0 : $self->{menu}->{view_output}->IsChecked; 1128 my $config = Padre->ide->config; 1129 $config->{main_output} = $on; 1116 1130 unless ( $on == $self->{menu}->{view_output}->IsChecked ) { 1117 1131 $self->{menu}->{view_output}->Check($on); -
trunk/lib/Padre/Wx/Menu.pm
r468 r469 481 481 $menu->{view_statusbar}->Check( $config->{main_statusbar} ? 1 : 0 ); 482 482 } 483 $menu->{view_output}->Check( $config->{main_output} ? 1 : 0 ); 484 483 485 $menu->{view_indentation_guide}->Check( $config->{editor_indentationguides} ? 1 : 0 ); 484 486 $menu->{view_show_calltips}->Check( $config->{editor_calltips} ? 1 : 0 ); -
trunk/lib/Padre/Wx/Output.pm
r468 r469 25 25 ); 26 26 27 # By definition the output window is not shown by default.28 # Therefore, we should Freeze the widget to stop it attempt to render anything,29 # which has been a cause of weird visual artifacts in the past.30 $self->Freeze;31 32 27 # Do custom startup stuff here 33 28 -
trunk/t/02-new.t
r429 r469 44 44 main_startup => 'new', 45 45 main_statusbar => 1, 46 main_output => 0, 46 47 projects => {}, 47 48 run_save => 'same',
Note: See TracChangeset
for help on using the changeset viewer.
