[yast-commit] r42638 - /trunk/gtk/unstable/tests/MultiProgressMeterVer.ycp
Author: rpmcruz Date: Mon Dec 3 21:12:57 2007 New Revision: 42638 URL: http://svn.opensuse.org/viewcvs/yast?rev=42638&view=rev Log: t Modified: trunk/gtk/unstable/tests/MultiProgressMeterVer.ycp Modified: trunk/gtk/unstable/tests/MultiProgressMeterVer.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable/tests/MultiProgressMeterVer.ycp?rev=42638&r1=42637&r2=42638&view=diff ============================================================================== --- trunk/gtk/unstable/tests/MultiProgressMeterVer.ycp (original) +++ trunk/gtk/unstable/tests/MultiProgressMeterVer.ycp Mon Dec 3 21:12:57 2007 @@ -1,39 +1,36 @@ // Simple example for MultiProgressMeter { - if ( ! UI::HasSpecialWidget(`HMultiProgressMeter ) ) - { - UI::OpenDialog( - `VBox( - `Label("Error: This UI doesn't support the MultiProgressMeter widget!"), - `PushButton(`opt(`default), "&OK") - ) - ); - UI::UserInput(); - UI::CloseDialog(); - - return; - } - - UI::OpenDialog( `VBox( - `VMultiProgressMeter(`id(`prog), [ 100, 200, 500, 20, 100 ] ), + `VMultiProgressMeter(`id(`vprog), [ 100, 200, 500, 20, 100 ] ), + `HMultiProgressMeter(`id(`hprog), [ 100, 200, 500, 20, 100 ] ), `PushButton(`opt(`default), "&Ok" ) ) ); - UI::ChangeWidget(`prog, `Values, [ 1000, 200, 500, 20, 100 ] ); UI::UserInput(); - UI::ChangeWidget(`prog, `Values, [ 800, 200, 500, 20, 100 ] ); UI::UserInput(); - UI::ChangeWidget(`prog, `Values, [ 500, 200, 500, 20, 100 ] ); UI::UserInput(); - UI::ChangeWidget(`prog, `Values, [ 200, 200, 500, 20, 100 ] ); UI::UserInput(); - UI::ChangeWidget(`prog, `Values, [ 0, 200, 500, 20, 100 ] ); UI::UserInput(); - - UI::ChangeWidget(`prog, `Values, [ 0, 100, 500, 20, 100 ] ); UI::UserInput(); - UI::ChangeWidget(`prog, `Values, [ 0, 20, 500, 20, 100 ] ); UI::UserInput(); - UI::ChangeWidget(`prog, `Values, [ 0, 0, 500, 20, 100 ] ); UI::UserInput(); - - UI::ChangeWidget(`prog, `Values, [ 0, 0, 400, 20, 100 ] ); UI::UserInput(); - UI::ChangeWidget(`prog, `Values, [ 0, 0, 300, 20, 100 ] ); UI::UserInput(); - UI::ChangeWidget(`prog, `Values, [ 0, 0, 200, 20, 100 ] ); UI::UserInput(); - UI::ChangeWidget(`prog, `Values, [ 0, 0, 100, 20, 100 ] ); UI::UserInput(); + UI::ChangeWidget(`vprog, `Values, [ 1000, 200, 500, 20, 100 ] ); + UI::ChangeWidget(`hprog, `Values, [ 1000, 200, 500, 20, 100 ] ); UI::UserInput(); + UI::ChangeWidget(`vprog, `Values, [ 800, 200, 500, 20, 100 ] ); + UI::ChangeWidget(`hprog, `Values, [ 800, 200, 500, 20, 100 ] ); UI::UserInput(); + UI::ChangeWidget(`vprog, `Values, [ 500, 200, 500, 20, 100 ] ); + UI::ChangeWidget(`hprog, `Values, [ 500, 200, 500, 20, 100 ] ); UI::UserInput(); + UI::ChangeWidget(`vprog, `Values, [ 200, 200, 500, 20, 100 ] ); + UI::ChangeWidget(`hprog, `Values, [ 200, 200, 500, 20, 100 ] ); UI::UserInput(); + UI::ChangeWidget(`vprog, `Values, [ 0, 200, 500, 20, 100 ] ); + UI::ChangeWidget(`hprog, `Values, [ 0, 200, 500, 20, 100 ] ); UI::UserInput(); + UI::ChangeWidget(`vprog, `Values, [ 0, 100, 500, 20, 100 ] ); + UI::ChangeWidget(`hprog, `Values, [ 0, 100, 500, 20, 100 ] ); UI::UserInput(); + UI::ChangeWidget(`vprog, `Values, [ 0, 20, 500, 20, 100 ] ); + UI::ChangeWidget(`hprog, `Values, [ 0, 20, 500, 20, 100 ] ); UI::UserInput(); + UI::ChangeWidget(`vprog, `Values, [ 0, 0, 500, 20, 100 ] ); + UI::ChangeWidget(`hprog, `Values, [ 0, 0, 500, 20, 100 ] ); UI::UserInput(); + UI::ChangeWidget(`vprog, `Values, [ 0, 0, 400, 20, 100 ] ); + UI::ChangeWidget(`hprog, `Values, [ 0, 0, 400, 20, 100 ] ); UI::UserInput(); + UI::ChangeWidget(`vprog, `Values, [ 0, 0, 300, 20, 100 ] ); + UI::ChangeWidget(`hprog, `Values, [ 0, 0, 300, 20, 100 ] ); UI::UserInput(); + UI::ChangeWidget(`vprog, `Values, [ 0, 0, 200, 20, 100 ] ); + UI::ChangeWidget(`hprog, `Values, [ 0, 0, 200, 20, 100 ] ); UI::UserInput(); + UI::ChangeWidget(`vprog, `Values, [ 0, 0, 100, 20, 100 ] ); + UI::ChangeWidget(`hprog, `Values, [ 0, 0, 100, 20, 100 ] ); UI::UserInput(); } + -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
rpmcruz@svn.opensuse.org