1
package Padre::Wx::Dialog::Warning;
7
use Padre::Wx::Role::MainChild ();
10
our $VERSION = '0.60';
12
Padre::Wx::Role::MainChild
20
Padre::Wx::Dialog::Warning - A Dialog
28
# Create the Wx dialog
29
my $self = $class->SUPER::new(
32
Wx::gettext('A Dialog'),
33
Wx::wxDefaultPosition,
35
Wx::wxCAPTION | Wx::wxCLOSE_BOX | Wx::wxSYSTEM_MENU
38
$self->{warning_label} = Wx::StaticText->new(
41
Wx::gettext("See http://padre.perlide.org/ for update information"),
42
Wx::wxDefaultPosition,
46
$self->{warning_checkbox} = Wx::CheckBox->new(
49
Wx::gettext("Do not show this again"),
50
Wx::wxDefaultPosition,
53
my $line_1 = Wx::StaticLine->new(
56
Wx::wxDefaultPosition,
59
$self->{ok_button} = Wx::Button->new(
64
$self->SetTitle( Wx::gettext("Warning") );
65
my $sizer_4 = Wx::BoxSizer->new(Wx::wxHORIZONTAL);
66
my $sizer_5 = Wx::BoxSizer->new(Wx::wxVERTICAL);
67
my $sizer_6 = Wx::BoxSizer->new(Wx::wxHORIZONTAL);
68
$sizer_5->Add( $self->{warning_label}, 0, 0, 0 );
69
$sizer_5->Add( $self->{warning_checkbox}, 0, Wx::wxTOP | Wx::wxEXPAND, 5 );
70
$sizer_5->Add( $line_1, 0, Wx::wxTOP | Wx::wxBOTTOM | Wx::wxEXPAND, 5 );
71
$sizer_6->Add( $self->{ok_button}, 0, 0, 0 );
72
$sizer_5->Add( $sizer_6, 1, Wx::wxALIGN_CENTER_HORIZONTAL, 5 );
73
$sizer_4->Add( $sizer_5, 1, Wx::wxALL | Wx::wxEXPAND, 5 );
74
$self->SetSizer($sizer_4);
84
=head1 COPYRIGHT & LICENSE
86
Copyright 2008-2010 The Padre development team as listed in Padre.pm.
88
This program is free software; you can redistribute
89
it and/or modify it under the same terms as Perl itself.
91
The full text of the license can be found in the
92
LICENSE file included with this module.
96
# Copyright 2008-2010 The Padre development team as listed in Padre.pm.
98
# This program is free software; you can redistribute it and/or
99
# modify it under the same terms as Perl 5 itself.