[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Re: Progress notification
From:       Carsten Pfeiffer <carpdjih () mailbox ! tu-berlin ! de>
Date:       2006-10-23 22:35:37
Message-ID: 200610240035.39720.carpdjih () mailbox ! tu-berlin ! de
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Saturday 21 October 2006 17:58, Thomas Zander wrote:

Hi,

> ProgressUpdater  *pu = new ProgressUpdater (widget);
>
> For each action that has progress updating you do a;
>
> pu->start(100);
> Updater updater = pu->startSubtask();
> where you can do things like:
> updater.forward(10); // adds 10 percent to the progress of this subtask.

You may want to have ProgressUpdater and Updater typed to one interface, so 
that you can use them interchangeably. And the Updater could also get a 
textual description.

FWIW, Eclipse uses a very similar interface (see ProgressMonitor and 
SubProgressMonitor conforming to IProgressMonitor).

Cheers,
Carsten

[Attachment #5 (application/pgp-signature)]

_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic