Changeset 458
- Timestamp:
- 10/25/08 06:38:35 (3 years ago)
- File:
-
- 1 edited
-
trunk/lib/Padre/Wx/MainWindow.pm (modified) (6 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Padre/Wx/MainWindow.pm
- Property svn:eol-style set to native
r451 r458 80 80 $self->GetToolBar->Realize; 81 81 82 # Create the layout boxes for the main window 82 # Create the status bar 83 $self->{statusbar} = $self->CreateStatusBar; 84 $self->{statusbar}->SetFieldsCount(4); 85 $self->{statusbar}->SetStatusWidths(-1, 100, 50, 100); 86 87 # Create the splitters but do not populate them yet 83 88 $self->{main_panel} = Wx::SplitterWindow->new( 84 89 $self, … … 88 93 Wx::wxNO_FULL_REPAINT_ON_RESIZE | Wx::wxCLIP_CHILDREN, 89 94 ); 95 $self->{main_panel}->SetSashGravity(1); 90 96 $self->{upper_panel} = Wx::SplitterWindow->new( 91 97 $self->{main_panel}, … … 95 101 Wx::wxNO_FULL_REPAINT_ON_RESIZE | Wx::wxCLIP_CHILDREN, 96 102 ); 103 $self->{upper_panel}->SetSashGravity(1); 97 104 98 105 # Create the right-hand sidebar … … 136 143 ); 137 144 138 # Add the bits tothe layout139 $self->{main_panel}-> SplitHorizontally(145 # Populate the layout 146 $self->{main_panel}->Initialize( 140 147 $self->{upper_panel}, 141 $self->{output},142 $self->window_height,143 148 ); 144 149 $self->{upper_panel}->SplitVertically( 145 150 $self->{notebook}, 146 151 $self->{rightbar}, 147 $self->window_width - 200,152 -150, 148 153 ); 149 150 # Create the status bar151 $self->{statusbar} = $self->CreateStatusBar;152 $self->{statusbar}->SetFieldsCount(4);153 $self->{statusbar}->SetStatusWidths(-1, 100, 50, 100);154 154 155 155 # Special Key Handling … … 1116 1116 sub show_output { 1117 1117 my $self = shift; 1118 my $on = shift;1118 my $on = @_ ? $_[0] ? 1 : 0 : 1; 1119 1119 unless ( $on == $self->{menu}->{view_output}->IsChecked ) { 1120 1120 $self->{menu}->{view_output}->Check($on); 1121 1121 } 1122 $self->{main_panel}->SetSashPosition( 1123 $self->window_height - ($on ? 300 : 0) 1124 ); 1122 if ( $on and not $self->{main_panel}->IsSplit ) { 1123 $self->{main_panel}->SplitHorizontally( 1124 $self->{upper_panel}, 1125 $self->{output}, 1126 -100, 1127 ); 1128 } 1129 if ( $self->{main_panel}->IsSplit and not $on ) { 1130 $self->{main_panel}->Unsplit; 1131 } 1125 1132 return; 1126 1133 } … … 1227 1234 } 1228 1235 1229 1230 1236 1;
Note: See TracChangeset
for help on using the changeset viewer.
