50
54
# TODO This feels wrong, the help menu code shouldn't
51
55
# populate the main window hash.
52
my $selection = $_[0]->current->text;
53
$_[0]->menu->help->help( $_[0] );
55
$_[0]->{help}->help($selection);
56
$_[0]->help( $_[0]->current->text );
64
name => 'help.search',
65
label => Wx::gettext('Help Search'),
69
#Show Help Search with no topic...
61
74
$self->{current} = $self->add_menu_item(
63
76
name => 'help.current',
64
77
label => Wx::gettext('Current Document'),
65
78
menu_event => sub {
66
$_[0]->menu->help->help( $_[0] );
67
$_[0]->{help}->help( $_[0]->current->document );
79
$_[0]->help( $_[0]->current->document );
178
# TODO - This violates encapsulation, a menu entry shouldn't be
179
# spawning windows and storing them in the window hash.
184
unless ( $main->{help} ) {
185
require Padre::Wx::DocBrowser;
186
$main->{help} = Padre::Wx::DocBrowser->new;
187
Wx::Event::EVT_CLOSE(
191
$main->{help}->help('Padre');
193
$main->{help}->SetFocus;
194
$main->{help}->Show(1);
198
# TODO - this feels utterly backwards to me
200
my ( $self, $event ) = @_;
201
my $help = Padre->ide->wx->main->{help};
203
if ( $event->CanVeto ) {
206
delete Padre->ide->wx->main->{help};
214
my $about = Wx::AboutDialogInfo->new;
215
$about->SetName("Padre");
216
$about->SetDescription( "Perl Application Development and Refactoring Environment\n\n"
217
. "Based on Wx.pm $Wx::VERSION and "
218
. Wx::wxVERSION_STRING . "\n"
220
. Padre::Constant::CONFIG_DIR . "\n"
221
. "SQLite user_version at "
222
. Padre::DB->pragma('user_version')
224
$about->SetVersion($Padre::VERSION);
225
$about->SetCopyright( Wx::gettext("Copyright 2008-2009 The Padre development team as listed in Padre.pm") );
227
# Only Unix/GTK native about box supports websites
228
if (Padre::Constant::WXGTK) {
229
$about->SetWebSite("http://padre.perlide.org/");
232
$about->AddDeveloper("Adam Kennedy");
233
$about->AddDeveloper("Ahmad Zawawi - أحمد محمد زواوي");
234
$about->AddDeveloper("Breno G. de Oliveira");
235
$about->AddDeveloper("Brian Cassidy");
236
$about->AddDeveloper("Cezary Morga");
237
$about->AddDeveloper("Chris Dolan");
238
$about->AddDeveloper("Claudio Ramirez");
239
$about->AddDeveloper("Fayland Lam");
240
$about->AddDeveloper("Gabriel Vieira");
241
$about->AddDeveloper("Gábor Szabó - גאבור סבו ");
242
$about->AddDeveloper("Heiko Jansen");
243
$about->AddDeveloper("Jérôme Quelin");
244
$about->AddDeveloper("Kaare Rasmussen");
245
$about->AddDeveloper("Keedi Kim - 김도형");
246
$about->AddDeveloper("Kenichi Ishigaki - 石垣憲一");
247
$about->AddDeveloper("Max Maischein");
248
$about->AddDeveloper("Patrick Donelan");
249
$about->AddDeveloper("Paweł Murias");
250
$about->AddDeveloper("Petar Shangov");
251
$about->AddDeveloper("Ryan Niebur");
252
$about->AddDeveloper("Steffen Müller");
254
$about->AddTranslator("Arabic - Ahmad Zawawi - أحمد محمد زواوي");
255
$about->AddTranslator("German - Heiko Jansen");
256
$about->AddTranslator("French - Jérôme Quelin");
257
$about->AddTranslator("Hebrew - Omer Zak - עומר זק");
258
$about->AddTranslator("Hebrew - Shlomi Fish - שלומי פיש");
259
$about->AddTranslator("Hebrew - Amir E. Aharoni - אמיר א. אהרוני");
260
$about->AddTranslator("Hungarian - György Pásztor");
261
$about->AddTranslator("Italian - Simone Blandino");
262
$about->AddTranslator("Japanese - Kenichi Ishigaki - 石垣憲一");
263
$about->AddTranslator("Korean - Keedi Kim - 김도형");
264
$about->AddTranslator("Norwegian - Kjetil Skotheim");
265
$about->AddTranslator("Russian - Andrew Shitov");
266
$about->AddTranslator("Dutch - Dirk De Nijs");
267
$about->AddTranslator("Polish - Cezary Morga");
268
$about->AddTranslator("Portuguese (BR) - Breno G. de Oliveira");
269
$about->AddTranslator("Spanish - Paco Alguacil");
270
$about->AddTranslator("Spanish - Enrique Nell");
271
$about->AddTranslator("Czech - Marcela Mašláňová");
272
$about->AddTranslator("Chinese (Trad./TW) - BlueT - Matthew Lien - 練喆明");
274
Wx::AboutBox($about);