Revision: 7525
http://svn.sourceforge.net/supercollider/?rev=7525&view=revAuthor: cruxxial
Date: 2008-04-19 17:09:41 -0700 (Sat, 19 Apr 2008)
Log Message:
-----------
.horz and .vert now use GUI.skin.gap so this MAY affect your guis. possibly they will look better, or you may need to adjust GUI.skin.gap to suit
Modified Paths:
--------------
trunk/build/SCClassLibrary/crucial/UncoupledUsefulThings/viewExtensions.sc
Modified: trunk/build/SCClassLibrary/crucial/UncoupledUsefulThings/viewExtensions.sc
===================================================================
--- trunk/build/SCClassLibrary/crucial/UncoupledUsefulThings/viewExtensions.sc 2008-04-19 23:40:27 UTC (rev 7524)
+++ trunk/build/SCClassLibrary/crucial/UncoupledUsefulThings/viewExtensions.sc 2008-04-20 00:09:41 UTC (rev 7525)
@@ -58,6 +58,7 @@
horz { arg func,bounds;
var comp;
comp = GUI.hLayoutView.new(this,bounds ?? { this.bounds });
+ comp.spacing = GUI.skin.gap.x;
comp.tryPerform('relativeOrigin_',FlowView.relativeOrigin);
func.value(comp);
^comp
@@ -65,6 +66,7 @@
vert { arg func,bounds;
var comp;
comp = GUI.vLayoutView.new(this,bounds ?? { this.bounds });
+ comp.spacing = GUI.skin.gap.y;
comp.tryPerform('relativeOrigin_',FlowView.relativeOrigin);
func.value(comp);
^comp
@@ -88,32 +90,6 @@
func.value(comp);
^comp
}
-
- // not yet working. do not use.
- // this depends on an SCView primitive that I'm not sure about yet.
- // you must run replace on the decorator now
- replaceChild { arg oldView,addFunction;
- var index,newView;
- if(oldView.isKindOf(ObjectGui),{
- oldView = oldView.view; // the flow view that is actually in the children array
- });
- index = children.indexOf(oldView);//.debug("index of old view in children:"+children);
- if(index.isNil,{
- //oldView.insp("removeing");
- //children.insp("children");
- //index.insp("index found");
- //"replaceChild: oldView not found in my children".die;
- ^this
- });
-
- oldView.remove;
- newView = addFunction.value(this);
- if(children.size-1 != index,{
- this.swapChildren(index,children.size-1);
- },{
- "was the last view, no swap".debug;
- });
- }
}
+ SCCompositeView {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
_______________________________________________
sc-dev mailing list
sc-dev@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-dev