package Padre::Plugin::Moose::FBP::Preferences;

## no critic

# This module was generated by Padre::Plugin::FormBuilder::Perl.
# To change this module edit the original .fbp file and regenerate.
# DO NOT MODIFY THIS FILE BY HAND!

use 5.008005;
use utf8;
use strict;
use warnings;
use Padre::Wx             ();
use Padre::Wx::Role::Main ();

our $VERSION = '0.16';
our @ISA     = qw{
	Padre::Wx::Role::Main
	Wx::Dialog
};

sub new {
	my $class  = shift;
	my $parent = shift;

	my $self = $class->SUPER::new(
		$parent,
		-1,
		Wx::gettext("Moose Assistant Preferences"),
		Wx::DefaultPosition,
		[ 359, 190 ],
		Wx::DEFAULT_DIALOG_STYLE,
	);

	my $options_labels = Wx::StaticText->new(
		$self,
		-1,
		Wx::gettext("Code Generation Options:"),
	);
	$options_labels->SetFont( Wx::Font->new( Wx::NORMAL_FONT->GetPointSize, 70, 90, 92, 0, "" ) );

	$self->{generated_code_label} = Wx::StaticText->new(
		$self,
		-1,
		Wx::gettext("Type:"),
	);

	$self->{generated_code_combo} = Wx::ComboBox->new(
		$self, -1, "Moose",
		Wx::DefaultPosition,
		Wx::DefaultSize,
		[   "Moose",
			"Mouse",
			"MooseX::Declare",
		],
		Wx::CB_READONLY,
	);

	$self->{comments_checkbox} = Wx::CheckBox->new(
		$self,
		-1,
		Wx::gettext("Generate Comments?"),
		Wx::DefaultPosition,
		Wx::DefaultSize,
	);

	$self->{sample_code_checkbox} = Wx::CheckBox->new(
		$self,
		-1,
		Wx::gettext("Generate Sample code?"),
		Wx::DefaultPosition,
		Wx::DefaultSize,
	);

	$self->{static_line} = Wx::StaticLine->new(
		$self,
		-1,
		Wx::DefaultPosition,
		Wx::DefaultSize,
		Wx::LI_HORIZONTAL,
	);

	$self->{snippets_checkbox} = Wx::CheckBox->new(
		$self,
		-1,
		Wx::gettext("Enable Snippets?"),
		Wx::DefaultPosition,
		Wx::DefaultSize,
	);

	$self->{ok_button} = Wx::Button->new(
		$self,
		Wx::ID_OK,
		Wx::gettext("OK"),
		Wx::DefaultPosition,
		Wx::DefaultSize,
	);

	$self->{cancel_button} = Wx::Button->new(
		$self,
		Wx::ID_CANCEL,
		Wx::gettext("Cancel"),
		Wx::DefaultPosition,
		Wx::DefaultSize,
	);

	my $generated_code_sizer = Wx::BoxSizer->new(Wx::HORIZONTAL);
	$generated_code_sizer->Add( $self->{generated_code_label}, 0, Wx::ALIGN_CENTER_VERTICAL | Wx::ALL, 5 );
	$generated_code_sizer->Add( $self->{generated_code_combo}, 0, Wx::ALL, 5 );

	my $button_sizer = Wx::BoxSizer->new(Wx::HORIZONTAL);
	$button_sizer->Add( 0, 0, 1, Wx::EXPAND, 5 );
	$button_sizer->Add( $self->{ok_button},     0, Wx::ALL, 5 );
	$button_sizer->Add( $self->{cancel_button}, 0, Wx::ALL, 5 );

	my $sizer = Wx::BoxSizer->new(Wx::VERTICAL);
	$sizer->Add( $options_labels,               0, Wx::EXPAND | Wx::LEFT | Wx::RIGHT | Wx::TOP,      5 );
	$sizer->Add( $generated_code_sizer,         0, Wx::EXPAND,                                       5 );
	$sizer->Add( $self->{comments_checkbox},    0, Wx::ALIGN_CENTER_VERTICAL | Wx::ALL | Wx::EXPAND, 5 );
	$sizer->Add( $self->{sample_code_checkbox}, 0, Wx::ALIGN_CENTER_VERTICAL | Wx::ALL | Wx::EXPAND, 5 );
	$sizer->Add( $self->{static_line},          0, Wx::EXPAND | Wx::ALL,                             5 );
	$sizer->Add( $self->{snippets_checkbox},    0, Wx::ALL,                                          5 );
	$sizer->Add( $button_sizer,                 0, Wx::EXPAND,                                       5 );

	$self->SetSizer($sizer);
	$self->Layout;

	return $self;
}

1;

# Copyright 2008-2012 The Padre development team as listed in Padre.pm.
# LICENSE
# This program is free software; you can redistribute it and/or
# modify it under the same terms as Perl 5 itself.

