Features/TableView Widget: Difference between revisions
Created page with '<noinclude>{{TOCright}} Category:Feature Page Incomplete <Feature Name> </noinclude> == Summary == ''A sentence or two summarizing what this feature is …' |
No edit summary |
||
| (21 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
<noinclude>{{TOCright}} | <noinclude>{{TOCright}} | ||
[[Category:Feature | [[Category:Feature Accepted 0.88]] | ||
[[Category: | [[Category:FeatureObsoleted|TableView Widget]] | ||
</noinclude> | </noinclude> | ||
== Summary == | == Summary == | ||
GTK widget to replace gtk.TreeView in Journal. | |||
== Owner == | == Owner == | ||
* Name: [[User:alsroot| Aleksey Lim]] | |||
* Email: | * Email: [[Special:Emailuser/alsroot|send an email]] | ||
== Current status == | == Current status == | ||
* Targeted release: | * Targeted release: 0.88 | ||
* Last updated: | * Last updated: Mon Jan 11 21:15:02 UTC 2010 | ||
* Percentage of completion: | * Percentage of completion: 90% | ||
== Detailed Description == | == Detailed Description == | ||
'' | |||
Feature introduced two new classes - SmoothTable and TableView. | |||
=== SmoothTable class === | |||
Model less implementation. The real widget consists of ''visible-columns'' * (''visible-rows'' + 2) identical widgets (constructor is passed to SmoothTable during creation) and while scrolling (by pixel); SmoothTable shifts these widgets. | |||
=== TableView class === | |||
Just adds gtk.TreeModel support. | |||
== Benefit to Sugar == | == Benefit to Sugar == | ||
'' | Standard gtk components are not designed to be lazy. Third party widgets, I managed to find, uses scheme with renders (like gtk components), introduced component uses widgets instead (could have performance penalties, I guess, in common case but we don't have many rows in Journal view, so should be ok for us). | ||
Benefits we have for such scheme: | |||
* coding cells is more useful by using widgets than renders, we can reuse our existing custom widgets instead of coding sugarized cell renders | |||
* in some cases it's hard to sugarize cells theme (we still have ugly progress bar for Journal entries), with new widget, we use just gtk.ProgressBar | |||
== Scope == | == Scope == | ||
* new widget for [http://git.sugarlabs.org/projects/sugar-toolkit/repos/tableview sugar-toolkit] | |||
==UI Design== | ==UI Design== | ||
Nothing. | |||
== How To Test == | == How To Test == | ||
{{:{{PAGENAME}}/Testing}} | {{:{{PAGENAME}}/Testing}} | ||
== User Experience == | == User Experience == | ||
Nothing will be changed in case of user experience. | |||
== Dependencies == | == Dependencies == | ||
* regular glucose dependencies | |||
== Contingency Plan == | == Contingency Plan == | ||
None necessary, revert to previous release behaviour. | |||
== Documentation == | == Documentation == | ||