r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!REBOL3 GUI]

Ashley
5-Feb-2010
[336]
Why do we need faces/facets at all? Seems:

	Window -> faces -> Gobs

could be:

	Window -> Gobs -> Gobs


If you need more attributes than the standard gob! provides then 
just make the data attribute an object! and put them in there.
Henrik
5-Feb-2010
[337]
Ashley, GOBs are not directly linked to faces.
Ashley
5-Feb-2010
[338]
Is face = gob! ?
Graham
5-Feb-2010
[339x2]
<sigh>
Even Ashley doesn't understand the jargon .. QED
Henrik
5-Feb-2010
[341x2]
Ashley: nope. One face can consist of 3 GOBs.
GOBs are a means for rendering faces at a very low level. Just consider 
it like R2/View, where you, instead of having a cosed up system, 
can tinker with the inner workings of the FACE object in relation 
to View.
sqlab
5-Feb-2010
[343]
Without much understanding, I propose traits insted of facets.
Graham
5-Feb-2010
[344x2]
http://www.rebol.net/wiki/VID:_Face
I could live with traits :)
Henrik
5-Feb-2010
[346]
Ashley, sorry GOBs _are_ linked to faces.
Ashley
5-Feb-2010
[347]
OK, a meta-gob to recreate R2 functionality (given that a gob! can 
only do one thing)? I understand why layout was a "face factory" 
under V2, just thought we'd naturally move to a "gob! factory" approach 
with R3. I'm not being critical, just trying to understand why we 
still need the concept of faces under R3.
Henrik
5-Feb-2010
[348x2]
but you don't need to manage them
Ashley, yes, we just have a bit deeper abstraction layer in R3. Things 
like MAKE-GOB can still be useful for other things.
Graham
5-Feb-2010
[350x2]
Is that VID document I referenced still up to date?
Or does it refer to Gabriele's VID ?
Henrik
5-Feb-2010
[352]
No, this is for VID3.4. It seems to be up to date.
Graham
5-Feb-2010
[353]
last update Aug 2007 .. that was before Carl wrote VID+
Henrik
5-Feb-2010
[354]
Sorry, no. That is for VID3. It has concepts like FEEL and LOOK, 
which VID3.4 doesn't have.
Graham
5-Feb-2010
[355x7]
exactly
I put a warning on the document ...
the more I look at it the more I think settings is a better word 
than options
attributes is also better than facets
Answering my own question above .. this is shorter

code-text-list: text-list [
        content: [

            text-list-box :list-data :area-color options [ text-style: 'code 
            ]
            scroller
        ]
]
looks like 'comment { } is not allowed inside a stylize block
Is that a bug?
Henrik
5-Feb-2010
[362x3]
Ashley, "just trying to understand why we still need the concept 
of faces under R3." - The role of faces in R3 are just what they 
were in R2, a collection of features and functions inside an object, 
but instead of the underlying View system being closed, they are 
now linked to a fixed set of GOBs, that we eventually can extend 
with all sorts of features. So:

R2:

Layout -> Face tree -> View

R3:

Layout -> Face tree -> GOBs -> View


Faces are what are generated by the layout. So the "face factory" 
is still needed and styles are the "molds" or prototypes. Within 
the face factory, the GOB factory exists. I would assume this separation 
makes HW acceleration or replacing GOBs with a different structure, 
much easier later. GOBs are redrawn using DRAW-FACE and that is handled 
inside the styles.


Styles use resources like fonts, colors, materials and standard draw 
blocks. This eventually helps skinning and abstracts these things 
away from the styles themselves.


The obscure FEEL object is replaced with a set of on-* actors that 
are run at specific times in specific sequences during runtime. They 
are more fine grained, so you can determine what you want to do, 
for example during various stages of face initialization.


The relationship between the layout dialect and faces is a bit different 
than under R2: you can't access the whole face in R3, only facets. 
For example the GOB itself, is not a facet and neither are internal 
states. So in order to change a deeper element of a style, you need 
to create a new style. This seems cumbersome, but is badly needed 
for large layouts, where we are semantically separating appearance 
from purpose. VID allowed this to be an organic mess. We may figure 
out a way to make creating derivative styles a bit easier.
Graham, STYLIZE is a dialect, so it would need to support comments.
I see Graham is already submitting GUI reports to Curecode. I think 
we need a separate project for that. There could be hundreds of issues 
and they shouldn't be mixed with Core bugs.
Graham
5-Feb-2010
[365]
No, only one report ... not reports :)
Henrik
5-Feb-2010
[366]
well, you might be tempted to submit more. :-)
Graham
5-Feb-2010
[367x2]
>> stylize [ bt: button [] comment { }]

** GUI ERROR: Invalid style syntax: comment
Is that a GUI or core error ?  :)
Henrik
5-Feb-2010
[369x2]
that's a dialect error. Try to source stylize.
to be curious, what do you need the comment for?
Graham
5-Feb-2010
[371x3]
Do we really need a r3 curecode project?
r3 gui
comments are for failed experiments :)
Henrik
5-Feb-2010
[374]
yes, we really need it.
Graham
5-Feb-2010
[375x2]
We should ask doc ....
But there is a graphics section under cc
Henrik
5-Feb-2010
[377]
Yes, it should not be there. There are many subsections: Styles, 
layout, View, Text, DRAW, etc. We may face hundreds of reports on 
styles alone.
Graham
5-Feb-2010
[378x2]
You're optimistic!
Or a pessemist :)
Henrik
5-Feb-2010
[380]
Better to be prepared for a flood of reports. I suspect the GUI might 
be a bit popular.
Pekr
5-Feb-2010
[381]
:-) So when the work on GUI is supposed to be restarted? Do we wait 
for its inclusion into HostKit section?
Henrik
5-Feb-2010
[382]
Need to finish a project first and then we're beginning. Hopefully 
next week. With a place to report bugs, you can start a little earlier.
Gabriele
5-Feb-2010
[383]
If you need more attributes than the standard gob! provides then 
just make the data attribute an object! and put them in there.
 Right, and that object is called a "face".
Henrik
5-Feb-2010
[384]
Gabriele, was make-gob entirely finished? It can still be useful.
Pekr
5-Feb-2010
[385]
I was just reading about upcoming new Facebook facelift ... and following 
the discussion I found out, that one person suggests very cool Facebook 
client done in Silverlight. I needed to download SL beta 4. Then 
I tried that mighty app. Guy, I can tell you - we can do it in View 
anyday. Its not any faster, any better, and I would really like to 
see the ugly code behind the app. My long time suggestion to popularise 
View is to wrap known services - gmail, FB, etc. E.g. especially 
on my Winmobile, ther's a FB client done by MS, and you can't even 
read more than 1 reaction to your post. I imediatelly can imagine 
Winmobile client in R3 :-)


Here's the screenshot - http://xidys.com/pekr/facebook-silverlight.jpg