| 1 | #!/usr/bin/perl -w -- | ||
| 2 | # generated by wxGlade 0.6.1 on Mon Jul 14 17:58:00 2008 | ||
| 3 | # To get wxPerl visit http://wxPerl.sourceforge.net/ | ||
| 4 | |||
| 5 | use Wx 0.15 qw[:allclasses]; | ||
| 6 | use strict; | ||
| 7 | |||
| 8 | package MyFrame; | ||
| 9 | |||
| 10 | use Wx qw[:everything]; | ||
| 11 | use base qw(Wx::Frame); | ||
| 12 | use strict; | ||
| 13 | |||
| 14 | use Wx::Locale gettext => '_T'; | ||
| 15 | sub new { | ||
| 16 | my( $self, $parent, $id, $title, $pos, $size, $style, $name ) = @_; | ||
| 17 | $parent = undef unless defined $parent; | ||
| 18 | $id = -1 unless defined $id; | ||
| 19 | $title = "" unless defined $title; | ||
| 20 | $pos = wxDefaultPosition unless defined $pos; | ||
| 21 | $size = wxDefaultSize unless defined $size; | ||
| 22 | $name = "" unless defined $name; | ||
| 23 | |||
| 24 | # begin wxGlade: MyFrame::new | ||
| 25 | |||
| 26 | $style = wxDEFAULT_FRAME_STYLE | ||
| 27 | unless defined $style; | ||
| 28 | |||
| 29 | $self = $self->SUPER::new( $parent, $id, $title, $pos, $size, $style, $name ); | ||
| 30 | $self->{text_ctrl_1} = Wx::TextCtrl->new($self, -1, _T("Welcome to the First Time Wizard. \n \nSince This is the first time you have used wxCPAN, let's start by building a basic configuration file.\n \nClick Next to begin."), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY|wxTE_CENTRE|wxTE_WORDWRAP); | ||
| 31 | |||
| 32 | $self->__set_properties(); | ||
| 33 | $self->__do_layout(); | ||
| 34 | |||
| 35 | # end wxGlade | ||
| 36 | return $self; | ||
| 37 | |||
| 38 | } | ||
| 39 | |||
| 40 | |||
| 41 | sub __set_properties { | ||
| 42 | my $self = shift; | ||
| 43 | |||
| 44 | # begin wxGlade: MyFrame::__set_properties | ||
| 45 | |||
| 46 | $self->SetTitle(_T("frame_1")); | ||
| 47 | $self->{text_ctrl_1}->Enable(0); | ||
| 48 | |||
| 49 | # end wxGlade | ||
| 50 | } | ||
| 51 | |||
| 52 | sub __do_layout { | ||
| 53 | my $self = shift; | ||
| 54 | |||
| 55 | # begin wxGlade: MyFrame::__do_layout | ||
| 56 | |||
| 57 | $self->{sizer_1} = Wx::BoxSizer->new(wxVERTICAL); | ||
| 58 | $self->{sizer_1}->Add($self->{text_ctrl_1}, 1, wxEXPAND|wxADJUST_MINSIZE, 0); | ||
| 59 | $self->SetSizer($self->{sizer_1}); | ||
| 60 | $self->{sizer_1}->Fit($self); | ||
| 61 | $self->Layout(); | ||
| 62 | |||
| 63 | # end wxGlade | ||
| 64 | } | ||
| 65 | |||
| 66 | # end of class MyFrame | ||
| 67 | |||
| 68 | 1; | ||
| 69 | |||
| 70 | package MyFrame1; | ||
| 71 | |||
| 72 | use Wx qw[:everything]; | ||
| 73 | use base qw(Wx::Frame); | ||
| 74 | use strict; | ||
| 75 | |||
| 76 | use Wx::Locale gettext => '_T'; | ||
| 77 | sub new { | ||
| 78 | my( $self, $parent, $id, $title, $pos, $size, $style, $name ) = @_; | ||
| 79 | $parent = undef unless defined $parent; | ||
| 80 | $id = -1 unless defined $id; | ||
| 81 | $title = "" unless defined $title; | ||
| 82 | $pos = wxDefaultPosition unless defined $pos; | ||
| 83 | $size = wxDefaultSize unless defined $size; | ||
| 84 | $name = "" unless defined $name; | ||
| 85 | |||
| 86 | # begin wxGlade: MyFrame1::new | ||
| 87 | |||
| 88 | $style = wxDEFAULT_FRAME_STYLE | ||
| 89 | unless defined $style; | ||
| 90 | |||
| 91 | $self = $self->SUPER::new( $parent, $id, $title, $pos, $size, $style, $name ); | ||
| 92 | $self->{text_ctrl_1_copy} = Wx::TextCtrl->new($self, -1, _T("Where would you like to save your CPANPLUS Configuration file?\n\nIf you want to configure CPANPLUS for this user only, select the 'CPANPLUS::Config::User' option. The file will then be saved in your home directory.\n\nIf you are the system administrator of this machine, and would like to make this config available globally, select the 'CPANPLUS::Config::System' option. The file will be then be saved in your CPANPLUS installation directory.\n"), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY|wxTE_CENTRE|wxTE_WORDWRAP); | ||
| 93 | $self->{config_user} = Wx::RadioButton->new($self, -1, _T("CPANPLUS::Config::User"), wxDefaultPosition, wxDefaultSize, ); | ||
| 94 | $self->{config_system} = Wx::RadioButton->new($self, -1, _T("CPANPLUS::Config::System"), wxDefaultPosition, wxDefaultSize, ); | ||
| 95 | |||
| 96 | $self->__set_properties(); | ||
| 97 | $self->__do_layout(); | ||
| 98 | |||
| 99 | # end wxGlade | ||
| 100 | return $self; | ||
| 101 | |||
| 102 | } | ||
| 103 | |||
| 104 | |||
| 105 | sub __set_properties { | ||
| 106 | my $self = shift; | ||
| 107 | |||
| 108 | # begin wxGlade: MyFrame1::__set_properties | ||
| 109 | |||
| 110 | $self->SetTitle(_T("Update Which Modules?")); | ||
| 111 | $self->{text_ctrl_1_copy}->Enable(0); | ||
| 112 | $self->{config_user}->SetValue(1); | ||
| 113 | |||
| 114 | # end wxGlade | ||
| 115 | } | ||
| 116 | |||
| 117 | sub __do_layout { | ||
| 118 | my $self = shift; | ||
| 119 | |||
| 120 | # begin wxGlade: MyFrame1::__do_layout | ||
| 121 | |||
| 122 | $self->{sizer_2} = Wx::BoxSizer->new(wxVERTICAL); | ||
| 123 | $self->{sizer_2}->Add($self->{text_ctrl_1_copy}, 1, wxEXPAND|wxADJUST_MINSIZE, 0); | ||
| 124 | $self->{sizer_2}->Add($self->{config_user}, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0); | ||
| 125 | $self->{sizer_2}->Add($self->{config_system}, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0); | ||
| 126 | $self->SetSizer($self->{sizer_2}); | ||
| 127 | $self->{sizer_2}->Fit($self); | ||
| 128 | $self->Layout(); | ||
| 129 | |||
| 130 | # end wxGlade | ||
| 131 | } | ||
| 132 | |||
| 133 | # end of class MyFrame1 | ||
| 134 | |||
| 135 | 1; | ||
| 136 | |||
| 137 | package MyFrame2; | ||
| 138 | |||
| 139 | use Wx qw[:everything]; | ||
| 140 | use base qw(Wx::Frame); | ||
| 141 | use strict; | ||
| 142 | |||
| 143 | use Wx::Locale gettext => '_T'; | ||
| 144 | sub new { | ||
| 145 | my( $self, $parent, $id, $title, $pos, $size, $style, $name ) = @_; | ||
| 146 | $parent = undef unless defined $parent; | ||
| 147 | $id = -1 unless defined $id; | ||
| 148 | $title = "" unless defined $title; | ||
| 149 | $pos = wxDefaultPosition unless defined $pos; | ||
| 150 | $size = wxDefaultSize unless defined $size; | ||
| 151 | $name = "" unless defined $name; | ||
| 152 | |||
| 153 | # begin wxGlade: MyFrame2::new | ||
| 154 | |||
| 155 | $style = wxDEFAULT_FRAME_STYLE | ||
| 156 | unless defined $style; | ||
| 157 | |||
| 158 | $self = $self->SUPER::new( $parent, $id, $title, $pos, $size, $style, $name ); | ||
| 159 | $self->{text_ctrl_1_copy_copy} = Wx::TextCtrl->new($self, -1, _T("CPANPLUS can use command line utilities to do certain tasks, rather than use perl modules.\n\nIf you wish to use a certain command utility, just enter the full path (or accept the default). If you do not wish to use it, leave it blank. You can use the \"Select...\" button beside the field to browse the filesystem for the program.\n\nNote that the paths you provide should not contain spaces, which is needed to make a distinction between program name and options to that program. For Win32 machines, you can use the short name for a path, like 'c:\\Progra~1\\prog.exe'."), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY|wxTE_CENTRE|wxTE_WORDWRAP); | ||
| 160 | $self->{label_1} = Wx::StaticText->new($self, -1, _T("Text Editor:"), wxDefaultPosition, wxDefaultSize, ); | ||
| 161 | $self->{text_ctrl_2} = Wx::TextCtrl->new($self, -1, "", wxDefaultPosition, wxDefaultSize, ); | ||
| 162 | $self->{button_1} = Wx::Button->new($self, -1, _T("Select...")); | ||
| 163 | $self->{label_1_copy} = Wx::StaticText->new($self, -1, _T("'make' utility:"), wxDefaultPosition, wxDefaultSize, ); | ||
| 164 | $self->{text_ctrl_2_copy} = Wx::TextCtrl->new($self, -1, "", wxDefaultPosition, wxDefaultSize, ); | ||
| 165 | $self->{button_1_copy} = Wx::Button->new($self, -1, _T("Select...")); | ||
| 166 | $self->{label_1_copy_1} = Wx::StaticText->new($self, -1, _T("File Viewer:"), wxDefaultPosition, wxDefaultSize, ); | ||
| 167 | $self->{text_ctrl_2_copy_1} = Wx::TextCtrl->new($self, -1, "", wxDefaultPosition, wxDefaultSize, ); | ||
| 168 | $self->{button_1_copy_1} = Wx::Button->new($self, -1, _T("Select...")); | ||
| 169 | $self->{label_1_copy_2} = Wx::StaticText->new($self, -1, _T("'perlwrapper' utility:"), wxDefaultPosition, wxDefaultSize, ); | ||
| 170 | $self->{text_ctrl_2_copy_2} = Wx::TextCtrl->new($self, -1, "", wxDefaultPosition, wxDefaultSize, ); | ||
| 171 | $self->{button_1_copy_2} = Wx::Button->new($self, -1, _T("Select...")); | ||
| 172 | $self->{label_1_copy_3} = Wx::StaticText->new($self, -1, _T("Command Shell:"), wxDefaultPosition, wxDefaultSize, ); | ||
| 173 | $self->{text_ctrl_2_copy_3} = Wx::TextCtrl->new($self, -1, "", wxDefaultPosition, wxDefaultSize, ); | ||
| 174 | $self->{button_1_copy_3} = Wx::Button->new($self, -1, _T("Select...")); | ||
| 175 | $self->{label_1_copy_4} = Wx::StaticText->new($self, -1, _T("'sudo' utility:"), wxDefaultPosition, wxDefaultSize, ); | ||
| 176 | $self->{text_ctrl_2_copy_4} = Wx::TextCtrl->new($self, -1, "", wxDefaultPosition, wxDefaultSize, ); | ||
| 177 | $self->{button_1_copy_4} = Wx::Button->new($self, -1, _T("Select...")); | ||
| 178 | |||
| 179 | $self->__set_properties(); | ||
| 180 | $self->__do_layout(); | ||
| 181 | |||
| 182 | # end wxGlade | ||
| 183 | return $self; | ||
| 184 | |||
| 185 | } | ||
| 186 | |||
| 187 | |||
| 188 | sub __set_properties { | ||
| 189 | my $self = shift; | ||
| 190 | |||
| 191 | # begin wxGlade: MyFrame2::__set_properties | ||
| 192 | |||
| 193 | $self->SetTitle(_T("frame_3")); | ||
| 194 | $self->{text_ctrl_1_copy_copy}->Enable(0); | ||
| 195 | $self->{text_ctrl_2}->SetSize(Wx::Size->new(187, 27)); | ||
| 196 | $self->{text_ctrl_2_copy}->SetSize(Wx::Size->new(187, 27)); | ||
| 197 | $self->{text_ctrl_2_copy_1}->SetSize(Wx::Size->new(187, 27)); | ||
| 198 | $self->{text_ctrl_2_copy_2}->SetSize(Wx::Size->new(187, 27)); | ||
| 199 | $self->{text_ctrl_2_copy_3}->SetSize(Wx::Size->new(187, 27)); | ||
| 200 | $self->{text_ctrl_2_copy_4}->SetSize(Wx::Size->new(187, 27)); | ||
| 201 | |||
| 202 | # end wxGlade | ||
| 203 | } | ||
| 204 | |||
| 205 | sub __do_layout { | ||
| 206 | my $self = shift; | ||
| 207 | |||
| 208 | # begin wxGlade: MyFrame2::__do_layout | ||
| 209 | |||
| 210 | $self->{sizer_3} = Wx::BoxSizer->new(wxVERTICAL); | ||
| 211 | $self->{grid_sizer_1} = Wx::FlexGridSizer->new(8, 3, 0, 0); | ||
| 212 | $self->{sizer_3}->Add($self->{text_ctrl_1_copy_copy}, 1, wxEXPAND|wxADJUST_MINSIZE, 0); | ||
| 213 | $self->{grid_sizer_1}->Add($self->{label_1}, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0); | ||
| 214 | $self->{grid_sizer_1}->Add($self->{text_ctrl_2}, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0); | ||
| 215 | $self->{grid_sizer_1}->Add($self->{button_1}, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0); | ||
| 216 | $self->{grid_sizer_1}->Add($self->{label_1_copy}, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0); | ||
| 217 | $self->{grid_sizer_1}->Add($self->{text_ctrl_2_copy}, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0); | ||
| 218 | $self->{grid_sizer_1}->Add($self->{button_1_copy}, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0); | ||
| 219 | $self->{grid_sizer_1}->Add($self->{label_1_copy_1}, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0); | ||
| 220 | $self->{grid_sizer_1}->Add($self->{text_ctrl_2_copy_1}, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0); | ||
| 221 | $self->{grid_sizer_1}->Add($self->{button_1_copy_1}, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0); | ||
| 222 | $self->{grid_sizer_1}->Add($self->{label_1_copy_2}, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0); | ||
| 223 | $self->{grid_sizer_1}->Add($self->{text_ctrl_2_copy_2}, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0); | ||
| 224 | $self->{grid_sizer_1}->Add($self->{button_1_copy_2}, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0); | ||
| 225 | $self->{grid_sizer_1}->Add($self->{label_1_copy_3}, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0); | ||
| 226 | $self->{grid_sizer_1}->Add($self->{text_ctrl_2_copy_3}, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0); | ||
| 227 | $self->{grid_sizer_1}->Add($self->{button_1_copy_3}, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0); | ||
| 228 | $self->{grid_sizer_1}->Add($self->{label_1_copy_4}, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0); | ||
| 229 | $self->{grid_sizer_1}->Add($self->{text_ctrl_2_copy_4}, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0); | ||
| 230 | $self->{grid_sizer_1}->Add($self->{button_1_copy_4}, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0); | ||
| 231 | $self->{sizer_3}->Add($self->{grid_sizer_1}, 1, wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxSHAPED, 0); | ||
| 232 | $self->SetSizer($self->{sizer_3}); | ||
| 233 | $self->{sizer_3}->Fit($self); | ||
| 234 | $self->Layout(); | ||
| 235 | |||
| 236 | # end wxGlade | ||
| 237 | } | ||
| 238 | |||
| 239 | # end of class MyFrame2 | ||
| 240 | |||
| 241 | 1; | ||
| 242 | |||
| 243 | package MyFrame3; | ||
| 244 | |||
| 245 | use Wx qw[:everything]; | ||
| 246 | use base qw(Wx::Frame); | ||
| 247 | use strict; | ||
| 248 | |||
| 249 | use Wx::Locale gettext => '_T'; | ||
| 250 | sub new { | ||
| 251 | my( $self, $parent, $id, $title, $pos, $size, $style, $name ) = @_; | ||
| 252 | $parent = undef unless defined $parent; | ||
| 253 | $id = -1 unless defined $id; | ||
| 254 | $title = "" unless defined $title; | ||
| 255 | $pos = wxDefaultPosition unless defined $pos; | ||
| 256 | $size = wxDefaultSize unless defined $size; | ||
| 257 | $name = "" unless defined $name; | ||
| 258 | |||
| 259 | # begin wxGlade: MyFrame3::new | ||
| 260 | |||
| 261 | $style = wxDEFAULT_FRAME_STYLE | ||
| 262 | unless defined $style; | ||
| 263 | |||
| 264 | $self = $self->SUPER::new( $parent, $id, $title, $pos, $size, $style, $name ); | ||
| 265 | $self->{text_ctrl_1_copy_copy_1} = Wx::TextCtrl->new($self, -1, _T("Please wait while we install the selected modules."), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY|wxTE_CENTRE|wxTE_WORDWRAP); | ||
| 266 | $self->{gauge_1} = Wx::Gauge->new($self, -1, 1000, wxDefaultPosition, wxDefaultSize, wxGA_HORIZONTAL|wxGA_SMOOTH); | ||
| 267 | $self->{status_text} = Wx::StaticText->new($self, -1, _T("Status text..."), wxDefaultPosition, wxDefaultSize, ); | ||
| 268 | |||
| 269 | $self->__set_properties(); | ||
| 270 | $self->__do_layout(); | ||
| 271 | |||
| 272 | # end wxGlade | ||
| 273 | return $self; | ||
| 274 | |||
| 275 | } | ||
| 276 | |||
| 277 | |||
| 278 | sub __set_properties { | ||
| 279 | my $self = shift; | ||
| 280 | |||
| 281 | # begin wxGlade: MyFrame3::__set_properties | ||
| 282 | |||
| 283 | $self->SetTitle(_T("frame_4")); | ||
| 284 | $self->{text_ctrl_1_copy_copy_1}->Enable(0); | ||
| 285 | |||
| 286 | # end wxGlade | ||
| 287 | } | ||
| 288 | |||
| 289 | sub __do_layout { | ||
| 290 | my $self = shift; | ||
| 291 | |||
| 292 | # begin wxGlade: MyFrame3::__do_layout | ||
| 293 | |||
| 294 | $self->{sizer_4} = Wx::BoxSizer->new(wxVERTICAL); | ||
| 295 | $self->{sizer_4}->Add($self->{text_ctrl_1_copy_copy_1}, 0, wxEXPAND|wxADJUST_MINSIZE, 0); | ||
| 296 | $self->{sizer_4}->Add($self->{gauge_1}, 0, wxEXPAND|wxADJUST_MINSIZE, 0); | ||
| 297 | $self->{sizer_4}->Add($self->{status_text}, 0, wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0); | ||
| 298 | $self->SetSizer($self->{sizer_4}); | ||
| 299 | $self->{sizer_4}->Fit($self); | ||
| 300 | $self->Layout(); | ||
| 301 | |||
| 302 | # end wxGlade | ||
| 303 | } | ||
| 304 | |||
| 305 | # end of class MyFrame3 | ||
| 306 | |||
| 307 | 1; | ||
| 308 | |||
| 309 | package MyFrame4; | ||
| 310 | |||
| 311 | use Wx qw[:everything]; | ||
| 312 | use base qw(Wx::Frame); | ||
| 313 | use strict; | ||
| 314 | |||
| 315 | use Wx::Locale gettext => '_T'; | ||
| 316 | sub new { | ||
| 317 | my( $self, $parent, $id, $title, $pos, $size, $style, $name ) = @_; | ||
| 318 | $parent = undef unless defined $parent; | ||
| 319 | $id = -1 unless defined $id; | ||
| 320 | $title = "" unless defined $title; | ||
| 321 | $pos = wxDefaultPosition unless defined $pos; | ||
| 322 | $size = wxDefaultSize unless defined $size; | ||
| 323 | $name = "" unless defined $name; | ||
| 324 | |||
| 325 | # begin wxGlade: MyFrame4::new | ||
| 326 | |||
| 327 | $style = wxDEFAULT_FRAME_STYLE | ||
| 328 | unless defined $style; | ||
| 329 | |||
| 330 | $self = $self->SUPER::new( $parent, $id, $title, $pos, $size, $style, $name ); | ||
| 331 | $self->{problems} = Wx::TextCtrl->new($self, -1, _T("If there were any problems, they are listed below."), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY|wxTE_CENTRE|wxTE_WORDWRAP); | ||
| 332 | |||
| 333 | $self->__set_properties(); | ||
| 334 | $self->__do_layout(); | ||
| 335 | |||
| 336 | # end wxGlade | ||
| 337 | return $self; | ||
| 338 | |||
| 339 | } | ||
| 340 | |||
| 341 | |||
| 342 | sub __set_properties { | ||
| 343 | my $self = shift; | ||
| 344 | |||
| 345 | # begin wxGlade: MyFrame4::__set_properties | ||
| 346 | |||
| 347 | $self->SetTitle(_T("frame_5")); | ||
| 348 | $self->{problems}->Enable(0); | ||
| 349 | |||
| 350 | # end wxGlade | ||
| 351 | } | ||
| 352 | |||
| 353 | sub __do_layout { | ||
| 354 | my $self = shift; | ||
| 355 | |||
| 356 | # begin wxGlade: MyFrame4::__do_layout | ||
| 357 | |||
| 358 | $self->{sizer_5} = Wx::BoxSizer->new(wxVERTICAL); | ||
| 359 | $self->{sizer_5}->Add($self->{problems}, 1, wxEXPAND|wxADJUST_MINSIZE, 0); | ||
| 360 | $self->SetSizer($self->{sizer_5}); | ||
| 361 | $self->{sizer_5}->Fit($self); | ||
| 362 | $self->Layout(); | ||
| 363 | |||
| 364 | # end wxGlade | ||
| 365 | } | ||
| 366 | |||
| 367 | # end of class MyFrame4 | ||
| 368 | |||
| 369 | 1; | ||
| 370 | |||
| 371 | 1; | ||
| 372 | |||
| 373 | package main; | ||
| 374 | |||
| 375 | unless(caller){ | ||
| 376 | my $local = Wx::Locale->new("English", "en", "en"); # replace with ?? | ||
| 377 | $local->AddCatalog("app"); # replace with the appropriate catalog name | ||
| 378 | |||
| 379 | local *Wx::App::OnInit = sub{1}; | ||
| 380 | my $app = Wx::App->new(); | ||
| 381 | Wx::InitAllImageHandlers(); | ||
| 382 | |||
| 383 | my $intro_panel = MyFrame->new(); | ||
| 384 | |||
| 385 | $app->SetTopWindow($intro_panel); | ||
| 386 | $intro_panel->Show(1); | ||
| 387 | $app->MainLoop(); | ||
| 388 | } |