[Sugar-devel] [FEATURE] TableView Widget request for inclusion to 0.88
Tomeu Vizoso
tomeu at sugarlabs.org
Tue Dec 15 13:39:36 EST 2009
On Tue, Dec 15, 2009 at 16:33, Aleksey Lim <alsroot at member.fsf.org> wrote:
> On Tue, Dec 15, 2009 at 03:28:23PM -0200, Tomeu Vizoso wrote:
>> On Sun, Dec 6, 2009 at 14:53, Aleksey Lim <alsroot at member.fsf.org> wrote:
>> > On Sun, Dec 06, 2009 at 02:37:07PM +0100, Simon Schampijer wrote:
>> >> On 11/28/2009 05:00 AM, Aleksey Lim wrote:
>> >> > Hi all,
>> >>
>> >> Hi Aleksey,
>> >>
>> >> thanks for proposing this feature!
>> >>
>> >> > http://wiki.sugarlabs.org/go/Features/TableView_Widget
>> >> >
>> >> > GTK widget to replace gtk.TreeView in Journal.
>> >> >
>> >> > 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).
>> >>
>> >> Can you elaborate on this? Instead of using the cell renderers to draw
>> >> the data in the tree model we would pack widgets?
>> >
>> > we should just implement Cell class(regular wigdet) and it will be used
>> > for all(visible) cells, see example
>> > http://wiki.sugarlabs.org/go/Features/TableView_Widget#Simple_example_for_SmootTable_widget
>>
>> The API looks very good to me, just one thing: what means 3, 3 here?
>>
>> table = SmoothTable(Cell, 3, 3)
>
> visible_row_count and visible_column_count
Oh, thought the SmoothTable would be able to know which is the visual area?
Regards,
Tomeu
--
«Sugar Labs is anyone who participates in improving and using Sugar.
What Sugar Labs does is determined by the participants.» - David
Farning
More information about the Sugar-devel
mailing list