#!/usr/bin/perl -w -- 
#
# generated by wxGlade
#
# To get wxPerl visit http://www.wxperl.it
#

use Wx;
use strict;

# begin wxGlade: dependencies
# end wxGlade

# begin wxGlade: extracode
# end wxGlade

package MyDialog;

use Wx qw[:everything];
use base qw(Wx::Dialog);
use strict;

sub new {
    my( $self, $parent, $id, $title, $pos, $size, $style, $name ) = @_;
    $parent = undef              unless defined $parent;
    $id     = -1                 unless defined $id;
    $title  = ""                 unless defined $title;
    $pos    = wxDefaultPosition  unless defined $pos;
    $size   = wxDefaultSize      unless defined $size;
    $name   = ""                 unless defined $name;

    # begin wxGlade: MyDialog::new
    $style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER
        unless defined $style;

    $self = $self->SUPER::new( $parent, $id, $title, $pos, $size, $style, $name );
    $self->SetSize(Wx::Size->new(600, 320));
    $self->SetTitle("dialog");
    
    $self->{colour_settings_sizer} = Wx::StaticBoxSizer->new(Wx::StaticBox->new($self, wxID_ANY, "Colour Settings"), wxHORIZONTAL);
    
    $self->{inner_sizer} = Wx::StaticBoxSizer->new(Wx::StaticBox->new($self->{colour_settings_sizer}->GetStaticBox(), wxID_ANY, "Inner"), wxVERTICAL);
    $self->{colour_settings_sizer}->Add($self->{inner_sizer}, 0, wxALL, 36);
    
    $self->{bitmap_button_1} = Wx::BitmapButton->new($self->{inner_sizer}->GetStaticBox(), wxID_ANY, Wx::Bitmap->new("preferences-color-icon.png", wxBITMAP_TYPE_ANY), wxDefaultPosition, wxDefaultSize, wxBORDER_NONE);
    $self->{bitmap_button_1}->SetSize($self->{bitmap_button_1}->GetBestSize());
    $self->{inner_sizer}->Add($self->{bitmap_button_1}, 0, wxALIGN_CENTER_HORIZONTAL, 0);
    
    $self->{inner_grid_sizer} = Wx::FlexGridSizer->new(1, 2, 2, 2);
    $self->{inner_sizer}->Add($self->{inner_grid_sizer}, 1, 0, 0);
    
    $self->{inner_red_spin_ctrl} = Wx::SpinCtrl->new($self->{inner_sizer}->GetStaticBox(), wxID_ANY, "", wxDefaultPosition, wxDefaultSize, 0, 0, 255, );
    $self->{inner_red_spin_ctrl}->SetMinSize(Wx::Size->new(110, 27));
    $self->{inner_grid_sizer}->Add($self->{inner_red_spin_ctrl}, 0, 0, 0);
    
    $self->SetSizer($self->{colour_settings_sizer});
    
    $self->Layout();
    # end wxGlade
    return $self;

}


# end of class MyDialog

1;

package MyApp;

use base qw(Wx::App);
use strict;

sub OnInit {
    my( $self ) = shift;

    Wx::InitAllImageHandlers();

    my $dialog = MyDialog->new();

    $self->SetTopWindow($dialog);
    $dialog->Show(1);

    return 1;
}
# end of class MyApp

package main;

my $app = MyApp->new();
$app->MainLoop();
