~juju-gui/juju-gui/trunk

Viewing all changes in revision 248.

  • Committer: Francesco Banconi
  • Date: 2012-11-16 15:28:01 UTC
  • mfrom: (243.2.16 bug-1076404-growl)
  • Revision ID: francesco.banconi@canonical.com-20121116152801-a3zaldhw4fatgboy
Growl-style notifications.

This branch introduces growl-style notifications
in the top-right corner of the window.
Implemented a notifier widget: it is a reusable
piece of code that just need a title, a message
and a timeout to display a notification. It is used
to render notification outside view containers, so
that notifications are preserved when the user changes
the current view.

A notifier is created when a notification is added,
following these rules:
- the notification is an error;
- the notification is local (it's not related to the
  delta stream).

The last point involves adding a new field "isDelta"
to the notification model, defaulting to false.
Notifications created when the delta stream arrives are
marked as "isDelta: true".

UI: new notifications appear on top, and disappear after
8 seconds. Mouse over prevents a notification to hide, 
mouse click destroys a notification.

Also fixed a bug in the unit view: a callable was undefined
when trying to "retry" or "resolve" a unit.

R=thiago, matthew.scott
CC=
https://codereview.appspot.com/6851058

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: