Revision: 1978
http://svn.sourceforge.net/vexi/?rev=1978&view=rev
Author: clrg
Date: 2007-07-10 16:38:08 -0700 (Tue, 10 Jul 2007)
Log Message:
-----------
Smart surface widget :-)
Modified Paths:
--------------
widgets/trunk/org.vexi.widgets/src/vexi/widget/surface.t
Modified: widgets/trunk/org.vexi.widgets/src/vexi/widget/surface.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/vexi/widget/surface.t 2007-07-10
16:21:46 UTC (rev 1977)
+++ widgets/trunk/org.vexi.widgets/src/vexi/widget/surface.t 2007-07-10
23:38:08 UTC (rev 1978)
@@ -1,5 +1,35 @@
<!-- Copyright 2006 - see COPYING for details [LGPL] -->
<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta">
- <vexi.theme.surface />
+ <meta:doc>
+ <author>Charles Goodwin</author>
+ <about>A basic surface initializer</about>
+ <usage>
+ If you want to change the theme used by your surface then
+ preapply a box that has a 'theme' property:
+
+ <ui:box theme=".path.to.theme" />
+ <surface />
+
+ Otherwise the surface will apply a sane default.
+ </usage>
+ </meta:doc>
+ <ui:box>
+
+ // stops warnings about an undeclared property
+ thisbox.theme;
+
+ // no theme has been specified by the user
+ if (thisbox.theme == null)
+ {
+ vexi.log.warn("No theme specified - defaulting to
org.vexi.theme.win2k");
+ theme = vexi..org.vexi.theme.win2k;
+ }
+
+ // set up the theme
+ vexi..vexi.theme ++= theme;
+ // apply the theme surface template
+ vexi..vexi.theme.surface(thisbox);
+
+ </ui:box>
</vexi>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn