34
Wx::gettext("&Split window")
30
$self->{window_split_window} = $self->add_menu_item(
32
name => 'window.split_window',
33
label => Wx::gettext('&Split window'),
37
35
Padre::Wx::Main::on_split_window(@_);
41
39
$self->AppendSeparator;
48
Wx::gettext("Next File\tCtrl-TAB")
42
$self->{window_next_file} = $self->add_menu_item(
44
name => 'window.next_file',
45
label => Wx::gettext('Next File'),
46
shortcut => 'Ctrl-TAB',
51
48
Padre::Wx::Main::on_next_pane(@_);
59
Wx::gettext("Previous File\tCtrl-Shift-TAB")
52
$self->{window_previous_file} = $self->add_menu_item(
54
name => 'window.previous_file',
55
label => Wx::gettext('Previous File'),
56
shortcut => 'Ctrl-Shift-TAB',
62
58
Padre::Wx::Main::on_prev_pane(@_);
70
Wx::gettext("Last Visited File\tCtrl-6")
62
$self->{window_last_visited_file} = $self->add_menu_item(
64
name => 'window.last_visited_file',
65
label => Wx::gettext('Last Visited File'),
66
shortcut => 'Ctrl-Shift-P',
73
68
Padre::Wx::Main::on_last_visited_pane(@_);
81
Wx::gettext("Right Click\tAlt-/")
72
$self->{window_right_click} = $self->add_menu_item(
74
name => 'window.right_click',
75
label => Wx::gettext('Right Click'),
84
78
my $editor = $_[0]->current->editor;
86
80
$editor->on_right_down( $_[1] );
91
85
$self->AppendSeparator;
93
87
# Window Navigation
98
Wx::gettext("GoTo Subs Window")
88
$self->{window_goto_subs_window} = $self->add_menu_item(
90
name => 'window.goto_subs_window',
91
label => Wx::gettext('GoTo Subs Window'),
101
93
$_[0]->refresh_functions( $_[0]->current );
102
94
$_[0]->show_functions(1);
103
95
$_[0]->functions->SetFocus;
111
Wx::gettext("GoTo Outline Window\tAlt-L")
99
$self->{window_goto_outline_window} = $self->add_menu_item(
101
name => 'window.goto_outline_window',
102
label => Wx::gettext('GoTo Outline Window'),
114
105
$_[0]->show_outline(1);
115
106
$_[0]->outline->SetFocus;
123
Wx::gettext("GoTo Output Window\tAlt-O")
110
$self->{window_goto_outline_window} = $self->add_menu_item(
112
name => 'window.goto_output_window',
113
label => Wx::gettext('GoTo Output Window'),
126
116
$_[0]->show_output(1);
127
117
$_[0]->output->SetFocus;
131
$self->{goto_syntax_check} = $self->Append(
133
Wx::gettext("GoTo Syntax Check Window\tAlt-C")
137
$self->{goto_syntax_check},
121
$self->{window_goto_syntax_check_window} = $self->add_menu_item(
123
name => 'window.goto_syntax_check_window',
124
label => Wx::gettext('GoTo Syntax Check Window'),
139
127
$_[0]->show_syntax(1);
140
128
$_[0]->syntax->SetFocus;
148
Wx::gettext("GoTo Main Window\tAlt-M")
132
$self->{window_goto_main_window} = $self->add_menu_item(
134
name => 'window.goto_main_window',
135
label => Wx::gettext('GoTo Main Window'),
151
138
my $editor = $_[0]->current->editor or return;
152
139
$editor->SetFocus;
200
187
$self->Destroy( delete $self->{separator} );
190
$self->{window_split_window}->Enable($pages);
191
$self->{window_next_file}->Enable($pages);
192
$self->{window_previous_file}->Enable($pages);
193
$self->{window_last_visited_file}->Enable($pages);
194
$self->{window_right_click}->Enable($pages);
204
196
# Update the labels to match the notebooks
205
my $config_shorten_path = 1; # TODO should be configurable ?
197
my $config_shorten_path = 1; # TODO should be configurable ?
206
198
my $prefix_length = 0;
207
199
if ($config_shorten_path) {
208
200
$prefix_length = length get_common_prefix( $#$alt, $notebook );