diff options
author | Angelo Naselli <anaselli@linux.it> | 2015-08-30 15:32:54 +0200 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2015-08-30 15:32:54 +0200 |
commit | 75db02b0fdc7e435869eea8605c79bd1a47b67ce (patch) | |
tree | 02a2774ad6751d26b2b478ea3a959d4f486f05a5 /lib | |
parent | f1f2d9626af2f6104d8b90bcb16aac5e2f7295a9 (diff) | |
download | manatools-75db02b0fdc7e435869eea8605c79bd1a47b67ce.tar manatools-75db02b0fdc7e435869eea8605c79bd1a47b67ce.tar.gz manatools-75db02b0fdc7e435869eea8605c79bd1a47b67ce.tar.bz2 manatools-75db02b0fdc7e435869eea8605c79bd1a47b67ce.tar.xz manatools-75db02b0fdc7e435869eea8605c79bd1a47b67ce.zip |
fixed comment
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ManaTools/Shared/GUI/Dialog.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ManaTools/Shared/GUI/Dialog.pm b/lib/ManaTools/Shared/GUI/Dialog.pm index 428130af..7650507f 100644 --- a/lib/ManaTools/Shared/GUI/Dialog.pm +++ b/lib/ManaTools/Shared/GUI/Dialog.pm @@ -23,8 +23,7 @@ my $dlg = ManaTools::Shared::GUI::Dialog->new( $ManaTools::Shared::GUI::Dialog::cancelButton, $ManaTools::Shared::GUI::Dialog::okButton, ], - event_timeout => 0, # optional nd rw timeout in msec during the waitForEvent() - # needs a ManaTools::Shared::GUI::Event to manage the $yui::YEvent::TimeoutEvent + event_timeout => 0, # event timeout in msec during the waitForEvent() layout => sub { my $self = shift; my $layoutstart = shift; my $dlg = $self->dialog(); my $info = $self->info(); ... $self->addWidget('button1', $button, sub{...}, $backendItem1); }, restoreValues => sub { my $self = shift; $info = {}; ...; return $info }, result => sub { my $self = shift; ... }, @@ -93,6 +92,8 @@ use ManaTools::Shared::GUI::Event; icon: an icon layout: a callback that builds the layout of the dialog restoreValues: an optional callback that restore the values to an $info HashRef + event_timeout: an optional and rw timeout in msec during the waitForEvent() + needs a ManaTools::Shared::GUI::Event to manage the $yui::YEvent::TimeoutEvent buttons: an optional hashref containing $ManaTools::Shared::GUI::Dialog::cancelButton and/or $ManaTools::Shared::GUI::Dialog::okButton |