| 1 | package Padre::Plugin::Cookbook::Recipe01::Main; | ||
| 2 | |||
| 3 | 2 | ▶ | use v5.10.1; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | # use diagnostics; | ||
| 8 | # use utf8; | ||
| 9 | # use autodie; | ||
| 10 | |||
| 11 | # Version required | ||
| 12 | our $VERSION = '0.24'; | ||
| 13 | 2 | ▶ | use parent qw( Padre::Plugin::Cookbook::Recipe01::FBP::MainFB ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | ####### | ||
| 16 | # Method new | ||
| 17 | ####### | ||
| 18 | sub new { | ||
| 19 | my $class = shift; | ||
| 20 | |||
| 21 | # Padre main window integration | ||
| 22 | my $main = shift; | ||
| 23 | |||
| 24 | # Create the dialog | ||
| 25 | my $self = $class->SUPER::new($main); | ||
| 26 | |||
| 27 | # define where to display main dialog | ||
| 28 | $self->CenterOnParent; | ||
| 29 | return $self; | ||
| 30 | } | ||
| 31 | |||
| 32 | 1; | ||
| 33 | |||
| 34 | __END__ | ||