Mailinglist Archive: yast-devel (122 mails)

< Previous Next >
[yast-devel] Progress:: supports subprogress (yast2-2.16.17)
  • From: Ladislav Slezak <lslezak@xxxxxxx>
  • Date: Fri, 07 Dec 2007 15:20:31 +0100
  • Message-id: <475956AF.7040203@xxxxxxx>

Hi all,

I have enhanced the Progress module, now it can display an additional progress
bar above the main progress bar.

It can be used for detailed progress of the current task. Currently it's used in
PackageCallbacks to implement total and detailed progress.

The subprogress can be either the standard `Progress widget or the tick progress
widget (the well known animated icon ;-)) or none.

See the descriptions of Progress::Subprogress*() functions for more details.

Here is an example how to use the new feature:

// create a standard progress
Progress::New(...);

// add a subprogress bar with 42 steps
Progress::SubprogressType(`progress, 42);
Progress::SubprogressTitle("Subprogress label");

// set the value of the subprogress
Progress::SubprogressValue(1);
...
Progress::SubprogressValue(42);

// remove the subprogress (the task is finished)
Progress::SubprogressType(`none, nil);

// next stage
Progress::NextStage();


--

Best Regards

Ladislav Slez√°k
Yast Developer
------------------------------------------------------------------------
SUSE LINUX, s.r.o. e-mail: lslezak@xxxxxxx
Lihovarsk√° 1060/12 tel: +420 284 028 960
190 00 Prague 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages