Devel-WxProf
view release on metacpan or search on metacpan
bin/wxprofile view on Meta::CPAN
'wxprofile',
wxDefaultPosition,
[ 1024, 768 ],
wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE|wxCLIP_CHILDREN
);
$self->preferences( Devel::WxProf::Preferences->new() );
Wx::InitAllImageHandlers();
# create menu bar
my $bar = Wx::MenuBar->new;
my $file = Wx::Menu->new;
$file->Append( wxID_OPEN, "Open" );
$file->Append( wxID_EXIT, "E&xit" );
my $help = Wx::Menu->new;
$help->Append( wxID_ABOUT, "&About..." );
$bar->Append( $file, "&File" );
$bar->Append( $help, "&Help" );
$self->SetMenuBar( $bar );
my $main = Wx::ScrolledWindow->new($self, @wx_defaults);
$main->SetScrollbars(20, 20, 55, 40);
my $main_sizer = Wx::BoxSizer->new(wxVERTICAL);
$main->SetSizer($main_sizer);
# INFO: {
# my $parent = Wx::Panel->new($main, @wx_defaults);
# Wx::StaticText->new($parent, -1, 'Profile Data - table view');
# $parent->Fit();
bin/wxprofile view on Meta::CPAN
sub _set_title {
my $self = shift;
$self->SetTitle(shift);
}
sub _add_menus {
my( $self, %menus ) = @_;
while( my( $title, $menu ) = each %menus ) {
$self->GetMenuBar->Insert( 1, $menu, $title );
}
}
sub _remove_menus {
my( $self ) = @_;
while( $self->GetMenuBar->GetMenuCount > 2 ) {
$self->GetMenuBar->Remove( 1 )->Destroy;
}
}
sub DESTROY {
rmtree $_[0]->preferences->get_data_dir() . "/$$";
}
my $app = Wx::SimpleApp->new;
my $locale = Wx::Locale->new( Wx::Locale::GetSystemLanguage );
my $profile = WxProf->new();
( run in 1.146 second using v1.01-cache-2.11-cpan-49f99fa48dc )