Re: [Sugar-devel] [API proposal] Source editor and widget

2009-07-17 Thread Lucian Branescu
We could start with just expanding 'document' view source to allow activities to offer files to be edited, like user CSS or TurtleArt code blocks. This way, we don't have to worry about bundles (yet). 2009/7/17 Tomeu Vizoso : > On Thu, Jul 16, 2009 at 09:15, Simon Schampijer wrote: >> On 07/16/200

Re: [Sugar-devel] [API proposal] Source editor and widget

2009-07-17 Thread Tomeu Vizoso
On Thu, Jul 16, 2009 at 09:15, Simon Schampijer wrote: > On 07/16/2009 12:06 AM, Gary C Martin wrote: >> On 15 Jul 2009, at 17:07, Lucian Branescu wrote: >> >>> Here it is >>> http://wiki.sugarlabs.org/go/Development_Team/Almanac#How_do_I_create_a_text_box_for_code_editing.3F >> >> Thanks Lucian,

Re: [Sugar-devel] [API proposal] Source editor and widget

2009-07-16 Thread Simon Schampijer
On 07/16/2009 12:06 AM, Gary C Martin wrote: > On 15 Jul 2009, at 17:07, Lucian Branescu wrote: > >> Here it is >> http://wiki.sugarlabs.org/go/Development_Team/Almanac#How_do_I_create_a_text_box_for_code_editing.3F > > Thanks Lucian, I've been watching this thread from the sidelines. I > for one

Re: [Sugar-devel] [API proposal] Source editor and widget

2009-07-15 Thread Gary C Martin
On 15 Jul 2009, at 17:07, Lucian Branescu wrote: > Here it is > http://wiki.sugarlabs.org/go/Development_Team/Almanac#How_do_I_create_a_text_box_for_code_editing.3F Thanks Lucian, I've been watching this thread from the sidelines. I for one would LOVE the current 'view source' view to become a

Re: [Sugar-devel] [API proposal] Source editor and widget

2009-07-15 Thread Lucian Branescu
Here it is http://wiki.sugarlabs.org/go/Development_Team/Almanac#How_do_I_create_a_text_box_for_code_editing.3F 2009/7/15 Lucian Branescu : > Sure, I'll put it on the wiki, then. > > About editing userscripts, I'll resort to overriding the default View > Source, at least for now. > > 2009/7/15 To

Re: [Sugar-devel] [API proposal] Source editor and widget

2009-07-15 Thread Lucian Branescu
Sure, I'll put it on the wiki, then. About editing userscripts, I'll resort to overriding the default View Source, at least for now. 2009/7/15 Tomeu Vizoso : > On Wed, Jul 15, 2009 at 17:09, Lucian Branescu > wrote: >> Alright then. I'm unfamiliar with policies about code duplication in >> sugar

Re: [Sugar-devel] [API proposal] Source editor and widget

2009-07-15 Thread Tomeu Vizoso
On Wed, Jul 15, 2009 at 17:09, Lucian Branescu wrote: > Alright then. I'm unfamiliar with policies about code duplication in > sugar and activity code. If duplication is ok, then my proposal is > moot :) Ignore and move along. Is not ok, it's bad, but avoiding code duplication has a cost that need

Re: [Sugar-devel] [API proposal] Source editor and widget

2009-07-15 Thread Lucian Branescu
Alright then. I'm unfamiliar with policies about code duplication in sugar and activity code. If duplication is ok, then my proposal is moot :) Ignore and move along. 2009/7/15 Tomeu Vizoso : > On Mon, Jul 13, 2009 at 19:09, Lucian Branescu > wrote: >> I've attached a file with a SourceView class

Re: [Sugar-devel] [API proposal] Source editor and widget

2009-07-15 Thread Tomeu Vizoso
On Mon, Jul 13, 2009 at 19:09, Lucian Branescu wrote: > I've attached a file with a SourceView class. I'm still a bit unsure about the convenience of adding this code to sugar-toolkit. It's quite trivial code and the API we add to sugar-toolkit should be more or less stable (though we aren't yet p

Re: [Sugar-devel] [API proposal] Source editor and widget

2009-07-15 Thread Lucian Branescu
I'm proposing the addition of a general widget that could be used in many places(Pippy, View Source, my Browse branch). In fact, it is partly based on View Source code. I figured it would be a good idea to not have all this code duplication. For my project's needs (editing Userstyles and Userscri

Re: [Sugar-devel] [API proposal] Source editor and widget

2009-07-15 Thread Simon Schampijer
On 07/13/2009 06:09 PM, Lucian Branescu wrote: > I'm proposing the addition of sugar.graphics.sourceedit.SourceView. It > would be similar to what can be found in jarabe.view.viewsource. Exact > names of classes and/or module are up for debate. > > I'm also thinking of adding a FileView class in th

Re: [Sugar-devel] [API proposal] Source editor and widget

2009-07-13 Thread Lucian Branescu
I've attached a file with a SourceView class. I'll try to write up a FilesView class as well, since 3 of the 4 aforementioned use cases do something like this. 2009/7/13 Tomeu Vizoso : > On Mon, Jul 13, 2009 at 18:09, Lucian Branescu > wrote: >> I'm proposing the addition of sugar.graphics.sourc

Re: [Sugar-devel] [API proposal] Source editor and widget

2009-07-13 Thread Tomeu Vizoso
On Mon, Jul 13, 2009 at 18:09, Lucian Branescu wrote: > I'm proposing the addition of sugar.graphics.sourceedit.SourceView. It > would be similar to what can be found in jarabe.view.viewsource. Exact > names of classes and/or module are up for debate. May be better if you first code your new stuff

[Sugar-devel] [API proposal] Source editor and widget

2009-07-13 Thread Lucian Branescu
I'm proposing the addition of sugar.graphics.sourceedit.SourceView. It would be similar to what can be found in jarabe.view.viewsource. Exact names of classes and/or module are up for debate. I'm also thinking of adding a FileView class in there, but I'm not sure about it. I've already seen almo