Opened 7 years ago

Closed 5 years ago

#4398 closed enhancement (fixed)

Toolkit: add MessageBox

Reported by: manuq Owned by: manuq
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: Sugar Version: Unspecified
Severity: Unspecified Keywords: design, gci14
Cc: Distribution/OS: Unspecified
Bug Status: New

Description

In the shell and activities we are adding informative messages more and more. The look is: a centered message in the canvas, with an icon, a bold title, optional description, and optional buttons. This elements are horizontally centered aligned too. Example:

http://bugs.sugarlabs.org/attachment/ticket/4384/downloading.png

We should add a new widget MessageBox to remove the duplicated code, improve consistency, and future usage.

Replacements:

  • Journal "Is empty"
  • Journal "No matching entries", button "Clear search"
  • Home ListView "No matching entries", button "Clear search"
  • Browse "Downloading document...", button "Cancel"
  • Read "No book", button "Add book"
  • Jukebox "No media", button "Add media"

Attachments (9)

0001-New-widget-MessageBox-SL-4398.patch (4.0 KB) - added by manuq 7 years ago.
Toolkit patch: new widget MessageBox
0006-Use-MessageBox-widget-and-remove-duplicated-code-SL-.patch (7.6 KB) - added by manuq 7 years ago.
Patch - adapt shell
0001-PDF-view-Use-MessageBox-SL-4398.patch (5.0 KB) - added by manuq 7 years ago.
Patch - adapt Browse
feedback_in_zoom_views.patch (22.0 KB) - added by manuq 7 years ago.
Adds feedback to the zoom views.
0001-Adapt-Sugar-to-new-MessageBox-widget-in-toolkit-with.patch (7.0 KB) - added by svineet 5 years ago.
0001-Add-MessageBox-widget-with-manuq.patch (3.2 KB) - added by svineet 5 years ago.
0001-Adapt-Jukebox-to-new-MessageBox-widget-VERSION2.patch (4.3 KB) - added by svineet 5 years ago.
0001-Adapt-Browse-to-new-MessageBox-widget-VERSION2.patch (8.4 KB) - added by svineet 5 years ago.
0001-Adapt-Read-to-new-MessageBox-widget-in-toolkit.patch (4.5 KB) - added by svineet 5 years ago.

Download all attachments as: .zip

Change History (14)

Changed 7 years ago by manuq

Toolkit patch: new widget MessageBox

Changed 7 years ago by manuq

Patch - adapt shell

Changed 7 years ago by manuq

Patch - adapt Browse

Changed 7 years ago by manuq

Adds feedback to the zoom views.

comment:1 Changed 6 years ago by dnarvaez

  • Component changed from sugar-toolkit-gtk3 to Sugar

comment:2 Changed 6 years ago by dnarvaez

  • Milestone changed from 1.0 to Unspecified

comment:3 Changed 6 years ago by dnarvaez

  • Bug Status changed from Unconfirmed to New

Any reason this was not landed?

Changed 5 years ago by svineet

comment:4 Changed 5 years ago by svineet

  • Keywords gci14 added

I added the MessageBox widget, adapting sugar to it too. I used manuq's patch.

This was for a GCI task: https://www.google-melange.com/gci/task/view/google/gci2014/6364105271148544

comment:5 Changed 5 years ago by svineet

  • Resolution set to fixed
  • Status changed from new to closed

Adapted activities for this task: http://www.google-melange.com/gci/task/view/google/gci2014/5311043379134464

Patches attached, closing this.

Note: See TracTickets for help on using tickets.