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

World: r3wp

[!REBOL3 GUI]

Geomol
31-Mar-2011
[6938]
Ok, from now on, all new words in REBOL will be in esperanto. English 
is too difficult!
Kaj
31-Mar-2011
[6939]
I think both forms would be correct, with contents a little more 
specific, and content a little more abstract, and shorter
AdrianS
31-Mar-2011
[6940]
when you have to move on short notice and you sell everything in 
your house, it's called a "contents sale"
GrahamC
31-Mar-2011
[6941x2]
Further explaining my explanation above, one would use contents when 
the items contained therein are easily numerated .. and content when 
it is not.  So, content provider because the items can not be easily 
enumerated, and vary from time to time.  So, on this basis one would 
use /contents because one can always enumerate the members of the 
object.
but if the object only had a single item, we would have to switch 
to use /content
Kaj
31-Mar-2011
[6943]
So in contents sale, it would mean all the content
GrahamC
31-Mar-2011
[6944]
in a contents sale, one can list each item ...
jocko
1-Apr-2011
[6945]
a suggestion for the next release of r3-gui : the doc style (the 
doc parser) interprets the first line of text as a title, which is 
not always appropriated. For instance, in a simple 

alert "this is an alert", the text is displayed as title. I think 
that this feature should be removed.
Cyphre
1-Apr-2011
[6946]
jocko, the DOC style is using the MDP markup now so my guess is we 
would rather use different style for alert layouts. We'll look into 
it.
Izkata
1-Apr-2011
[6947x2]
on CONTENT/CONTENTS:  As a native speaker, the singular word can 
be thought of as referring to a single collection.
so either makes sense, IMO
Ladislav
1-Apr-2011
[6949x3]
/CONTENT:/CONTENTS currently 5:4 (counting Cyphre for /CONTENT and 
me for /CONTENTS)
...and counting Robert for /CONTENT (the other alternatives are not 
more explanatory)
...and Graham seems to prefer /CONTENT if I understood it well
Geomol
1-Apr-2011
[6952]
It's a draw, so make both available. Mayby not in this situation, 
even if more than one option can be good in many cases.
GrahamC
1-Apr-2011
[6953]
No, I've changed to /contents :)
Gregg
1-Apr-2011
[6954]
I don't think I really voted, but I would go with 'contents as well. 
'Content seems to close to the meaning of set-face in my current 
mindset.
Ladislav
2-Apr-2011
[6955x3]
aha, after correcting and adding Gregg:

/CONTENT:/CONTENS = 4:6
(sorry for the typo)
It's a draw, so make both available
 - although possible in this case, it prevents unification
Henrik
2-Apr-2011
[6958]
is it possible to find a different word?
Gregg
2-Apr-2011
[6959x2]
Would it work to make update-face/contents the default, so removing 
that refinement, and add a /resize refinement for that case?
Assuming I understand the current use correctly for resizing.
Ladislav
3-Apr-2011
[6961x2]
aha, counterproposal:


- make the current UPDATE-FACE/CONTENTS behaviour the default, and 
for the other variant use something like UPDATE-FACE/SIZE (looks 
better than /RESIZE) to me. The trouble is, that the exception is 
the UPDATE-FACE/CONTENTS variant, since it can be used only for hpanels, 
vpanels, hgroups, vgroups, etc., while the default behaviour can 
be used for all faces.
Actually, the behaviour of UPDATE-FACE/CONTENTS called e.g. for a 
vpanel is equivalent to the behaviour of UPDATE-FACE called for a 
face contained in the same vpanel.
PeterWood
3-Apr-2011
[6963]
Is the behaviour recursive, in the sense the if a vpanel includes 
some hpanels the faces inside the hpanels are also updated?
Ladislav
3-Apr-2011
[6964x2]
The behaviour is recursive in that if I call UPDATE-FACE, then all 
parent panels up to the main window are updated.
(i.e. the other way than you guessed)
PeterWood
3-Apr-2011
[6966x2]
So if I have a vpanel which contains two hpanels and call UPDATE-FACE/CONTENT(S) 
will the contents of the hpanels be re-sized?
I was going to suggest a couple of alternatives but it is hard to 
find something that fits in with the VIEW/VID/GUI metaphors.
Ladislav
3-Apr-2011
[6968x2]
Two notes:

- update is not resize, but can provoke a resize as well

- if I call UPDATE-FACE/CONTENTS on a hpanel, then the hpanel is 
updated (row and column sizes are recalculated, the total panel size 
is recalculated), but the panels contained are not
As opposed to that, when I call UPDATE-FACE on the same hpanel, the 
row and column sizes are not recalculated, since there is no reason 
for that
PeterWood
3-Apr-2011
[6970x2]
Thanks for the explanation. You could consider:

 UPDATE-FACE/RECURSIVE (or R) which is common with cl utilities but 
 most un-REBOL like
	UPDATE-FACE/ALL - based on LOAD and SAVE metaphor
	UPDATE-FACE/CHILDREN
I'm not sure if the parent/child metaphor is appropriate in REBOL3 
GUI.
Ladislav
3-Apr-2011
[6972x3]
UPDATE-FACE/RECURSIVE
- this is a misunderstanding, as I said.


- UPDATE-FACE if always recursive, i.e. the it updates all the parents 
as well.
- UPDATE-FACE does not "recurse to children"
UPDATE-FACE/CHILDREN
 - a misunderstanding again, see above
UPDATE-FACE/ALL
 - a misunderstanding as well
PeterWood
3-Apr-2011
[6975]
I'm afraid that I'm a little lost - You said that UPDATE-FACE/CONTENTS 
called e.g. for a vpanel is equivalent to the behaviour of UPDATE-FACE 
for a face contained in the same vpanel.


To me the faces contained in vpanel can be considered children of 
the vpanel.
Ladislav
3-Apr-2011
[6976x3]
Yes, but that does not mean any children recursion, that is a parent 
recursion.
UPDATE-FACE recurses to parents.
Parent recursion means, that when I start with you, I continue with 
your parents, grandparents, etc. As opposed to that, when I do a 
child recursion, when I start with you, I continue with your children, 
grandchildren,...
PeterWood
3-Apr-2011
[6979]
That I understand. But I don't understand why you think UPDATE-FACE/CHILDREN 
would imply child recursion. For me, UPDATE-FACE/DESCENDANTS would 
imply child recursion.
Ladislav
3-Apr-2011
[6980]
aha, I was misled by the word. Now the question is, whether it will 
not confuse other people as well.
Gregg
3-Apr-2011
[6981]
I'm confused. :-)


I agree that /SIZE is a better name, and now see the problem with 
it.


What does the docstring say for the function? That is, can we approach 
it from the documentation side and see if the functionality is clear.
Ladislav
3-Apr-2011
[6982x2]
I intendedly did not want to be too much function-specific, since 
the "CONTENTS issue" is present in other function/refinement names 
as well.
and, you got me, it currently does not have a docstring (maybe it 
is too low-level, but I will definitely write something)
PeterWood
3-Apr-2011
[6984]
Personally, I think that ANCESTORS, PARENT, CHILDREN  and DESCENDANTS 
are very useful words for precisely defining relative positions in 
a heirarchy.


They do not seem to sit well with the REBOL though as firstly they 
are comparative long (and many rebollers appear to worry about having 
to type one or two extra characters) and secondly they don't really 
fit in with the existing VIEW/VID/REBOL3 GUI metaphors (which are 
more facial - FACE, GOB etc.)
Pekr
5-Apr-2011
[6985]
Any new release around the corner? This friday perhaps?
Cyphre
5-Apr-2011
[6986]
Yes, we plan to make new release this Friday. We'll post at least 
update info in case the release date is postponed from some reason.
Cyphre
8-Apr-2011
[6987]
update info: the new R3GUI release has been postponed to Monday (we 
want to solve few remaining issues to deliver more stable version) 
so stay tuned..