Changeset 2256
- Timestamp:
- 12/29/08 19:15:44 (3 years ago)
- Location:
- trunk/Padre/lib/Padre/Wx
- Files:
-
- 1 added
- 1 edited
-
AuiManager.pm (added)
-
MainWindow.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre/Wx/MainWindow.pm
r2214 r2256 36 36 use Padre::Wx::Output (); 37 37 use Padre::Wx::ErrorList (); 38 use Padre::wx::AuiManager (); 39 use Padre::Wx::FileDropTarget (); 38 40 use Padre::Document (); 39 41 use Padre::Documents (); 40 use Padre::Wx::FileDropTarget ();41 42 42 43 our $VERSION = '0.22'; … … 109 110 ); 110 111 111 $self->{manager} = Wx::AuiManager->new;112 $self->{manager}->SetManagedWindow($self);112 # Temporary store for the function list. 113 # TODO: Storing this here violates encapsulation. 113 114 $self->{_methods} = []; 114 115 115 # do NOT use hints other than Rectangle or the app will crash on Linux/GTK 116 my $flags = $self->{manager}->GetFlags; 117 $flags &= ~Wx::wxAUI_MGR_TRANSPARENT_HINT; 118 $flags &= ~Wx::wxAUI_MGR_VENETIAN_BLINDS_HINT; 119 $self->{manager}->SetFlags( $flags ^ Wx::wxAUI_MGR_RECTANGLE_HINT ); 116 # Set the window manager 117 $self->{manager} = Padre::Wx::AuiManager->new($self); 120 118 121 119 # Add some additional attribute slots … … 134 132 135 133 # Create the syntax checker and sidebar for syntax check messages 136 # create it AFTERthe bottom pane!134 # Must be created after the bottom pane! 137 135 $self->{syntax_checker} = Padre::Wx::SyntaxChecker->new($self); 138 136 $self->show_syntaxbar( $self->menu->view->{show_syntaxcheck}->IsChecked ); 139 137 140 138 # Create the error list 141 # create it AFTERthe bottom pane!139 # Must be created after the bottom pane! 142 140 $self->{errorlist} = Padre::Wx::ErrorList->new($self); 143 144 141 145 142 # on close pane … … 178 175 Wx::Event::EVT_STC_DWELLSTART( $self, -1, \&on_stc_dwell_start ); 179 176 180 # As ugly as the WxPerl icon is, the new file toolbar image is uglier 177 # As ugly as the WxPerl icon is, the new file toolbar image we 178 # used to use was far uglier 181 179 $self->SetIcon( Wx::GetWxPerlIcon() ); 182 180
Note: See TracChangeset
for help on using the changeset viewer.
