Changeset 11996
- Timestamp:
- 07/25/10 05:29:39 (19 months ago)
- Location:
- trunk/Padre
- Files:
-
- 1 added
- 4 edited
-
Changes (modified) (1 diff)
-
lib/Padre/Wx.pm (modified) (2 diffs)
-
lib/Padre/Wx/Main.pm (modified) (5 diffs)
-
lib/Padre/Wx/Nth.pm (added)
-
lib/Padre/Wx/Role/Dialog.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/Changes
r11992 r11996 68 68 (AZAWAWI) 69 69 - Padre has wxWidgets method documentation in F2 help search (AZAWAWI) 70 - Added Padre::Wx::Nth to group first/nth-time startup magic (ADAMK) 70 71 71 72 0.66 2010.07.01 -
trunk/Padre/lib/Padre/Wx.pm
r11742 r11996 49 49 50 50 51 52 51 53 ##################################################################### 52 54 # Defines for object IDs … … 59 61 ID_TIMER_ACTIONQUEUE => 30005, 60 62 ID_TIMER_LASTRESORT => 30006, 63 ID_TIMER_NTH => 30007, 61 64 }; 65 66 62 67 63 68 -
trunk/Padre/lib/Padre/Wx/Main.pm
r11995 r11996 278 278 # TO DO: there might be better ways to fix that issue... 279 279 #$statusbar->Show; 280 my $timer = Wx::Timer->new( $self, Padre::Wx::ID_TIMER_POSTINIT ,);280 my $timer = Wx::Timer->new( $self, Padre::Wx::ID_TIMER_POSTINIT ); 281 281 Wx::Event::EVT_TIMER( 282 282 $self, … … 337 337 refresh_recent 338 338 refresh_windowlist 339 }339 } 340 340 ); 341 341 … … 368 368 369 369 # Start the change detection timer 370 my $timer = Wx::Timer->new( $self, Padre::Wx::ID_TIMER_FILECHECK );370 my $timer1 = Wx::Timer->new( $self, Padre::Wx::ID_TIMER_FILECHECK ); 371 371 Wx::Event::EVT_TIMER( 372 372 $self, … … 376 376 }, 377 377 ); 378 $timer ->Start( $config->update_file_from_disk_interval * SECONDS, 0 );378 $timer1->Start( $config->update_file_from_disk_interval * SECONDS, 0 ); 379 379 380 380 # Start the second-generation task manager 381 381 $self->ide->task_manager->start; 382 382 383 return; 383 # Give a chance for post-start code to run, then do the nth-start logic 384 my $timer2 = Wx::Timer->new( $self, Padre::Wx::ID_TIMER_NTH ); 385 Wx::Event::EVT_TIMER( 386 $self, 387 Padre::Wx::ID_TIMER_NTH, 388 sub { 389 $_[0]->timer_nth; 390 }, 391 ); 392 $timer2->Start( 1, 1 ); 393 394 return; 395 } 396 397 sub timer_nth { 398 my $self = shift; 399 400 # Hand off to the nth start system 401 require Padre::Wx::Nth; 402 Padre::Wx::Nth->nth( $self, $self->config->startup_count ); 403 404 return 1; 384 405 } 385 406 … … 5773 5794 require Template::Tiny; 5774 5795 my $output = ''; 5775 Template::Tiny->new->process( 5776 $template, 5777 $data, 5778 \$output, 5779 ); 5796 Template::Tiny->new->process( $template, $data, \$output ); 5780 5797 5781 5798 # Create the file from the content -
trunk/Padre/lib/Padre/Wx/Role/Dialog.pm
r11994 r11996 147 147 ); 148 148 $dialog->CenterOnParent; 149 my $result = ($dialog->ShowModal == Wx::wx YES) ? 1 : 0;149 my $result = ($dialog->ShowModal == Wx::wxID_YES) ? 1 : 0; 150 150 $dialog->Destroy; 151 151 return $result;
Note: See TracChangeset
for help on using the changeset viewer.
