aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2015-02-17 16:02:17 +0100
committerAngelo Naselli <anaselli@linux.it>2015-02-17 16:02:17 +0100
commitdffd6f978852434d495de70d37b6f7b9168408b8 (patch)
tree5aa9a44699a25e125c7bbb53c79fa6ea8beb948b
parent97f7c852b87654e442d00bcdb6ac775c49aaa490 (diff)
downloadcolin-keep-dffd6f978852434d495de70d37b6f7b9168408b8.tar
colin-keep-dffd6f978852434d495de70d37b6f7b9168408b8.tar.gz
colin-keep-dffd6f978852434d495de70d37b6f7b9168408b8.tar.bz2
colin-keep-dffd6f978852434d495de70d37b6f7b9168408b8.tar.xz
colin-keep-dffd6f978852434d495de70d37b6f7b9168408b8.zip
Added common shortcut to dialog push button (About, Cancel, Ok)
-rw-r--r--lib/AdminPanel/Module/Clock.pm20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/AdminPanel/Module/Clock.pm b/lib/AdminPanel/Module/Clock.pm
index b27e859..22fa059 100644
--- a/lib/AdminPanel/Module/Clock.pm
+++ b/lib/AdminPanel/Module/Clock.pm
@@ -59,12 +59,12 @@ use AdminPanel::Shared::Locales;
use AdminPanel::Shared::TimeZone;
use Time::Piece;
-
+
use yui;
extends qw( AdminPanel::Module );
-### TODO icon
+### TODO icon
has '+icon' => (
default => "/usr/share/mcc/themes/default/time-mdk.png",
);
@@ -218,7 +218,7 @@ sub _adminClockPanel {
my $factory = yui::YUI::widgetFactory;
my $optFactory = yui::YUI::optionalWidgetFactory;
- die "calendar widgets missing" if (!$optFactory->hasDateField() || !$optFactory->hasTimeField());
+ die "calendar widgets missing" if (!$optFactory->hasDateField() || !$optFactory->hasTimeField());
# Create Dialog
my $dialog = $factory->createMainDialog;
@@ -243,7 +243,7 @@ sub _adminClockPanel {
my $ntpFrame = $factory->createCheckBoxFrame($hbox, $self->loc->N("Enable Network Time Protocol"), 0);
my $hbox1 = $factory->createHBox($ntpFrame);
- my $changeNTPButton = $factory->createPushButton($hbox1, $self->loc->N("Change NTP server"));
+ my $changeNTPButton = $factory->createPushButton($hbox1, $self->loc->N("Change &NTP server"));
$factory->createHSpacing($hbox1, 1.0);
$factory->createLabel($hbox1,$self->loc->N("Current:"));
$factory->createHSpacing($hbox1, 1.0);
@@ -258,7 +258,7 @@ sub _adminClockPanel {
$hbox = $factory->createHBox($align);
$frame = $factory->createFrame ($hbox, $self->loc->N("TimeZone"));
$hbox1 = $factory->createHBox( $frame );
- my $changeTZButton = $factory->createPushButton($hbox1, $self->loc->N("Change Time Zone"));
+ my $changeTZButton = $factory->createPushButton($hbox1, $self->loc->N("Change &Time Zone"));
$factory->createHSpacing($hbox1, 1.0);
$factory->createLabel($hbox1,$self->loc->N("Current:"));
$factory->createHSpacing($hbox1, 1.0);
@@ -275,19 +275,19 @@ sub _adminClockPanel {
$align = $factory->createLeft($hbox);
$hbox = $factory->createHBox($align);
- my $aboutButton = $factory->createPushButton($hbox, $self->loc->N("About") );
- my $resetButton = $factory->createPushButton($hbox, $self->loc->N("Reset") );
+ my $aboutButton = $factory->createPushButton($hbox, $self->loc->N("&About") );
+ my $resetButton = $factory->createPushButton($hbox, $self->loc->N("&Reset") );
$align = $factory->createRight($hbox);
$hbox = $factory->createHBox($align);
- my $cancelButton = $factory->createPushButton($hbox, $self->loc->N("Cancel"));
- my $okButton = $factory->createPushButton($hbox, $self->loc->N("Ok"));
+ my $cancelButton = $factory->createPushButton($hbox, $self->loc->N("&Cancel"));
+ my $okButton = $factory->createPushButton($hbox, $self->loc->N("&Ok"));
$factory->createHSpacing($hbox, 1.0);
## no changes by default
$dialog->setDefaultButton($cancelButton);
- # End Dialof layout
+ # End Dialof layout
## default value
my $info = $self->_restoreValues();