diff options
author | Angelo Naselli <anaselli@linux.it> | 2016-02-14 15:06:21 +0100 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2016-02-14 15:07:39 +0100 |
commit | c6ac52737f8ec0a23b311a7ed034fc0dc975296d (patch) | |
tree | 2eeaf83e5ece62ca42622dc84bf33b1882e42168 /lib/ManaTools | |
parent | 3938dc8dd2dbf0cedc6ddae7bc65748de7f49585 (diff) | |
download | manatools-c6ac52737f8ec0a23b311a7ed034fc0dc975296d.tar manatools-c6ac52737f8ec0a23b311a7ed034fc0dc975296d.tar.gz manatools-c6ac52737f8ec0a23b311a7ed034fc0dc975296d.tar.bz2 manatools-c6ac52737f8ec0a23b311a7ed034fc0dc975296d.tar.xz manatools-c6ac52737f8ec0a23b311a7ed034fc0dc975296d.zip |
Added common shortcuts to Shared::GUI dialogs
Diffstat (limited to 'lib/ManaTools')
-rw-r--r-- | lib/ManaTools/Shared/GUI.pm | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/ManaTools/Shared/GUI.pm b/lib/ManaTools/Shared/GUI.pm index 1becfd6f..bba9cf9c 100644 --- a/lib/ManaTools/Shared/GUI.pm +++ b/lib/ManaTools/Shared/GUI.pm @@ -122,7 +122,7 @@ sub warningMsgBox { my $rt = (exists $info->{richtext}) ? $info->{richtext} : 0; $dlg->setText($info->{text}, $rt) if (exists $info->{text}); - $dlg->setButtonLabel($self->loc->N("Ok"), $yui::YMGAMessageBox::B_ONE ); + $dlg->setButtonLabel($self->loc->N("&Ok"), $yui::YMGAMessageBox::B_ONE ); # $dlg->setMinSize(50, 5); $retVal = $dlg->show(); @@ -168,7 +168,7 @@ sub infoMsgBox { my $rt = (exists $info->{richtext}) ? $info->{richtext} : 0; $dlg->setText($info->{text}, $rt) if (exists $info->{text}); - $dlg->setButtonLabel($self->loc->N("Ok"), $yui::YMGAMessageBox::B_ONE ); + $dlg->setButtonLabel($self->loc->N("&Ok"), $yui::YMGAMessageBox::B_ONE ); # $dlg->setMinSize(50, 5); $retVal = $dlg->show(); @@ -212,7 +212,7 @@ sub msgBox { my $rt = (exists $info->{richtext}) ? $info->{richtext} : 0; $dlg->setText($info->{text}, $rt) if (exists $info->{text}); - $dlg->setButtonLabel($self->loc->N("Ok"), $yui::YMGAMessageBox::B_ONE ); + $dlg->setButtonLabel($self->loc->N("&Ok"), $yui::YMGAMessageBox::B_ONE ); # $dlg->setMinSize(50, 5); $retVal = $dlg->show(); @@ -262,8 +262,8 @@ sub ask_OkCancel { my $rt = (exists $info->{richtext}) ? $info->{richtext} : 0; $dlg->setText($info->{text}, $rt) if (exists $info->{text}); - $dlg->setButtonLabel($self->loc->N("Ok"), $yui::YMGAMessageBox::B_ONE ); - $dlg->setButtonLabel($self->loc->N("Cancel"), $yui::YMGAMessageBox::B_TWO); + $dlg->setButtonLabel($self->loc->N("&Ok"), $yui::YMGAMessageBox::B_ONE ); + $dlg->setButtonLabel($self->loc->N("&Cancel"), $yui::YMGAMessageBox::B_TWO); $dlg->setDefaultButton($yui::YMGAMessageBox::B_ONE); $dlg->setMinSize(50, 5); @@ -496,8 +496,8 @@ sub ask_fromList { my $align = $factory->createRight($layout); my $hbox = $factory->createHBox($align); - my $selectButton = $factory->createPushButton($hbox, $self->loc->N("Select")); - my $cancelButton = $factory->createPushButton($hbox, $self->loc->N("Cancel")); + my $selectButton = $factory->createPushButton($hbox, $self->loc->N("&Select")); + my $cancelButton = $factory->createPushButton($hbox, $self->loc->N("&Cancel")); if (exists $info->{default_button} ) { my $dflBtn = ($info->{default_button} == 1) ? $selectButton : $cancelButton; @@ -614,8 +614,8 @@ sub ask_multiple_fromList { my $align = $factory->createRight($layout); my $hbox = $factory->createHBox($align); - my $selectButton = $factory->createPushButton($hbox, $self->loc->N("Select")); - my $cancelButton = $factory->createPushButton($hbox, $self->loc->N("Cancel")); + my $selectButton = $factory->createPushButton($hbox, $self->loc->N("&Select")); + my $cancelButton = $factory->createPushButton($hbox, $self->loc->N("&Cancel")); if (exists $info->{default_button} ) { my $dflBtn = ($info->{default_button} == 1) ? $selectButton : $cancelButton; @@ -921,8 +921,8 @@ sub ask_fromTreeList { my $align = $factory->createRight($layout); my $hbox = $factory->createHBox($align); - my $selectButton = $factory->createPushButton($hbox, $self->loc->N("Select")); - my $cancelButton = $factory->createPushButton($hbox, $self->loc->N("Cancel")); + my $selectButton = $factory->createPushButton($hbox, $self->loc->N("&Select")); + my $cancelButton = $factory->createPushButton($hbox, $self->loc->N("&Cancel")); if (exists $info->{default_button} ) { my $dflBtn = ($info->{default_button} == 1) ? $selectButton : $cancelButton; @@ -1075,7 +1075,7 @@ sub select_fromList { my $align = $factory->createRight($layout); my $hbox = $factory->createHBox($align); $factory->createVSpacing($hbox, 1.0); - my $okButton = $factory->createPushButton($hbox, $self->loc->N("Ok")); + my $okButton = $factory->createPushButton($hbox, $self->loc->N("&Ok")); $dlg->setDefaultButton($okButton); $dlg->recalcLayout(); |