1
package Padre::Wx::Dialog::DebugOptions;
7
use Padre::Wx::FBP::DebugOptions ();
11
Padre::Wx::FBP::DebugOptions
18
######################################################################
23
my $self = $class->SUPER::new(@_);
24
$self->CenterOnParent;
32
######################################################################
35
######################################################################
40
my $default = $self->find_script->GetValue;
42
$default = $self->config->default_projects_directory;
47
my ( $volume, $directory, $file ) = File::Spec->splitpath( $default, -d $default );
49
my $dialog = Wx::FileDialog->new(
51
Wx::gettext("Select Script to debug into"),
52
File::Spec->catpath( $volume, $directory, '' )
54
my $result = $dialog->ShowModal;
58
unless ( $result == Wx::ID_CANCEL ) {
59
$self->find_script->SetValue( $dialog->GetPath );
65
sub browse_run_directory {
67
my $default = $self->run_directory->GetValue;
69
$default = $self->config->default_run_directory;
74
my ( $volume, $directory, $file ) = File::Spec->splitpath( $default, -d $default );
76
my $dialog = Wx::DirDialog->new(
78
Wx::gettext("Select Directory to run script in"),
79
File::Spec->catpath( $volume, $directory, '' )
81
my $result = $dialog->ShowModal;
85
unless ( $result == Wx::ID_CANCEL ) {
86
$self->run_directory->SetValue( $dialog->GetPath );
97
$self->main->editor_focus;
103
# Copyright 2008-2013 The Padre development team as listed in Padre.pm.
105
# This program is free software; you can redistribute it and/or
106
# modify it under the same terms as Perl 5 itself.