On Jan 10, 4:03 am, Guille <
gui...@losmolina.com.ar> wrote:
> Thank you,
>
> I think that this steps should be taken:
> Add features to the inspector, workspace and traits browser.
> Create more apps, ie: the main toolbar, maybe a change sorter?
> Add more bindings to the wrapper.
ok. what's the difference between a traits browser and an inspector?
They're all objects so you could probably use the same code but
just filter by objects with 'traits' in the printName or something.
> But first, I would like to know:
> Right now, I reload the whole thing, each time I test something. Is it
> possible to work with the image and then generate the slate files from
> the image?
No, this isn't currently possible. When you write a method definition
like:
x@y myfunc [code].
whatever is at y (e.g. Gtk Button traits) gets evaluated to an object.
As you have noticed, using the printName of that object doesn't always
get the correct code back that could evaluate to the same object.
Another issue is that prim_method_on or prim_accessor_on
(primitives.c)
and method_define(method.c) don't store the roles passed from the
primitive in the
method definition. They just put the roles into the objects directly.
That is an easy fix that I could change so that you could get those
from a method
definition, but in order for you to be able to put those in a file
later on, you'd have
to store all the defined methods somewhere. That also doesn't consider
how you'd
store the objects you create. So I'm not sure if this would be a good
idea.
I think some people have mentioned in the past that they'd rather have
a text
file editor where you could just evaluate specific things rather than
have what
squeak does which is to store everything in one file or one image.
If we had an editor you could edit the file you're working on while
you're using slate,
and then you wouldn't have to reload every time you make a change.
Another thing to
consider is that if we write a whole gui IDE in gtk, will we be able
to share code
if there is a separate windows IDE or mac os x IDE? So there are some
advantages
to having the IDE in slate itself. I would support both and I think
it's always useful to have
a good set of gtk bindings.
> How is source code handled in slate? I only see the treenodes for the
> parsed code
I think only the parsed code is stored. That's probably why slate
development has been
file based all these years.