Author: aschnell Date: Tue Mar 18 10:54:15 2008 New Revision: 45545 URL: http://svn.opensuse.org/viewcvs/yast?rev=45545&view=rev Log: - added Wizard::TimeoutUserInput Modified: trunk/yast2/library/wizard/src/Wizard.ycp Modified: trunk/yast2/library/wizard/src/Wizard.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/wizard/src/Wizard.ycp?rev=45545&r1=45544&r2=45545&view=diff ============================================================================== --- trunk/yast2/library/wizard/src/Wizard.ycp (original) +++ trunk/yast2/library/wizard/src/Wizard.ycp Tue Mar 18 10:54:15 2008 @@ -485,8 +485,26 @@ /** + * Substitute for UI::TimeoutUserInput + * + * Analogical to Wizard::UserInput. + **/ + global any TimeoutUserInput(integer timeout_millisec) + { + any input = UI::TimeoutUserInput(timeout_millisec); + + if ( input == `accept ) return `next; + if ( input == `cancel ) return `back; + + return input; + } + + + /** * Substitute for UI::WaitForEvent - */ + * + * Analogical to Wizard::UserInput. + **/ global map WaitForEvent(integer timeout_millisec) { map input = UI::WaitForEvent(timeout_millisec); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org