[PATCH] Turn Powerdevil suspend notification into a dialog
dantti85-dev at yahoo.com.br
dantti85-dev at yahoo.com.br
Wed Sep 23 15:11:05 BST 2009
Hi, well the discussion seems be a bit hot
and i did not read all the emails so maybe this suggestion
was already made,
I like the new dialog and my suggestion is to use a subclass
of KProgressDialog where you provide your own QProgressBar
where instead of percentage you display the time decreasing.
something like
-----------------------------------------X
Your computer will suspend in:
[=====12 seconds ]
------------------------------------------
Daniel.
--- Em ter, 22/9/09, Dario Freddi <drf54321 at gmail.com> escreveu:
> De: Dario Freddi <drf54321 at gmail.com>
> Assunto: Re: [PATCH] Turn Powerdevil suspend notification into a dialog
> Para: kde-core-devel at kde.org
> Data: Terça-feira, 22 de Setembro de 2009, 11:58
> Hey Aurelien,
>
> the topic is quite controversial, but considering that such
> a
> dialog/notification would pop up just when the battery is
> critical, I think it
> makes sense. Bonus points for thinking about the focus
> issue and finding a
> good solution to the problem.
>
> The patch looks more than fine too, and it's 100% ok for me
> to commit it, but
> I would also like to hear from some gui/usability people
> about this matter.
>
> /me also goes changing his email address in the copyright
> headers, damn it.
>
> On Tuesday 22 September 2009 14:19:57 Aurélien Gâteau
> wrote:
> > Hi,
> >
> > In case you missed it, an earlier discussion about
> notification
> > capabilities on this list diverged a bit on Powerdevil
> suspend
> > notification. I am referring to the notification which
> appears when your
> > laptop is running out of battery. Powerdevil shows a
> notification to
> > tell you it will suspend the machine in a few seconds,
> unless you click
> > the "Cancel" button of the notification.
> >
> > I believe this is one of the few cases where using a
> dialog is more
> > appropriate than using a notification because the
> system is about to do
> > something very drastic, so it should ensure the user
> does not miss it.
> >
> > The dialog approach has a drawback though: it can
> steal the focus,
> > resulting in the user accidentally triggering one of
> the dialog buttons
> > if the dialog receive a keystroke intended for the
> previously active
> > window.
> >
> > Attached first patch turns Powerdevil suspend
> notification into a
> > dialog. To avoid the focus-stealing problem it opens
> the dialog as
> > always-on-top and on all desktops, but keeps the
> previously active
> > window active. I have been running it for a while
> without problems.
> >
> > It also adds a few niceties:
> > - A button to trigger the action right now.
> > - A real-time updated count down in the dialog text,
> so that the user
> > knows in real time how much time is left.
> >
> > Here is a screenshot of the dialog:
> > http://imagebin.ca/view/OT7MHYEn.html
> >
> > (Unfortunately updating the text of a KMessageBox is
> not possible at
> > runtime, so I had to create a KDialog-based dialog.
> This could be fixed
> > by giving an object name to the text label created by
> KMessageBox)
> >
> > The second patch increases the default timeout from 10
> seconds to 30
> > seconds, giving the user more time to react.
> >
> > What do you think about this?
> >
> > Aurelien
> >
>
> --
> -------------------
>
> Dario Freddi
> KDE Developer
> GPG Key Signature: 511A9A3B
>
____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com
More information about the kde-core-devel
mailing list