aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools/Shared
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2016-02-14 15:06:21 +0100
committerAngelo Naselli <anaselli@linux.it>2016-02-14 15:07:39 +0100
commitc6ac52737f8ec0a23b311a7ed034fc0dc975296d (patch)
tree2eeaf83e5ece62ca42622dc84bf33b1882e42168 /lib/ManaTools/Shared
parent3938dc8dd2dbf0cedc6ddae7bc65748de7f49585 (diff)
downloadmanatools-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/Shared')
-rw-r--r--lib/ManaTools/Shared/GUI.pm24
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();