|
From: <pe...@us...> - 2012-12-11 14:32:39
|
Revision: 1203
http://openautomation.svn.sourceforge.net/openautomation/?rev=1203&view=rev
Author: peuter
Date: 2012-12-11 14:32:31 +0000 (Tue, 11 Dec 2012)
Log Message:
-----------
* added basic implementation of flavours (copied from pure-design)
* added flavour definition and css rules for slider range (use sliders with sodium flavour to get the "old" look of the metal design, with orange slider range background)
* added some examples in metal-config to demonstrate the usage of flavours
Modified Paths:
--------------
CometVisu/trunk/visu/designs/metal/basic.css
CometVisu/trunk/visu/structure/pure/slide.js
CometVisu/trunk/visu/visu_config.xsd
CometVisu/trunk/visu/visu_config_metal.xml
Modified: CometVisu/trunk/visu/designs/metal/basic.css
===================================================================
--- CometVisu/trunk/visu/designs/metal/basic.css 2012-12-11 10:51:10 UTC (rev 1202)
+++ CometVisu/trunk/visu/designs/metal/basic.css 2012-12-11 14:32:31 UTC (rev 1203)
@@ -449,7 +449,7 @@
.ui-slider { position: relative; text-align: left; }
.ui-slider .ui-slider-handle { position: absolute; z-index: 2; min-width: 1.6em; height: 1.6em; cursor: default; }
-.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; background-color: #F7931E; }
+.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
.ui-slider-horizontal { height: .8em; margin-left: 0.6em !important; }
.ui-slider-horizontal .ui-slider-handle { top: -.5em; margin-left: -.8em; }
@@ -810,4 +810,121 @@
/* fixes for plugin line-heights */
.widget .actor.rsslogBody, .widget .actor .diagram_inline {
line-height: normal;
+}
+
+
+ /*****************************************************************************/
+/* The definition of the flavours - overwrite the generic settings */
+/*****************************************************************************/
+
+.flavour_black hr
+{
+ background-color: #000000;
+}
+.flavour_black .link a
+{
+ color: #000000;
+}
+.flavour_black.group.widget
+{
+ border: #000000 1px solid;
+}
+.flavour_black .ui-slider .ui-slider-range {
+ background-color: #000000;
+}
+
+.flavour_white hr
+{
+ background-color: #ffffff;
+}
+.flavour_white .link a
+{
+ color: #ffffff;
+}
+.flavour_white.group.widget
+{
+ border: #ffffff 1px solid;
+}
+.flavour_white .ui-slider .ui-slider-range {
+ background-color: #ffffff;
+}
+
+.flavour_antimony hr
+{
+ background-color: #00ddff;
+}
+.flavour_antimony .link a
+{
+ color: #00ddff;
+}
+.flavour_antimony.group.widget
+{
+ border: #00ddff 1px solid;
+}
+.flavour_antimony .ui-slider .ui-slider-range {
+ background-color: #00ddff;
+}
+
+.flavour_boron hr
+{
+ background-color: #00ff11;
+}
+.flavour_boron .link a
+{
+ color: #00ff11;
+}
+.flavour_boron.group.widget
+{
+ border: #00ff11 1px solid;
+}
+.flavour_boron .ui-slider .ui-slider-range {
+ background-color: #00ff11;
+}
+
+.flavour_lithium hr
+{
+ background-color: #ff0000;
+}
+.flavour_lithium .link a
+{
+ color: #ff0000;
+}
+.flavour_lithium.group.widget
+{
+ border: #ff0000 1px solid;
+}
+.flavour_lithium .ui-slider .ui-slider-range {
+ background-color: #ff0000;
+}
+
+.flavour_potassium hr
+{
+ background-color: #d00055;
+}
+.flavour_potassium .link a
+{
+ color: #d00055;
+}
+.flavour_potassium.group.widget
+{
+ border: #d00055 1px solid;
+}
+.flavour_potassium .ui-slider .ui-slider-range {
+ background-color: #d0055;
+}
+
+.flavour_sodium hr
+{
+ background-color: #ff8000;
+}
+.flavour_sodium .link a
+{
+ color: #ff8000;
+}
+.flavour_sodium.group.widget
+{
+ border: #ff8000 1px solid;
+}
+.flavour_sodium .ui-slider .ui-slider-range {
+ background-color: #ff8000;
}
\ No newline at end of file
Modified: CometVisu/trunk/visu/structure/pure/slide.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/slide.js 2012-12-11 10:51:10 UTC (rev 1202)
+++ CometVisu/trunk/visu/structure/pure/slide.js 2012-12-11 14:32:31 UTC (rev 1203)
@@ -20,8 +20,10 @@
var $e = $(element);
var layout = $e.children('layout')[0];
var style = layout ? 'style="' + extractLayout( layout, type ) + '"' : '';
+ if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
var ret_val = $('<div class="widget clearfix slide" ' + style + ' />');
ret_val.setWidgetLayout($e).makeWidgetLabel($e);
+ if( flavour ) ret_val.addClass( 'flavour_' + flavour );
var address = makeAddressList($e);
var datatype_min = undefined;
var datatype_max = undefined;
Modified: CometVisu/trunk/visu/visu_config.xsd
===================================================================
--- CometVisu/trunk/visu/visu_config.xsd 2012-12-11 10:51:10 UTC (rev 1202)
+++ CometVisu/trunk/visu/visu_config.xsd 2012-12-11 14:32:31 UTC (rev 1203)
@@ -604,6 +604,7 @@
<xsd:attribute ref="mapping" use="optional" />
<xsd:attribute ref="styling" use="optional" />
<xsd:attribute ref="format" use="optional" />
+ <xsd:attribute name="flavour" type="xsd:string" use="optional" />
</xsd:complexType>
<xsd:complexType name="info">
Modified: CometVisu/trunk/visu/visu_config_metal.xml
===================================================================
--- CometVisu/trunk/visu/visu_config_metal.xml 2012-12-11 10:51:10 UTC (rev 1202)
+++ CometVisu/trunk/visu/visu_config_metal.xml 2012-12-11 14:32:31 UTC (rev 1203)
@@ -137,6 +137,8 @@
<layout colspan="3" />
<group name="Licht">
<layout colspan="12" />
+ <group nowidget="true" flavour="lithium">
+ <layout colspan="12" />
<switch mapping="OnOff" styling="GreyGreen">
<layout colspan="3" />
<label>Strahler</label>
@@ -158,6 +160,7 @@
<address transform="DPT:1.001" variant="">13/0/24</address>
</switch>
</group>
+ </group>
<group name="Jalousien">
<layout colspan="12" />
<multitrigger button1label="↑" button1value="0"
@@ -194,8 +197,8 @@
<address transform="DPT:1.001" variant="">13/0/13</address>
</switch>
</group>
- <group name="Heizung">
- <slide min="0" max="100" format="%d%%">
+ <group name="Heizung" flavour="sodium">
+ <slide min="0" max="100" format="%d%%" flavour="sodium">
<label><icon name="sani_heizung" />Heizung</label>
<address transform="DPT:5.001" variant="">13/0/38</address>
</slide>
@@ -253,7 +256,7 @@
</info>
</group>
<group align="center" name="Heizung">
- <slide min="0" max="100">
+ <slide min="0" max="100" flavour="lithium">
<label><icon name="sani_heizung" />Heizung</label>
<address transform="DPT:5.001" variant="">13/1/27</address>
</slide>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pe...@us...> - 2012-12-12 16:44:38
|
Revision: 1209
http://openautomation.svn.sourceforge.net/openautomation/?rev=1209&view=rev
Author: peuter
Date: 2012-12-12 16:44:25 +0000 (Wed, 12 Dec 2012)
Log Message:
-----------
* added flavours to widgets
* some examples of implemented flavours in metal config (currently only groups and sliders are "flavoured")
Modified Paths:
--------------
CometVisu/trunk/visu/designs/metal/basic.css
CometVisu/trunk/visu/structure/pure/iframe.js
CometVisu/trunk/visu/structure/pure/image.js
CometVisu/trunk/visu/structure/pure/imagetrigger.js
CometVisu/trunk/visu/structure/pure/info.js
CometVisu/trunk/visu/structure/pure/infotrigger.js
CometVisu/trunk/visu/structure/pure/multitrigger.js
CometVisu/trunk/visu/structure/pure/navbar.js
CometVisu/trunk/visu/structure/pure/pagejump.js
CometVisu/trunk/visu/structure/pure/rgb.js
CometVisu/trunk/visu/structure/pure/switch.js
CometVisu/trunk/visu/structure/pure/text.js
CometVisu/trunk/visu/structure/pure/toggle.js
CometVisu/trunk/visu/structure/pure/trigger.js
CometVisu/trunk/visu/structure/pure/urltrigger.js
CometVisu/trunk/visu/structure/pure/video.js
CometVisu/trunk/visu/structure/pure/wgplugin_info.js
CometVisu/trunk/visu/visu_config.xsd
CometVisu/trunk/visu/visu_config_metal.xml
Modified: CometVisu/trunk/visu/designs/metal/basic.css
===================================================================
--- CometVisu/trunk/visu/designs/metal/basic.css 2012-12-12 14:33:44 UTC (rev 1208)
+++ CometVisu/trunk/visu/designs/metal/basic.css 2012-12-12 16:44:25 UTC (rev 1209)
@@ -832,6 +832,9 @@
.flavour_black .ui-slider .ui-slider-range {
background-color: #000000;
}
+.flavour_black.group > div > h2 {
+ background-image: linear-gradient(#000000, #333);
+}
.flavour_white hr
{
@@ -848,6 +851,9 @@
.flavour_white .ui-slider .ui-slider-range {
background-color: #ffffff;
}
+.flavour_white.group > div > h2 {
+ background-image: linear-gradient(#ffffff, #333);
+}
.flavour_antimony hr
{
@@ -864,6 +870,9 @@
.flavour_antimony .ui-slider .ui-slider-range {
background-color: #00ddff;
}
+.flavour_antimony.group > div > h2 {
+ background-image: linear-gradient(#00ddff, #333);
+}
.flavour_boron hr
{
@@ -880,6 +889,9 @@
.flavour_boron .ui-slider .ui-slider-range {
background-color: #00ff11;
}
+.flavour_boron.group > div > h2 {
+ background-image: linear-gradient(#00ff11, #333);
+}
.flavour_lithium hr
{
@@ -896,6 +908,9 @@
.flavour_lithium .ui-slider .ui-slider-range {
background-color: #ff0000;
}
+.flavour_lithium.group > div > h2 {
+ background-image: linear-gradient(#ff0000, #333);
+}
.flavour_potassium hr
{
@@ -910,8 +925,11 @@
border: #d00055 1px solid;
}
.flavour_potassium .ui-slider .ui-slider-range {
- background-color: #d0055;
+ background-color: #d00055;
}
+.flavour_potassium.group > div > h2 {
+ background-image: linear-gradient(#d00055, #333);
+}
.flavour_sodium hr
{
@@ -925,6 +943,9 @@
{
border: #ff8000 1px solid;
}
+.flavour_sodium.group > div > h2 {
+ background-image: linear-gradient(#ff8000, #333);
+}
.flavour_sodium .ui-slider .ui-slider-range {
background-color: #ff8000;
}
\ No newline at end of file
Modified: CometVisu/trunk/visu/structure/pure/iframe.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/iframe.js 2012-12-12 14:33:44 UTC (rev 1208)
+++ CometVisu/trunk/visu/structure/pure/iframe.js 2012-12-12 16:44:25 UTC (rev 1209)
@@ -22,6 +22,8 @@
var style = layout ? 'style="' + extractLayout( layout, type ) + '"' : '';
var ret_val = $('<div class="widget iframe" ' + style + '/>');
ret_val.setWidgetLayout($e);
+ if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
+ if( flavour ) ret_val.addClass( 'flavour_' + flavour );
ret_val.append( extractLabel( $e.find('label')[0] ) );
var iframeStyle = '';
if( $e.attr('width' ) ) {
Modified: CometVisu/trunk/visu/structure/pure/image.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/image.js 2012-12-12 14:33:44 UTC (rev 1208)
+++ CometVisu/trunk/visu/structure/pure/image.js 2012-12-12 16:44:25 UTC (rev 1209)
@@ -22,6 +22,8 @@
var style = layout ? 'style="' + extractLayout( layout, type ) + '"' : '';
var ret_val = $('<div class="widget clearfix image" ' + style + '/>');
ret_val.setWidgetLayout($e);
+ if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
+ if( flavour ) ret_val.addClass( 'flavour_' + flavour );
ret_val.append( extractLabel( $e.find('label')[0] ) );
var imgStyle = '';
if( $e.attr('width' ) ) {
Modified: CometVisu/trunk/visu/structure/pure/imagetrigger.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/imagetrigger.js 2012-12-12 14:33:44 UTC (rev 1208)
+++ CometVisu/trunk/visu/structure/pure/imagetrigger.js 2012-12-12 16:44:25 UTC (rev 1209)
@@ -21,6 +21,8 @@
var ret_val = $('<div class="widget clearfix image" />');
ret_val.setWidgetLayout($e);
ret_val.addClass ('imagetrigger');
+ if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
+ if( flavour ) ret_val.addClass( 'flavour_' + flavour );
var value = $e.attr('value') ? $e.attr('value') : 0;
ret_val.append( extractLabel( $e.find('label')[0] ) );
var address = makeAddressList($e);
Modified: CometVisu/trunk/visu/structure/pure/info.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/info.js 2012-12-12 14:33:44 UTC (rev 1208)
+++ CometVisu/trunk/visu/structure/pure/info.js 2012-12-12 16:44:25 UTC (rev 1209)
@@ -21,9 +21,11 @@
var layout = $e.children('layout')[0];
var style = layout ? 'style="' + extractLayout( layout, type ) + '"' : '';
var classes = 'widget clearfix info';
+ if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
if( $e.attr('align') ) {
classes+=" "+$e.attr('align');
}
+ if( flavour ) classes+=' flavour_' + flavour;
var ret_val = $('<div class="'+classes + '" ' + style + ' />');
if ( $e.attr('class') ) {
ret_val.addClass('custom_'+$e.attr('class'));
Modified: CometVisu/trunk/visu/structure/pure/infotrigger.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/infotrigger.js 2012-12-12 14:33:44 UTC (rev 1208)
+++ CometVisu/trunk/visu/structure/pure/infotrigger.js 2012-12-12 16:44:25 UTC (rev 1209)
@@ -23,7 +23,9 @@
var ret_val = $('<div class="widget clearfix infotrigger" ' + style + '/>');
ret_val.setWidgetLayout($e);
ret_val.append( extractLabel( $e.find('label')[0] ) );
-
+
+ if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
+ if( flavour ) ret_val.addClass( 'flavour_' + flavour );
// handle addresses
var address = makeAddressList($e,
function( src, transform, mode, variant ) {
@@ -35,7 +37,7 @@
var buttons = $('<div style="float:left;"/>');
var buttonCount = 2;
- var actordown = '<div class="actor switchUnpressed downlabel" '
+ var actordown = '<div class="actor switchUnpressed downlabel" ';
if ( $e.attr( 'align' ) )
actorinfo += 'style="text-align: '+$e.attr( 'align' )+'" ';
actordown += '>';
@@ -57,7 +59,7 @@
$(this).removeClass('switchPressed').addClass('switchUnpressed');
} );
- var actorup = '<div class="actor switchUnpressed uplabel" '
+ var actorup = '<div class="actor switchUnpressed uplabel" ';
if ( $e.attr( 'align' ) )
actorinfo += 'style="text-align: '+$e.attr( 'align' )+'" ';
actorup += '>';
Modified: CometVisu/trunk/visu/structure/pure/multitrigger.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/multitrigger.js 2012-12-12 14:33:44 UTC (rev 1208)
+++ CometVisu/trunk/visu/structure/pure/multitrigger.js 2012-12-12 16:44:25 UTC (rev 1209)
@@ -23,6 +23,8 @@
var ret_val = $('<div class="widget clearfix multitrigger" ' + style + '/>');
ret_val.setWidgetLayout($e)
ret_val.append( extractLabel( $e.find('label')[0] ) );
+ if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
+ if( flavour ) ret_val.addClass( 'flavour_' + flavour );
var address = makeAddressList($e);
var showstatus = $e.attr("showstatus") || "false";
var buttons = $('<div class="actor_container" style="float:left"/>');
Modified: CometVisu/trunk/visu/structure/pure/navbar.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/navbar.js 2012-12-12 14:33:44 UTC (rev 1208)
+++ CometVisu/trunk/visu/structure/pure/navbar.js 2012-12-12 16:44:25 UTC (rev 1209)
@@ -28,6 +28,8 @@
container.append( create_pages( childs[i], path + '_' + i, flavour ) );
} );
container.data('scope',scope);
+ if( $n.attr('flavour') ) flavour = $n.attr('flavour');// sub design choice
+ if( flavour ) container.addClass( 'flavour_' + flavour );
var dynamic = $n.attr('dynamic') == 'true' ? true : false;
var size = $n.attr('width') || 300;
Modified: CometVisu/trunk/visu/structure/pure/pagejump.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/pagejump.js 2012-12-12 14:33:44 UTC (rev 1208)
+++ CometVisu/trunk/visu/structure/pure/pagejump.js 2012-12-12 16:44:25 UTC (rev 1209)
@@ -26,6 +26,8 @@
classes+=" "+$e.attr('align');
}
var ret_val = $('<div class="'+classes+'" ' + style + '/>');
+ if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
+ if( flavour ) ret_val.addClass( 'flavour_' + flavour );
ret_val.setWidgetLayout($e);
var label = extractLabel( $e.find('label')[0] );
var address = makeAddressList($e);
Modified: CometVisu/trunk/visu/structure/pure/rgb.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/rgb.js 2012-12-12 14:33:44 UTC (rev 1208)
+++ CometVisu/trunk/visu/structure/pure/rgb.js 2012-12-12 16:44:25 UTC (rev 1209)
@@ -26,7 +26,9 @@
classes+=" "+$e.attr('align');
}
var ret_val = $('<div class="'+classes+'" ' + style + '/>');
- ret_val.setWidgetLayout($e)
+ ret_val.setWidgetLayout($e);
+ if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
+ if( flavour ) ret_val.addClass( 'flavour_' + flavour );
var label = extractLabel( $e.find('label')[0] );
var address = makeAddressList($e, rgb_handleVariant);
Modified: CometVisu/trunk/visu/structure/pure/switch.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/switch.js 2012-12-12 14:33:44 UTC (rev 1208)
+++ CometVisu/trunk/visu/structure/pure/switch.js 2012-12-12 16:44:25 UTC (rev 1209)
@@ -26,6 +26,8 @@
}
var ret_val = $('<div class="'+classes+'" ' + style + '/>');
ret_val.setWidgetLayout($e);
+ if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
+ if( flavour ) ret_val.addClass( 'flavour_' + flavour );
var label = extractLabel( $e.find('label')[0] );
var address = makeAddressList($e);
Modified: CometVisu/trunk/visu/structure/pure/text.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/text.js 2012-12-12 14:33:44 UTC (rev 1208)
+++ CometVisu/trunk/visu/structure/pure/text.js 2012-12-12 16:44:25 UTC (rev 1209)
@@ -22,6 +22,8 @@
var style = layout ? 'style="' + extractLayout(layout, type) + '"' : '';
var ret_val = $('<div class="widget clearfix text" ' + style + '/>');
ret_val.setWidgetLayout($e);
+ if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
+ if( flavour ) ret_val.addClass( 'flavour_' + flavour );
var style = '';
if ($e.attr('align'))
style += 'text-align:' + $e.attr('align') + ';';
Modified: CometVisu/trunk/visu/structure/pure/toggle.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/toggle.js 2012-12-12 14:33:44 UTC (rev 1208)
+++ CometVisu/trunk/visu/structure/pure/toggle.js 2012-12-12 16:44:25 UTC (rev 1209)
@@ -26,6 +26,8 @@
}
var ret_val = $('<div class="'+classes+'" ' + style + '/>');
ret_val.setWidgetLayout($e);
+ if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
+ if( flavour ) ret_val.addClass( 'flavour_' + flavour );
var label = extractLabel( $e.find('label')[0] );
var address = makeAddressList($e);
var actor = '<div class="actor switchUnpressed"><div class="value">-</div></div>';
Modified: CometVisu/trunk/visu/structure/pure/trigger.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/trigger.js 2012-12-12 14:33:44 UTC (rev 1208)
+++ CometVisu/trunk/visu/structure/pure/trigger.js 2012-12-12 16:44:25 UTC (rev 1209)
@@ -27,6 +27,8 @@
}
var ret_val = $('<div class="'+classes+'" ' + style + '/>');
ret_val.setWidgetLayout($e);
+ if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
+ if( flavour ) ret_val.addClass( 'flavour_' + flavour );
var label = extractLabel( $e.find('label')[0] );
var address = makeAddressList($e);
var actor = '<div class="actor switchUnpressed ';
Modified: CometVisu/trunk/visu/structure/pure/urltrigger.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/urltrigger.js 2012-12-12 14:33:44 UTC (rev 1208)
+++ CometVisu/trunk/visu/structure/pure/urltrigger.js 2012-12-12 16:44:25 UTC (rev 1209)
@@ -28,6 +28,8 @@
}
var ret_val = $('<div class="'+classes+'" ' + style + '/>');
ret_val.setWidgetLayout($e);
+ if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
+ if( flavour ) ret_val.addClass( 'flavour_' + flavour );
var label = extractLabel( $e.find('label')[0] );
var actor = '<div class="actor switchUnpressed ';
if ( $e.attr( 'align' ) )
Modified: CometVisu/trunk/visu/structure/pure/video.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/video.js 2012-12-12 14:33:44 UTC (rev 1208)
+++ CometVisu/trunk/visu/structure/pure/video.js 2012-12-12 16:44:25 UTC (rev 1209)
@@ -22,6 +22,8 @@
var style = layout ? 'style="' + extractLayout( layout, type ) + '"' : '';
var ret_val = $('<div class="widget clearfix video" ' + style + '/>');
ret_val.setWidgetLayout($e);
+ if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
+ if( flavour ) ret_val.addClass( 'flavour_' + flavour );
ret_val.append( extractLabel( $e.find('label')[0] ) );
var autoplay = ($e.attr('autoplay') && $e.attr('autoplay')=='true') ? ' autoplay="autoplay"' : '';
var style = '';
Modified: CometVisu/trunk/visu/structure/pure/wgplugin_info.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/wgplugin_info.js 2012-12-12 14:33:44 UTC (rev 1208)
+++ CometVisu/trunk/visu/structure/pure/wgplugin_info.js 2012-12-12 16:44:25 UTC (rev 1209)
@@ -25,6 +25,8 @@
type == '3d' && $(document).bind( 'update3d', {element: ret_val, layout: extractLayout3d( layout )}, this.update3d );
ret_val.setWidgetLayout($e).makeWidgetLabel($e);
+ if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
+ if( flavour ) ret_val.addClass( 'flavour_' + flavour );
var address = makeAddressList($e);
var actor = '<div class="actor"><div class="value">-</div></div>';
Modified: CometVisu/trunk/visu/visu_config.xsd
===================================================================
--- CometVisu/trunk/visu/visu_config.xsd 2012-12-12 14:33:44 UTC (rev 1208)
+++ CometVisu/trunk/visu/visu_config.xsd 2012-12-12 16:44:25 UTC (rev 1209)
@@ -437,6 +437,7 @@
<xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
</xsd:choice>
<xsd:attribute ref="align" use="optional" />
+ <xsd:attribute name="flavour" type="xsd:string" use="optional" />
</xsd:complexType>
<xsd:complexType name="designtoggle">
@@ -462,6 +463,7 @@
<xsd:attribute name="on_value" type="xsd:string" use="optional" />
<xsd:attribute name="off_value" type="xsd:string" use="optional" />
<xsd:attribute ref="align" use="optional" />
+ <xsd:attribute name="flavour" type="xsd:string" use="optional" />
</xsd:complexType>
<xsd:complexType name="toogle">
@@ -473,6 +475,7 @@
<xsd:attribute ref="styling" use="optional" />
<xsd:attribute ref="mapping" use="optional" />
<xsd:attribute ref="align" use="optional" />
+ <xsd:attribute name="flavour" type="xsd:string" use="optional" />
</xsd:complexType>
<xsd:complexType name="trigger">
@@ -485,6 +488,7 @@
<xsd:attribute ref="mapping" use="optional" />
<xsd:attribute ref="styling" use="optional" />
<xsd:attribute ref="align" use="optional" />
+ <xsd:attribute name="flavour" type="xsd:string" use="optional" />
</xsd:complexType>
<xsd:complexType name="urltrigger">
@@ -498,6 +502,7 @@
<xsd:attribute ref="align" use="optional" />
<xsd:attribute name="url" type="xsd:string" use="required" />
<xsd:attribute name="params" type="xsd:string" use="optional" />
+ <xsd:attribute name="flavour" type="xsd:string" use="optional" />
</xsd:complexType>
<xsd:complexType name="infotrigger">
@@ -518,6 +523,7 @@
<xsd:attribute ref="align" use="optional" />
<xsd:attribute ref="format" use="optional" />
<xsd:attribute name="infoposition" type="xsd:decimal" use="optional" />
+ <xsd:attribute name="flavour" type="xsd:string" use="optional" />
</xsd:complexType>
<xsd:complexType name="rgb">
@@ -526,6 +532,7 @@
<xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
<xsd:element name="address" type="address" minOccurs="3" maxOccurs="unbounded" />
</xsd:choice>
+ <xsd:attribute name="flavour" type="xsd:string" use="optional" />
</xsd:complexType>
<xsd:complexType name="multitrigger">
@@ -545,6 +552,7 @@
<xsd:attribute name="button3value" type="xsd:string" use="optional" />
<xsd:attribute name="button4label" type="xsd:string" use="optional" />
<xsd:attribute name="button4value" type="xsd:string" use="optional" />
+ <xsd:attribute name="flavour" type="xsd:string" use="optional" />
</xsd:complexType>
<xsd:complexType name="slide">
@@ -572,6 +580,7 @@
<xsd:attribute ref="styling" use="optional" />
<xsd:attribute ref="mapping" use="optional" />
<xsd:attribute ref="align" use="optional" />
+ <xsd:attribute name="flavour" type="xsd:string" use="optional" />
</xsd:complexType>
<xsd:complexType name="image">
@@ -583,6 +592,7 @@
<xsd:attribute name="width" type="dimension" />
<xsd:attribute name="height" type="dimension" />
<xsd:attribute name="refresh" type="xsd:decimal" />
+ <xsd:attribute name="flavour" type="xsd:string" use="optional" />
</xsd:complexType>
<xsd:complexType name="imagetrigger">
@@ -599,6 +609,7 @@
<xsd:attribute name="refresh" type="xsd:decimal" />
<xsd:attribute ref="mapping" use="optional" />
<xsd:attribute name="sendValue" type="xsd:string" use="optional" />
+ <xsd:attribute name="flavour" type="xsd:string" use="optional" />
</xsd:complexType>
<xsd:complexType name="video">
@@ -610,6 +621,7 @@
<xsd:attribute name="width" type="dimension" />
<xsd:attribute name="height" type="dimension" />
<xsd:attribute name="autoplay" type="xsd:string" />
+ <xsd:attribute name="flavour" type="xsd:string" use="optional" />
</xsd:complexType>
<xsd:complexType name="iframe">
@@ -623,6 +635,7 @@
<xsd:attribute name="frameborder" type="xsd:string" />
<xsd:attribute name="background" type="xsd:string" />
<xsd:attribute name="refresh" type="xsd:decimal" />
+ <xsd:attribute name="flavour" type="xsd:string" use="optional" />
</xsd:complexType>
<xsd:complexType name="pagejump">
@@ -633,6 +646,7 @@
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="target" type="xsd:string" />
<xsd:attribute ref="align" use="optional" />
+ <xsd:attribute name="flavour" type="xsd:string" use="optional" />
</xsd:complexType>
<xsd:complexType name="colorchooser">
Modified: CometVisu/trunk/visu/visu_config_metal.xml
===================================================================
--- CometVisu/trunk/visu/visu_config_metal.xml 2012-12-12 14:33:44 UTC (rev 1208)
+++ CometVisu/trunk/visu/visu_config_metal.xml 2012-12-12 16:44:25 UTC (rev 1209)
@@ -92,9 +92,9 @@
<label><icon name="it_internet" />Web</label>
</pagejump>
<line />
- <pagejump target="Wetter">
+ <pagejump target="Flavour">
<layout colspan="0"/>
- <label><icon name="wetter_sonne" />Wetter</label>
+ <label><icon name="wetter_sonne" />Flavour</label>
</pagejump>
</navbar>
<group name="Allgemein">
@@ -122,8 +122,84 @@
<address transform="DPT:1.001" variant="">12/1/8</address>
</switch>
</group>
- <page name="Wetter" visible="false">
+ <page name="Flavour" visible="false">
<layout colspan="12" />
+ <group name="Group with flavoured items">
+ <slide min="0" max="100" format="%d%%">
+ <label>Default Slider</label>
+ <address transform="DPT:5.001" variant="">13/0/38</address>
+ </slide>
+ <slide min="0" max="100" format="%d%%" flavour="sodium">
+ <label>Sodium Slider</label>
+ <address transform="DPT:5.001" variant="">13/0/38</address>
+ </slide>
+ <slide min="0" max="100" format="%d%%" flavour="potassium">
+ <label>Potassium Slider</label>
+ <address transform="DPT:5.001" variant="">13/0/38</address>
+ </slide>
+ <slide min="0" max="100" format="%d%%" flavour="lithium">
+ <label>Lithium Slider</label>
+ <address transform="DPT:5.001" variant="">13/0/38</address>
+ </slide>
+ <slide min="0" max="100" format="%d%%" flavour="boron">
+ <label>Boron Slider</label>
+ <address transform="DPT:5.001" variant="">13/0/38</address>
+ </slide>
+ <slide min="0" max="100" format="%d%%" flavour="antimony">
+ <label>Antimony Slider</label>
+ <address transform="DPT:5.001" variant="">13/0/38</address>
+ </slide>
+ <slide min="0" max="100" format="%d%%" flavour="white">
+ <label>White Slider</label>
+ <address transform="DPT:5.001" variant="">13/0/38</address>
+ </slide>
+ <slide min="0" max="100" format="%d%%" flavour="black">
+ <label>Black Slider</label>
+ <address transform="DPT:5.001" variant="">13/0/38</address>
+ </slide>
+ </group>
+ <group name="Sodium flavoured Group" flavour="sodium">
+ <slide min="0" max="100" format="%d%%">
+ <label>Slider</label>
+ <address transform="DPT:5.001" variant="">13/0/38</address>
+ </slide>
+ </group>
+ <group name="Potassium flavoured Group" flavour="potassium">
+ <slide min="0" max="100" format="%d%%">
+ <label>Slider</label>
+ <address transform="DPT:5.001" variant="">13/0/38</address>
+ </slide>
+ </group>
+ <group name="Lithium flavoured Group" flavour="lithium">
+ <slide min="0" max="100" format="%d%%">
+ <label>Slider</label>
+ <address transform="DPT:5.001" variant="">13/0/38</address>
+ </slide>
+ </group>
+ <group name="Boron flavoured Group" flavour="boron">
+ <slide min="0" max="100" format="%d%%">
+ <label>Slider</label>
+ <address transform="DPT:5.001" variant="">13/0/38</address>
+ </slide>
+ </group>
+ <group name="Antimony flavoured Group" flavour="antimony">
+ <slide min="0" max="100" format="%d%%">
+ <label>Slider</label>
+ <address transform="DPT:5.001" variant="">13/0/38</address>
+ </slide>
+ </group>
+ <group name="White flavoured Group" flavour="white">
+ <slide min="0" max="100" format="%d%%">
+ <label>Slider</label>
+ <address transform="DPT:5.001" variant="">13/0/38</address>
+ </slide>
+ </group>
+ <group name="Black flavoured Group" flavour="black">
+ <slide min="0" max="100" format="%d%%">
+ <label>Slider</label>
+ <address transform="DPT:5.001" variant="">13/0/38</address>
+ </slide>
+ </group>
</page>
<page name="KNX" shownavbar="true" visible="false">
<navbar position="left" dynamic="true" width="200px">
@@ -236,7 +312,7 @@
<address transform="DPT:1.001" variant="">13/0/13</address>
</switch>
</group>
- <group name="Heizung" flavour="sodium">
+ <group name="Heizung">
<slide min="0" max="100" format="%d%%" flavour="sodium">
<label>
<icon name="sani_heizung" />
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ha...@us...> - 2012-12-17 23:02:47
|
Revision: 1224
http://openautomation.svn.sourceforge.net/openautomation/?rev=1224&view=rev
Author: hausl
Date: 2012-12-17 23:02:37 +0000 (Mon, 17 Dec 2012)
Log Message:
-----------
removed old knx-uf-iconset directories and adapted iconhandler.js
Modified Paths:
--------------
CometVisu/trunk/visu/icon/knx-uf-iconset/make-iconhandler.php
CometVisu/trunk/visu/lib/iconhandler.js
Removed Paths:
-------------
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_or/
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_ws/
Modified: CometVisu/trunk/visu/icon/knx-uf-iconset/make-iconhandler.php
===================================================================
--- CometVisu/trunk/visu/icon/knx-uf-iconset/make-iconhandler.php 2012-12-16 22:24:42 UTC (rev 1223)
+++ CometVisu/trunk/visu/icon/knx-uf-iconset/make-iconhandler.php 2012-12-17 23:02:37 UTC (rev 1224)
@@ -30,8 +30,9 @@
}
}
}
- closedir($fh);
-
+ closedir($fh);
+ sort($result);
+
return $result;
}
@@ -42,7 +43,7 @@
foreach ($colors as $i => $c) {
if ($c == "white") { $foundwhite = true; }
}
- if (! $foundwhite) die("No 128x128_white found - this is need as an index for all icons\n");
+ if (! $foundwhite) die("No 128x128_white found - this is needed as an index for all icons\n");
$icons = GetIcons("128x128_white");
@@ -50,11 +51,11 @@
$outtxt = "";
foreach ($icons as $i) {
$name = preg_replace("/\.png$/", "", $i);
- $outtxt .= sprintf("%-30s", "'". $name ."' : ") ." { '*': { '*' : 'white',\n";
+ $outtxt .= sprintf("%-30s", "'". $name ."' : ") ." { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',\n";
$firstline = true;
foreach ($colors as $c) {
if (! $firstline) { $outtxt .= ",\n"; } else { $firstline = false; }
- $color = $c; if ($color == "or") $color = "sodium";
+ $color = $c;
$outtxt .= sprintf("%36s", "'". $color ."'") . " : { 'uri': 'icon/knx-uf-iconset/128x128_". $c ."/". $i ."', 'style': 'height: 2em;' }";
}
$outtxt .= " } },\n";
Modified: CometVisu/trunk/visu/lib/iconhandler.js
===================================================================
--- CometVisu/trunk/visu/lib/iconhandler.js 2012-12-16 22:24:42 UTC (rev 1223)
+++ CometVisu/trunk/visu/lib/iconhandler.js 2012-12-17 23:02:37 UTC (rev 1224)
@@ -86,2202 +86,1714 @@
// Do not remove this line: Dynamic Icons Start
-'Background-2D-black' : { '*': { '*' : 'white',
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/Background-2D-black.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/Background-2D-black.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/Background-2D-black.png', 'style': 'height: 2em;' },
+'Background-2D-black' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/Background-2D-black.png', 'style': 'height: 2em;' },
'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/Background-2D-black.png', 'style': 'height: 2em;' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/Background-2D-black.png', 'style': 'height: 2em;' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/Background-2D-black.png', 'style': 'height: 2em;' },
'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/Background-2D-black.png', 'style': 'height: 2em;' },
- 'sodium' : { 'uri': 'icon/knx-uf-iconset/128x128_or/Background-2D-black.png', 'style': 'height: 2em;' },
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/Background-2D-black.png', 'style': 'height: 2em;' },
- 'ws' : { 'uri': 'icon/knx-uf-iconset/128x128_ws/Background-2D-black.png', 'style': 'height: 2em;' } } },
-'Background-2D-white' : { '*': { '*' : 'white',
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/Background-2D-white.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/Background-2D-white.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/Background-2D-white.png', 'style': 'height: 2em;' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/Background-2D-black.png', 'style': 'height: 2em;' } } },
+'Background-2D-white' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/Background-2D-white.png', 'style': 'height: 2em;' },
'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/Background-2D-white.png', 'style': 'height: 2em;' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/Background-2D-white.png', 'style': 'height: 2em;' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/Background-2D-white.png', 'style': 'height: 2em;' },
'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/Background-2D-white.png', 'style': 'height: 2em;' },
- 'sodium' : { 'uri': 'icon/knx-uf-iconset/128x128_or/Background-2D-white.png', 'style': 'height: 2em;' },
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/Background-2D-white.png', 'style': 'height: 2em;' },
- 'ws' : { 'uri': 'icon/knx-uf-iconset/128x128_ws/Background-2D-white.png', 'style': 'height: 2em;' } } },
-'Background-3D' : { '*': { '*' : 'white',
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/Background-3D.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/Background-3D.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/Background-3D.png', 'style': 'height: 2em;' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/Background-2D-white.png', 'style': 'height: 2em;' } } },
+'Background-3D' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/Background-3D.png', 'style': 'height: 2em;' },
'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/Background-3D.png', 'style': 'height: 2em;' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/Background-3D.png', 'style': 'height: 2em;' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/Background-3D.png', 'style': 'height: 2em;' },
'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/Background-3D.png', 'style': 'height: 2em;' },
- 'sodium' : { 'uri': 'icon/knx-uf-iconset/128x128_or/Background-3D.png', 'style': 'height: 2em;' },
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/Background-3D.png', 'style': 'height: 2em;' },
- 'ws' : { 'uri': 'icon/knx-uf-iconset/128x128_ws/Background-3D.png', 'style': 'height: 2em;' } } },
-'Background-MetalBrush' : { '*': { '*' : 'white',
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/Background-MetalBrush.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/Background-MetalBrush.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/Background-MetalBrush.png', 'style': 'height: 2em;' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/Background-3D.png', 'style': 'height: 2em;' } } },
+'Background-MetalBrush' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/Background-MetalBrush.png', 'style': 'height: 2em;' },
'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/Background-MetalBrush.png', 'style': 'height: 2em;' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/Background-MetalBrush.png', 'style': 'height: 2em;' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/Background-MetalBrush.png', 'style': 'height: 2em;' },
'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/Background-MetalBrush.png', 'style': 'height: 2em;' },
- 'sodium' : { 'uri': 'icon/knx-uf-iconset/128x128_or/Background-MetalBrush.png', 'style': 'height: 2em;' },
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/Background-MetalBrush.png', 'style': 'height: 2em;' },
- 'ws' : { 'uri': 'icon/knx-uf-iconset/128x128_ws/Background-MetalBrush.png', 'style': 'height: 2em;' } } },
-'audio_audio' : { '*': { '*' : 'white',
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_audio.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_audio.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_audio.png', 'style': 'height: 2em;' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/Background-MetalBrush.png', 'style': 'height: 2em;' } } },
+'audio_audio' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_audio.png', 'style': 'height: 2em;' },
'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_audio.png', 'style': 'height: 2em;' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_audio.png', 'style': 'height: 2em;' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_audio.png', 'style': 'height: 2em;' },
'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_audio.png', 'style': 'height: 2em;' },
- 'sodium' : { 'uri': 'icon/knx-uf-iconset/128x128_or/audio_audio.png', 'style': 'height: 2em;' },
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_audio.png', 'style': 'height: 2em;' },
- 'ws' : { 'uri': 'icon/knx-uf-iconset/128x128_ws/audio_audio.png', 'style': 'height: 2em;' } } },
-'audio_eject' : { '*': { '*' : 'white',
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_eject.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_eject.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_eject.png', 'style': 'height: 2em;' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_audio.png', 'style': 'height: 2em;' } } },
+'audio_eject' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_eject.png', 'style': 'height: 2em;' },
'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_eject.png', 'style': 'height: 2em;' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_eject.png', 'style': 'height: 2em;' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_eject.png', 'style': 'height: 2em;' },
'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_eject.png', 'style': 'height: 2em;' },
- 'sodium' : { 'uri': 'icon/knx-uf-iconset/128x128_or/audio_eject.png', 'style': 'height: 2em;' },
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_eject.png', 'style': 'height: 2em;' },
- 'ws' : { 'uri': 'icon/knx-uf-iconset/128x128_ws/audio_eject.png', 'style': 'height: 2em;' } } },
-'audio_ff' : { '*': { '*' : 'white',
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_ff.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_ff.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_ff.png', 'style': 'height: 2em;' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_eject.png', 'style': 'height: 2em;' } } },
+'audio_ff' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_ff.png', 'style': 'height: 2em;' },
'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_ff.png', 'style': 'height: 2em;' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_ff.png', 'style': 'height: 2em;' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_ff.png', 'style': 'height: 2em;' },
'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_ff.png', 'style': 'height: 2em;' },
- 'sodium' : { 'uri': 'icon/knx-uf-iconset/128x128_or/audio_ff.png', 'style': 'height: 2em;' },
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_ff.png', 'style': 'height: 2em;' },
- 'ws' : { 'uri': 'icon/knx-uf-iconset/128x128_ws/audio_ff.png', 'style': 'height: 2em;' } } },
-'audio_kopfhoerer' : { '*': { '*' : 'white',
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_kopfhoerer.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_kopfhoerer.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_kopfhoerer.png', 'style': 'height: 2em;' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_ff.png', 'style': 'height: 2em;' } } },
+'audio_kopfhoerer' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_kopfhoerer.png', 'style': 'height: 2em;' },
'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_kopfhoerer.png', 'style': 'height: 2em;' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_kopfhoerer.png', 'style': 'height: 2em;' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_kopfhoerer.png', 'style': 'height: 2em;' },
'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_kopfhoerer.png', 'style': 'height: 2em;' },
- 'sodium' : { 'uri': 'icon/knx-uf-iconset/128x128_or/audio_kopfhoerer.png', 'style': 'height: 2em;' },
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_kopfhoerer.png', 'style': 'height: 2em;' },
- 'ws' : { 'uri': 'icon/knx-uf-iconset/128x128_ws/audio_kopfhoerer.png', 'style': 'height: 2em;' } } },
-'audio_mute' : { '*': { '*' : 'white',
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_mute.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_mute.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_mute.png', 'style': 'height: 2em;' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_kopfhoerer.png', 'style': 'height: 2em;' } } },
+'audio_mute' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_mute.png', 'style': 'height: 2em;' },
'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_mute.png', 'style': 'height: 2em;' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_mute.png', 'style': 'height: 2em;' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_mute.png', 'style': 'height: 2em;' },
'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_mute.png', 'style': 'height: 2em;' },
- 'sodium' : { 'uri': 'icon/knx-uf-iconset/128x128_or/audio_mute.png', 'style': 'height: 2em;' },
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_mute.png', 'style': 'height: 2em;' },
- 'ws' : { 'uri': 'icon/knx-uf-iconset/128x128_ws/audio_mute.png', 'style': 'height: 2em;' } } },
-'audio_pause' : { '*': { '*' : 'white',
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_pause.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_pause.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_pause.png', 'style': 'height: 2em;' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_mute.png', 'style': 'height: 2em;' } } },
+'audio_pause' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_pause.png', 'style': 'height: 2em;' },
'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_pause.png', 'style': 'height: 2em;' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_pause.png', 'style': 'height: 2em;' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_pause.png', 'style': 'height: 2em;' },
'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_pause.png', 'style': 'height: 2em;' },
- 'sodium' : { 'uri': 'icon/knx-uf-iconset/128x128_or/audio_pause.png', 'style': 'height: 2em;' },
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_pause.png', 'style': 'height: 2em;' },
- 'ws' : { 'uri': 'icon/knx-uf-iconset/128x128_ws/audio_pause.png', 'style': 'height: 2em;' } } },
-'audio_play' : { '*': { '*' : 'white',
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_play.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_play.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_play.png', 'style': 'height: 2em;' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_pause.png', 'style': 'height: 2em;' } } },
+'audio_play' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_play.png', 'style': 'height: 2em;' },
'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_play.png', 'style': 'height: 2em;' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_play.png', 'style': 'height: 2em;' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_play.png', 'style': 'height: 2em;' },
'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_play.png', 'style': 'height: 2em;' },
- 'sodium' : { 'uri': 'icon/knx-uf-iconset/128x128_or/audio_play.png', 'style': 'height: 2em;' },
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_play.png', 'style': 'height: 2em;' },
- 'ws' : { 'uri': 'icon/knx-uf-iconset/128x128_ws/audio_play.png', 'style': 'height: 2em;' } } },
-'audio_playliste' : { '*': { '*' : 'white',
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_playliste.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_playliste.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_playliste.png', 'style': 'height: 2em;' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_play.png', 'style': 'height: 2em;' } } },
+'audio_playliste' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_playliste.png', 'style': 'height: 2em;' },
'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_playliste.png', 'style': 'height: 2em;' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_playliste.png', 'style': 'height: 2em;' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_playliste.png', 'style': 'height: 2em;' },
'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_playliste.png', 'style': 'height: 2em;' },
- 'sodium' : { 'uri': 'icon/knx-uf-iconset/128x128_or/audio_playliste.png', 'style': 'height: 2em;' },
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_playliste.png', 'style': 'height: 2em;' },
- 'ws' : { 'uri': 'icon/knx-uf-iconset/128x128_ws/audio_playliste.png', 'style': 'height: 2em;' } } },
-'audio_rec' : { '*': { '*' : 'white',
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_rec.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_rec.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_rec.png', 'style': 'height: 2em;' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_playliste.png', 'style': 'height: 2em;' } } },
+'audio_rec' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_rec.png', 'style': 'height: 2em;' },
'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_rec.png', 'style': 'height: 2em;' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_rec.png', 'style': 'height: 2em;' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_rec.png', 'style': 'height: 2em;' },
'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_rec.png', 'style': 'height: 2em;' },
- 'sodium' : { 'uri': 'icon/knx-uf-iconset/128x128_or/audio_rec.png', 'style': 'height: 2em;' },
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_rec.png', 'style': 'height: 2em;' },
- 'ws' : { 'uri': 'icon/knx-uf-iconset/128x128_ws/audio_rec.png', 'style': 'height: 2em;' } } },
-'audio_rew' : { '*': { '*' : 'white',
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_rew.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_rew.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_rew.png', 'style': 'height: 2em;' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_rec.png', 'style': 'height: 2em;' } } },
+'audio_rew' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_rew.png', 'style': 'height: 2em;' },
'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_rew.png', 'style': 'height: 2em;' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_rew.png', 'style': 'height: 2em;' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_rew.png', 'style': 'height: 2em;' },
'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_rew.png', 'style': 'height: 2em;' },
- 'sodium' : { 'uri': 'icon/knx-uf-iconset/128x128_or/audio_rew.png', 'style': 'height: 2em;' },
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_rew.png', 'style': 'height: 2em;' },
- 'ws' : { 'uri': 'icon/knx-uf-iconset/128x128_ws/audio_rew.png', 'style': 'height: 2em;' } } },
-'audio_sound' : { '*': { '*' : 'white',
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_sound.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_sound.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_sound.png', 'style': 'height: 2em;' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_rew.png', 'style': 'height: 2em;' } } },
+'audio_sound' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_sound.png', 'style': 'height: 2em;' },
'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_sound.png', 'style': 'height: 2em;' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_sound.png', 'style': 'height: 2em;' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_sound.png', 'style': 'height: 2em;' },
'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_sound.png', 'style': 'height: 2em;' },
- 'sodium' : { 'uri': 'icon/knx-uf-iconset/128x128_or/audio_sound.png', 'style': 'height: 2em;' },
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_sound.png', 'style': 'height: 2em;' },
- 'ws' : { 'uri': 'icon/knx-uf-iconset/128x128_ws/audio_sound.png', 'style': 'height: 2em;' } } },
-'audio_stop' : { '*': { '*' : 'white',
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_stop.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_stop.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_stop.png', 'style': 'height: 2em;' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_sound.png', 'style': 'height: 2em;' } } },
+'audio_stop' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_stop.png', 'style': 'height: 2em;' },
'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_stop.png', 'style': 'height: 2em;' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_stop.png', 'style': 'height: 2em;' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_stop.png', 'style': 'height: 2em;' },
'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_stop.png', 'style': 'height: 2em;' },
- 'sodium' : { 'uri': 'icon/knx-uf-iconset/128x128_or/audio_stop.png', 'style': 'height: 2em;' },
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_stop.png', 'style': 'height: 2em;' },
- 'ws' : { 'uri': 'icon/knx-uf-iconset/128x128_ws/audio_stop.png', 'style': 'height: 2em;' } } },
-'fts_fenster' : { '*': { '*' : 'white',
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/fts_fenster.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/fts_fenster.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/fts_fenster.png', 'style': 'height: 2em;' },
+ ...
[truncated message content] |
|
From: <ha...@us...> - 2012-12-19 00:04:08
|
Revision: 1230
http://openautomation.svn.sourceforge.net/openautomation/?rev=1230&view=rev
Author: hausl
Date: 2012-12-19 00:03:59 +0000 (Wed, 19 Dec 2012)
Log Message:
-----------
Removed icon style from iconhandler and added global default style
Modified Paths:
--------------
CometVisu/trunk/visu/designs/designglobals.css
CometVisu/trunk/visu/icon/knx-uf-iconset/make-iconhandler.php
CometVisu/trunk/visu/lib/iconhandler.js
CometVisu/trunk/visu/lib/templateengine.js
CometVisu/trunk/visu/visu_config.xsd
Modified: CometVisu/trunk/visu/designs/designglobals.css
===================================================================
--- CometVisu/trunk/visu/designs/designglobals.css 2012-12-18 17:18:40 UTC (rev 1229)
+++ CometVisu/trunk/visu/designs/designglobals.css 2012-12-19 00:03:59 UTC (rev 1230)
@@ -3,6 +3,13 @@
*/
/*
+ * Default height for all icons
+ +/
+img.icon {
+ height : 2em;
+}
+
+/*
* create a three column layout in the middle of the page to allow navbars
* inspired by http://www.alistapart.com/articles/holygrail
*/
Modified: CometVisu/trunk/visu/icon/knx-uf-iconset/make-iconhandler.php
===================================================================
--- CometVisu/trunk/visu/icon/knx-uf-iconset/make-iconhandler.php 2012-12-18 17:18:40 UTC (rev 1229)
+++ CometVisu/trunk/visu/icon/knx-uf-iconset/make-iconhandler.php 2012-12-19 00:03:59 UTC (rev 1230)
@@ -56,7 +56,7 @@
foreach ($colors as $c) {
if (! $firstline) { $outtxt .= ",\n"; } else { $firstline = false; }
$color = $c;
- $outtxt .= sprintf("%36s", "'". $color ."'") . " : { 'uri': 'icon/knx-uf-iconset/128x128_". $c ."/". $i ."', 'style': 'height: 2em;' }";
+ $outtxt .= sprintf("%36s", "'". $color ."'") . " : { 'uri': 'icon/knx-uf-iconset/128x128_". $c ."/". $i ."' }";
}
$outtxt .= " } },\n";
}
Modified: CometVisu/trunk/visu/lib/iconhandler.js
===================================================================
--- CometVisu/trunk/visu/lib/iconhandler.js 2012-12-18 17:18:40 UTC (rev 1229)
+++ CometVisu/trunk/visu/lib/iconhandler.js 2012-12-19 00:03:59 UTC (rev 1230)
@@ -87,1713 +87,1713 @@
// Do not remove this line: Dynamic Icons Start
'Background-2D-black' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/Background-2D-black.png', 'style': 'height: 2em;' },
- 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/Background-2D-black.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/Background-2D-black.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/Background-2D-black.png', 'style': 'height: 2em;' },
- 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/Background-2D-black.png', 'style': 'height: 2em;' },
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/Background-2D-black.png', 'style': 'height: 2em;' } } },
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/Background-2D-black.png' },
+ 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/Background-2D-black.png' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/Background-2D-black.png' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/Background-2D-black.png' },
+ 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/Background-2D-black.png' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/Background-2D-black.png' } } },
'Background-2D-white' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/Background-2D-white.png', 'style': 'height: 2em;' },
- 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/Background-2D-white.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/Background-2D-white.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/Background-2D-white.png', 'style': 'height: 2em;' },
- 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/Background-2D-white.png', 'style': 'height: 2em;' },
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/Background-2D-white.png', 'style': 'height: 2em;' } } },
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/Background-2D-white.png' },
+ 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/Background-2D-white.png' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/Background-2D-white.png' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/Background-2D-white.png' },
+ 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/Background-2D-white.png' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/Background-2D-white.png' } } },
'Background-3D' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/Background-3D.png', 'style': 'height: 2em;' },
- 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/Background-3D.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/Background-3D.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/Background-3D.png', 'style': 'height: 2em;' },
- 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/Background-3D.png', 'style': 'height: 2em;' },
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/Background-3D.png', 'style': 'height: 2em;' } } },
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/Background-3D.png' },
+ 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/Background-3D.png' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/Background-3D.png' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/Background-3D.png' },
+ 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/Background-3D.png' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/Background-3D.png' } } },
'Background-MetalBrush' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/Background-MetalBrush.png', 'style': 'height: 2em;' },
- 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/Background-MetalBrush.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/Background-MetalBrush.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/Background-MetalBrush.png', 'style': 'height: 2em;' },
- 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/Background-MetalBrush.png', 'style': 'height: 2em;' },
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/Background-MetalBrush.png', 'style': 'height: 2em;' } } },
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/Background-MetalBrush.png' },
+ 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/Background-MetalBrush.png' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/Background-MetalBrush.png' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/Background-MetalBrush.png' },
+ 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/Background-MetalBrush.png' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/Background-MetalBrush.png' } } },
'audio_audio' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_audio.png', 'style': 'height: 2em;' },
- 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_audio.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_audio.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_audio.png', 'style': 'height: 2em;' },
- 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_audio.png', 'style': 'height: 2em;' },
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_audio.png', 'style': 'height: 2em;' } } },
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_audio.png' },
+ 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_audio.png' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_audio.png' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_audio.png' },
+ 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_audio.png' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_audio.png' } } },
'audio_eject' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_eject.png', 'style': 'height: 2em;' },
- 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_eject.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_eject.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_eject.png', 'style': 'height: 2em;' },
- 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_eject.png', 'style': 'height: 2em;' },
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_eject.png', 'style': 'height: 2em;' } } },
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_eject.png' },
+ 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_eject.png' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_eject.png' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_eject.png' },
+ 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_eject.png' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_eject.png' } } },
'audio_ff' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_ff.png', 'style': 'height: 2em;' },
- 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_ff.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_ff.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_ff.png', 'style': 'height: 2em;' },
- 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_ff.png', 'style': 'height: 2em;' },
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_ff.png', 'style': 'height: 2em;' } } },
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_ff.png' },
+ 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_ff.png' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_ff.png' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_ff.png' },
+ 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_ff.png' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_ff.png' } } },
'audio_kopfhoerer' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_kopfhoerer.png', 'style': 'height: 2em;' },
- 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_kopfhoerer.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_kopfhoerer.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_kopfhoerer.png', 'style': 'height: 2em;' },
- 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_kopfhoerer.png', 'style': 'height: 2em;' },
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_kopfhoerer.png', 'style': 'height: 2em;' } } },
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_kopfhoerer.png' },
+ 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_kopfhoerer.png' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_kopfhoerer.png' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_kopfhoerer.png' },
+ 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_kopfhoerer.png' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_kopfhoerer.png' } } },
'audio_mute' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_mute.png', 'style': 'height: 2em;' },
- 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_mute.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_mute.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_mute.png', 'style': 'height: 2em;' },
- 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_mute.png', 'style': 'height: 2em;' },
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_mute.png', 'style': 'height: 2em;' } } },
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_mute.png' },
+ 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_mute.png' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_mute.png' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_mute.png' },
+ 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_mute.png' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_mute.png' } } },
'audio_pause' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_pause.png', 'style': 'height: 2em;' },
- 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_pause.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_pause.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_pause.png', 'style': 'height: 2em;' },
- 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_pause.png', 'style': 'height: 2em;' },
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_pause.png', 'style': 'height: 2em;' } } },
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_pause.png' },
+ 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_pause.png' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_pause.png' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_pause.png' },
+ 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_pause.png' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_pause.png' } } },
'audio_play' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_play.png', 'style': 'height: 2em;' },
- 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_play.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_play.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_play.png', 'style': 'height: 2em;' },
- 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_play.png', 'style': 'height: 2em;' },
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_play.png', 'style': 'height: 2em;' } } },
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_play.png' },
+ 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_play.png' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_play.png' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_play.png' },
+ 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_play.png' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_play.png' } } },
'audio_playliste' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_playliste.png', 'style': 'height: 2em;' },
- 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_playliste.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_playliste.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_playliste.png', 'style': 'height: 2em;' },
- 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_playliste.png', 'style': 'height: 2em;' },
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_playliste.png', 'style': 'height: 2em;' } } },
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_playliste.png' },
+ 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_playliste.png' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_playliste.png' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_playliste.png' },
+ 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_playliste.png' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_playliste.png' } } },
'audio_rec' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_rec.png', 'style': 'height: 2em;' },
- 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_rec.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_rec.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_rec.png', 'style': 'height: 2em;' },
- 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_rec.png', 'style': 'height: 2em;' },
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_rec.png', 'style': 'height: 2em;' } } },
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_rec.png' },
+ 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_rec.png' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_rec.png' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_rec.png' },
+ 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_rec.png' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_rec.png' } } },
'audio_rew' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_rew.png', 'style': 'height: 2em;' },
- 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_rew.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_rew.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_rew.png', 'style': 'height: 2em;' },
- 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_rew.png', 'style': 'height: 2em;' },
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_rew.png', 'style': 'height: 2em;' } } },
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_rew.png' },
+ 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_rew.png' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_rew.png' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_rew.png' },
+ 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_rew.png' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_rew.png' } } },
'audio_sound' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_sound.png', 'style': 'height: 2em;' },
- 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_sound.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_sound.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_sound.png', 'style': 'height: 2em;' },
- 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_sound.png', 'style': 'height: 2em;' },
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_sound.png', 'style': 'height: 2em;' } } },
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_sound.png' },
+ 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_sound.png' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_sound.png' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_sound.png' },
+ 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_sound.png' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_sound.png' } } },
'audio_stop' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_stop.png', 'style': 'height: 2em;' },
- 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_stop.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_stop.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_stop.png', 'style': 'height: 2em;' },
- 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_stop.png', 'style': 'height: 2em;' },
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_stop.png', 'style': 'height: 2em;' } } },
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/audio_stop.png' },
+ 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/audio_stop.png' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/audio_stop.png' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/audio_stop.png' },
+ 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/audio_stop.png' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/audio_stop.png' } } },
'fts_fenster' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/fts_fenster.png', 'style': 'height: 2em;' },
- 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/fts_fenster.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/fts_fenster.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/fts_fenster.png', 'style': 'height: 2em;' },
- 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/fts_fenster.png', 'style': 'height: 2em;' },
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/fts_fenster.png', 'style': 'height: 2em;' } } },
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/fts_fenster.png' },
+ 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/fts_fenster.png' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/fts_fenster.png' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/fts_fenster.png' },
+ 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/fts_fenster.png' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/fts_fenster.png' } } },
'fts_fenster_gekippt' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/fts_fenster_gekippt.png', 'style': 'height: 2em;' },
- 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/fts_fenster_gekippt.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/fts_fenster_gekippt.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/fts_fenster_gekippt.png', 'style': 'height: 2em;' },
- 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/fts_fenster_gekippt.png', 'style': 'height: 2em;' },
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/fts_fenster_gekippt.png', 'style': 'height: 2em;' } } },
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/fts_fenster_gekippt.png' },
+ 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/fts_fenster_gekippt.png' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/fts_fenster_gekippt.png' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/fts_fenster_gekippt.png' },
+ 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/fts_fenster_gekippt.png' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/fts_fenster_gekippt.png' } } },
'fts_fenster_offen' : { '*': { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/fts_fenster_offen.png', 'style': 'height: 2em;' },
- 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/fts_fenster_offen.png', 'style': 'height: 2em;' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/fts_fenster_offen.png', 'style': 'height: 2em;' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/fts_fenster_offen.png', 'style': 'height: 2em;' },
- 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/fts_fenst...
[truncated message content] |
|
From: <ma...@us...> - 2012-12-26 21:32:06
|
Revision: 1253
http://openautomation.svn.sourceforge.net/openautomation/?rev=1253&view=rev
Author: mayerch
Date: 2012-12-26 21:32:00 +0000 (Wed, 26 Dec 2012)
Log Message:
-----------
Make icon references work with subelements (so a flavour reference can e.g. also set a color)
Update XSD for new icon attributes
Modified Paths:
--------------
CometVisu/trunk/visu/lib/iconhandler.js
CometVisu/trunk/visu/visu_config.xsd
Modified: CometVisu/trunk/visu/lib/iconhandler.js
===================================================================
--- CometVisu/trunk/visu/lib/iconhandler.js 2012-12-26 18:03:12 UTC (rev 1252)
+++ CometVisu/trunk/visu/lib/iconhandler.js 2012-12-26 21:32:00 UTC (rev 1253)
@@ -51,38 +51,79 @@
*/
var db = {
'CometVisu' : { '*' : '128',
- '16' : { '*': { '*' : 'sodium',
- 'black' : { 'uri': 'icon/comet_16_000000.png'},
- 'white' : { 'uri': 'icon/comet_16_ffffff.png'},
- 'antimony' : { 'uri': 'icon/comet_16_00ddff.png'},
- 'boron' : { 'uri': 'icon/comet_16_00ff11.png'},
- 'lithium' : { 'uri': 'icon/comet_16_ff0000.png'},
- 'potassium' : { 'uri': 'icon/comet_16_d00055.png'},
- 'sodium' : { 'uri': 'icon/comet_16_ff8000.png'} } },
- '32' : { '*': { '*' : 'sodium',
- 'black' : { 'uri': 'icon/comet_32_000000.png'},
- 'white' : { 'uri': 'icon/comet_32_ffffff.png'},
- 'antimony' : { 'uri': 'icon/comet_32_00ddff.png'},
- 'boron' : { 'uri': 'icon/comet_32_00ff11.png'},
- 'lithium' : { 'uri': 'icon/comet_32_ff0000.png'},
- 'potassium' : { 'uri': 'icon/comet_32_d00055.png'},
- 'sodium' : { 'uri': 'icon/comet_32_ff8000.png'} } },
- '64' : { '*': { '*' : 'sodium',
- 'black' : { 'uri': 'icon/comet_64_000000.png'},
- 'white' : { 'uri': 'icon/comet_64_ffffff.png'},
- 'antimony' : { 'uri': 'icon/comet_64_00ddff.png'},
- 'boron' : { 'uri': 'icon/comet_64_00ff11.png'},
- 'lithium' : { 'uri': 'icon/comet_64_ff0000.png'},
- 'potassium' : { 'uri': 'icon/comet_64_d00055.png'},
- 'sodium' : { 'uri': 'icon/comet_64_ff8000.png'} } },
- '128': { '*': { '*' : 'sodium',
- 'black' : { 'uri': 'icon/comet_128_000000.png'},
- 'white' : { 'uri': 'icon/comet_128_ffffff.png'},
- 'antimony' : { 'uri': 'icon/comet_128_00ddff.png'},
- 'boron' : { 'uri': 'icon/comet_128_00ff11.png'},
- 'lithium' : { 'uri': 'icon/comet_128_ff0000.png'},
- 'potassium' : { 'uri': 'icon/comet_128_d00055.png'},
- 'sodium' : { 'uri': 'icon/comet_128_ff8000.png'} } } },
+ '16' : {
+ 'black' : '*/000000',
+ 'white' : '*/ffffff',
+ 'antimony' : '*/00ddff',
+ 'boron' : '*/00ff11',
+ 'lithium' : '*/ff0000',
+ 'potassium': '*/d00055',
+ 'orange ' : '*/ff8000',
+ '*': { '*' : 'ff8000',
+ '000000': { 'uri': 'icon/comet_16_000000.png'},
+ 'ffffff': { 'uri': 'icon/comet_16_ffffff.png'},
+ '00ddff': { 'uri': 'icon/comet_16_00ddff.png'},
+ '00ff11': { 'uri': 'icon/comet_16_00ff11.png'},
+ 'ff0000': { 'uri': 'icon/comet_16_ff0000.png'},
+ 'd00055': { 'uri': 'icon/comet_16_d00055.png'},
+ 'ff8000': { 'uri': 'icon/comet_16_ff8000.png'}
+ }
+ },
+ '32' : {
+ 'black' : '*/000000',
+ 'white' : '*/ffffff',
+ 'antimony' : '*/00ddff',
+ 'boron' : '*/00ff11',
+ 'lithium' : '*/ff0000',
+ 'potassium': '*/d00055',
+ 'orange ' : '*/ff8000',
+ '*': { '*' : 'ff8000',
+ '000000': { 'uri': 'icon/comet_32_000000.png'},
+ 'ffffff': { 'uri': 'icon/comet_32_ffffff.png'},
+ '00ddff': { 'uri': 'icon/comet_32_00ddff.png'},
+ '00ff11': { 'uri': 'icon/comet_32_00ff11.png'},
+ 'ff0000': { 'uri': 'icon/comet_32_ff0000.png'},
+ 'd00055': { 'uri': 'icon/comet_32_d00055.png'},
+ 'ff8000': { 'uri': 'icon/comet_32_ff8000.png'}
+ }
+ },
+ '64' : {
+ 'black' : '*/000000',
+ 'white' : '*/ffffff',
+ 'antimony' : '*/00ddff',
+ 'boron' : '*/00ff11',
+ 'lithium' : '*/ff0000',
+ 'potassium': '*/d00055',
+ 'orange ' : '*/ff8000',
+ '*': { '*' : 'ff8000',
+ '000000': { 'uri': 'icon/comet_64_000000.png'},
+ 'ffffff': { 'uri': 'icon/comet_64_ffffff.png'},
+ '00ddff': { 'uri': 'icon/comet_64_00ddff.png'},
+ '00ff11': { 'uri': 'icon/comet_64_00ff11.png'},
+ 'ff0000': { 'uri': 'icon/comet_64_ff0000.png'},
+ 'd00055': { 'uri': 'icon/comet_64_d00055.png'},
+ 'ff8000': { 'uri': 'icon/comet_64_ff8000.png'}
+ }
+ },
+ '128' : {
+ 'black' : '*/000000',
+ 'white' : '*/ffffff',
+ 'antimony' : '*/00ddff',
+ 'boron' : '*/00ff11',
+ 'lithium' : '*/ff0000',
+ 'potassium': '*/d00055',
+ 'orange ' : '*/ff8000',
+ '*': { '*' : 'ff8000',
+ '000000': { 'uri': 'icon/comet_128_000000.png'},
+ 'ffffff': { 'uri': 'icon/comet_128_ffffff.png'},
+ '00ddff': { 'uri': 'icon/comet_128_00ddff.png'},
+ '00ff11': { 'uri': 'icon/comet_128_00ff11.png'},
+ 'ff0000': { 'uri': 'icon/comet_128_ff0000.png'},
+ 'd00055': { 'uri': 'icon/comet_128_d00055.png'},
+ 'ff8000': { 'uri': 'icon/comet_128_ff8000.png'}
+ }
+ }
+},
// Do not remove this line: Dynamic Icons Start
@@ -1864,11 +1905,29 @@
if (!db[name][type])
type = '*'; // undefined -> use default
if (typeof db[name][type] === 'string')
+ {
type = db[name][type]; // redirect link
+ if( type.split('/').length > 1 )
+ {
+ var all = type.split('/');
+ type = all.shift();
+ if( flavour === undefined )
+ flavour = all.shift();
+ }
+ }
if (!db[name][type][flavour])
flavour = '*'; // undefined -> use default
if (typeof db[name][type][flavour] === 'string')
+ {
flavour = db[name][type][flavour]; // redirect link
+ if( flavour.split('/').length > 1 )
+ {
+ var all = flavour.split('/');
+ flavour = all.shift();
+ if( color === undefined )
+ color = all.shift();
+ }
+ }
if (!db[name][type][flavour][color])
color = '*'; // undefined -> use default
if (typeof db[name][type][flavour][color] === 'string')
Modified: CometVisu/trunk/visu/visu_config.xsd
===================================================================
--- CometVisu/trunk/visu/visu_config.xsd 2012-12-26 18:03:12 UTC (rev 1252)
+++ CometVisu/trunk/visu/visu_config.xsd 2012-12-26 21:32:00 UTC (rev 1253)
@@ -49,6 +49,7 @@
<xsd:attribute name="name" type="xsd:string" use="required" />
<xsd:attribute name="type" type="xsd:string" use="optional" />
<xsd:attribute ref="flavour" use="optional" />
+ <xsd:attribute name="color" type="xsd:string" use="optional" />
</xsd:complexType>
<!-- attributes -->
@@ -295,6 +296,9 @@
<xsd:attribute name="uri" type="xsd:string" use="required" />
<xsd:attribute name="type" type="xsd:string" use="optional" />
<xsd:attribute ref="flavour" use="optional" />
+ <xsd:attribute name="color" type="xsd:string" use="optional" />
+ <xsd:attribute name="styling" type="xsd:string" use="optional" />
+ <xsd:attribute name="dynamic" type="xsd:string" use="optional" />
</xsd:complexType>
<xsd:complexType name="mappings">
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ma...@us...> - 2012-12-28 16:40:17
|
Revision: 1266
http://openautomation.svn.sourceforge.net/openautomation/?rev=1266&view=rev
Author: mayerch
Date: 2012-12-28 16:40:09 +0000 (Fri, 28 Dec 2012)
Log Message:
-----------
Allow <trigger> widget to handle short time and long time presses.
Modified Paths:
--------------
CometVisu/trunk/visu/structure/pure/trigger.js
CometVisu/trunk/visu/visu_config.xsd
CometVisu/trunk/visu/visu_config_demo.xml
Modified: CometVisu/trunk/visu/structure/pure/trigger.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/trigger.js 2012-12-28 13:05:21 UTC (rev 1265)
+++ CometVisu/trunk/visu/structure/pure/trigger.js 2012-12-28 16:40:09 UTC (rev 1266)
@@ -21,6 +21,7 @@
var layout = $e.children('layout')[0];
var style = layout ? 'style="' + extractLayout( layout, type ) + '"' : '';
var value = $e.attr('value') ? $e.attr('value') : 0;
+ var shortvalue = $e.attr('shortvalue') ? $e.attr('shortvalue') : 0;
var classes = 'widget clearfix trigger';
if( $e.attr('align') ) {
classes+=" "+$e.attr('align');
@@ -30,7 +31,7 @@
if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
var label = extractLabel( $e.find('label')[0] );
- var address = makeAddressList($e);
+ var address = makeAddressList($e, function(src, transform, mode, variant){return [true, variant=='short'];});
var actor = '<div class="actor switchUnpressed ';
if ( $e.attr( 'align' ) )
actor += $e.attr( 'align' );
@@ -47,26 +48,45 @@
valueElement.append( $(mappedValue[i]).clone() );
}
$actor.data( {
- 'address' : address,
- 'mapping' : $(element).attr('mapping'),
- 'styling' : $(element).attr('styling'),
- 'type' : 'trigger',
- 'align' : $e.attr('align'),
- 'sendValue': value
- } ).bind( 'click', this.action ).bind( 'mousedown', function(){
- $(this).removeClass('switchUnpressed').addClass('switchPressed');
- } ).bind( 'mouseup mouseout', function(){ // not perfect but simple
- $(this).removeClass('switchPressed').addClass('switchUnpressed');
- } ).setWidgetStyling(value);
+ 'address' : address,
+ 'mapping' : $(element).attr('mapping'),
+ 'styling' : $(element).attr('styling'),
+ 'type' : 'trigger',
+ 'align' : $e.attr('align'),
+ 'sendValue' : value,
+ 'shorttime' : parseFloat($e.attr('shorttime')) || -1,
+ 'shortValue': shortvalue
+ } ).bind( 'mousedown touchstart', this.mousedown ).
+ bind( 'mouseup touchend', this.mouseup ).
+ bind( 'mouseout touchout', this.mouseout ).
+ setWidgetStyling(value);
ret_val.append( label ).append( $actor );
return ret_val;
},
- action: function() {
- var data = $(this).data();
- for( var addr in data.address )
- {
- if( !(data.address[addr][1] & 2) ) continue; // skip when write flag not set
- visu.write( addr.substr(1), transformEncode( data.address[addr][0], data.sendValue ) );
- }
+ mousedown: function(event) {
+ $(this).removeClass('switchUnpressed').addClass('switchPressed').data( 'downtime', new Date().getTime() );
+ if( 'touchstart' == event.type )
+ {
+ // touchscreen => disable mouse emulation
+ $(this).unbind('mousedown').unbind('mouseup').unbind('mouseout');
+ }
+ },
+ mouseup: function(event) {
+ var $this = $(this);
+ if( $this.data( 'downtime' ) )
+ {
+ var data = $this.data();
+ var isShort = (new Date().getTime()) - data.downtime < data.shorttime;
+ for( var addr in data.address )
+ {
+ if( !(data.address[addr][1] & 2) ) continue; // skip when write flag not set
+ if( isShort == data.address[addr][2] )
+ visu.write( addr.substr(1), transformEncode( data.address[addr][0], isShort ? data.shortValue : data.sendValue ) );
+ }
+ }
+ $this.removeClass('switchPressed').addClass('switchUnpressed').removeData( 'downtime' );
+ },
+ mouseout: function(event) {
+ $(this).removeClass('switchPressed').addClass('switchUnpressed').removeData( 'downtime' );
}
});
\ No newline at end of file
Modified: CometVisu/trunk/visu/visu_config.xsd
===================================================================
--- CometVisu/trunk/visu/visu_config.xsd 2012-12-28 13:05:21 UTC (rev 1265)
+++ CometVisu/trunk/visu/visu_config.xsd 2012-12-28 16:40:09 UTC (rev 1266)
@@ -491,6 +491,8 @@
<xsd:element name="address" type="address" minOccurs="1" />
</xsd:choice>
<xsd:attribute ref="value" use="required" />
+ <xsd:attribute name="shortvalue" type="xsd:string" use="optional" />
+ <xsd:attribute name="shorttime" type="xsd:decimal" use="optional" />
<xsd:attribute ref="mapping" use="optional" />
<xsd:attribute ref="styling" use="optional" />
<xsd:attribute ref="align" use="optional" />
Modified: CometVisu/trunk/visu/visu_config_demo.xml
===================================================================
--- CometVisu/trunk/visu/visu_config_demo.xml 2012-12-28 13:05:21 UTC (rev 1265)
+++ CometVisu/trunk/visu/visu_config_demo.xml 2012-12-28 16:40:09 UTC (rev 1266)
@@ -188,7 +188,7 @@
<label>Infotrigger: Audioquelle</label>
<address transform="DPT:5.010">12/7/105</address>
</infotrigger>
- <page name="Infotrigger: Erweitert..." align="center">
+ <page name="Trigger und Infotrigger: Erweitert..." align="center">
<text>Ein Infotrigger lässt sich in zwei verschiedenen Betriebsarten betreiben: relativ und absolut</text>
<line/>
<text>Relativ</text>
@@ -218,6 +218,27 @@
<label>Lautstärke</label>
<address transform="DPT:5.001">12/7/5</address>
</infotrigger>
+ <line/>
+ <text><layout colspan="12"/>Ein Trigger kann auch für Kurz- und Langzeit unterschiedliche Werte an unterschiedlich Adressen senden</text>
+ <break/>
+ <trigger value="1" shorttime="300" shortvalue="0">
+ <label>Trigger auf 300ms, sende Kurzzeit "0" und Langzeit "1"</label>
+ <address transform="DPT:1.001" type="">12/7/1</address>
+ <address transform="DPT:1.001" type="" variant="short">12/7/10</address>
+ </trigger>
+ <trigger value="0" shorttime="1000" shortvalue="1">
+ <label>Trigger auf 1000ms, sende Kurzzeit "1" und Langzeit "0"</label>
+ <address transform="DPT:1.001" type="">12/7/1</address>
+ <address transform="DPT:1.001" type="" variant="short">12/7/10</address>
+ </trigger>
+ <info mapping="KonnexHVAC">
+ <label>Info: Kurzzeit</label>
+ <address transform="DPT:1.001" type="">12/7/10</address>
+ </info>
+ <info mapping="KonnexHVAC">
+ <label>Info: Langzeit</label>
+ <address transform="DPT:1.001" type="">12/7/1</address>
+ </info>
</page>
<break/>
<slide min="-18" max="26">
@@ -514,6 +535,7 @@
<line />
<page name="Subpage mit Flavour" flavour="lithium" align="center" >
<text><icon name="CometVisu" type="64" /> Icon links vom Text</text>
+ <text><icon name="CometVisu" type="64" flavour="antimony" /> Icon mit flavour links vom Text</text>
<page name="Subpage mit anderem Flavour" flavour="antimony" align="center" >
<text><icon name="CometVisu" type="64" /> Icon links vom Text</text>
</page>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ma...@us...> - 2013-01-05 00:00:54
|
Revision: 1303
http://openautomation.svn.sourceforge.net/openautomation/?rev=1303&view=rev
Author: mayerch
Date: 2013-01-05 00:00:48 +0000 (Sat, 05 Jan 2013)
Log Message:
-----------
Second iteration to bring varaible uptade in the right order - fix had to be deeper than thought :(
Modified Paths:
--------------
CometVisu/trunk/visu/lib/templateengine.js
CometVisu/trunk/visu/structure/pure/_common.js
CometVisu/trunk/visu/structure/pure/switch.js
Modified: CometVisu/trunk/visu/lib/templateengine.js
===================================================================
--- CometVisu/trunk/visu/lib/templateengine.js 2013-01-04 20:41:37 UTC (rev 1302)
+++ CometVisu/trunk/visu/lib/templateengine.js 2013-01-05 00:00:48 UTC (rev 1303)
@@ -422,15 +422,18 @@
$this.find('entry').each(
function() {
var $localThis = $(this);
- var value = $localThis.contents();
- for ( var i = 0; i < value.length; i++) {
- var $v = $(value[i]);
+ var origin = $localThis.contents();
+ var value = [];
+ for ( var i = 0; i < origin.length; i++) {
+ var $v = $(origin[i]);
if ($v.is('icon'))
value[i] = icons.getIcon($v.attr('name'), $v.attr('type'), $v.attr('flavour'), $v.attr('color'));
+ else
+ value[i] = $v.text();
}
if ($localThis.attr('value')) {
- mappings[name][$localThis.attr('value')] = value;
+ mappings[name][$localThis.attr('value')] = value.length == 1 ? value[0] : value;
} else {
if (!mappings[name]['range'])
mappings[name]['range'] = {};
Modified: CometVisu/trunk/visu/structure/pure/_common.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/_common.js 2013-01-04 20:41:37 UTC (rev 1302)
+++ CometVisu/trunk/visu/structure/pure/_common.js 2013-01-05 00:00:48 UTC (rev 1303)
@@ -360,12 +360,16 @@
var valueElement = element.find('.value');
valueElement.empty();
if( ('string' == typeof value) || ('number' == typeof value) )
- {
valueElement.append( value );
- } else
- for( var i = 0; i < value.length; i++ )
+ else
{
- valueElement.append( $(value[i]).clone() );
+ for( var i = 0; i < value.length; i++ )
+ {
+ if( ('string' == typeof value[i]) || ('number' == typeof value[i]) )
+ valueElement.append( value[i] );
+ else
+ valueElement.append( $(value[i]).clone() );
+ }
}
return value;
Modified: CometVisu/trunk/visu/structure/pure/switch.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/switch.js 2013-01-04 20:41:37 UTC (rev 1302)
+++ CometVisu/trunk/visu/structure/pure/switch.js 2013-01-05 00:00:48 UTC (rev 1303)
@@ -60,7 +60,7 @@
for( var addr in data.address )
{
if( !(data.address[addr][1] & 2) ) continue; // skip when write flag not set
- visu.write( addr.substr(1), transformEncode( data.address[addr][0], data.value == data.off_value ? data.on_value : data.off_value ) );
+ visu.write( addr.substr(1), transformEncode( data.address[addr][0], data.basicvalue == data.off_value ? data.on_value : data.off_value ) );
}
}
});
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ha...@us...> - 2013-01-10 01:31:21
|
Revision: 1312
http://openautomation.svn.sourceforge.net/openautomation/?rev=1312&view=rev
Author: hausl
Date: 2013-01-10 01:31:12 +0000 (Thu, 10 Jan 2013)
Log Message:
-----------
Use <sequence> in XML-Schema whereever possible
Modified Paths:
--------------
CometVisu/trunk/visu/structure/pure/text.js
CometVisu/trunk/visu/visu_config.xml
CometVisu/trunk/visu/visu_config.xsd
CometVisu/trunk/visu/visu_config_2d3d.xml
CometVisu/trunk/visu/visu_config_demo.xml
CometVisu/trunk/visu/visu_config_demorss.xml
CometVisu/trunk/visu/visu_config_metal.xml
Modified: CometVisu/trunk/visu/structure/pure/text.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/text.js 2013-01-07 19:19:24 UTC (rev 1311)
+++ CometVisu/trunk/visu/structure/pure/text.js 2013-01-10 01:31:12 UTC (rev 1312)
@@ -24,22 +24,23 @@
ret_val.setWidgetLayout($e);
if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
- var style = '';
+ var label = extractLabel( $e.find('label')[0] );
+ if (!label) {
+ label = $('<div/>');
+ $e.contents().each(function() {
+ var $v = $(this);
+ if ($v.is('icon')) {
+ var i = icons.getIcon($v.attr('name'), $v.attr('type'), $v.attr('flavour') || flavour);
+ if (i)
+ label.append(i.clone());
+ } else
+ label.append(this.textContent);
+ });
+ }
+ label.removeAttr('class');
if ($e.attr('align'))
- style += 'text-align:' + $e.attr('align') + ';';
- if (style != '')
- style = 'style="' + style + '"';
- var $div = $('<div ' + style + '></div>');
- $e.contents().each(function() {
- var $v = $(this);
- if ($v.is('icon')) {
- var i = icons.getIcon($v.attr('name'), $v.attr('type'), $v.attr('flavour') || flavour);
- if (i)
- $div.append(i.clone());
- } else
- $div.append(this.textContent);
- });
- ret_val.append($div);
+ label.attr('style', 'text-align:' + $e.attr('align') + ';');
+ ret_val.append(label);
return ret_val;
}
});
\ No newline at end of file
Modified: CometVisu/trunk/visu/visu_config.xml
===================================================================
--- CometVisu/trunk/visu/visu_config.xml 2013-01-07 19:19:24 UTC (rev 1311)
+++ CometVisu/trunk/visu/visu_config.xml 2013-01-10 01:31:12 UTC (rev 1312)
@@ -59,7 +59,7 @@
</meta>
<page name="Start">
<line/>
- <text align="center">Welcome to the CometVisu!</text>
+ <text align="center"><label>Welcome to the CometVisu!</label></text>
<line/>
</page>
</pages>
Modified: CometVisu/trunk/visu/visu_config.xsd
===================================================================
--- CometVisu/trunk/visu/visu_config.xsd 2013-01-07 19:19:24 UTC (rev 1311)
+++ CometVisu/trunk/visu/visu_config.xsd 2013-01-10 01:31:12 UTC (rev 1312)
@@ -232,10 +232,10 @@
<!-- complex elements -->
<xsd:element name="pages">
<xsd:complexType>
- <xsd:choice minOccurs="0" maxOccurs="unbounded">
- <xsd:element name="meta" type="meta" />
- <xsd:element name="page" type="page" minOccurs="1" maxOccurs="1" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="meta" type="meta" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="page" type="page" minOccurs="1" maxOccurs="1"/>
+ </xsd:sequence>
<xsd:attribute name="design" type="xsd:string" use="required" />
<xsd:attribute ref="backend" use="optional" />
<xsd:attribute name="scroll_speed" type="xsd:decimal" use="optional" />
@@ -349,14 +349,16 @@
<!-- define a page -->
<xsd:complexType name="page">
- <xsd:choice minOccurs="0" maxOccurs="unbounded">
- <xsd:element name="layout" type="layout" />
- <xsd:element name="page" type="page" />
- <xsd:element name="group" type="group" />
- <xsd:element name="navbar" type="navbar" />
- <xsd:group ref="Widgets"/>
- <xsd:group ref="AvailablePlugins"/>
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="page" type="page" />
+ <xsd:element name="group" type="group" />
+ <xsd:element name="navbar" type="navbar" />
+ <xsd:group ref="Widgets"/>
+ <xsd:group ref="AvailablePlugins"/>
+ </xsd:choice>
+ </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
<xsd:attribute ref="flavour" use="optional" />
<xsd:attribute ref="align" use="optional" />
@@ -378,13 +380,15 @@
</xsd:complexType>
<xsd:complexType name="group">
- <xsd:choice minOccurs="0" maxOccurs="unbounded">
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- <xsd:element name="page" type="page" />
- <xsd:element name="group" type="group" />
- <xsd:group ref="Widgets"/>
- <xsd:group ref="AvailablePlugins"/>
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="page" type="page" />
+ <xsd:element name="group" type="group" />
+ <xsd:group ref="Widgets"/>
+ <xsd:group ref="AvailablePlugins"/>
+ </xsd:choice>
+ </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="optional" />
<xsd:attribute name="nowidget" type="xsd:boolean" use="optional" />
<xsd:attribute ref="flavour" use="optional" />
@@ -437,11 +441,11 @@
<!-- more fun part - all widgets - if you add a new widget, you need to define it here -->
- <xsd:complexType name="text" mixed="true">
- <xsd:choice minOccurs="0" maxOccurs="unbounded">
- <xsd:element name="icon" type="icon" />
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- </xsd:choice>
+ <xsd:complexType name="text">
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="1" maxOccurs="1"/>
+ </xsd:sequence>
<xsd:attribute ref="align" use="optional" />
<xsd:attribute ref="flavour" use="optional" />
</xsd:complexType>
@@ -459,11 +463,11 @@
</xsd:complexType>
<xsd:complexType name="switch">
- <xsd:choice maxOccurs="unbounded" minOccurs="1">
- <xsd:element name="label" type="label" />
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- <xsd:element name="address" type="address" minOccurs="1" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="address" type="address" minOccurs="1" maxOccurs="unbounded"/>
+ </xsd:sequence>
<xsd:attribute ref="styling" use="optional" />
<xsd:attribute ref="mapping" use="optional" />
<xsd:attribute name="on_value" type="xsd:string" use="optional" />
@@ -473,11 +477,11 @@
</xsd:complexType>
<xsd:complexType name="toogle">
- <xsd:choice maxOccurs="unbounded" minOccurs="1">
- <xsd:element name="label" type="label" />
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- <xsd:element name="address" type="address" minOccurs="1" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="address" type="address" minOccurs="1" maxOccurs="unbounded"/>
+ </xsd:sequence>
<xsd:attribute ref="styling" use="optional" />
<xsd:attribute ref="mapping" use="optional" />
<xsd:attribute ref="align" use="optional" />
@@ -485,11 +489,11 @@
</xsd:complexType>
<xsd:complexType name="trigger">
- <xsd:choice maxOccurs="unbounded" minOccurs="1">
- <xsd:element name="label" type="label" />
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- <xsd:element name="address" type="address" minOccurs="1" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="address" type="address" minOccurs="0" maxOccurs="unbounded"/>
+ </xsd:sequence>
<xsd:attribute ref="value" use="required" />
<xsd:attribute name="shortvalue" type="xsd:string" use="optional" />
<xsd:attribute name="shorttime" type="xsd:decimal" use="optional" />
@@ -500,10 +504,10 @@
</xsd:complexType>
<xsd:complexType name="urltrigger">
- <xsd:choice maxOccurs="unbounded" minOccurs="1">
- <xsd:element name="label" type="label" />
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ </xsd:sequence>
<xsd:attribute ref="value" use="optional" />
<xsd:attribute ref="mapping" use="optional" />
<xsd:attribute ref="styling" use="optional" />
@@ -514,11 +518,11 @@
</xsd:complexType>
<xsd:complexType name="infotrigger">
- <xsd:choice maxOccurs="unbounded" minOccurs="1">
- <xsd:element name="label" type="label" />
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- <xsd:element name="address" type="address" minOccurs="1" maxOccurs="unbounded" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="address" type="address" minOccurs="1" maxOccurs="unbounded"/>
+ </xsd:sequence>
<xsd:attribute name="upvalue" type="xsd:string" use="optional" />
<xsd:attribute name="downvalue" type="xsd:string" use="optional" />
<xsd:attribute name="uplabel" type="xsd:string" use="optional" />
@@ -535,20 +539,20 @@
</xsd:complexType>
<xsd:complexType name="rgb">
- <xsd:choice maxOccurs="unbounded" minOccurs="1">
- <xsd:element name="label" type="label" />
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- <xsd:element name="address" type="address" minOccurs="3" maxOccurs="unbounded" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="address" type="address" minOccurs="3" maxOccurs="unbounded"/>
+ </xsd:sequence>
<xsd:attribute ref="flavour" use="optional" />
</xsd:complexType>
<xsd:complexType name="multitrigger">
- <xsd:choice maxOccurs="unbounded" minOccurs="1">
- <xsd:element name="label" type="label" />
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- <xsd:element name="address" type="address" minOccurs="1" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="address" type="address" minOccurs="1" maxOccurs="unbounded"/>
+ </xsd:sequence>
<xsd:attribute ref="mapping" use="optional" />
<xsd:attribute ref="styling" use="optional" />
<xsd:attribute name="showstatus" type="xsd:string" use="optional" />
@@ -564,11 +568,11 @@
</xsd:complexType>
<xsd:complexType name="slide">
- <xsd:choice maxOccurs="unbounded" minOccurs="1">
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1" />
- <xsd:element name="address" type="address" minOccurs="1" />
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="address" type="address" minOccurs="1" maxOccurs="unbounded"/>
+ </xsd:sequence>
<xsd:attribute ref="min" />
<xsd:attribute ref="max" />
<xsd:attribute ref="step" />
@@ -579,11 +583,11 @@
</xsd:complexType>
<xsd:complexType name="info">
- <xsd:choice maxOccurs="unbounded" minOccurs="1">
- <xsd:element name="label" type="label" maxOccurs="1" />
- <xsd:element name="address" type="address" minOccurs="1" />
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="address" type="address" minOccurs="1" maxOccurs="unbounded"/>
+ </xsd:sequence>
<xsd:attribute ref="format" use="optional" />
<xsd:attribute ref="styling" use="optional" />
<xsd:attribute ref="mapping" use="optional" />
@@ -592,11 +596,11 @@
</xsd:complexType>
<xsd:complexType name="wgplugin_info">
- <xsd:choice maxOccurs="unbounded" minOccurs="1">
- <xsd:element name="label" type="label" maxOccurs="1" />
- <xsd:element name="address" type="address" minOccurs="1" />
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="address" type="address" minOccurs="1" maxOccurs="unbounded"/>
+ </xsd:sequence>
<xsd:attribute name="variable" type="xsd:string" />
<xsd:attribute ref="format" use="optional" />
<xsd:attribute ref="styling" use="optional" />
@@ -606,10 +610,10 @@
</xsd:complexType>
<xsd:complexType name="image">
- <xsd:choice maxOccurs="unbounded" minOccurs="0">
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- <xsd:element name="label" type="label" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ </xsd:sequence>
<xsd:attribute name="src" type="uri" use="required" />
<xsd:attribute name="width" type="dimension" />
<xsd:attribute name="height" type="dimension" />
@@ -618,11 +622,11 @@
</xsd:complexType>
<xsd:complexType name="imagetrigger">
- <xsd:choice maxOccurs="unbounded" minOccurs="0">
- <xsd:element name="label" type="label" />
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- <xsd:element name="address" type="address" minOccurs="1" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="address" type="address" minOccurs="1" maxOccurs="unbounded"/>
+ </xsd:sequence>
<xsd:attribute name="src" type="uri" />
<xsd:attribute name="suffix" type="xsd:string" use="required" />
<xsd:attribute name="type" type="xsd:string" use="optional" />
@@ -635,10 +639,10 @@
</xsd:complexType>
<xsd:complexType name="video">
- <xsd:choice maxOccurs="unbounded" minOccurs="0">
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- <xsd:element name="label" type="label" maxOccurs="1" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ </xsd:sequence>
<xsd:attribute name="src" type="uri" use="required" />
<xsd:attribute name="width" type="dimension" />
<xsd:attribute name="height" type="dimension" />
@@ -647,10 +651,10 @@
</xsd:complexType>
<xsd:complexType name="web">
- <xsd:choice maxOccurs="unbounded" minOccurs="0">
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- <xsd:element name="label" type="label" maxOccurs="1" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ </xsd:sequence>
<xsd:attribute name="src" type="uri" use="required" />
<xsd:attribute name="width" type="dimension" />
<xsd:attribute name="height" type="dimension" />
@@ -661,10 +665,10 @@
</xsd:complexType>
<xsd:complexType name="pagejump">
- <xsd:choice maxOccurs="unbounded" minOccurs="0">
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- <xsd:element name="label" type="label" maxOccurs="1" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="target" type="xsd:string" />
<xsd:attribute ref="align" use="optional" />
@@ -672,20 +676,20 @@
</xsd:complexType>
<xsd:complexType name="colorchooser">
- <xsd:choice maxOccurs="unbounded" minOccurs="0">
- <xsd:element name="label" type="label" maxOccurs="1" />
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- <xsd:element name="address" type="address" minOccurs="3" maxOccurs="3" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="address" type="address" minOccurs="3" maxOccurs="3"/>
+ </xsd:sequence>
</xsd:complexType>
<xsd:complexType name="diagram">
- <xsd:choice maxOccurs="unbounded" minOccurs="0">
- <xsd:element name="label" type="label" maxOccurs="1" />
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- <xsd:element name="axis" type="axis" />
- <xsd:element name="rrd" type="rrd" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="axis" type="axis" minOccurs="0" maxOccurs="unbounded"/>
+ <xsd:element name="rrd" type="rrd" minOccurs="0" maxOccurs="unbounded"/>
+ </xsd:sequence>
<xsd:attribute name="rrd" type="xsd:string" use="optional" />
<xsd:attribute name="unit" type="xsd:string" use="optional" />
<xsd:attribute name="width" type="dimension" use="optional" />
@@ -707,12 +711,12 @@
</xsd:complexType>
<xsd:complexType name="diagram_inline">
- <xsd:choice maxOccurs="unbounded" minOccurs="0">
- <xsd:element name="label" type="label" maxOccurs="1" />
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- <xsd:element name="axis" type="axis" />
- <xsd:element name="rrd" type="rrd" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="axis" type="axis" minOccurs="0" maxOccurs="unbounded"/>
+ <xsd:element name="rrd" type="rrd" minOccurs="0" maxOccurs="unbounded"/>
+ </xsd:sequence>
<xsd:attribute name="rrd" type="xsd:string" use="optional" />
<xsd:attribute name="unit" type="xsd:string" use="optional" />
<xsd:attribute name="width" type="dimension" use="optional" />
@@ -729,12 +733,12 @@
</xsd:complexType>
<xsd:complexType name="diagram_popup">
- <xsd:choice maxOccurs="unbounded" minOccurs="0">
- <xsd:element name="label" type="label" maxOccurs="1" />
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- <xsd:element name="axis" type="axis" />
- <xsd:element name="rrd" type="rrd" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="axis" type="axis" minOccurs="0" maxOccurs="unbounded"/>
+ <xsd:element name="rrd" type="rrd" minOccurs="0" maxOccurs="unbounded"/>
+ </xsd:sequence>
<xsd:attribute name="rrd" type="xsd:string" use="optional" />
<xsd:attribute name="unit" type="xsd:string" use="optional" />
<xsd:attribute ref="series" use="optional" />
@@ -750,13 +754,13 @@
</xsd:complexType>
<xsd:complexType name="diagram_info">
- <xsd:choice maxOccurs="unbounded" minOccurs="0">
- <xsd:element name="label" type="label" maxOccurs="1" />
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- <xsd:element name="address" type="address" minOccurs="1" />
- <xsd:element name="axis" type="axis" />
- <xsd:element name="rrd" type="rrd" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="axis" type="axis" minOccurs="0" maxOccurs="unbounded"/>
+ <xsd:element name="rrd" type="rrd" minOccurs="0" maxOccurs="unbounded"/>
+ <xsd:element name="address" type="address" minOccurs="1" maxOccurs="unbounded"/>
+ </xsd:sequence>
<xsd:attribute ref="format" use="optional" />
<xsd:attribute ref="styling" use="optional" />
<xsd:attribute ref="mapping" use="optional" />
@@ -778,10 +782,10 @@
</xsd:complexType>
<xsd:complexType name="gweather">
- <xsd:choice maxOccurs="unbounded" minOccurs="1">
- <xsd:element name="label" type="label" maxOccurs="1" />
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ </xsd:sequence>
<xsd:attribute name="width" type="dimension" use="optional" />
<xsd:attribute name="height" type="dimension" use="optional" />
<xsd:attribute name="refresh" type="xsd:integer" use="optional" />
@@ -793,10 +797,10 @@
</xsd:complexType>
<xsd:complexType name="rss">
- <xsd:choice maxOccurs="unbounded" minOccurs="1">
- <xsd:element name="label" type="label" maxOccurs="1" />
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ </xsd:sequence>
<xsd:attribute name="src" type="xsd:string" use="required" />
<xsd:attribute name="width" type="dimension" use="optional" />
<xsd:attribute name="height" type="dimension" use="optional" />
@@ -814,10 +818,10 @@
</xsd:complexType>
<xsd:complexType name="rsslog">
- <xsd:choice maxOccurs="unbounded" minOccurs="1">
- <xsd:element name="label" type="label" maxOccurs="1" />
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
+ </xsd:sequence>
<xsd:attribute name="src" type="xsd:string" use="required" />
<xsd:attribute name="refresh" type="xsd:integer" use="optional" />
<xsd:attribute name="limit" type="xsd:integer" use="optional" />
@@ -828,9 +832,9 @@
</xsd:complexType>
<xsd:complexType name="strftime">
- <xsd:choice maxOccurs="unbounded" minOccurs="0">
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
- </xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
+ </xsd:sequence>
<xsd:attribute name="lang" use="optional">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
@@ -875,9 +879,7 @@
<xsd:attribute name="yaxis" type="xsd:string" />
<xsd:attribute name="color" type="xsd:string" />
<xsd:attribute name="label" type="xsd:string" />
-
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
-
</xsd:schema>
Modified: CometVisu/trunk/visu/visu_config_2d3d.xml
===================================================================
--- CometVisu/trunk/visu/visu_config_2d3d.xml 2013-01-07 19:19:24 UTC (rev 1311)
+++ CometVisu/trunk/visu/visu_config_2d3d.xml 2013-01-10 01:31:12 UTC (rev 1312)
@@ -59,7 +59,7 @@
</meta>
<page name="Start" type="text">
<line/>
- <text align="center">Welcome to the CometVisu!</text>
+ <text align="center"><label>Welcome to the CometVisu!</label></text>
<break/>
<page name="2D Demo" type="2d" backdrop="media/demo_2d_backdrop_red_pot.svg">
<slide>
Modified: CometVisu/trunk/visu/visu_config_demo.xml
===================================================================
--- CometVisu/trunk/visu/visu_config_demo.xml 2013-01-07 19:19:24 UTC (rev 1311)
+++ CometVisu/trunk/visu/visu_config_demo.xml 2013-01-10 01:31:12 UTC (rev 1312)
@@ -128,7 +128,7 @@
</meta>
<page name="CometVisu Widget Demo">
<navbar position="left" dynamic="true" width="200px">
- <text>Test 1</text>
+ <text><label>Test 1</label></text>
<line/>
<pagejump target="id_0_34_7" name="Lithium">
<label>Flavour</label>
@@ -140,13 +140,13 @@
<label>2D</label>
</pagejump>
</navbar>
- <text align="center">Herzlich willkommen bei dem CometVisu Widget Demo!</text>
- <text><b>Hinweis:</b><br/>Alle Widgets verwenden KNX-Addressen mit der Haupt- und Mittelgruppe 12/7, da diese meist unbenutzt sind und so beim Testen oft keine Nebenwirkungen auftreten können. Sollten diese Gruppe bei Ihnen verwendet werden, so sollten Sie diese Widgets hier nicht betätigen!</text>
+ <text align="center"><label>Herzlich willkommen bei dem CometVisu Widget Demo!</label></text>
+ <text><label><b>Hinweis:</b><br/>Alle Widgets verwenden KNX-Addressen mit der Haupt- und Mittelgruppe 12/7, da diese meist unbenutzt sind und so beim Testen oft keine Nebenwirkungen auftreten können. Sollten diese Gruppe bei Ihnen verwendet werden, so sollten Sie diese Widgets hier nicht betätigen!</label></text>
<line/>
- <text>Für die CometVisu gibt es verschiedene Designs.</text>
+ <text><label>Für die CometVisu gibt es verschiedene Designs.</label></text>
<designtoggle>Wechsle Design</designtoggle>
<line/>
- <text align="center"><b>Standard-Widgets</b></text>
+ <text align="center"><label><b>Standard-Widgets</b></label></text>
<break/>
<switch mapping="On_Off" styling="Red_Green">
<label>Switch</label>
@@ -189,9 +189,9 @@
<address transform="DPT:5.010">12/7/105</address>
</infotrigger>
<page name="Trigger und Infotrigger: Erweitert..." align="center">
- <text>Ein Infotrigger lässt sich in zwei verschiedenen Betriebsarten betreiben: relativ und absolut</text>
+ <text><label>Ein Infotrigger lässt sich in zwei verschiedenen Betriebsarten betreiben: relativ und absolut</label></text>
<line/>
- <text>Relativ</text>
+ <text><label>Relativ</label></text>
<break/>
<infotrigger uplabel="+" upvalue="1" downlabel="-" downvalue="0" align="center" infoposition="1" change="relative">
<label>Lautstärke</label>
@@ -212,14 +212,14 @@
<address transform="DPT:16.000" type="">12/7/16</address>
</multitrigger>
<line/>
- <text>Absolut</text>
+ <text><label>Absolut</label></text>
<break/>
<infotrigger uplabel="+" upvalue="5" downlabel="-" downvalue="-5" align="center" infoposition="1" change="absolute" format="%.1f%%" max="100">
<label>Lautstärke</label>
<address transform="DPT:5.001">12/7/5</address>
</infotrigger>
<line/>
- <text><layout colspan="12"/>Ein Trigger kann auch für Kurz- und Langzeit unterschiedliche Werte an unterschiedlich Adressen senden</text>
+ <text><layout colspan="12"/><label>Ein Trigger kann auch für Kurz- und Langzeit unterschiedliche Werte an unterschiedlich Adressen senden</label></text>
<break/>
<trigger value="1" shorttime="300" shortvalue="0">
<label>Trigger auf 300ms, sende Kurzzeit "0" und Langzeit "1"</label>
@@ -263,7 +263,7 @@
</page>
<break/>
<page name="Video..." align="center">
- <text>In dem Video-Element lassen sich Videos nach dem HTML5 Standard einbinden</text>
+ <text><label>In dem Video-Element lassen sich Videos nach dem HTML5 Standard einbinden</label></text>
<break/>
<video src="https://upload.wikimedia.org/wikipedia/commons/b/b5/I-15bis.ogg" autoplay="false">
<label>Polikarpov I-15bis - Ogg Theora</label>
@@ -278,87 +278,87 @@
<web src="http://www.cometvisu.org" width="500px" height="500px"/>
</page>
<page name="Flavour Test" align="center" >
- <text>
+ <text><label>
Die Flavour (englisch für Geschmacksrichtung) definieren eine, vom
Design abhängige, Variation des Aussehens einzelner Sub-Seiten.
- </text>
+ </label></text>
<line/>
- <text align="center">Design: <b>Pure</b></text>
- <text>
+ <text align="center"><label>Design: <b>Pure</b></label></text>
+ <text><label>
Das Design "Pure" ist inspiriert von den Fa...
[truncated message content] |
|
From: <j-...@us...> - 2013-01-13 14:35:49
|
Revision: 1325
http://openautomation.svn.sourceforge.net/openautomation/?rev=1325&view=rev
Author: j-n-k
Date: 2013-01-13 14:35:35 +0000 (Sun, 13 Jan 2013)
Log Message:
-----------
Reverting changes by hausl (editor broken) until editor supports xsd:sequence
Modified Paths:
--------------
CometVisu/trunk/visu/structure/pure/text.js
CometVisu/trunk/visu/visu_config.xml
CometVisu/trunk/visu/visu_config.xsd
CometVisu/trunk/visu/visu_config_2d3d.xml
CometVisu/trunk/visu/visu_config_demo.xml
CometVisu/trunk/visu/visu_config_demorss.xml
CometVisu/trunk/visu/visu_config_metal.xml
Modified: CometVisu/trunk/visu/structure/pure/text.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/text.js 2013-01-13 12:34:04 UTC (rev 1324)
+++ CometVisu/trunk/visu/structure/pure/text.js 2013-01-13 14:35:35 UTC (rev 1325)
@@ -24,23 +24,22 @@
ret_val.setWidgetLayout($e);
if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
- var label = extractLabel( $e.find('label')[0] );
- if (!label) {
- label = $('<div/>');
- $e.contents().each(function() {
- var $v = $(this);
- if ($v.is('icon')) {
- var i = icons.getIcon($v.attr('name'), $v.attr('type'), $v.attr('flavour') || flavour);
- if (i)
- label.append(i.clone());
- } else
- label.append(this.textContent);
- });
- }
- label.removeAttr('class');
+ var style = '';
if ($e.attr('align'))
- label.attr('style', 'text-align:' + $e.attr('align') + ';');
- ret_val.append(label);
+ style += 'text-align:' + $e.attr('align') + ';';
+ if (style != '')
+ style = 'style="' + style + '"';
+ var $div = $('<div ' + style + '></div>');
+ $e.contents().each(function() {
+ var $v = $(this);
+ if ($v.is('icon')) {
+ var i = icons.getIcon($v.attr('name'), $v.attr('type'), $v.attr('flavour') || flavour);
+ if (i)
+ $div.append(i.clone());
+ } else
+ $div.append(this.textContent);
+ });
+ ret_val.append($div);
return ret_val;
}
});
\ No newline at end of file
Modified: CometVisu/trunk/visu/visu_config.xml
===================================================================
--- CometVisu/trunk/visu/visu_config.xml 2013-01-13 12:34:04 UTC (rev 1324)
+++ CometVisu/trunk/visu/visu_config.xml 2013-01-13 14:35:35 UTC (rev 1325)
@@ -59,7 +59,7 @@
</meta>
<page name="Start">
<line/>
- <text align="center"><label>Welcome to the CometVisu!</label></text>
+ <text align="center">Welcome to the CometVisu!</text>
<line/>
</page>
</pages>
Modified: CometVisu/trunk/visu/visu_config.xsd
===================================================================
--- CometVisu/trunk/visu/visu_config.xsd 2013-01-13 12:34:04 UTC (rev 1324)
+++ CometVisu/trunk/visu/visu_config.xsd 2013-01-13 14:35:35 UTC (rev 1325)
@@ -232,10 +232,10 @@
<!-- complex elements -->
<xsd:element name="pages">
<xsd:complexType>
- <xsd:sequence>
- <xsd:element name="meta" type="meta" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="page" type="page" minOccurs="1" maxOccurs="1"/>
- </xsd:sequence>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="meta" type="meta" />
+ <xsd:element name="page" type="page" minOccurs="1" maxOccurs="1" />
+ </xsd:choice>
<xsd:attribute name="design" type="xsd:string" use="required" />
<xsd:attribute ref="backend" use="optional" />
<xsd:attribute name="scroll_speed" type="xsd:decimal" use="optional" />
@@ -349,16 +349,14 @@
<!-- define a page -->
<xsd:complexType name="page">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:choice minOccurs="0" maxOccurs="unbounded">
- <xsd:element name="page" type="page" />
- <xsd:element name="group" type="group" />
- <xsd:element name="navbar" type="navbar" />
- <xsd:group ref="Widgets"/>
- <xsd:group ref="AvailablePlugins"/>
- </xsd:choice>
- </xsd:sequence>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="layout" type="layout" />
+ <xsd:element name="page" type="page" />
+ <xsd:element name="group" type="group" />
+ <xsd:element name="navbar" type="navbar" />
+ <xsd:group ref="Widgets"/>
+ <xsd:group ref="AvailablePlugins"/>
+ </xsd:choice>
<xsd:attribute name="name" type="xsd:string" use="required" />
<xsd:attribute ref="flavour" use="optional" />
<xsd:attribute ref="align" use="optional" />
@@ -380,15 +378,13 @@
</xsd:complexType>
<xsd:complexType name="group">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:choice minOccurs="0" maxOccurs="unbounded">
- <xsd:element name="page" type="page" />
- <xsd:element name="group" type="group" />
- <xsd:group ref="Widgets"/>
- <xsd:group ref="AvailablePlugins"/>
- </xsd:choice>
- </xsd:sequence>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ <xsd:element name="page" type="page" />
+ <xsd:element name="group" type="group" />
+ <xsd:group ref="Widgets"/>
+ <xsd:group ref="AvailablePlugins"/>
+ </xsd:choice>
<xsd:attribute name="name" type="xsd:string" use="optional" />
<xsd:attribute name="nowidget" type="xsd:boolean" use="optional" />
<xsd:attribute ref="flavour" use="optional" />
@@ -441,11 +437,11 @@
<!-- more fun part - all widgets - if you add a new widget, you need to define it here -->
- <xsd:complexType name="text">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="1" maxOccurs="1"/>
- </xsd:sequence>
+ <xsd:complexType name="text" mixed="true">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="icon" type="icon" />
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ </xsd:choice>
<xsd:attribute ref="align" use="optional" />
<xsd:attribute ref="flavour" use="optional" />
</xsd:complexType>
@@ -463,11 +459,11 @@
</xsd:complexType>
<xsd:complexType name="switch">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="address" type="address" minOccurs="1" maxOccurs="unbounded"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="1">
+ <xsd:element name="label" type="label" />
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ <xsd:element name="address" type="address" minOccurs="1" />
+ </xsd:choice>
<xsd:attribute ref="styling" use="optional" />
<xsd:attribute ref="mapping" use="optional" />
<xsd:attribute name="on_value" type="xsd:string" use="optional" />
@@ -477,11 +473,11 @@
</xsd:complexType>
<xsd:complexType name="toogle">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="address" type="address" minOccurs="1" maxOccurs="unbounded"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="1">
+ <xsd:element name="label" type="label" />
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ <xsd:element name="address" type="address" minOccurs="1" />
+ </xsd:choice>
<xsd:attribute ref="styling" use="optional" />
<xsd:attribute ref="mapping" use="optional" />
<xsd:attribute ref="align" use="optional" />
@@ -489,11 +485,11 @@
</xsd:complexType>
<xsd:complexType name="trigger">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="address" type="address" minOccurs="0" maxOccurs="unbounded"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="1">
+ <xsd:element name="label" type="label" />
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ <xsd:element name="address" type="address" minOccurs="1" />
+ </xsd:choice>
<xsd:attribute ref="value" use="required" />
<xsd:attribute name="shortvalue" type="xsd:string" use="optional" />
<xsd:attribute name="shorttime" type="xsd:decimal" use="optional" />
@@ -504,10 +500,10 @@
</xsd:complexType>
<xsd:complexType name="urltrigger">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="1">
+ <xsd:element name="label" type="label" />
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ </xsd:choice>
<xsd:attribute ref="value" use="optional" />
<xsd:attribute ref="mapping" use="optional" />
<xsd:attribute ref="styling" use="optional" />
@@ -518,11 +514,11 @@
</xsd:complexType>
<xsd:complexType name="infotrigger">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="address" type="address" minOccurs="1" maxOccurs="unbounded"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="1">
+ <xsd:element name="label" type="label" />
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ <xsd:element name="address" type="address" minOccurs="1" maxOccurs="unbounded" />
+ </xsd:choice>
<xsd:attribute name="upvalue" type="xsd:string" use="optional" />
<xsd:attribute name="downvalue" type="xsd:string" use="optional" />
<xsd:attribute name="uplabel" type="xsd:string" use="optional" />
@@ -539,20 +535,20 @@
</xsd:complexType>
<xsd:complexType name="rgb">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="address" type="address" minOccurs="3" maxOccurs="unbounded"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="1">
+ <xsd:element name="label" type="label" />
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ <xsd:element name="address" type="address" minOccurs="3" maxOccurs="unbounded" />
+ </xsd:choice>
<xsd:attribute ref="flavour" use="optional" />
</xsd:complexType>
<xsd:complexType name="multitrigger">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="address" type="address" minOccurs="1" maxOccurs="unbounded"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="1">
+ <xsd:element name="label" type="label" />
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ <xsd:element name="address" type="address" minOccurs="1" />
+ </xsd:choice>
<xsd:attribute ref="mapping" use="optional" />
<xsd:attribute ref="styling" use="optional" />
<xsd:attribute name="showstatus" type="xsd:string" use="optional" />
@@ -568,11 +564,11 @@
</xsd:complexType>
<xsd:complexType name="slide">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="address" type="address" minOccurs="1" maxOccurs="unbounded"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="1">
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1" />
+ <xsd:element name="address" type="address" minOccurs="1" />
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ </xsd:choice>
<xsd:attribute ref="min" />
<xsd:attribute ref="max" />
<xsd:attribute ref="step" />
@@ -583,11 +579,11 @@
</xsd:complexType>
<xsd:complexType name="info">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="address" type="address" minOccurs="1" maxOccurs="unbounded"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="1">
+ <xsd:element name="label" type="label" maxOccurs="1" />
+ <xsd:element name="address" type="address" minOccurs="1" />
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ </xsd:choice>
<xsd:attribute ref="format" use="optional" />
<xsd:attribute ref="styling" use="optional" />
<xsd:attribute ref="mapping" use="optional" />
@@ -596,11 +592,11 @@
</xsd:complexType>
<xsd:complexType name="wgplugin_info">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="address" type="address" minOccurs="1" maxOccurs="unbounded"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="1">
+ <xsd:element name="label" type="label" maxOccurs="1" />
+ <xsd:element name="address" type="address" minOccurs="1" />
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ </xsd:choice>
<xsd:attribute name="variable" type="xsd:string" />
<xsd:attribute ref="format" use="optional" />
<xsd:attribute ref="styling" use="optional" />
@@ -610,10 +606,10 @@
</xsd:complexType>
<xsd:complexType name="image">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="0">
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ <xsd:element name="label" type="label" />
+ </xsd:choice>
<xsd:attribute name="src" type="uri" use="required" />
<xsd:attribute name="width" type="dimension" />
<xsd:attribute name="height" type="dimension" />
@@ -622,11 +618,11 @@
</xsd:complexType>
<xsd:complexType name="imagetrigger">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="address" type="address" minOccurs="1" maxOccurs="unbounded"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="0">
+ <xsd:element name="label" type="label" />
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ <xsd:element name="address" type="address" minOccurs="1" />
+ </xsd:choice>
<xsd:attribute name="src" type="uri" />
<xsd:attribute name="suffix" type="xsd:string" use="required" />
<xsd:attribute name="type" type="xsd:string" use="optional" />
@@ -639,10 +635,10 @@
</xsd:complexType>
<xsd:complexType name="video">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="0">
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ <xsd:element name="label" type="label" maxOccurs="1" />
+ </xsd:choice>
<xsd:attribute name="src" type="uri" use="required" />
<xsd:attribute name="width" type="dimension" />
<xsd:attribute name="height" type="dimension" />
@@ -651,10 +647,10 @@
</xsd:complexType>
<xsd:complexType name="web">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="0">
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ <xsd:element name="label" type="label" maxOccurs="1" />
+ </xsd:choice>
<xsd:attribute name="src" type="uri" use="required" />
<xsd:attribute name="width" type="dimension" />
<xsd:attribute name="height" type="dimension" />
@@ -665,10 +661,10 @@
</xsd:complexType>
<xsd:complexType name="pagejump">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="0">
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ <xsd:element name="label" type="label" maxOccurs="1" />
+ </xsd:choice>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="target" type="xsd:string" />
<xsd:attribute ref="align" use="optional" />
@@ -676,20 +672,20 @@
</xsd:complexType>
<xsd:complexType name="colorchooser">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="address" type="address" minOccurs="3" maxOccurs="3"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="0">
+ <xsd:element name="label" type="label" maxOccurs="1" />
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ <xsd:element name="address" type="address" minOccurs="3" maxOccurs="3" />
+ </xsd:choice>
</xsd:complexType>
<xsd:complexType name="diagram">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="axis" type="axis" minOccurs="0" maxOccurs="unbounded"/>
- <xsd:element name="rrd" type="rrd" minOccurs="0" maxOccurs="unbounded"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="0">
+ <xsd:element name="label" type="label" maxOccurs="1" />
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ <xsd:element name="axis" type="axis" />
+ <xsd:element name="rrd" type="rrd" />
+ </xsd:choice>
<xsd:attribute name="rrd" type="xsd:string" use="optional" />
<xsd:attribute name="unit" type="xsd:string" use="optional" />
<xsd:attribute name="width" type="dimension" use="optional" />
@@ -711,12 +707,12 @@
</xsd:complexType>
<xsd:complexType name="diagram_inline">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="axis" type="axis" minOccurs="0" maxOccurs="unbounded"/>
- <xsd:element name="rrd" type="rrd" minOccurs="0" maxOccurs="unbounded"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="0">
+ <xsd:element name="label" type="label" maxOccurs="1" />
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ <xsd:element name="axis" type="axis" />
+ <xsd:element name="rrd" type="rrd" />
+ </xsd:choice>
<xsd:attribute name="rrd" type="xsd:string" use="optional" />
<xsd:attribute name="unit" type="xsd:string" use="optional" />
<xsd:attribute name="width" type="dimension" use="optional" />
@@ -733,12 +729,12 @@
</xsd:complexType>
<xsd:complexType name="diagram_popup">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="axis" type="axis" minOccurs="0" maxOccurs="unbounded"/>
- <xsd:element name="rrd" type="rrd" minOccurs="0" maxOccurs="unbounded"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="0">
+ <xsd:element name="label" type="label" maxOccurs="1" />
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ <xsd:element name="axis" type="axis" />
+ <xsd:element name="rrd" type="rrd" />
+ </xsd:choice>
<xsd:attribute name="rrd" type="xsd:string" use="optional" />
<xsd:attribute name="unit" type="xsd:string" use="optional" />
<xsd:attribute ref="series" use="optional" />
@@ -754,13 +750,13 @@
</xsd:complexType>
<xsd:complexType name="diagram_info">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="axis" type="axis" minOccurs="0" maxOccurs="unbounded"/>
- <xsd:element name="rrd" type="rrd" minOccurs="0" maxOccurs="unbounded"/>
- <xsd:element name="address" type="address" minOccurs="1" maxOccurs="unbounded"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="0">
+ <xsd:element name="label" type="label" maxOccurs="1" />
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ <xsd:element name="address" type="address" minOccurs="1" />
+ <xsd:element name="axis" type="axis" />
+ <xsd:element name="rrd" type="rrd" />
+ </xsd:choice>
<xsd:attribute ref="format" use="optional" />
<xsd:attribute ref="styling" use="optional" />
<xsd:attribute ref="mapping" use="optional" />
@@ -782,10 +778,10 @@
</xsd:complexType>
<xsd:complexType name="gweather">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="1">
+ <xsd:element name="label" type="label" maxOccurs="1" />
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ </xsd:choice>
<xsd:attribute name="width" type="dimension" use="optional" />
<xsd:attribute name="height" type="dimension" use="optional" />
<xsd:attribute name="refresh" type="xsd:integer" use="optional" />
@@ -797,10 +793,10 @@
</xsd:complexType>
<xsd:complexType name="rss">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="1">
+ <xsd:element name="label" type="label" maxOccurs="1" />
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ </xsd:choice>
<xsd:attribute name="src" type="xsd:string" use="required" />
<xsd:attribute name="width" type="dimension" use="optional" />
<xsd:attribute name="height" type="dimension" use="optional" />
@@ -818,10 +814,10 @@
</xsd:complexType>
<xsd:complexType name="rsslog">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="1">
+ <xsd:element name="label" type="label" maxOccurs="1" />
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ </xsd:choice>
<xsd:attribute name="src" type="xsd:string" use="required" />
<xsd:attribute name="refresh" type="xsd:integer" use="optional" />
<xsd:attribute name="limit" type="xsd:integer" use="optional" />
@@ -832,9 +828,9 @@
</xsd:complexType>
<xsd:complexType name="strftime">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded" minOccurs="0">
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ </xsd:choice>
<xsd:attribute name="lang" use="optional">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
@@ -879,7 +875,9 @@
<xsd:attribute name="yaxis" type="xsd:string" />
<xsd:attribute name="color" type="xsd:string" />
<xsd:attribute name="label" type="xsd:string" />
+
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
+
</xsd:schema>
Modified: CometVisu/trunk/visu/visu_config_2d3d.xml
===================================================================
--- CometVisu/trunk/visu/visu_config_2d3d.xml 2013-01-13 12:34:04 UTC (rev 1324)
+++ CometVisu/trunk/visu/visu_config_2d3d.xml 2013-01-13 14:35:35 UTC (rev 1325)
@@ -59,7 +59,7 @@
</meta>
<page name="Start" type="text">
<line/>
- <text align="center"><label>Welcome to the CometVisu!</label></text>
+ <text align="center">Welcome to the CometVisu!</text>
<break/>
<page name="2D Demo" type="2d" backdrop="media/demo_2d_backdrop_red_pot.svg">
<slide>
Modified: CometVisu/trunk/visu/visu_config_demo.xml
===================================================================
--- CometVisu/trunk/visu/visu_config_demo.xml 2013-01-13 12:34:04 UTC (rev 1324)
+++ CometVisu/trunk/visu/visu_config_demo.xml 2013-01-13 14:35:35 UTC (rev 1325)
@@ -128,7 +128,7 @@
</meta>
<page name="CometVisu Widget Demo">
<navbar position="left" dynamic="true" width="200px">
- <text><label>Test 1</label></text>
+ <text>Test 1</text>
<line/>
<pagejump target="id_0_34_7" name="Lithium">
<label>Flavour</label>
@@ -140,13 +140,13 @@
<label>2D</label>
</pagejump>
</navbar>
- <text align="center"><label>Herzlich willkommen bei dem CometVisu Widget Demo!</label></text>
- <text><label><b>Hinweis:</b><br/>Alle Widgets verwenden KNX-Addressen mit der Haupt- und Mittelgruppe 12/7, da diese meist unbenutzt sind und so beim Testen oft keine Nebenwirkungen auftreten können. Sollten diese Gruppe bei Ihnen verwendet werden, so sollten Sie diese Widgets hier nicht betätigen!</label></text>
+ <text align="center">Herzlich willkommen bei dem CometVisu Widget Demo!</text>
+ <text><b>Hinweis:</b><br/>Alle Widgets verwenden KNX-Addressen mit der Haupt- und Mittelgruppe 12/7, da diese meist unbenutzt sind und so beim Testen oft keine Nebenwirkungen auftreten können. Sollten diese Gruppe bei Ihnen verwendet werden, so sollten Sie diese Widgets hier nicht betätigen!</text>
<line/>
- <text><label>Für die CometVisu gibt es verschiedene Designs.</label></text>
+ <text>Für die CometVisu gibt es verschiedene Designs.</text>
<designtoggle>Wechsle Design</designtoggle>
<line/>
- <text align="center"><label><b>Standard-Widgets</b></label></text>
+ <text align="center"><b>Standard-Widgets</b></text>
<break/>
<switch mapping="On_Off" styling="Red_Green">
<label>Switch</label>
@@ -189,9 +189,9 @@
<address transform="DPT:5.010">12/7/105</address>
</infotrigger>
<page name="Trigger und Infotrigger: Erweitert..." align="center">
- <text><label>Ein Infotrigger lässt sich in zwei verschiedenen Betriebsarten betreiben: relativ und absolut</label></text>
+ <text>Ein Infotrigger lässt sich in zwei verschiedenen Betriebsarten betreiben: relativ und absolut</text>
<line/>
- <text><label>Relativ</label></text>
+ <text>Relativ</text>
<break/>
<infotrigger uplabel="+" upvalue="1" downlabel="-" downvalue="0" align="center" infoposition="1" change="relative">
<label>Lautstärke</label>
@@ -212,14 +212,14 @@
<address transform="DPT:16.000" type="">12/7/16</address>
</multitrigger>
<line/>
- <text><label>Absolut</label></text>
+ <text>Absolut</text>
<break/>
<infotrigger uplabel="+" upvalue="5" downlabel="-" downvalue="-5" align="center" infoposition="1" change="absolute" format="%.1f%%" max="100">
<label>Lautstärke</label>
<address transform="DPT:5.001">12/7/5</address>
</infotrigger>
<line/>
- <text><layout colspan="12"/><label>Ein Trigger kann auch für Kurz- und Langzeit unterschiedliche Werte an unterschiedlich Adressen senden</label></text>
+ <text><layout colspan="12"/>Ein Trigger kann auch für Kurz- und Langzeit unterschiedliche Werte an unterschiedlich Adressen senden</text>
<break/>
<trigger value="1" shorttime="300" shortvalue="0">
<label>Trigger auf 300ms, sende Kurzzeit "0" und Langzeit "1"</label>
@@ -263,7 +263,7 @@
</page>
<break/>
<page name="Video..." align="center">
- <text><label>In dem Video-Element lassen sich Videos nach dem HTML5 Standard einbinden</label></text>
+ <text>In dem Video-Element lassen sich Videos nach dem HTML5 Standard einbinden</text>
<break/>
<video src="https://upload.wikimedia.org/wikipedia/commons/b/b5/I-15bis.ogg" autoplay="false">
<label>Polikarpov I-15bis - Ogg Theora</label>
@@ -278,87 +278,87 @@
<web src="http://www.cometvisu.org" width="500px" height="500px"/>
</page>
<page name="Flavour Test" align="center" >
- <text><label>
+ <text>
Die Flavour (englisch für Geschmacksrichtung) definieren eine, vom
Design abhängige, Variation des Aussehens einzelner Sub-Seiten.
- </label></text>
+ </text>
<line/>
- <text align="center"><label>Design: <b>Pure</b></label></text>
- <text><label>
+ <text align="center">Design: <b>Pure</b></text>
+ <text>
Das Design "P...
[truncated message content] |
|
From: <net...@us...> - 2013-01-24 21:04:06
|
Revision: 1356
http://openautomation.svn.sourceforge.net/openautomation/?rev=1356&view=rev
Author: netzkind
Date: 2013-01-24 21:03:57 +0000 (Thu, 24 Jan 2013)
Log Message:
-----------
fixed recursive checking for validity of config, made additions to upgrader (namespace, encapsulate diagram_-content, fixed filename-issue with upgrader
Modified Paths:
--------------
CometVisu/trunk/visu/editor/lib/Configuration.js
CometVisu/trunk/visu/editor/lib/Editor.js
CometVisu/trunk/visu/editor/lib/Schema.js
CometVisu/trunk/visu/upgrade/ConfigurationUpgrader.class.php
CometVisu/trunk/visu/upgrade/index.php
CometVisu/trunk/visu/visu_config.xml
Modified: CometVisu/trunk/visu/editor/lib/Configuration.js
===================================================================
--- CometVisu/trunk/visu/editor/lib/Configuration.js 2013-01-24 19:59:15 UTC (rev 1355)
+++ CometVisu/trunk/visu/editor/lib/Configuration.js 2013-01-24 21:03:57 UTC (rev 1356)
@@ -504,6 +504,12 @@
} else {
childrenString += child.name + ';';
}
+
+ // do the recursion
+ if (false === child.isValid()) {
+ isValid = false;
+ return;
+ }
});
if (false == regExp.test(childrenString)) {
Modified: CometVisu/trunk/visu/editor/lib/Editor.js
===================================================================
--- CometVisu/trunk/visu/editor/lib/Editor.js 2013-01-24 19:59:15 UTC (rev 1355)
+++ CometVisu/trunk/visu/editor/lib/Editor.js 2013-01-24 21:03:57 UTC (rev 1356)
@@ -1087,9 +1087,9 @@
},
/**
- * toggle show
+ * actually insert the attributs-HTML into the DOM
*/
- toggleDisplay: function () {
+ renderHTML: function () {
var $attributes = Attributes.$attributes;
@@ -1099,18 +1099,29 @@
Attributes.$htmlPlaceholder.replaceWith($attributes);
Attributes.$htmlPlaceholder = undefined;
}
-
+ },
+
+ /**
+ * toggle show
+ */
+ toggleDisplay: function () {
+ Attributes.renderHTML();
+ var $attributes = Attributes.$attributes;
+
// first hide
-
if ($('ul.attributes:visible').not($attributes).length > 0) {
// some other attributes are visible, we need to hide them first
$('ul.attributes:visible').not($attributes)
.slideToggle('fast', function () {
- $attributes.slideToggle('fast');
+ if (typeof $attributes != 'undefined') {
+ $attributes.slideToggle('fast');
+ }
});
} else {
// no other attributes are currently visible
- $attributes.slideToggle('fast');
+ if (typeof $attributes != 'undefined') {
+ $attributes.slideToggle('fast');
+ }
}
return;
@@ -1129,6 +1140,7 @@
* @param attributeName string name of the attribute
*/
markAttributeInvalid: function (attributeName) {
+ Attributes.renderHTML();
var $attributes = Attributes.$attributes;
var $invalidAttribute = $attributes.find('span.name:contains(' + attributeName + ')').closest('li.attribute');
Modified: CometVisu/trunk/visu/editor/lib/Schema.js
===================================================================
--- CometVisu/trunk/visu/editor/lib/Schema.js 2013-01-24 19:59:15 UTC (rev 1355)
+++ CometVisu/trunk/visu/editor/lib/Schema.js 2013-01-24 21:03:57 UTC (rev 1356)
@@ -1169,7 +1169,7 @@
if (allowedContent._grouping == undefined) {
// not really something to match
- return new RegExp(/^/);
+ return '^';
}
var regexString = allowedContent._grouping.getRegex(separator);
Modified: CometVisu/trunk/visu/upgrade/ConfigurationUpgrader.class.php
===================================================================
--- CometVisu/trunk/visu/upgrade/ConfigurationUpgrader.class.php 2013-01-24 19:59:15 UTC (rev 1355)
+++ CometVisu/trunk/visu/upgrade/ConfigurationUpgrader.class.php 2013-01-24 21:03:57 UTC (rev 1356)
@@ -117,6 +117,10 @@
$objXPath = new DOMXPath($this->objDOM);
+ // append namespaces to schema
+ $this->objDOM->getElementsByTagName('pages')->item(0)->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
+ $this->objDOM->getElementsByTagName('pages')->item(0)->setAttribute('xsi:noNamespaceSchemaLocation', './visu_config.xsd');
+
// rename iframe to web
$objElements = $objXPath->query('//iframe');
$i = 0;
@@ -192,6 +196,26 @@
}
$this->log('encapsulated content of ' . $i . ' \'text\'-nodes in \'label\'-nodes');
+ // encapsulate content of 'diagram_'-nodes in a label
+ $objElements = $objXPath->query('//diagram_inline[not(child::*)]|//diagram_popup[not(child::*)]');
+ $i = 0;
+ foreach ($objElements as $objElementNode) {
+ $objLabelNode = $objElementNode->ownerDocument->createElement('label');
+
+ // first, move all nodes to the childnode
+ if ($objElementNode->childNodes->length > 0) {
+ foreach ($objElementNode->childNodes as $objChildNode) {
+ $objLabelNode->appendChild($objChildNode);
+ }
+ }
+
+ $objElementNode->nodeValue = '';
+
+ $objElementNode->appendChild($objLabelNode);
+
+ ++$i;
+ }
+ $this->log('encapsulated content of ' . $i . ' \'diagram_*\'-nodes in \'label\'-nodes');
// FROM readonly / writeonly TO disable/read/write/readwrite
$objElements = $objXPath->query('//address');
Modified: CometVisu/trunk/visu/upgrade/index.php
===================================================================
--- CometVisu/trunk/visu/upgrade/index.php 2013-01-24 19:59:15 UTC (rev 1355)
+++ CometVisu/trunk/visu/upgrade/index.php 2013-01-24 21:03:57 UTC (rev 1356)
@@ -34,8 +34,8 @@
require_once('ConfigurationUpgrader.class.php');
-define('CONFIG_FILENAME', '../visu_config_%s.xml');
-define('BACKUP_FILENAME', '../backup/visu_config_%s-%s.xml');
+define('CONFIG_FILENAME', '../visu_config%s.xml');
+define('BACKUP_FILENAME', '../backup/visu_config%s-%s.xml');
// get everything the user has provided ...
$strConfigSuffix = (true === isset($_GET['config'])) ? $_GET['config'] : null;
@@ -43,6 +43,11 @@
// clean-up filename, we want no security-holes. work with a whitelist.
$strConfigCleaned = preg_replace("/[^\-\_0-9a-z]/i", "", $strConfigSuffix);
+if (false === empty($strConfigCleaned)) {
+ // prefix the postfix with an underscore
+ $strConfigCleaned = '_' . $strConfigCleaned;
+}
+
// generate the configurations filename
$strConfigFilename = sprintf(CONFIG_FILENAME, $strConfigCleaned);
// .. as a fully qualified filename
Modified: CometVisu/trunk/visu/visu_config.xml
===================================================================
--- CometVisu/trunk/visu/visu_config.xml 2013-01-24 19:59:15 UTC (rev 1355)
+++ CometVisu/trunk/visu/visu_config.xml 2013-01-24 21:03:57 UTC (rev 1356)
@@ -59,9 +59,5 @@
<label>Welcome to the CometVisu!</label>
</text>
<line/>
- <colorchooser>
- <label/>
- <address transform="bla">1/2/3</address>
- </colorchooser>
</page>
</pages>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pe...@us...> - 2013-02-01 16:51:37
|
Revision: 1382
http://openautomation.svn.sourceforge.net/openautomation/?rev=1382&view=rev
Author: peuter
Date: 2013-02-01 16:51:28 +0000 (Fri, 01 Feb 2013)
Log Message:
-----------
- fixes Bug #3602947: Flavours aren?\194?\180t inherited down to icons
- whole Pagejump Widget reacts to click event now. Fixes problem where pagejumps without name weren?\194?\180t klickable
- small Refactoring: removed icons instance from templateEngine to global namespace, initializes in the iconhandler,js and therefore accessible before the templateengine is loaded
Modified Paths:
--------------
CometVisu/trunk/visu/lib/iconhandler.js
CometVisu/trunk/visu/lib/templateengine.js
CometVisu/trunk/visu/plugins/svg/structure_plugin.js
CometVisu/trunk/visu/structure/pure/_common.js
CometVisu/trunk/visu/structure/pure/image.js
CometVisu/trunk/visu/structure/pure/imagetrigger.js
CometVisu/trunk/visu/structure/pure/info.js
CometVisu/trunk/visu/structure/pure/infotrigger.js
CometVisu/trunk/visu/structure/pure/multitrigger.js
CometVisu/trunk/visu/structure/pure/navbar.js
CometVisu/trunk/visu/structure/pure/pagejump.js
CometVisu/trunk/visu/structure/pure/rgb.js
CometVisu/trunk/visu/structure/pure/slide.js
CometVisu/trunk/visu/structure/pure/switch.js
CometVisu/trunk/visu/structure/pure/text.js
CometVisu/trunk/visu/structure/pure/toggle.js
CometVisu/trunk/visu/structure/pure/trigger.js
CometVisu/trunk/visu/structure/pure/urltrigger.js
CometVisu/trunk/visu/structure/pure/video.js
CometVisu/trunk/visu/structure/pure/web.js
CometVisu/trunk/visu/structure/pure/wgplugin_info.js
Modified: CometVisu/trunk/visu/lib/iconhandler.js
===================================================================
--- CometVisu/trunk/visu/lib/iconhandler.js 2013-02-01 13:17:05 UTC (rev 1381)
+++ CometVisu/trunk/visu/lib/iconhandler.js 2013-02-01 16:51:28 UTC (rev 1382)
@@ -1002,13 +1002,14 @@
'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/fts_markise.png' },
'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/fts_markise.png' },
'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/fts_markise.png' } } } },
-'fts_rollo' : { '*': { '*' : { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
- 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/fts_rollo.png' },
- 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/fts_rollo.png' },
- 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/fts_rollo.png' },
- 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/fts_rollo.png' },
- 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/fts_rollo.png' },
- 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/fts_rollo.png' } } } },
+'fts_rollo' : { '*' : { 'white' : '*/white', 'ws' : '*/white', 'antimony' : '*/blue', 'boron' : '*/green', 'lithium' : '*/red', 'potassium' : '*/purple', 'sodium' : '*/orange',
+ '*': { '*' : 'white',
+ 'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/fts_rollo.png' },
+ 'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/fts_rollo.png' },
+ 'orange' : { 'uri': 'icon/knx-uf-iconset/128x128_orange/fts_rollo.png' },
+ 'purple' : { 'uri': 'icon/knx-uf-iconset/128x128_purple/fts_rollo.png' },
+ 'red' : { 'uri': 'icon/knx-uf-iconset/128x128_red/fts_rollo.png' },
+ 'white' : { 'uri': 'icon/knx-uf-iconset/128x128_white/fts_rollo.png' } } } },
'fts_rollo_10' : { '*': { '*' : { '*' : 'white', 'ws' : 'white', 'sodium' : 'orange',
'blue' : { 'uri': 'icon/knx-uf-iconset/128x128_blue/fts_rollo_10.png' },
'green' : { 'uri': 'icon/knx-uf-iconset/128x128_green/fts_rollo_10.png' },
@@ -3838,7 +3839,6 @@
var type = arguments[1];
var flavour = arguments[2];
var color = arguments[3];
-
if (!db[name])
return undefined;
if (!db[name][type])
@@ -3916,3 +3916,4 @@
return db;
}
};
+var icons = new icon();
Modified: CometVisu/trunk/visu/lib/templateengine.js
===================================================================
--- CometVisu/trunk/visu/lib/templateengine.js 2013-02-01 13:17:05 UTC (rev 1381)
+++ CometVisu/trunk/visu/lib/templateengine.js 2013-02-01 16:51:28 UTC (rev 1382)
@@ -45,7 +45,6 @@
function TemplateEngine() {
var thisTemplateEngine = this;
this.design = new VisuDesign_Custom();
- this.icons = new icon();
this.pagePartsHandler = new PagePartsHandler();
this.mappings = {}; // store the mappings
@@ -388,7 +387,7 @@
var color = $this.attr('color');
var styling = $this.attr('styling');
var dynamic = $this.attr('dynamic');
- thisTemplateEngine.icons.insert(name, uri, type, flavour, color, styling, dynamic);
+ icons.insert(name, uri, type, flavour, color, styling, dynamic);
});
// then the mappings
@@ -408,7 +407,7 @@
for ( var i = 0; i < origin.length; i++) {
var $v = $(origin[i]);
if ($v.is('icon'))
- value[i] = thisTemplateEngine.icons.getIcon($v.attr('name'), $v.attr('type'), $v.attr('flavour'), $v.attr('color'));
+ value[i] = icons.getIcon($v.attr('name'), $v.attr('type'), $v.attr('flavour'), $v.attr('color'));
else
value[i] = $v.text();
}
@@ -763,7 +762,7 @@
}
}
// set pagejump for this page to active if it exists
- $(".pagejump > .actor").each(
+ $(".pagejump").each(
function(i) {
var activePageJump = null;
var actor = $(this);
@@ -772,12 +771,12 @@
// get page id by name
$('h1:contains(' + target + ')', '#' + page_id).each(function(i) {
if ($(this).text() == target) {
- activePageJump = actor.parent();
+ activePageJump = actor;
return false;
}
});
} else if (page_id == target) {
- activePageJump = actor.parent();
+ activePageJump = actor;
}
if (activePageJump != null) {
activePageJump.addClass('active');
@@ -787,7 +786,7 @@
// root is always an active ancestor, no need to specify that
break;
}
- $(".pagejump > .actor").each(
+ $(".pagejump").each(
function(i) {
var parentActor = $(this);
var parentTarget = parentActor.data().target;
@@ -796,12 +795,12 @@
$('h1:contains(' + parentTarget + ')',
'#' + parentPage.attr('id')).each(function(i) {
if ($(this).text() == parentTarget) {
- parentActor.parent().addClass('active_ancestor');
+ parentActor.addClass('active_ancestor');
return false;
}
});
} else if (parentPage.attr('id') == parentTarget) {
- parentActor.parent().addClass('active_ancestor');
+ parentActor.addClass('active_ancestor');
}
});
parentPage = thisTemplateEngine.getParentPage(parentPage);
Modified: CometVisu/trunk/visu/plugins/svg/structure_plugin.js
===================================================================
--- CometVisu/trunk/visu/plugins/svg/structure_plugin.js 2013-02-01 13:17:05 UTC (rev 1381)
+++ CometVisu/trunk/visu/plugins/svg/structure_plugin.js 2013-02-01 16:51:28 UTC (rev 1382)
@@ -27,7 +27,7 @@
var style = layout ? 'style="' + extractLayout( layout, type ) + '"' : '';
var ret_val = $('<div class="widget clearfix image" ' + style + '/>');
ret_val.setWidgetLayout($e);
- ret_val.append( extractLabel( $e.find('label')[0] ) );
+ ret_val.append( extractLabel( $e.find('label')[0], flavour ) );
var address = {};
$e.find('address').each( function(){
Modified: CometVisu/trunk/visu/structure/pure/_common.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/_common.js 2013-02-01 13:17:05 UTC (rev 1381)
+++ CometVisu/trunk/visu/structure/pure/_common.js 2013-02-01 16:51:28 UTC (rev 1382)
@@ -72,10 +72,10 @@
* this function implements the widget label (JNK)
*/
-$.fn.makeWidgetLabel = function(page) {
+$.fn.makeWidgetLabel = function(page, flavour) {
var labelElement = page.find('label')[0]; // get first label element
if (labelElement) { // if exists, add it
- this.append( extractLabel( labelElement ) );
+ this.append( extractLabel( labelElement, flavour ) );
}
return this;
}
@@ -420,7 +420,7 @@
return ret_val;
}
-function extractLabel( label )
+function extractLabel( label, flavour )
{
if( !label ) return;
@@ -429,7 +429,7 @@
var $v = $(this);
if( $v.is('icon') )
{
- var i = templateEngine.icons.getIcon($v.attr('name'), $v.attr('type'), $v.attr('flavour'));
+ var i = icons.getIcon($v.attr('name'), $v.attr('type'), $v.attr('flavour') || flavour);
if( i ) $div.append( i.clone() );
} else
$div.append( this.textContent );
Modified: CometVisu/trunk/visu/structure/pure/image.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/image.js 2013-02-01 13:17:05 UTC (rev 1381)
+++ CometVisu/trunk/visu/structure/pure/image.js 2013-02-01 16:51:28 UTC (rev 1382)
@@ -24,7 +24,7 @@
ret_val.setWidgetLayout($e);
if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
- ret_val.append( extractLabel( $e.find('label')[0] ) );
+ ret_val.append( extractLabel( $e.find('label')[0], flavour ) );
var imgStyle = '';
if( $e.attr('width' ) ) {
imgStyle += 'width:' + $e.attr('width' ) + ';';
Modified: CometVisu/trunk/visu/structure/pure/imagetrigger.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/imagetrigger.js 2013-02-01 13:17:05 UTC (rev 1381)
+++ CometVisu/trunk/visu/structure/pure/imagetrigger.js 2013-02-01 16:51:28 UTC (rev 1382)
@@ -24,7 +24,7 @@
if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
var value = $e.attr('value') ? $e.attr('value') : 0;
- ret_val.append( extractLabel( $e.find('label')[0] ) );
+ ret_val.append( extractLabel( $e.find('label')[0], flavour ) );
var address = makeAddressList($e);
var layout = $e.children('layout')[0];
var style = layout ? 'style="' + extractLayout( layout, type, {width:'100%'} ) + '"' : '';
Modified: CometVisu/trunk/visu/structure/pure/info.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/info.js 2013-02-01 13:17:05 UTC (rev 1381)
+++ CometVisu/trunk/visu/structure/pure/info.js 2013-02-01 16:51:28 UTC (rev 1382)
@@ -33,7 +33,7 @@
//type == '3d' && ret_val.data( extractLayout3d( layout ) ).bind( 'update3d', this.update3d );
type == '3d' && $(document).bind( 'update3d', {element: ret_val, layout: extractLayout3d( layout )}, this.update3d );
- ret_val.setWidgetLayout($e).makeWidgetLabel($e);
+ ret_val.setWidgetLayout($e).makeWidgetLabel($e, flavour);
var address = makeAddressList($e);
var actor = '<div class="actor"><div class="value">-</div></div>';
Modified: CometVisu/trunk/visu/structure/pure/infotrigger.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/infotrigger.js 2013-02-01 13:17:05 UTC (rev 1381)
+++ CometVisu/trunk/visu/structure/pure/infotrigger.js 2013-02-01 16:51:28 UTC (rev 1382)
@@ -20,11 +20,10 @@
var $e = $(element);
var layout = $e.children('layout')[0];
var style = layout ? 'style="' + extractLayout( layout, type ) + '"' : '';
+ if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
var ret_val = $('<div class="widget clearfix infotrigger" ' + style + '/>');
ret_val.setWidgetLayout($e);
- ret_val.append( extractLabel( $e.find('label')[0] ) );
-
- if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
+ ret_val.append( extractLabel( $e.find('label')[0], flavour ) );
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
// handle addresses
var address = makeAddressList($e,
Modified: CometVisu/trunk/visu/structure/pure/multitrigger.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/multitrigger.js 2013-02-01 13:17:05 UTC (rev 1381)
+++ CometVisu/trunk/visu/structure/pure/multitrigger.js 2013-02-01 16:51:28 UTC (rev 1382)
@@ -22,8 +22,8 @@
var style = layout ? 'style="' + extractLayout( layout, type ) + '"' : '';
var ret_val = $('<div class="widget clearfix multitrigger" ' + style + '/>');
ret_val.setWidgetLayout($e)
- ret_val.append( extractLabel( $e.find('label')[0] ) );
if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
+ ret_val.append( extractLabel( $e.find('label')[0], flavour ) );
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
var address = makeAddressList($e);
var showstatus = $e.attr("showstatus") || "false";
Modified: CometVisu/trunk/visu/structure/pure/navbar.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/navbar.js 2013-02-01 13:17:05 UTC (rev 1381)
+++ CometVisu/trunk/visu/structure/pure/navbar.js 2013-02-01 16:51:28 UTC (rev 1382)
@@ -24,11 +24,12 @@
var scope = $n.attr('scope') || -1;
var container = $( '<div class="navbar clearfix" id="' + id.join('_')+'_'+ position + '_navbar" />' );
if( $n.attr('name') ) container.append( '<h2 ' + hstyle + '>' + $n.attr('name') + '</h2>' );
+ if( $n.attr('flavour') ) flavour = $n.attr('flavour');// sub design choice
$( childs ).each( function(i){
container.append( templateEngine.create_pages( childs[i], path + '_' + i, flavour ) );
} );
container.data('scope',scope);
- if( $n.attr('flavour') ) flavour = $n.attr('flavour');// sub design choice
+
if( flavour ) container.addClass( 'flavour_' + flavour );
var dynamic = $n.attr('dynamic') == 'true' ? true : false;
Modified: CometVisu/trunk/visu/structure/pure/pagejump.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/pagejump.js 2013-02-01 13:17:05 UTC (rev 1381)
+++ CometVisu/trunk/visu/structure/pure/pagejump.js 2013-02-01 16:51:28 UTC (rev 1382)
@@ -29,7 +29,7 @@
if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
ret_val.setWidgetLayout($e);
- var label = extractLabel( $e.find('label')[0] );
+ var label = extractLabel( $e.find('label')[0], flavour );
var address = makeAddressList($e);
var actor = '<div class="actor switchUnpressed ';
if ( $e.attr( 'align' ) )
@@ -41,13 +41,15 @@
var $actor = $(actor).data( {
'styling' : $(element).attr('styling'),
'type' : 'pagejump',
- 'align' : $e.attr('align'),
- 'target' : target
- } ).bind( 'click', this.action ).bind( 'mousedown', function(){
- $(this).removeClass('switchUnpressed').addClass('switchPressed');
+ 'align' : $e.attr('align')
+ } ).setWidgetStyling(target);
+
+ ret_val.bind( 'click', this.action ).bind( 'mousedown', function(){
+ $actor.removeClass('switchUnpressed').addClass('switchPressed');
} ).bind( 'mouseup mouseout', function(){ // not perfect but simple
- $(this).removeClass('switchPressed').addClass('switchUnpressed');
- } ).setWidgetStyling(target);
+ $actor.removeClass('switchPressed').addClass('switchUnpressed');
+ } );
+ ret_val.data('target',target);
ret_val.append( label ).append( $actor );
return ret_val;
},
Modified: CometVisu/trunk/visu/structure/pure/rgb.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/rgb.js 2013-02-01 13:17:05 UTC (rev 1381)
+++ CometVisu/trunk/visu/structure/pure/rgb.js 2013-02-01 16:51:28 UTC (rev 1382)
@@ -29,7 +29,7 @@
ret_val.setWidgetLayout($e);
if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
- var label = extractLabel( $e.find('label')[0] );
+ var label = extractLabel( $e.find('label')[0], flavour );
var address = makeAddressList($e, rgb_handleVariant);
var actor = '<div class="actor" style="background: #ffffff;"></div>';
Modified: CometVisu/trunk/visu/structure/pure/slide.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/slide.js 2013-02-01 13:17:05 UTC (rev 1381)
+++ CometVisu/trunk/visu/structure/pure/slide.js 2013-02-01 16:51:28 UTC (rev 1382)
@@ -22,7 +22,7 @@
var style = layout ? 'style="' + extractLayout( layout, type ) + '"' : '';
if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
var ret_val = $('<div class="widget clearfix slide" ' + style + ' />');
- ret_val.setWidgetLayout($e).makeWidgetLabel($e);
+ ret_val.setWidgetLayout($e).makeWidgetLabel($e, flavour);
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
var address = makeAddressList($e);
var datatype_min = undefined;
Modified: CometVisu/trunk/visu/structure/pure/switch.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/switch.js 2013-02-01 13:17:05 UTC (rev 1381)
+++ CometVisu/trunk/visu/structure/pure/switch.js 2013-02-01 16:51:28 UTC (rev 1382)
@@ -28,7 +28,7 @@
ret_val.setWidgetLayout($e);
if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
- var label = extractLabel( $e.find('label')[0] );
+ var label = extractLabel( $e.find('label')[0], flavour );
var address = makeAddressList($e);
var actor = '<div class="actor switchUnpressed"><div class="value">-</div></div>';
Modified: CometVisu/trunk/visu/structure/pure/text.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/text.js 2013-02-01 13:17:05 UTC (rev 1381)
+++ CometVisu/trunk/visu/structure/pure/text.js 2013-02-01 16:51:28 UTC (rev 1382)
@@ -24,13 +24,13 @@
ret_val.setWidgetLayout($e);
if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
- var label = extractLabel( $e.find('label')[0] );
+ var label = extractLabel( $e.find('label')[0], flavour );
if (!label) {
label = $('<div/>');
$e.contents().each(function() {
var $v = $(this);
if ($v.is('icon')) {
- var i = templateEngine.icons.getIcon($v.attr('name'), $v.attr('type'), $v.attr('flavour') || flavour);
+ var i = icons.getIcon($v.attr('name'), $v.attr('type'), $v.attr('flavour') || flavour);
if (i)
label.append(i.clone());
} else
Modified: CometVisu/trunk/visu/structure/pure/toggle.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/toggle.js 2013-02-01 13:17:05 UTC (rev 1381)
+++ CometVisu/trunk/visu/structure/pure/toggle.js 2013-02-01 16:51:28 UTC (rev 1382)
@@ -28,7 +28,7 @@
ret_val.setWidgetLayout($e);
if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
- var label = extractLabel( $e.find('label')[0] );
+ var label = extractLabel( $e.find('label')[0], flavour );
var address = makeAddressList($e);
var actor = '<div class="actor switchUnpressed"><div class="value">-</div></div>';
var $actor = $(actor).data( {
Modified: CometVisu/trunk/visu/structure/pure/trigger.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/trigger.js 2013-02-01 13:17:05 UTC (rev 1381)
+++ CometVisu/trunk/visu/structure/pure/trigger.js 2013-02-01 16:51:28 UTC (rev 1382)
@@ -30,7 +30,7 @@
ret_val.setWidgetLayout($e);
if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
- var label = extractLabel( $e.find('label')[0] );
+ var label = extractLabel( $e.find('label')[0], flavour );
var address = makeAddressList($e, function(src, transform, mode, variant){return [true, variant=='short'];});
var actor = '<div class="actor switchUnpressed ';
if ( $e.attr( 'align' ) )
Modified: CometVisu/trunk/visu/structure/pure/urltrigger.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/urltrigger.js 2013-02-01 13:17:05 UTC (rev 1381)
+++ CometVisu/trunk/visu/structure/pure/urltrigger.js 2013-02-01 16:51:28 UTC (rev 1382)
@@ -30,7 +30,7 @@
ret_val.setWidgetLayout($e);
if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
- var label = extractLabel( $e.find('label')[0] );
+ var label = extractLabel( $e.find('label')[0], flavour );
var actor = '<div class="actor switchUnpressed ';
if ( $e.attr( 'align' ) )
actor += $e.attr( 'align' );
Modified: CometVisu/trunk/visu/structure/pure/video.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/video.js 2013-02-01 13:17:05 UTC (rev 1381)
+++ CometVisu/trunk/visu/structure/pure/video.js 2013-02-01 16:51:28 UTC (rev 1382)
@@ -24,7 +24,7 @@
ret_val.setWidgetLayout($e);
if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
- ret_val.append( extractLabel( $e.find('label')[0] ) );
+ ret_val.append( extractLabel( $e.find('label')[0], flavour ) );
var autoplay = ($e.attr('autoplay') && $e.attr('autoplay')=='true') ? ' autoplay="autoplay"' : '';
var style = '';
if( $e.attr('width' ) ) style += 'width:' + $e.attr('width' ) + ';';
Modified: CometVisu/trunk/visu/structure/pure/web.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/web.js 2013-02-01 13:17:05 UTC (rev 1381)
+++ CometVisu/trunk/visu/structure/pure/web.js 2013-02-01 16:51:28 UTC (rev 1382)
@@ -24,7 +24,7 @@
ret_val.setWidgetLayout($e);
if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
- ret_val.append( extractLabel( $e.find('label')[0] ) );
+ ret_val.append( extractLabel( $e.find('label')[0], flavour ) );
var webStyle = '';
if( $e.attr('width' ) ) {
webStyle += 'width:' + $e.attr('width' ) + ';';
Modified: CometVisu/trunk/visu/structure/pure/wgplugin_info.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/wgplugin_info.js 2013-02-01 13:17:05 UTC (rev 1381)
+++ CometVisu/trunk/visu/structure/pure/wgplugin_info.js 2013-02-01 16:51:28 UTC (rev 1382)
@@ -24,7 +24,7 @@
//type == '3d' && ret_val.data( extractLayout3d( layout ) ).bind( 'update3d', this.update3d );
type == '3d' && $(document).bind( 'update3d', {element: ret_val, layout: extractLayout3d( layout )}, this.update3d );
- ret_val.setWidgetLayout($e).makeWidgetLabel($e);
+ ret_val.setWidgetLayout($e).makeWidgetLabel($e, flavour);
if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
var address = makeAddressList($e);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ma...@us...> - 2013-02-02 14:06:01
|
Revision: 1386
http://openautomation.svn.sourceforge.net/openautomation/?rev=1386&view=rev
Author: mayerch
Date: 2013-02-02 14:05:53 +0000 (Sat, 02 Feb 2013)
Log Message:
-----------
First step at forcing a way around the browser cache
Modified Paths:
--------------
CometVisu/trunk/visu/index.html
CometVisu/trunk/visu/lib/compatibility.js
CometVisu/trunk/visu/lib/templateengine.js
CometVisu/trunk/visu/plugins/colorchooser/structure_plugin.js
Modified: CometVisu/trunk/visu/index.html
===================================================================
--- CometVisu/trunk/visu/index.html 2013-02-02 09:14:06 UTC (rev 1385)
+++ CometVisu/trunk/visu/index.html 2013-02-02 14:05:53 UTC (rev 1386)
@@ -13,50 +13,52 @@
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0; webkit-user-select: none;" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
-
<script src="dependencies/jquery.js" type="text/javascript"></script>
<script src="lib/compatibility.js" type="text/javascript"></script>
- <script src="dependencies/jquery-ui.js" type="text/javascript"></script>
- <script src="dependencies/strftime.js" type="text/javascript"></script>
- <script src="dependencies/scrollable.js" type="text/javascript"></script>
- <script src="dependencies/jquery.ui.touch-punch.js" type="text/javascript"></script>
- <script src="dependencies/jquery.svg.min.js" type="text/javascript"></script>
- <script src="lib/cometvisu-client.js" type="text/javascript"></script>
- <script src="lib/iconhandler.js" type="text/javascript"></script>
- <!-- Load the widgets: start -->
- <script src="structure/pure/_common.js" type="text/javascript"></script>
- <script src="structure/pure/break.js" type="text/javascript"></script>
- <script src="structure/pure/group.js" type="text/javascript"></script>
- <script src="structure/pure/rgb.js" type="text/javascript"></script>
- <script src="structure/pure/web.js" type="text/javascript"></script>
- <script src="structure/pure/image.js" type="text/javascript"></script>
- <script src="structure/pure/imagetrigger.js" type="text/javascript"></script>
- <script src="structure/pure/include.js" type="text/javascript"></script>
- <script src="structure/pure/info.js" type="text/javascript"></script>
- <script src="structure/pure/infotrigger.js" type="text/javascript"></script>
- <script src="structure/pure/line.js" type="text/javascript"></script>
- <script src="structure/pure/multitrigger.js" type="text/javascript"></script>
- <script src="structure/pure/navbar.js" type="text/javascript"></script>
- <script src="structure/pure/page.js" type="text/javascript"></script>
- <script src="structure/pure/pagejump.js" type="text/javascript"></script>
- <script src="structure/pure/slide.js" type="text/javascript"></script>
- <script src="structure/pure/switch.js" type="text/javascript"></script>
- <script src="structure/pure/text.js" type="text/javascript"></script>
- <script src="structure/pure/toggle.js" type="text/javascript"></script>
- <script src="structure/pure/trigger.js" type="text/javascript"></script>
- <script src="structure/pure/urltrigger.js" type="text/javascript"></script>
- <script src="structure/pure/unknown.js" type="text/javascript"></script>
- <script src="structure/pure/video.js" type="text/javascript"></script>
- <script src="structure/pure/wgplugin_info.js" type="text/javascript"></script>
- <script src="designs/structure_custom.js" type="text/javascript"></script>
- <!-- Load the widgets: end -->
- <script src="lib/templateengine.js" type="text/javascript"></script>
- <script src="transforms/transform_default.js" type="text/javascript"></script>
- <script src="transforms/transform_knx.js" type="text/javascript"></script>
- <script src="transforms/transform_oh.js" type="text/javascript"></script>
- <script src="dependencies/Three.js" type="text/javascript"></script>
- <script src="dependencies/poly2tri.js" type="text/javascript"></script>
- <script src="dependencies/jsfloorplan.js" type="text/javascript"></script>
+ <script type="text/javascript">
+ $.ajaxSetup({ crossDomain: true }); // make scripts debugable
+ $.getOrderedScripts([
+ "dependencies/jquery-ui.js",
+ "dependencies/strftime.js",
+ "dependencies/scrollable.js",
+ "dependencies/jquery.ui.touch-punch.js",
+ "dependencies/jquery.svg.min.js",
+ "lib/cometvisu-client.js",
+ "lib/iconhandler.js",
+ "structure/pure/_common.js",
+ "structure/pure/break.js",
+ "structure/pure/group.js",
+ "structure/pure/rgb.js",
+ "structure/pure/web.js",
+ "structure/pure/image.js",
+ "structure/pure/imagetrigger.js",
+ "structure/pure/include.js",
+ "structure/pure/info.js",
+ "structure/pure/infotrigger.js",
+ "structure/pure/line.js",
+ "structure/pure/multitrigger.js",
+ "structure/pure/navbar.js",
+ "structure/pure/page.js",
+ "structure/pure/pagejump.js",
+ "structure/pure/slide.js",
+ "structure/pure/switch.js",
+ "structure/pure/text.js",
+ "structure/pure/toggle.js",
+ "structure/pure/trigger.js",
+ "structure/pure/urltrigger.js",
+ "structure/pure/unknown.js",
+ "structure/pure/video.js",
+ "structure/pure/wgplugin_info.js",
+ "designs/structure_custom.js",
+ "lib/templateengine.js",
+ "transforms/transform_default.js",
+ "transforms/transform_knx.js",
+ "transforms/transform_oh.js",
+ "dependencies/Three.js",
+ "dependencies/poly2tri.js",
+ "dependencies/jsfloorplan.js"
+ ]);
+ </script>
<style type="text/css">
.loading { display: none; }
</style>
Modified: CometVisu/trunk/visu/lib/compatibility.js
===================================================================
--- CometVisu/trunk/visu/lib/compatibility.js 2013-02-02 09:14:06 UTC (rev 1385)
+++ CometVisu/trunk/visu/lib/compatibility.js 2013-02-02 14:05:53 UTC (rev 1386)
@@ -153,5 +153,15 @@
},
getUrlVar: function(name){
return $.getUrlVars()[name];
+ },
+ // heavily inspired by: http://stackoverflow.com/questions/13066712/how-to-load-a-list-of-javascript-files-and-call-a-callback-after-all-of-them-are
+ getOrderedScripts: function(files, callback) {
+ if( 'object' === typeof files && 0 == files.length && callback )
+ callback();
+ else
+ $.getScript( files.shift(), files.length
+ ? function(){ $.getOrderedScripts(files, callback);}
+ : callback
+ );
}
});
\ No newline at end of file
Modified: CometVisu/trunk/visu/lib/templateengine.js
===================================================================
--- CometVisu/trunk/visu/lib/templateengine.js 2013-02-02 09:14:06 UTC (rev 1385)
+++ CometVisu/trunk/visu/lib/templateengine.js 2013-02-02 14:05:53 UTC (rev 1386)
@@ -44,6 +44,8 @@
function TemplateEngine() {
var thisTemplateEngine = this;
+ this.pageReady = false;
+ this.pluginsReady = false;
this.design = new VisuDesign_Custom();
this.pagePartsHandler = new PagePartsHandler();
@@ -204,7 +206,7 @@
var widthNavbarLeft = $('#navbarLeft').css('display') != 'none' ? $('#navbarLeft').width() : 0;
var widthNavbarRight = $('#navbarRight').css('display') != 'none' ? $('#navbarRight').width() : 0;
var width = $('body').width() - widthNavbarLeft - widthNavbarRight - 1; // remove an additional pixel for Firefox
-
+
var $main = $('#main');
// if (/(android|blackberry|iphone|ipod|series60|symbian|windows ce|palm)/i.test(uagent)) {
var mobileDevice = (/(android|blackberry|iphone|ipod|series60|symbian|windows ce|palm)/i.test(uagent));
@@ -219,7 +221,7 @@
height -= $('#navbarBottom').outerHeight(true) - 1;
}
if ($('#bottom').css('display') != 'none') {
- height -= $('#bottom').outerHeight(true) - 1;
+ height -= $('#bottom').outerHeight(true) - 1;
}
$main.css('width', width).css('height', height);
$('#pageSize').text('.page{width:' + (width - 0) + 'px;height:' + height + 'px;}');
@@ -343,39 +345,17 @@
$('head').append(
'<link rel="stylesheet" type="text/css" href="designs/' + thisTemplateEngine.clientDesign
+ '/custom.css" />');
- $('head').append(
- '<script src="designs/' + thisTemplateEngine.clientDesign
- + '/design_setup.js" type="text/javascript" />');
+ $.getScript( 'designs/' + thisTemplateEngine.clientDesign + '/design_setup.js');
// start with the plugins
- var pluginsToLoad = 0;
+ var pluginsToLoad = [];
$('meta > plugins plugin', xml).each(function(i) {
- pluginsToLoad += 1;
- var name = 'plugins/' + $(this).attr('name') + '/structure_plugin.js';
- if (thisTemplateEngine.forceReload)
- name += '?_=' + (new Date().getTime());
- var html_doc = document.getElementsByTagName('body')[0];
- js = document.createElement('script');
- js.setAttribute('type', 'text/javascript');
- js.setAttribute('src', name);
- html_doc.appendChild(js);
-
- js.onreadystatechange = function() {
- if (js.readyState == 'complete') {
- pluginsToLoad -= 1;
- if (pluginsToLoad <= 0) {
- thisTemplateEngine.setup_page(xml);
- }
- }
- };
-
- js.onload = function() {
- pluginsToLoad -= 1;
- if (pluginsToLoad <= 0) {
- thisTemplateEngine.setup_page(xml);
- }
- };
+ pluginsToLoad.push( 'plugins/' + $(this).attr('name') + '/structure_plugin.js' );
});
+ $.getOrderedScripts( pluginsToLoad, function(){
+ thisTemplateEngine.pluginsReady = true;
+ thisTemplateEngine.setup_page(xml);
+ });
// then the icons
$('meta > icons icon-definition', xml).each(function(i) {
@@ -389,7 +369,7 @@
var dynamic = $this.attr('dynamic');
icons.insert(name, uri, type, flavour, color, styling, dynamic);
});
-
+
// then the mappings
$('meta > mappings mapping', xml).each(function(i) {
var $this = $(this);
@@ -420,7 +400,7 @@
}
});
}
- });
+ });
// then the stylings
$('meta > stylings styling', xml).each(function(i) {
@@ -478,14 +458,18 @@
$('.footer').html($('.footer').html() + text);
});
- if (pluginsToLoad <= 0) {
- thisTemplateEngine.setup_page(xml);
- }
+ thisTemplateEngine.pageReady = true;
+ thisTemplateEngine.setup_page(xml);
};
this.setup_page = function(xml) {
// and now setup the pages
+
+ // check if the page and the plugins are ready now
+ if( !this.pageReady || !this.pluginsReady)
+ return; // we'll be called again...
+
var page = $('pages > page', xml)[0]; // only one page element allowed...
thisTemplateEngine.create_pages(page, 'id_0');
Modified: CometVisu/trunk/visu/plugins/colorchooser/structure_plugin.js
===================================================================
--- CometVisu/trunk/visu/plugins/colorchooser/structure_plugin.js 2013-02-02 09:14:06 UTC (rev 1385)
+++ CometVisu/trunk/visu/plugins/colorchooser/structure_plugin.js 2013-02-02 14:05:53 UTC (rev 1386)
@@ -162,6 +162,6 @@
/**
* Include the needed stuff
*/
-$( 'head' ).append( '<script type="text/javascript" src="plugins/colorchooser/farbtastic/farbtastic.js"></script>' );
+$.getScript( 'plugins/colorchooser/farbtastic/farbtastic.js' );
$( 'head' ).append( '<link rel="stylesheet" href="plugins/colorchooser/farbtastic/farbtastic.css" type="text/css" />' );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ma...@us...> - 2013-02-02 17:00:31
|
Revision: 1387
http://openautomation.svn.sourceforge.net/openautomation/?rev=1387&view=rev
Author: mayerch
Date: 2013-02-02 17:00:22 +0000 (Sat, 02 Feb 2013)
Log Message:
-----------
Make more files (esp. the CSS) preventing the cache when the URL parameter forceReload is set to true
Modified Paths:
--------------
CometVisu/trunk/visu/index.html
CometVisu/trunk/visu/lib/compatibility.js
CometVisu/trunk/visu/lib/templateengine.js
CometVisu/trunk/visu/plugins/colorchooser/structure_plugin.js
CometVisu/trunk/visu/plugins/diagram/structure_plugin.js
Modified: CometVisu/trunk/visu/index.html
===================================================================
--- CometVisu/trunk/visu/index.html 2013-02-02 14:05:53 UTC (rev 1386)
+++ CometVisu/trunk/visu/index.html 2013-02-02 17:00:22 UTC (rev 1387)
@@ -16,7 +16,7 @@
<script src="dependencies/jquery.js" type="text/javascript"></script>
<script src="lib/compatibility.js" type="text/javascript"></script>
<script type="text/javascript">
- $.ajaxSetup({ crossDomain: true }); // make scripts debugable
+ $.ajaxSetup({ crossDomain: true, cache: 'true' != $.getUrlVar('forceReload') }); // make scripts debugable
$.getOrderedScripts([
"dependencies/jquery-ui.js",
"dependencies/strftime.js",
Modified: CometVisu/trunk/visu/lib/compatibility.js
===================================================================
--- CometVisu/trunk/visu/lib/compatibility.js 2013-02-02 14:05:53 UTC (rev 1386)
+++ CometVisu/trunk/visu/lib/compatibility.js 2013-02-02 17:00:22 UTC (rev 1387)
@@ -163,5 +163,15 @@
? function(){ $.getOrderedScripts(files, callback);}
: callback
);
+ },
+ // inspired by http://stackoverflow.com/questions/2685614/load-external-css-file-like-scripts-in-jquery-which-is-compatible-in-ie-also
+ getCSS: function( url, parameters ) {
+ var cssLink = $( '<link/>' );
+ $( 'head' ).append( cssLink ); //IE hack: append before setting href
+ cssLink.attr( $.extend( parameters, {
+ rel: "stylesheet",
+ type: "text/css",
+ href: $.ajaxSettings.cache ? url : url + '?_=' + (new Date()).valueOf()
+ }) );
}
});
\ No newline at end of file
Modified: CometVisu/trunk/visu/lib/templateengine.js
===================================================================
--- CometVisu/trunk/visu/lib/templateengine.js 2013-02-02 14:05:53 UTC (rev 1386)
+++ CometVisu/trunk/visu/lib/templateengine.js 2013-02-02 17:00:22 UTC (rev 1387)
@@ -287,9 +287,11 @@
this.parseXML = function(xml) {
// erst mal den Cache für AJAX-Requests wieder aktivieren
+ /*
$.ajaxSetup({
cache : true
});
+ */
/*
* First, we try to get a design by url Secondly, we try to get a predefined
@@ -332,19 +334,12 @@
}
var maxMobileScreenWidth = $('pages', xml).attr('max_mobile_screen_width') || 480;
- $('head')
- .append(
- '<link rel="stylesheet" type="text/css" href="designs/designglobals.css" />');
- $('head').append(
- '<link rel="stylesheet" type="text/css" href="designs/' + thisTemplateEngine.clientDesign
- + '/basic.css" />');
- $('head').append(
- '<link rel="stylesheet" type="text/css" href="designs/' + thisTemplateEngine.clientDesign
- + '/mobile.css" media="only screen and (max-device-width: '
- + maxMobileScreenWidth + 'px)" />');
- $('head').append(
- '<link rel="stylesheet" type="text/css" href="designs/' + thisTemplateEngine.clientDesign
- + '/custom.css" />');
+ $.getCSS( 'designs/designglobals.css' );
+ $.getCSS( 'designs/' + thisTemplateEngine.clientDesign + '/basic.css' );
+ $.getCSS( 'designs/' + thisTemplateEngine.clientDesign + '/mobile.css',
+ {media: 'only screen and (max-device-width: '
+ + maxMobileScreenWidth + 'px)'} );
+ $.getCSS( 'designs/' + thisTemplateEngine.clientDesign + '/custom.css' );
$.getScript( 'designs/' + thisTemplateEngine.clientDesign + '/design_setup.js');
// start with the plugins
Modified: CometVisu/trunk/visu/plugins/colorchooser/structure_plugin.js
===================================================================
--- CometVisu/trunk/visu/plugins/colorchooser/structure_plugin.js 2013-02-02 14:05:53 UTC (rev 1386)
+++ CometVisu/trunk/visu/plugins/colorchooser/structure_plugin.js 2013-02-02 17:00:22 UTC (rev 1387)
@@ -163,5 +163,5 @@
* Include the needed stuff
*/
$.getScript( 'plugins/colorchooser/farbtastic/farbtastic.js' );
-$( 'head' ).append( '<link rel="stylesheet" href="plugins/colorchooser/farbtastic/farbtastic.css" type="text/css" />' );
+$.getCSS( 'plugins/colorchooser/farbtastic/farbtastic.css' );
Modified: CometVisu/trunk/visu/plugins/diagram/structure_plugin.js
===================================================================
--- CometVisu/trunk/visu/plugins/diagram/structure_plugin.js 2013-02-02 14:05:53 UTC (rev 1386)
+++ CometVisu/trunk/visu/plugins/diagram/structure_plugin.js 2013-02-02 17:00:22 UTC (rev 1387)
@@ -52,9 +52,10 @@
*
*/
-
-$("body").append("<script type=\"text/javascript\" src=\"plugins/diagram/flot/jquery.flot.js\"></script>");
-$("body").append("<script type=\"text/javascript\" src=\"plugins/diagram/flot/jquery.flot.axislabels.js\"></script>");
+$.getOrderedScripts([
+ 'plugins/diagram/flot/jquery.flot.js',
+ 'plugins/diagram/flot/jquery.flot.axislabels.js'
+]);
function diagram_get_content( page ) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ma...@us...> - 2013-02-02 21:18:53
|
Revision: 1389
http://openautomation.svn.sourceforge.net/openautomation/?rev=1389&view=rev
Author: mayerch
Date: 2013-02-02 21:18:46 +0000 (Sat, 02 Feb 2013)
Log Message:
-----------
Possible fix for http://knx-user-forum.de/289631-post29.html
Modified Paths:
--------------
CometVisu/trunk/visu/index.html
CometVisu/trunk/visu/visu_config_previewtemp.xml
Modified: CometVisu/trunk/visu/index.html
===================================================================
--- CometVisu/trunk/visu/index.html 2013-02-02 20:08:12 UTC (rev 1388)
+++ CometVisu/trunk/visu/index.html 2013-02-02 21:18:46 UTC (rev 1389)
@@ -26,6 +26,8 @@
"lib/cometvisu-client.js",
"lib/iconhandler.js",
"structure/pure/_common.js",
+ "designs/structure_custom.js",
+ "lib/templateengine.js",
"structure/pure/break.js",
"structure/pure/group.js",
"structure/pure/rgb.js",
@@ -49,8 +51,6 @@
"structure/pure/unknown.js",
"structure/pure/video.js",
"structure/pure/wgplugin_info.js",
- "designs/structure_custom.js",
- "lib/templateengine.js",
"transforms/transform_default.js",
"transforms/transform_knx.js",
"transforms/transform_oh.js",
Modified: CometVisu/trunk/visu/visu_config_previewtemp.xml
===================================================================
--- CometVisu/trunk/visu/visu_config_previewtemp.xml 2013-02-02 20:08:12 UTC (rev 1388)
+++ CometVisu/trunk/visu/visu_config_previewtemp.xml 2013-02-02 21:18:46 UTC (rev 1389)
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<pages design="pure" lib_version="0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./visu_config.xsd">
+ <meta>
+ <plugins>
+ <plugin name="colorchooser"/>
+ <plugin name="diagram"/>
+ <plugin name="upnpcontroller"/>
+ </plugins>
+ <mappings>
+ <mapping name="Close_Open">
+ <entry value="0">zu</entry>
+ <entry value="1">offen</entry>
+ </mapping>
+ <mapping name="Open_Close">
+ <entry value="0">offen</entry>
+ <entry value="1">zu</entry>
+ </mapping>
+ <mapping name="Off_On">
+ <entry value="0">Aus</entry>
+ <entry value="1">An</entry>
+ </mapping>
+ <mapping name="On_Off">
+ <entry value="0">An</entry>
+ <entry value="1">Aus</entry>
+ </mapping>
+ <mapping name="KonnexHVAC">
+ <entry value="auto">Auto</entry>
+ <entry value="comfort">Komfort</entry>
+ <entry value="standby">Stand By</entry>
+ <entry value="economy">Economy</entry>
+ <entry value="building_protection">Haus-Schutz</entry>
+ </mapping>
+ </mappings>
+ <stylings>
+ <styling name="Red_Green">
+ <entry value="0">red</entry>
+ <entry value="1">green</entry>
+ </styling>
+ <styling name="Green_Red">
+ <entry value="0">green</entry>
+ <entry value="1">red</entry>
+ </styling>
+ <styling name="Blue_Green_Red">
+ <entry range_min="-100" range_max="20">blue</entry>
+ <entry range_min="20" range_max="22">green</entry>
+ <entry range_min="22" range_max="100">red</entry>
+ </styling>
+ </stylings>
+ <statusbar>
+ <status type="html"><img src="icon/comet_64_ff8000.png" alt="CometVisu"> by <a href="http://www.cometvisu.org/">CometVisu.org</a>
+ - <a href=".?forceReload=true">Reload</a>
+ - <a href="?config=demo">Widget Demo</a></status>
+ <status type="html" hrefextend="config">- <a href="check_config.php">Check Config</a></status>
+ </statusbar>
+ </meta>
+ <page name="Start">
+ <line/>
+ <text align="center">
+ <label>Welcome to bla blub CometVisu!fff</label>
+ </text>
+ <line/>
+ <colorchooser>
+ <label/>
+ <address transform="bla">1/2/3</address>
+ </colorchooser>
+ <gweather width="400" height="300" city="Holzkirchen"/>
+ <urltrigger url="http://"/>
+ </page>
+</pages>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pe...@us...> - 2013-02-03 17:40:35
|
Revision: 1399
http://openautomation.svn.sourceforge.net/openautomation/?rev=1399&view=rev
Author: peuter
Date: 2013-02-03 17:40:25 +0000 (Sun, 03 Feb 2013)
Log Message:
-----------
- implemented Feature Request: Make area for actions in switch/page-widgets bigger - ID: 3203398 (http://sourceforge.net/tracker/?func=detail&aid=3203398&group_id=296426&atid=1251144)
the new behaviour is activated via the new attribute bind_click_to_widget (boolean) which can be added to the pages element for global activation of the bevaviour or to elements of type: pagejump, urltrigger, trigger, toggle, switch, imagetrigger, diagram_info, page(pagelink) in order to change single elements
Modified Paths:
--------------
CometVisu/trunk/visu/designs/metal/design_setup.js
CometVisu/trunk/visu/lib/templateengine.js
CometVisu/trunk/visu/plugins/diagram/structure_plugin.js
CometVisu/trunk/visu/structure/pure/imagetrigger.js
CometVisu/trunk/visu/structure/pure/page.js
CometVisu/trunk/visu/structure/pure/pagejump.js
CometVisu/trunk/visu/structure/pure/switch.js
CometVisu/trunk/visu/structure/pure/toggle.js
CometVisu/trunk/visu/structure/pure/trigger.js
CometVisu/trunk/visu/structure/pure/urltrigger.js
CometVisu/trunk/visu/visu_config.xsd
CometVisu/trunk/visu/visu_config_metal.xml
Modified: CometVisu/trunk/visu/designs/metal/design_setup.js
===================================================================
--- CometVisu/trunk/visu/designs/metal/design_setup.js 2013-02-03 15:22:25 UTC (rev 1398)
+++ CometVisu/trunk/visu/designs/metal/design_setup.js 2013-02-03 17:40:25 UTC (rev 1399)
@@ -76,8 +76,9 @@
// only execute on start
if (started) {
if ($('.navbar').size()>0) {
- $('.navbar > .widget_container:first-child .group:not(.root) .pagejump:first-child').each(function(i) {
- var target = ($(this).data().target.match(/^id_[0-9_]+$/)==null) ? $('.page h1:contains('+$(this).data().target+')').closest(".page").attr("id") : $(this).data().target;
+ $('.navbar > .widget_container:first-child .group:not(.root) .pagejump:first-child .actor').each(function(i) {
+ var data = $(this).data();
+ var target = (data.target.match(/^id_[0-9_]+$/)==null) ? $('.page h1:contains('+data.target+')').closest(".page").attr("id") : data.target;
if (target=="id_0") {
// pagejump to root-page found
var group = $(this).closest(".group");
Modified: CometVisu/trunk/visu/lib/templateengine.js
===================================================================
--- CometVisu/trunk/visu/lib/templateengine.js 2013-02-03 15:22:25 UTC (rev 1398)
+++ CometVisu/trunk/visu/lib/templateengine.js 2013-02-03 17:40:25 UTC (rev 1399)
@@ -54,6 +54,10 @@
this.currentPageUnavailableWidth = -1;
this.currentPageUnavailableHeight = -1;
this.currentPageNavbarVisibility = null;
+
+ // if true the whole widget reacts on click events
+ // if false only the actor in the widget reacts on click events
+ this.bindClickToWidget = false;
// threshold where the mobile.css is loaded
this.maxMobileScreenWidth = 480;
@@ -270,8 +274,6 @@
if (thisTemplateEngine.currentPageUnavailableHeight<0) {
thisTemplateEngine.currentPageUnavailableHeight=0;
var navbarVisibility = thisTemplateEngine.getCurrentPageNavbarVisibility(thisTemplateEngine.currentPage);
- console.log(thisTemplateEngine.designReady);
- console.log(navbarVisibility);
var heightStr = "Height: "+windowHeight;
if ($('#top').css('display') != 'none' && $('#top').outerHeight(true)>0) {
thisTemplateEngine.currentPageUnavailableHeight+=$('#top').outerHeight(true);
@@ -391,6 +393,10 @@
if ($('pages', xml).attr('enable_column_adjustment')!=undefined) {
enableColumnAdjustment = $('pages', xml).attr('enable_column_adjustment')=="true" ? true : false;
}
+ if ($('pages', xml).attr('bind_click_to_widget')!=undefined) {
+ thisTemplateEngine.bindClickToWidget = $('pages', xml).attr('bind_click_to_widget')=="true" ? true : false;
+ }
+ console.log($('pages', xml).attr('bind_click_to_widget'));
if (enableColumnAdjustment) {
thisTemplateEngine.enableColumnAdjustment = true;
} else if (enableColumnAdjustment==null && /(android|blackberry|iphone|ipod|series60|symbian|windows ce|palm)/i
@@ -767,7 +773,7 @@
});
thisTemplateEngine.visu.setInitialAddresses(Object.keys(startPageAddresses));
}
- thisTemplateEngine.visu.subscribe(thisTemplateEngine.getAddresses());
+ //thisTemplateEngine.visu.subscribe(thisTemplateEngine.getAddresses());
// $(window).trigger('resize');
$("#pages").triggerHandler("done");
};
@@ -851,7 +857,7 @@
}
}
// set pagejump for this page to active if it exists
- $(".pagejump").each(
+ $(".pagejump > .actor").each(
function(i) {
var activePageJump = null;
var actor = $(this);
@@ -875,7 +881,7 @@
// root is always an active ancestor, no need to specify that
break;
}
- $(".pagejump").each(
+ $(".pagejump > .actor").each(
function(i) {
var parentActor = $(this);
var parentTarget = parentActor.data().target;
@@ -1265,7 +1271,6 @@
}
}
});
- console.log("updatePageParts");
};
/**
Modified: CometVisu/trunk/visu/plugins/diagram/structure_plugin.js
===================================================================
--- CometVisu/trunk/visu/plugins/diagram/structure_plugin.js 2013-02-03 15:22:25 UTC (rev 1398)
+++ CometVisu/trunk/visu/plugins/diagram/structure_plugin.js 2013-02-03 17:40:25 UTC (rev 1399)
@@ -248,6 +248,8 @@
if( $p.attr('align') ) {
classes+=" "+$p.attr('align');
}
+ var bindClickToWidget = templateEngine.bindClickToWidget;
+ if ($p.attr("bind_click_to_widget")) bindClickToWidget = $p.attr("bind_click_to_widget")=="true";
var ret_val = $('<div class="'+classes+'" />');
ret_val.setWidgetLayout($p).makeWidgetLabel($p);
@@ -294,8 +296,9 @@
var data = jQuery.extend({}, bDiagram.data());
-
- $actor.bind("click", function() {
+ var clickable = bindClickToWidget ? ret_val : $actor;
+
+ clickable.bind("click", function() {
bDiagram.data(data);
bDiagram.css({height: "90%"});
bDiagram.data("ispopup", true);
Modified: CometVisu/trunk/visu/structure/pure/imagetrigger.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/imagetrigger.js 2013-02-03 15:22:25 UTC (rev 1398)
+++ CometVisu/trunk/visu/structure/pure/imagetrigger.js 2013-02-03 17:40:25 UTC (rev 1399)
@@ -24,6 +24,8 @@
if( $e.attr('flavour') ) flavour = $e.attr('flavour');// sub design choice
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
var value = $e.attr('value') ? $e.attr('value') : 0;
+ var bindClickToWidget = templateEngine.bindClickToWidget;
+ if ($e.attr("bind_click_to_widget")) bindClickToWidget = $e.attr("bind_click_to_widget")=="true";
ret_val.append( extractLabel( $e.find('label')[0], flavour ) );
var address = makeAddressList($e);
var layout = $e.children('layout')[0];
@@ -46,9 +48,9 @@
'type': $e.attr('type'),
'mapping': map,
'sendValue': $e.attr('sendValue') || ""
- } )
- .each(templateEngine.setupRefreshAction) // abuse "each" to call in context... refresh is broken with select right now
- .bind( 'click', this.action );
+ } ).each(templateEngine.setupRefreshAction); // abuse "each" to call in context... refresh is broken with select right now
+ var clickable = bindClickToWidget ? ret_val : $actor;
+ clickable.bind( 'click', this.action );
for( var addr in address ) {
$actor.bind( addr, this.update );
}
@@ -77,7 +79,7 @@
//FIXME: add SVG-magics
},
action: function() {
- var data = $(this).data();
+ var data = $(this).find('.actor').size()==1 ? $(this).find('.actor').data() : $(this).data();
sendValue = data.sendValue;
for( var addr in data.address ) {
if( !(data.address[addr][1] & 2) )
Modified: CometVisu/trunk/visu/structure/pure/page.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/page.js 2013-02-03 15:22:25 UTC (rev 1398)
+++ CometVisu/trunk/visu/structure/pure/page.js 2013-02-03 17:40:25 UTC (rev 1399)
@@ -35,6 +35,8 @@
var shownavbar_bottom = $p.attr('shownavbar-bottom');
var shownavbar_left = $p.attr('shownavbar-left');
var shownavbar_right = $p.attr('shownavbar-right');
+ var bindClickToWidget = templateEngine.bindClickToWidget;
+ if ($p.attr("bind_click_to_widget")) bindClickToWidget = $p.attr("bind_click_to_widget")=="true";
if( $p.attr('flavour') ) flavour = $p.attr('flavour');// sub design choice
var wstyle = ''; // widget style
if( $p.attr('align') ) wstyle += 'text-align:' + $p.attr('align') + ';';
@@ -49,9 +51,17 @@
var style = layout ? 'style="' + extractLayout( layout, type ) + '"' : '';
ret_val = $('<div class="widget clearfix link pagelink" ' + style + '/>');
ret_val.setWidgetLayout($p);
- var tst = $('<div ' + wstyle + '><a href="javascript:templateEngine.scrollToPage(\''+path+'\')">' + name + '</a></div>');
-
- ret_val.append(tst );
+ if (bindClickToWidget) {
+ ret_val.bind('click', function() {
+ templateEngine.scrollToPage(path);
+ });
+ var tst = $('<div ' + wstyle + '><a href="#">' + name + '</a></div>');
+ ret_val.append(tst );
+ }
+ else {
+ var tst = $('<div ' + wstyle + '><a href="javascript:templateEngine.scrollToPage(\''+path+'\')">' + name + '</a></div>');
+ ret_val.append(tst );
+ }
}
var childs = $p.children().not('layout');
Modified: CometVisu/trunk/visu/structure/pure/pagejump.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/pagejump.js 2013-02-03 15:22:25 UTC (rev 1398)
+++ CometVisu/trunk/visu/structure/pure/pagejump.js 2013-02-03 17:40:25 UTC (rev 1399)
@@ -31,6 +31,8 @@
ret_val.setWidgetLayout($e);
var label = extractLabel( $e.find('label')[0], flavour );
var address = makeAddressList($e);
+ var bindClickToWidget = templateEngine.bindClickToWidget;
+ if ($e.attr("bind_click_to_widget")) bindClickToWidget = $e.attr("bind_click_to_widget")=="true";
var actor = '<div class="actor switchUnpressed ';
if ( $e.attr( 'align' ) )
actor += $e.attr( 'align' );
@@ -41,20 +43,20 @@
var $actor = $(actor).data( {
'styling' : $(element).attr('styling'),
'type' : 'pagejump',
- 'align' : $e.attr('align')
+ 'align' : $e.attr('align'),
+ 'target' : target
} ).setWidgetStyling(target);
-
- ret_val.bind( 'click', this.action ).bind( 'mousedown', function(){
+ var clickable = bindClickToWidget ? ret_val : $actor;
+ clickable.bind( 'click', this.action ).bind( 'mousedown', function(){
$actor.removeClass('switchUnpressed').addClass('switchPressed');
} ).bind( 'mouseup mouseout', function(){ // not perfect but simple
$actor.removeClass('switchPressed').addClass('switchUnpressed');
} );
- ret_val.data('target',target);
ret_val.append( label ).append( $actor );
return ret_val;
},
action: function() {
- var data = $(this).data();
+ var data = $(this).find('.actor').size()==1 ? $(this).find('.actor').data() : $(this).data();
templateEngine.scrollToPage( data.target );
}
});
\ No newline at end of file
Modified: CometVisu/trunk/visu/structure/pure/switch.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/switch.js 2013-02-03 15:22:25 UTC (rev 1398)
+++ CometVisu/trunk/visu/structure/pure/switch.js 2013-02-03 17:40:25 UTC (rev 1399)
@@ -30,7 +30,9 @@
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
var label = extractLabel( $e.find('label')[0], flavour );
var address = makeAddressList($e);
-
+ var bindClickToWidget = templateEngine.bindClickToWidget;
+ if ($e.attr("bind_click_to_widget")) bindClickToWidget = $e.attr("bind_click_to_widget")=="true";
+ console.log(bindClickToWidget+" "+$e.attr("bind_click_to_widget"));
var actor = '<div class="actor switchUnpressed"><div class="value">-</div></div>';
var $actor = $(actor).data( {
'address' : address,
@@ -40,7 +42,9 @@
'off_value' : $e.attr('off_value') || 0,
'align' : $e.attr('align'),
'type' : 'switch'
- } ).bind( 'click', this.action );
+ } );
+ var clickable = bindClickToWidget ? ret_val : $actor;
+ clickable.bind( 'click', this.action );
for( var addr in address )
{
if( address[addr][1] & 1 ) $actor.bind( addr, this.update ); // only when read flag is set
@@ -56,7 +60,7 @@
element.addClass( value == off ? 'switchUnpressed' : 'switchPressed' );
},
action: function() {
- var data = $(this).data();
+ var data = $(this).find('.actor').size()==1 ? $(this).find('.actor').data() : $(this).data();
for( var addr in data.address )
{
if( !(data.address[addr][1] & 2) ) continue; // skip when write flag not set
Modified: CometVisu/trunk/visu/structure/pure/toggle.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/toggle.js 2013-02-03 15:22:25 UTC (rev 1398)
+++ CometVisu/trunk/visu/structure/pure/toggle.js 2013-02-03 17:40:25 UTC (rev 1399)
@@ -30,6 +30,8 @@
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
var label = extractLabel( $e.find('label')[0], flavour );
var address = makeAddressList($e);
+ var bindClickToWidget = templateEngine.bindClickToWidget;
+ if ($e.attr("bind_click_to_widget")) bindClickToWidget = $e.attr("bind_click_to_widget")=="true";
var actor = '<div class="actor switchUnpressed"><div class="value">-</div></div>';
var $actor = $(actor).data( {
'address' : address,
@@ -37,7 +39,9 @@
'styling' : $e.attr('styling'),
'align' : $e.attr('align'),
'type' : 'switch'
- } ).bind( 'click', this.action );
+ } );
+ var clickable = bindClickToWidget ? ret_val : $actor;
+ clickable.bind( 'click', this.action );
for( var addr in address ) $actor.bind( addr, this.update );
ret_val.append( label ).append( $actor );
return ret_val;
@@ -48,7 +52,7 @@
element.addClass('switchUnpressed');
},
action: function() {
- var data = $(this).data();
+ var data = $(this).find('.actor').size()==1 ? $(this).find('.actor').data() : $(this).data();
var element_count = 0;
var next_element;
var first_element;
Modified: CometVisu/trunk/visu/structure/pure/trigger.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/trigger.js 2013-02-03 15:22:25 UTC (rev 1398)
+++ CometVisu/trunk/visu/structure/pure/trigger.js 2013-02-03 17:40:25 UTC (rev 1399)
@@ -32,6 +32,8 @@
if( flavour ) ret_val.addClass( 'flavour_' + flavour );
var label = extractLabel( $e.find('label')[0], flavour );
var address = makeAddressList($e, function(src, transform, mode, variant){return [true, variant=='short'];});
+ var bindClickToWidget = templateEngine.bindClickToWidget;
+ if ($e.attr("bind_click_to_widget")) bindClickToWidget = $e.attr("bind_click_to_widget")=="true";
var actor = '<div class="actor switchUnpressed ';
if ( $e.attr( 'align' ) )
actor += $e.attr( 'align' );
@@ -56,15 +58,15 @@
'sendValue' : value,
'shorttime' : parseFloat($e.attr('shorttime')) || -1,
'shortValue': shortvalue
- } ).bind( 'mousedown touchstart', this.mousedown ).
- bind( 'mouseup touchend', this.mouseup ).
- bind( 'mouseout touchout', this.mouseout ).
- setWidgetStyling(value);
+ } ).setWidgetStyling(value);
+ var clickable = bindClickToWidget ? ret_val : $actor;
+ clickable.bind( 'mousedown touchstart', this.mousedown ).bind( 'mouseup touchend', this.mouseup ).bind( 'mouseout touchout', this.mouseout );
ret_val.append( label ).append( $actor );
return ret_val;
},
mousedown: function(event) {
- $(this).removeClass('switchUnpressed').addClass('switchPressed').data( 'downtime', new Date().getTime() );
+ var $this = $(this).find('.actor').size()==1 ? $(this).find('.actor') : $(this);
+ $this.removeClass('switchUnpressed').addClass('switchPressed').data( 'downtime', new Date().getTime() );
if( 'touchstart' == event.type )
{
// touchscreen => disable mouse emulation
@@ -72,7 +74,7 @@
}
},
mouseup: function(event) {
- var $this = $(this);
+ var $this = $(this).find('.actor').size()==1 ? $(this).find('.actor') : $(this);
if( $this.data( 'downtime' ) )
{
var data = $this.data();
@@ -87,6 +89,7 @@
$this.removeClass('switchPressed').addClass('switchUnpressed').removeData( 'downtime' );
},
mouseout: function(event) {
- $(this).removeClass('switchPressed').addClass('switchUnpressed').removeData( 'downtime' );
+ var $this = $(this).find('.actor').size()==1 ? $(this).find('.actor') : $(this);
+ $this.removeClass('switchPressed').addClass('switchUnpressed').removeData( 'downtime' );
}
});
\ No newline at end of file
Modified: CometVisu/trunk/visu/structure/pure/urltrigger.js
===================================================================
--- CometVisu/trunk/visu/structure/pure/urltrigger.js 2013-02-03 15:22:25 UTC (rev 1398)
+++ CometVisu/trunk/visu/structure/pure/urltrigger.js 2013-02-03 17:40:25 UTC (rev 1399)
@@ -38,6 +38,8 @@
var $actor = $(actor);
var valueElement = $actor.find('.value');
var mappedValue = templateEngine.map( value, $e.attr('mapping') );
+ var bindClickToWidget = templateEngine.bindClickToWidget;
+ if ($e.attr("bind_click_to_widget")) bindClickToWidget = $e.attr("bind_click_to_widget")=="true";
if( ('string' == typeof mappedValue) || ('number' == typeof mappedValue) )
{
valueElement.append( mappedValue );
@@ -54,16 +56,18 @@
'align' : $e.attr('align'),
'params' : $(element).attr('params'),
'sendValue': value //value is currently ignored in XHR! maybe for multitrigger
- } ).bind( 'click', this.action ).bind( 'mousedown', function(){
- $(this).removeClass('switchUnpressed').addClass('switchPressed');
+ } ).setWidgetStyling(value);
+ var clickable = bindClickToWidget ? ret_val : $actor;
+ clickable.bind( 'click', this.action ).bind( 'mousedown', function(){
+ $actor.removeClass('switchUnpressed').addClass('switchPressed');
} ).bind( 'mouseup mouseout', function(){ // not perfect but simple
- $(this).removeClass('switchPressed').addClass('switchUnpressed');
- } ).setWidgetStyling(value);
+ $actor.removeClass('switchPressed').addClass('switchUnpressed');
+ } );
ret_val.append( label ).append( $actor );
return ret_val;
},
action: function() {
- var data = $(this).data();
+ var data = $(this).find('.actor').size()==1 ? $(this).find('.actor').data() : $(this).data();
data.params = data.params ? data.params : '';
$.ajax({
type: "GET",
Modified: CometVisu/trunk/visu/visu_config.xsd
===================================================================
--- CometVisu/trunk/visu/visu_config.xsd 2013-02-03 15:22:25 UTC (rev 1398)
+++ CometVisu/trunk/visu/visu_config.xsd 2013-02-03 17:40:25 UTC (rev 1399)
@@ -192,6 +192,12 @@
</xsd:restriction>
</xsd:simpleType>
+ <xsd:attribute name="bind_click_to_widget" type="xsd:boolean">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en">use the whole widget area to react on click events</xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+
<xsd:attribute name="lang">
<xsd:simpleType>
@@ -250,6 +256,7 @@
</xsd:sequence>
<xsd:attribute name="design" type="xsd:string" use="required" />
<xsd:attribute ref="backend" use="optional" />
+ <xsd:attribute ref="bind_click_to_widget" use="optional"/>
<xsd:attribute name="scroll_speed" type="xsd:decimal" use="optional">
<xsd:annotation>
<xsd:appinfo>level:expert</xsd:appinfo>
@@ -428,6 +435,7 @@
<xsd:attribute name="shownavbar-bottom" type="xsd:boolean" use="optional" />
<xsd:attribute name="shownavbar-left" type="xsd:boolean" use="optional" />
<xsd:attribute name="shownavbar-right" type="xsd:boolean" use="optional" />
+ <xsd:attribute ref="bind_click_to_widget" use="optional"/>
</xsd:complexType>
<xsd:complexType name="group">
@@ -530,6 +538,7 @@
<xsd:attribute name="off_value" type="xsd:string" use="optional" />
<xsd:attribute ref="align" use="optional" />
<xsd:attribute ref="flavour" use="optional" />
+ <xsd:attribute ref="bind_click_to_widget" use="optional"/>
</xsd:complexType>
<xsd:complexType name="trigger">
@@ -550,6 +559,7 @@
<xsd:attribute ref="styling" use="optional" />
<xsd:attribute ref="align" use="optional" />
<xsd:attribute ref="flavour" use="optional" />
+ <xsd:attribute ref="bind_click_to_widget" use="optional"/>
</xsd:complexType>
<xsd:complexType name="urltrigger">
@@ -564,6 +574,7 @@
<xsd:attribute name="url" type="uri" use="required" />
<xsd:attribute name="params" type="xsd:string" use="optional" />
<xsd:attribute ref="flavour" use="optional" />
+ <xsd:attribute ref="bind_click_to_widget" use="optional"/>
</xsd:complexType>
<xsd:complexType name="infotrigger">
@@ -705,6 +716,7 @@
<xsd:attribute ref="mapping" use="optional" />
<xsd:attribute name="sendValue" type="xsd:string" use="optional" />
<xsd:attribute ref="flavour" use="optional" />
+ <xsd:attribute ref="bind_click_to_widget" use="optional"/>
</xsd:complexType>
<xsd:complexType name="video">
@@ -742,6 +754,7 @@
<xsd:attribute name="target" type="xsd:string" />
<xsd:attribute ref="align" use="optional" />
<xsd:attribute ref="flavour" use="optional" />
+ <xsd:attribute ref="bind_click_to_widget" use="optional"/>
</xsd:complexType>
<xsd:complexType name="colorchooser">
@@ -848,6 +861,7 @@
<xsd:attribute ref="legendposition" use="optional" />
<xsd:attribute name="title" type="xsd:string" use="optional" />
<xsd:attribute ref="align" use="optional" />
+ <xsd:attribute ref="bind_click_to_widget" use="optional"/>
</xsd:complexType>
<xsd:complexType name="gweather">
Modified: CometVisu/trunk/visu/visu_config_metal.xml
===================================================================
--- CometVisu/trunk/visu/visu_config_metal.xml 2013-02-03 15:22:25 UTC (rev 1398)
+++ CometVisu/trunk/visu/visu_config_metal.xml 2013-02-03 17:40:25 UTC (rev 1399)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" design="metal"
- xsi:noNamespaceSchemaLocation="./visu_config.xsd" enable_column_adjustment="true" scroll_speed="0">
+ xsi:noNamespaceSchemaLocation="./visu_config.xsd" enable_column_adjustment="true" scroll_speed="0" bind_click_to_widget="true">
<meta>
<mappings>
<mapping name="OpenClose">
@@ -427,7 +427,7 @@
<page name="Audio" shownavbar-left="true" visible="false">
<navbar position="left" dynamic="true" width="200px">
<group name="Sonstiges">
- <pagejump target="Audio">
+ <pagejump target="Audio" name="Audio">
<label>
<icon name="audio_sound" />
</label>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pe...@us...> - 2013-02-04 14:54:26
|
Revision: 1410
http://openautomation.svn.sourceforge.net/openautomation/?rev=1410&view=rev
Author: peuter
Date: 2013-02-04 14:54:16 +0000 (Mon, 04 Feb 2013)
Log Message:
-----------
some fixes for the openhab backend
Modified Paths:
--------------
CometVisu/trunk/visu/lib/templateengine.js
CometVisu/trunk/visu/transforms/transform_oh.js
Modified: CometVisu/trunk/visu/lib/templateengine.js
===================================================================
--- CometVisu/trunk/visu/lib/templateengine.js 2013-02-03 23:03:07 UTC (rev 1409)
+++ CometVisu/trunk/visu/lib/templateengine.js 2013-02-04 14:54:16 UTC (rev 1410)
@@ -87,6 +87,10 @@
}
this.initBackendClient = function() {
+ if (thisTemplateEngine.backend=="oh") {
+ // the path to the openHAB cometvisu backend is cv
+ thisTemplateEngine.backend = "cv";
+ }
thisTemplateEngine.backend = '/' + thisTemplateEngine.backend + '/';
thisTemplateEngine.visu = new CometVisu(thisTemplateEngine.backend);
thisTemplateEngine.visu.update = function(json) { // overload the handler
@@ -384,7 +388,7 @@
predefinedDesign = $('pages', xml).attr("design");
if ($('pages', xml).attr("backend")) {
- backend = $('pages', xml).attr("backend");
+ thisTemplateEngine.backend = $('pages', xml).attr("backend");
}
thisTemplateEngine.initBackendClient();
Modified: CometVisu/trunk/visu/transforms/transform_oh.js
===================================================================
--- CometVisu/trunk/visu/transforms/transform_oh.js 2013-02-03 23:03:07 UTC (rev 1409)
+++ CometVisu/trunk/visu/transforms/transform_oh.js 2013-02-04 14:54:16 UTC (rev 1410)
@@ -41,38 +41,27 @@
'rollershutter' : {
name : "OH_RollerShutter",
encode : function(phy) {
- if (phy == 1)
- return 'DOWN';
- else if (phy == 0)
- return 'UP';
- else
- return phy;
+ if (phy == 1) return 'DOWN';
+ else if (phy == 0) return 'UP';
+ else return phy;
},
decode : function(str) {
- if (str == "NaN" || str == 'Uninitialized')
- return 0;
- else if (str == "UP")
- return 0;
- else if (str == "DOWN")
- return 1;
- else
- return str;
+ if (str=="NaN" || str=='Uninitialized') return 0;
+ else if (str=="UP") return 0;
+ else if (str=="DOWN") return 1;
+ else return str;
},
},
'dimmer' : {
name : "OH_Dimmer",
encode : function(phy) {
- return parseInt(phy);
+ return parseInt(phy);
},
decode : function(str) {
- if (str == "NaN" || str == 'Uninitialized')
- return 0;
- else if (str == "ON")
- return 100;
- else if (str == "OFF")
- return 0;
- else
- return parseInt(str);
+ if (str=="NaN" || str=='Uninitialized') return 0;
+ else if (str=="ON") return 100;
+ else if (str=="OFF") return 0;
+ else return parseInt(str);
},
},
'number' : {
@@ -81,8 +70,7 @@
return parseFloat(phy);
},
decode : function(str) {
- if (str == "NaN" || str == 'Uninitialized')
- return 0;
+ if (str=="NaN" || str=='Uninitialized') return 0;
return parseFloat(str);
},
},
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ma...@us...> - 2013-02-04 21:34:33
|
Revision: 1415
http://openautomation.svn.sourceforge.net/openautomation/?rev=1415&view=rev
Author: mayerch
Date: 2013-02-04 21:34:26 +0000 (Mon, 04 Feb 2013)
Log Message:
-----------
- Try to fix bug http://sourceforge.net/tracker/?func=detail&aid=3603250&group_id=296426&atid=1251141
- Ignore visu_config_previewtemp.xml
Modified Paths:
--------------
CometVisu/trunk/visu/lib/compatibility.js
CometVisu/trunk/visu/plugins/colorchooser/structure_plugin.js
Removed Paths:
-------------
CometVisu/trunk/visu/visu_config_previewtemp.xml
Property Changed:
----------------
CometVisu/trunk/visu/
Property changes on: CometVisu/trunk/visu
___________________________________________________________________
Modified: svn:ignore
- visu_config.xml
+ visu_config.xml
visu_config_previewtemp.xml
Modified: CometVisu/trunk/visu/lib/compatibility.js
===================================================================
--- CometVisu/trunk/visu/lib/compatibility.js 2013-02-04 17:23:44 UTC (rev 1414)
+++ CometVisu/trunk/visu/lib/compatibility.js 2013-02-04 21:34:26 UTC (rev 1415)
@@ -177,6 +177,13 @@
getUrlVar: function(name){
return $.getUrlVars()[name];
},
+ getScriptSync: function( url ) {
+ $.ajax({
+ url: url,
+ dataType: 'script',
+ async: false
+ });
+ },
// heavily inspired by: http://stackoverflow.com/questions/13066712/how-to-load-a-list-of-javascript-files-and-call-a-callback-after-all-of-them-are
getOrderedScripts: function(files, callback) {
if( 'object' === typeof files && 0 == files.length && callback )
Modified: CometVisu/trunk/visu/plugins/colorchooser/structure_plugin.js
===================================================================
--- CometVisu/trunk/visu/plugins/colorchooser/structure_plugin.js 2013-02-04 17:23:44 UTC (rev 1414)
+++ CometVisu/trunk/visu/plugins/colorchooser/structure_plugin.js 2013-02-04 21:34:26 UTC (rev 1415)
@@ -162,6 +162,6 @@
/**
* Include the needed stuff
*/
-$.getScript( 'plugins/colorchooser/farbtastic/farbtastic.js' );
+$.getScriptSync( 'plugins/colorchooser/farbtastic/farbtastic.js' );
$.getCSS( 'plugins/colorchooser/farbtastic/farbtastic.css' );
Deleted: CometVisu/trunk/visu/visu_config_previewtemp.xml
===================================================================
--- CometVisu/trunk/visu/visu_config_previewtemp.xml 2013-02-04 17:23:44 UTC (rev 1414)
+++ CometVisu/trunk/visu/visu_config_previewtemp.xml 2013-02-04 21:34:26 UTC (rev 1415)
@@ -1,69 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<pages design="pure" lib_version="0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./visu_config.xsd">
- <meta>
- <plugins>
- <plugin name="colorchooser"/>
- <plugin name="diagram"/>
- <plugin name="upnpcontroller"/>
- </plugins>
- <mappings>
- <mapping name="Close_Open">
- <entry value="0">zu</entry>
- <entry value="1">offen</entry>
- </mapping>
- <mapping name="Open_Close">
- <entry value="0">offen</entry>
- <entry value="1">zu</entry>
- </mapping>
- <mapping name="Off_On">
- <entry value="0">Aus</entry>
- <entry value="1">An</entry>
- </mapping>
- <mapping name="On_Off">
- <entry value="0">An</entry>
- <entry value="1">Aus</entry>
- </mapping>
- <mapping name="KonnexHVAC">
- <entry value="auto">Auto</entry>
- <entry value="comfort">Komfort</entry>
- <entry value="standby">Stand By</entry>
- <entry value="economy">Economy</entry>
- <entry value="building_protection">Haus-Schutz</entry>
- </mapping>
- </mappings>
- <stylings>
- <styling name="Red_Green">
- <entry value="0">red</entry>
- <entry value="1">green</entry>
- </styling>
- <styling name="Green_Red">
- <entry value="0">green</entry>
- <entry value="1">red</entry>
- </styling>
- <styling name="Blue_Green_Red">
- <entry range_min="-100" range_max="20">blue</entry>
- <entry range_min="20" range_max="22">green</entry>
- <entry range_min="22" range_max="100">red</entry>
- </styling>
- </stylings>
- <statusbar>
- <status type="html"><img src="icon/comet_64_ff8000.png" alt="CometVisu"> by <a href="http://www.cometvisu.org/">CometVisu.org</a>
- - <a href=".?forceReload=true">Reload</a>
- - <a href="?config=demo">Widget Demo</a></status>
- <status type="html" hrefextend="config">- <a href="check_config.php">Check Config</a></status>
- </statusbar>
- </meta>
- <page name="Start">
- <line/>
- <text align="center">
- <label>Welcome to bla blub CometVisu!fff</label>
- </text>
- <line/>
- <colorchooser>
- <label/>
- <address transform="bla">1/2/3</address>
- </colorchooser>
- <gweather width="400" height="300" city="Holzkirchen"/>
- <urltrigger url="http://"/>
- </page>
-</pages>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ha...@us...> - 2013-02-05 01:52:19
|
Revision: 1419
http://openautomation.svn.sourceforge.net/openautomation/?rev=1419&view=rev
Author: hausl
Date: 2013-02-05 01:49:03 +0000 (Tue, 05 Feb 2013)
Log Message:
-----------
bug 3603283: adapted structure for knx-uf-iconset in icon database
additionally cleaned up the knx-uf-iconset by just using the latest versions with English names
Modified Paths:
--------------
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/audio_audio.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/audio_eject.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/audio_eq.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/audio_fade.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/audio_ff.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/audio_headphone.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/audio_pause.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/audio_play.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/audio_playlist.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/audio_rec.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/audio_repeat.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/audio_rew.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/audio_shuffle.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/audio_sound.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/audio_stop.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/audio_volume_high.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/audio_volume_low.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/audio_volume_mid.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/audio_volume_mute.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_all_on_off.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_arrow_down.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_arrow_down_left.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_arrow_down_right.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_arrow_left.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_arrow_right.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_arrow_up.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_arrow_up_left.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_arrow_up_right.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_all.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_control.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_dg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_eg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_empty.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_filled.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_kg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_modern_s_2og_all.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_modern_s_2og_dg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_modern_s_2og_eg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_modern_s_2og_kg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_modern_s_2og_og1.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_modern_s_2og_og2.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_modern_s_all.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_modern_s_dg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_modern_s_eg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_modern_s_kg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_modern_s_og.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_modern_s_okg_all.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_modern_s_okg_dg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_modern_s_okg_eg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_modern_s_okg_og.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_og.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_outside.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_s_all.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_s_dg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_s_eg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_s_kg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_building_s_og.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_home.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_minus.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_on_off.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_outside_on_off.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_plus.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_return.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_standby.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_x.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_zoom_in.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/control_zoom_out.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/edit_copy.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/edit_cut.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/edit_delete.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/edit_open.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/edit_paste.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/edit_save.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_blade_arc.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_blade_arc_sun.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_blade_s.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_blade_s_sun.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_blade_z.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_blade_z_sun.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_door.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_door_open.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_garage.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_garage_door_10.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_garage_door_100.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_garage_door_20.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_garage_door_30.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_garage_door_40.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_garage_door_50.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_garage_door_60.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_garage_door_70.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_garage_door_80.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_garage_door_90.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_shutter.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_shutter_10.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_shutter_100.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_shutter_20.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_shutter_30.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_shutter_40.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_shutter_50.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_shutter_60.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_shutter_70.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_shutter_80.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_shutter_90.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_shutter_down.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_shutter_up.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_sunblind.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_window_1w.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_window_1w_open.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_window_1w_tilt.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_window_2w.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_window_2w_open.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/fts_window_2w_tilt.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/it_camera.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/it_internet.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/it_nas.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/it_net.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/it_network.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/it_pc.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/it_radio.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/it_remote.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/it_router.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/it_satellite_dish.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/it_satellite_dish_heating.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/it_server.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/it_smartphone.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/it_telephone.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/it_television.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/it_wifi.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/it_wireless_dcf77.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_cabinet.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_control.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_diffused.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_dinner_table.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_fairy_lights.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_floor_lamp.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_led.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_light.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_light_dim_00.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_light_dim_10.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_light_dim_100.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_light_dim_20.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_light_dim_30.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_light_dim_40.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_light_dim_50.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_light_dim_60.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_light_dim_70.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_light_dim_80.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_light_dim_90.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_mirror.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_outdoor.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_party.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_stairs.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_wall_1.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_wall_2.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_wall_3.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_wire_system_1.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/light_wire_system_2.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/measure_current.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/measure_photovoltaic_inst.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/measure_power.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/measure_voltage.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/message_attention.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/message_garbage.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/message_mail.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/message_mail_open.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/message_medicine.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/message_ok.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/message_presence.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/message_presence_disabled.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/message_service.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/message_socket.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/message_socket_ch.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/message_socket_ch_3.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/message_socket_on_off.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/message_tendency_downward.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/message_tendency_steady.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/message_tendency_upward.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/sani_boiler_temp.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/sani_buffer_temp_all.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/sani_buffer_temp_down.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/sani_buffer_temp_up.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/sani_domestic_waterworks.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/sani_floor_heating.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/sani_garden_pump.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/sani_heating.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/sani_heating_automatic.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/sani_heating_manual.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/sani_heating_temp.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/sani_irrigation.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/sani_pump.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/sani_return_temp.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/sani_solar.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/sani_solar_temp.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/sani_sprinkling.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/sani_supply_temp.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/sani_water_cold.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/sani_water_hot.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/sani_water_tap.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_baby.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_bath.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_bathroom.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_childs_room.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_cockle_stove.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_cooking.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_day.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_dinner.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_gaming.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_garden.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_hall.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_laundry_room.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_laundry_room_fem.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_livingroom.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_making_love.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_night.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_office.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_party.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_pool.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_robo_lawnmower.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_sauna.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_scene.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_shower.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_sleeping.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_sleeping_alternat.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_stairs.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_stove.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_summerhouse.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_swimming.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_terrace.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_toilet.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_toilet_alternat.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_visit_guests.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/scene_x-mas.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/secur_alarm.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/secur_encoding.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/secur_frost_protection.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/secur_heat_protection.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/secur_locked.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/secur_open.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/secur_smoke_detector.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/status_automatic.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/status_available.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/status_away_1.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/status_away_2.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/status_comfort.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/status_frost.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/status_locked.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/status_night.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/status_open.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/status_standby.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/temp_control.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/temp_frost.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/temp_inside.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/temp_outside.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/temp_temperature.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/temp_temperature_max.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/temp_temperature_min.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/text_max.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/text_min.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/time_automatic.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/time_calendar.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/time_clock.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/time_eco_mode.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/time_graph.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/time_manual_mode.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/time_note.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/time_statistic.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/user_available.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/user_away.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/user_ext_away.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/vent_ambient_air.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/vent_exhaust_air.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/vent_supply_air.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/vent_used_air.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/vent_ventilation.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/vent_ventilation_control.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/vent_ventilation_level_0.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/vent_ventilation_level_1.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/vent_ventilation_level_2.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/vent_ventilation_level_3.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/vent_ventilation_level_automatic.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/vent_ventilation_level_manual_m.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/weather_baraometric_pressure.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/weather_cloudy.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/weather_frost.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/weather_humidity.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/weather_pollen.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/weather_rain.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/weather_snow.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/weather_storm.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/weather_summer.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/weather_sun.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/weather_thunderstorm.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/weather_wind.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_blue/weather_winter.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/audio_audio.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/audio_eject.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/audio_eq.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/audio_fade.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/audio_ff.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/audio_headphone.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/audio_pause.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/audio_play.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/audio_playlist.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/audio_rec.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/audio_repeat.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/audio_rew.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/audio_shuffle.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/audio_sound.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/audio_stop.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/audio_volume_high.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/audio_volume_low.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/audio_volume_mid.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/audio_volume_mute.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_all_on_off.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_arrow_down.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_arrow_down_left.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_arrow_down_right.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_arrow_left.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_arrow_right.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_arrow_up.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_arrow_up_left.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_arrow_up_right.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_all.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_control.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_dg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_eg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_empty.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_filled.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_kg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_modern_s_2og_all.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_modern_s_2og_dg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_modern_s_2og_eg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_modern_s_2og_kg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_modern_s_2og_og1.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_modern_s_2og_og2.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_modern_s_all.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_modern_s_dg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_modern_s_eg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_modern_s_kg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_modern_s_og.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_modern_s_okg_all.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_modern_s_okg_dg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_modern_s_okg_eg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_modern_s_okg_og.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_og.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_outside.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_s_all.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_s_dg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_s_eg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_s_kg.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_building_s_og.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_home.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_minus.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_on_off.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_outside_on_off.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_plus.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_return.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_standby.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_x.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_zoom_in.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/control_zoom_out.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/edit_copy.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/edit_cut.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/edit_delete.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/edit_open.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/edit_paste.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/edit_save.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/fts_blade_arc.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/fts_blade_arc_sun.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/fts_blade_s.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/fts_blade_s_sun.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/fts_blade_z.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/fts_blade_z_sun.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/fts_door.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/fts_door_open.png
CometVisu/trunk/visu/icon/knx-uf-iconset/128x128_green/fts_garage.png
CometVisu/trunk/visu/icon/kn...
[truncated message content] |
|
From: <net...@us...> - 2013-02-05 21:10:05
|
Revision: 1431
http://openautomation.svn.sourceforge.net/openautomation/?rev=1431&view=rev
Author: netzkind
Date: 2013-02-05 21:09:59 +0000 (Tue, 05 Feb 2013)
Log Message:
-----------
fixed a typo on the required filename
Modified Paths:
--------------
CometVisu/trunk/visu/editor/index.php
CometVisu/trunk/visu/upgrade/ConfigurationUpgrader.class.php
Modified: CometVisu/trunk/visu/editor/index.php
===================================================================
--- CometVisu/trunk/visu/editor/index.php 2013-02-05 21:08:56 UTC (rev 1430)
+++ CometVisu/trunk/visu/editor/index.php 2013-02-05 21:09:59 UTC (rev 1431)
@@ -30,7 +30,7 @@
* @since 2013-02-05
*/
-require_once('../lib/lib_version.inc.php');
+require_once('../lib/library_version.inc.php');
define('CONFIG_FILENAME', '../visu_config%s.xml');
define('SCHEMA_FILENAME', '../%s');
Modified: CometVisu/trunk/visu/upgrade/ConfigurationUpgrader.class.php
===================================================================
--- CometVisu/trunk/visu/upgrade/ConfigurationUpgrader.class.php 2013-02-05 21:08:56 UTC (rev 1430)
+++ CometVisu/trunk/visu/upgrade/ConfigurationUpgrader.class.php 2013-02-05 21:09:59 UTC (rev 1431)
@@ -29,7 +29,7 @@
*/
// get the current library version
-require_once('../lib/lib_version.inc.php');
+require_once('../lib/library_version.inc.php');
/**
* the library-version the upgrader understands
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ha...@us...> - 2013-02-06 22:35:16
|
Revision: 1442
http://openautomation.svn.sourceforge.net/openautomation/?rev=1442&view=rev
Author: hausl
Date: 2013-02-06 22:35:09 +0000 (Wed, 06 Feb 2013)
Log Message:
-----------
full removal of gweather, there where some artifacts left from last commit
Modified Paths:
--------------
CometVisu/trunk/visu/upgrade/ConfigurationUpgrader.class.php
CometVisu/trunk/visu/visu_config.xsd
Modified: CometVisu/trunk/visu/upgrade/ConfigurationUpgrader.class.php
===================================================================
--- CometVisu/trunk/visu/upgrade/ConfigurationUpgrader.class.php 2013-02-06 22:12:13 UTC (rev 1441)
+++ CometVisu/trunk/visu/upgrade/ConfigurationUpgrader.class.php 2013-02-06 22:35:09 UTC (rev 1442)
@@ -256,7 +256,7 @@
$arrOrderedElements = array('page', 'group', 'text', 'switch', 'trigger', 'urltrigger', 'infotrigger',
'rgb', 'multitrigger', 'slide', 'info', 'wgplugin_info', 'image', 'imagetrigger',
'video', 'web', 'pagejump', 'colorchooser', 'diagram', 'diagram_inline',
- 'diagram_popup', 'diagram_info', 'gweather', 'rss', 'rsslog', 'strftime');
+ 'diagram_popup', 'diagram_info', 'rss', 'rsslog', 'strftime');
$i = 0;
foreach ($arrOrderedElements as $strElementName) {
Modified: CometVisu/trunk/visu/visu_config.xsd
===================================================================
--- CometVisu/trunk/visu/visu_config.xsd 2013-02-06 22:12:13 UTC (rev 1441)
+++ CometVisu/trunk/visu/visu_config.xsd 2013-02-06 22:35:09 UTC (rev 1442)
@@ -321,7 +321,6 @@
<xsd:element name="diagram_inline" type="diagram_inline" />
<xsd:element name="diagram_info" type="diagram_info" />
<xsd:element name="diagram" type="diagram" />
- <xsd:element name="gweather" type="gweather" />
<xsd:element name="rss" type="rss" />
<xsd:element name="rsslog" type="rsslog" />
<xsd:element name="strftime" type="strftime" />
@@ -867,21 +866,6 @@
<xsd:attribute ref="bind_click_to_widget" use="optional"/>
</xsd:complexType>
- <xsd:complexType name="gweather">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- </xsd:sequence>
- <xsd:attribute name="width" type="dimension" use="optional" />
- <xsd:attribute name="height" type="dimension" use="optional" />
- <xsd:attribute name="refresh" type="xsd:integer" use="optional" />
- <xsd:attribute name="city" type="xsd:string" use="required" />
- <xsd:attribute name="lang" type="xsd:string" use="optional" />
- <xsd:attribute name="image_url" type="xsd:string" use="optional" />
- <xsd:attribute name="current" type="xsd:boolean" use="optional" />
- <xsd:attribute name="forecast" type="xsd:boolean" use="optional" />
- </xsd:complexType>
-
<xsd:complexType name="rss">
<xsd:sequence>
<xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ma...@us...> - 2013-02-10 12:13:31
|
Revision: 1458
http://openautomation.svn.sourceforge.net/openautomation/?rev=1458&view=rev
Author: mayerch
Date: 2013-02-10 12:13:23 +0000 (Sun, 10 Feb 2013)
Log Message:
-----------
Clean up:
Plugins must not add code to the templateengine.js!!!
Fix for bug ID: 3602951 "Refresh in diagram with more than one axis incorrect"
(Btw: it was not related to more than one axis - it was related that the creation was loading the data and the allways coming, initial scrolltopage-Event after page setup was also triggering a data load)
Modified Paths:
--------------
CometVisu/trunk/visu/lib/templateengine.js
CometVisu/trunk/visu/visu_config_metal.xml
Modified: CometVisu/trunk/visu/lib/templateengine.js
===================================================================
--- CometVisu/trunk/visu/lib/templateengine.js 2013-02-10 12:08:32 UTC (rev 1457)
+++ CometVisu/trunk/visu/lib/templateengine.js 2013-02-10 12:13:23 UTC (rev 1458)
@@ -895,13 +895,6 @@
*/
thisTemplateEngine.pagePartsHandler.initializeNavbars(page_id);
- var pagedivs = $('div', '#' + page_id);
- for ( var i = 0; i < pagedivs.length; i++) { // check for inline diagrams &
- // refresh
- if (/diagram_inline/.test(pagedivs[i].className)) {
- refreshDiagram(pagedivs[i]);
- }
- }
// set pagejump for this page to active if it exists
$(".pagejump > .actor").each(
function(i) {
Modified: CometVisu/trunk/visu/visu_config_metal.xml
===================================================================
--- CometVisu/trunk/visu/visu_config_metal.xml 2013-02-10 12:08:32 UTC (rev 1457)
+++ CometVisu/trunk/visu/visu_config_metal.xml 2013-02-10 12:13:23 UTC (rev 1458)
@@ -88,6 +88,61 @@
<layout colspan="0"/>
<label><icon name="weather_sun" />Flavour</label>
</pagejump>
+ <!-- .... -->
+ <pagejump target="Übersicht">
+ <layout colspan="0"/>
+ <label><icon name="steuer_home" />Übersicht</label>
+ </pagejump>
+ <line />
+ <pagejump target="Wohnzimmer">
+ <layout colspan="0"/>
+ <label><icon name="steuer_alles_ein_aus" />KNX</label>
+ </pagejump>
+ <pagejump target="Video">
+ <layout colspan="0"/>
+ <label><icon name="it_fernsehen" />Video</label>
+ </pagejump>
+ <pagejump target="Audio">
+ <layout colspan="0"/>
+ <label><icon name="audio_audio" />Audio</label>
+ </pagejump>
+ <pagejump target="Web">
+ <layout colspan="0"/>
+ <label><icon name="it_internet" />Web</label>
+ </pagejump>
+ <line />
+ <pagejump target="Flavour">
+ <layout colspan="0"/>
+ <label><icon name="wetter_sonne" />Flavour</label>
+ </pagejump>
+ <pagejump target="Übersicht">
+ <layout colspan="0"/>
+ <label><icon name="steuer_home" />Übersicht</label>
+ </pagejump>
+ <line />
+ <pagejump target="Wohnzimmer">
+ <layout colspan="0"/>
+ <label><icon name="steuer_alles_ein_aus" />KNX</label>
+ </pagejump>
+ <pagejump target="Video">
+ <layout colspan="0"/>
+ <label><icon name="it_fernsehen" />Video</label>
+ </pagejump>
+ <pagejump target="Audio">
+ <layout colspan="0"/>
+ <label><icon name="audio_audio" />Audio</label>
+ </pagejump>
+ <pagejump target="Web">
+ <layout colspan="0"/>
+ <label><icon name="it_internet" />Web</label>
+ </pagejump>
+ <line />
+ <pagejump target="Flavour">
+ <layout colspan="0"/>
+ <label><icon name="wetter_sonne" />Flavour</label>
+ </pagejump>
+
+ <!-- .... -->
</navbar>
<group name="Allgemein">
<layout colspan="12" />
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ma...@us...> - 2013-02-10 20:19:43
|
Revision: 1463
http://openautomation.svn.sourceforge.net/openautomation/?rev=1463&view=rev
Author: mayerch
Date: 2013-02-10 20:19:34 +0000 (Sun, 10 Feb 2013)
Log Message:
-----------
Improve the scrolling, e.g. enable and disable the overscroll where it is necessary
Modified Paths:
--------------
CometVisu/trunk/visu/designs/designglobals.css
CometVisu/trunk/visu/lib/templateengine.js
CometVisu/trunk/visu/visu_config_demo.xml
Modified: CometVisu/trunk/visu/designs/designglobals.css
===================================================================
--- CometVisu/trunk/visu/designs/designglobals.css 2013-02-10 14:16:41 UTC (rev 1462)
+++ CometVisu/trunk/visu/designs/designglobals.css 2013-02-10 20:19:34 UTC (rev 1463)
@@ -23,7 +23,6 @@
}
#main {
width: 100%;
- -webkit-overflow-scrolling:touch;
}
#navbarLeft {
width: 0px; /* left bar width */
@@ -38,8 +37,9 @@
clear: both;
}
-#pages, .page {
+.page, #navbarTop, #navbarBottom {
-webkit-transform: translateZ(0);
+ -webkit-overflow-scrolling:touch;
}
/*
Modified: CometVisu/trunk/visu/lib/templateengine.js
===================================================================
--- CometVisu/trunk/visu/lib/templateengine.js 2013-02-10 14:16:41 UTC (rev 1462)
+++ CometVisu/trunk/visu/lib/templateengine.js 2013-02-10 20:19:34 UTC (rev 1463)
@@ -646,9 +646,33 @@
$(document).bind( 'touchmove', function(e) {
e.preventDefault();
});
- $('#main,#navbarTop,#navbarBottom').bind( 'touchmove', function(e) {
+ $('.page,#navbarTop>.navbar,#navbarBottom>.navbar').bind( 'touchmove', function(e) {
+ var elem = $(e.currentTarget);
+ var startTopScroll = elem.scrollTop();
+ var startLeftScroll = elem.scrollLeft();
+
+ // prevent scrolling of an element that takes full height and width
+ // as it doesn't need scrolling
+ if( (startTopScroll <= 0) && (startTopScroll + elem[0].offsetHeight >= elem[0].scrollHeight) &&
+ (startLeftScroll <= 0) && (startLeftScroll + elem[0].offsetWidth >= elem[0].scrollWidth ) )
+ {
+ return;
+ }
+
e.stopPropagation();
});
+ // stop the propagation if scrollable is at the end
+ // inspired by https://github.com/joelambert/ScrollFix
+ $('.page,#navbarTop>.navbar,#navbarBottom>.navbar').bind( 'touchstart', function(event) {
+ var elem = $(event.currentTarget);
+ var startTopScroll = elem.scrollTop();
+
+ if(startTopScroll <= 0)
+ elem.scrollTop(1);
+
+ if(startTopScroll + elem[0].offsetHeight >= elem[0].scrollHeight)
+ elem.scrollTop( elem[0].scrollHeight - elem[0].offsetHeight - 1 );
+ });
// setup the scrollable
thisTemplateEngine.main_scroll = $('#main').scrollable({
Modified: CometVisu/trunk/visu/visu_config_demo.xml
===================================================================
--- CometVisu/trunk/visu/visu_config_demo.xml 2013-02-10 14:16:41 UTC (rev 1462)
+++ CometVisu/trunk/visu/visu_config_demo.xml 2013-02-10 20:19:34 UTC (rev 1463)
@@ -984,6 +984,26 @@
<label>2D</label>
</pagejump>
</navbar>
+ <page name="Deeper Navbar Test" align="center">
+ <text>
+ <label>This subpage adds additional content to the navbar</label>
+ </text>
+ <navbar position="left" dynamic="true" width="200px">
+ <text>
+ <label>Test 3</label>
+ </text>
+ <line/>
+ <pagejump target="id_0_34_7" name="Lithium">
+ <label>Flavour</label>
+ </pagejump>
+ <pagejump target="id_0_34_8" name="Potassium">
+ <label>Flavour</label>
+ </pagejump>
+ <pagejump target="id_0_36">
+ <label>2D</label>
+ </pagejump>
+ </navbar>
+ </page>
</page>
<break/>
<page name="2D fixed Bitmap" type="2d" backdrop="media/demo_2d_backdrop_nikolaushaus.png" align="center">
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <j-...@us...> - 2013-02-12 17:16:59
|
Revision: 1472
http://openautomation.svn.sourceforge.net/openautomation/?rev=1472&view=rev
Author: j-n-k
Date: 2013-02-12 17:16:47 +0000 (Tue, 12 Feb 2013)
Log Message:
-----------
Pt. 1 of diagram-plugin cleanup, config upgrade and removed code diagram_inline/diagram_popup
re-committed toggle in visu_config.xsd
Modified Paths:
--------------
CometVisu/trunk/visu/plugins/diagram/structure_plugin.js
CometVisu/trunk/visu/upgrade/ConfigurationUpgrader.class.php
CometVisu/trunk/visu/visu_config.xsd
CometVisu/trunk/visu/visu_config_demo.xml
Modified: CometVisu/trunk/visu/plugins/diagram/structure_plugin.js
===================================================================
--- CometVisu/trunk/visu/plugins/diagram/structure_plugin.js 2013-02-11 16:47:07 UTC (rev 1471)
+++ CometVisu/trunk/visu/plugins/diagram/structure_plugin.js 2013-02-12 17:16:47 UTC (rev 1472)
@@ -47,7 +47,7 @@
* - title: optional, diagram title (overrides label-content)
*
* functions:
- * - createDiagram(page, path, oldType)
+ * - createDiagram(page, path)
* - refreshDiagram(diagram, flotoptions, data)
*
*/
@@ -97,7 +97,7 @@
return { axes: axes, axesnum: axesnum, rrd: rrd, rrdnum: rrdnum };
}
-function createDiagram( page, path, oldType ) {
+function createDiagram( page, path ) {
var $p = $(page);
function uniqid() {
@@ -117,10 +117,9 @@
if ($p.attr("width")) {
diagram.css("width", $p.attr("width"));
- } else {
- if (oldType=="popup") {
+ }
+ if ($p.attr("previewlabels")=="false") {
diagram.removeClass("diagram_inline").addClass("diagram_preview");
- }
}
if ($p.attr("height")) {
diagram.css("height", $p.attr("height"));
@@ -150,7 +149,7 @@
diagram.data("ispopup", false);
- if ((oldType=="popup") || ($p.attr("popup")=="true")) {
+ if ($p.attr("popup")=="true") {
diagram.bind("click", function() {
bDiagram.data(data);
bDiagram.data("ispopup", true);
@@ -197,7 +196,7 @@
return false;
});
}
- if ((oldType=="inline") || ($p.attr("previewlabels") == "true")) {
+ if ($p.attr("previewlabels") == "true") {
//refreshDiagram(diagram, {});
} else {
refreshDiagram(diagram, {xaxes: [{ticks: 0}], yaxes: [{ticks: 0}]});
@@ -207,21 +206,10 @@
}
-VisuDesign_Custom.prototype.addCreator("diagram_inline", {
- create: function( page, path ) {
- return createDiagram(page, path, "inline");
- }
-});
-VisuDesign_Custom.prototype.addCreator("diagram_popup", {
- create: function(page,path) {
- return createDiagram(page, path, "popup");
- }
-});
-
VisuDesign_Custom.prototype.addCreator("diagram", {
create: function(page,path) {
- return createDiagram(page, path, "none");
+ return createDiagram(page, path);
}
});
Modified: CometVisu/trunk/visu/upgrade/ConfigurationUpgrader.class.php
===================================================================
--- CometVisu/trunk/visu/upgrade/ConfigurationUpgrader.class.php 2013-02-11 16:47:07 UTC (rev 1471)
+++ CometVisu/trunk/visu/upgrade/ConfigurationUpgrader.class.php 2013-02-12 17:16:47 UTC (rev 1472)
@@ -134,6 +134,31 @@
$this->log('renamed ' . $i . ' nodes of type \'iframe\' to \'web\'');
unset($objElements, $i);
+ // change diagram_popup to diagram
+
+ $objElements = $objXPath->query('//diagram_popup');
+ $i = 0;
+ foreach ($objElements as $objElement) {
+ $objElement->setAttribute('popup', 'true');
+ $objElement->setAttribute('previewlabels', 'false');
+ $this->renameNode($objElement, 'diagram');
+ ++$i;
+ }
+ $this->log('changed ' . $i . ' nodes of type \'diagram_popup\' to \'diagram\'');
+ unset($objElements);
+
+ // change diagram_popup to diagram
+ $objElements = $objXPath->query('//diagram_inline');
+ $i = 0;
+ foreach ($objElements as $objElement) {
+ $objElement->setAttribute('popup', 'false');
+ $objElement->setAttribute('previewlabels', 'true');
+ $this->renameNode($objElement, 'diagram');
+ ++$i;
+ }
+ $this->log('changed ' . $i . ' nodes of type \'diagram_inline\' to \'diagram\'');
+ unset($objElements);
+
// remove whitespace-attributes
$objAttributes = $objXPath->query('//@*[.=\' \']');
$i = 0;
Modified: CometVisu/trunk/visu/visu_config.xsd
===================================================================
--- CometVisu/trunk/visu/visu_config.xsd 2013-02-11 16:47:07 UTC (rev 1471)
+++ CometVisu/trunk/visu/visu_config.xsd 2013-02-12 17:16:47 UTC (rev 1472)
@@ -331,8 +331,6 @@
<xsd:choice>
<xsd:element name="clock" type="clock" />
<xsd:element name="colorchooser" type="colorchooser" />
- <xsd:element name="diagram_popup" type="diagram_popup" />
- <xsd:element name="diagram_inline" type="diagram_inline" />
<xsd:element name="diagram_info" type="diagram_info" />
<xsd:element name="diagram" type="diagram" />
<xsd:element name="rss" type="rss" />
@@ -816,49 +814,6 @@
<xsd:attribute name="tooltip" type="xsd:boolean" use="optional" />
</xsd:complexType>
- <xsd:complexType name="diagram_inline">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="axis" type="axis" minOccurs="0" maxOccurs="unbounded"/>
- <xsd:element name="rrd" type="rrd" minOccurs="0" maxOccurs="unbounded"/>
- </xsd:sequence>
- <xsd:attribute name="rrd" type="xsd:string" use="optional" />
- <xsd:attribute name="unit" type="xsd:string" use="optional" />
- <xsd:attribute name="width" type="dimension" use="optional" />
- <xsd:attribute ref="series" use="optional" />
- <xsd:attribute name="height" type="dimension" use="optional" />
- <xsd:attribute name="refresh" type="xsd:integer" use="optional" />
- <xsd:attribute name="period" type="xsd:string" use="optional" />
- <xsd:attribute ref="datasource" use="optional" />
- <xsd:attribute name="linecolor" type="xsd:string" use="optional" />
- <xsd:attribute name="gridcolor" type="xsd:string" use="optional" />
- <xsd:attribute name="yaxismin" type="xsd:string" use="optional" />
- <xsd:attribute name="yaxismax" type="xsd:string" use="optional" />
- <xsd:attribute name="title" type="xsd:string" use="optional" />
- </xsd:complexType>
-
- <xsd:complexType name="diagram_popup">
- <xsd:sequence>
- <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="axis" type="axis" minOccurs="0" maxOccurs="unbounded"/>
- <xsd:element name="rrd" type="rrd" minOccurs="0" maxOccurs="unbounded"/>
- </xsd:sequence>
- <xsd:attribute name="rrd" type="xsd:string" use="optional" />
- <xsd:attribute name="unit" type="xsd:string" use="optional" />
- <xsd:attribute ref="series" use="optional" />
- <xsd:attribute name="refresh" type="xsd:integer" use="optional" />
- <xsd:attribute name="period" type="xsd:string" use="optional" />
- <xsd:attribute ref="datasource" use="optional" />
- <xsd:attribute name="tooltip" type="xsd:boolean" use="optional" />
- <xsd:attribute name="linecolor" type="xsd:string" use="optional" />
- <xsd:attribute name="gridcolor" type="xsd:string" use="optional" />
- <xsd:attribute name="yaxismin" type="xsd:string" use="optional" />
- <xsd:attribute name="yaxismax" type="xsd:string" use="optional" />
- <xsd:attribute name="title" type="xsd:string" use="optional" />
- </xsd:complexType>
-
<xsd:complexType name="diagram_info">
<xsd:sequence>
<xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1"/>
@@ -951,7 +906,17 @@
<xsd:complexType name="line" />
- <!-- toggle is not yet implemented -->
+ <xsd:complexType name="toogle">
+ <xsd:sequence>
+ <xsd:element name="layout" type="layout" minOccurs="0" maxOccurs="1" />
+ <xsd:element name="label" type="label" minOccurs="0" maxOccurs="1" />
+ <xsd:element name="address" type="address" minOccurs="1" />
+ </xsd:sequence>
+ <xsd:attribute ref="styling" use="optional" />
+ <xsd:attribute ref="mapping" use="optional" />
+ <xsd:attribute ref="align" use="optional" />
+ <xsd:attribute ref="flavour" use="optional" />
+ </xsd:complexType><!-- toggle is not yet implemented -->
<xsd:complexType name="axis">
<xsd:simpleContent>
Modified: CometVisu/trunk/visu/visu_config_demo.xml
===================================================================
--- CometVisu/trunk/visu/visu_config_demo.xml 2013-02-11 16:47:07 UTC (rev 1471)
+++ CometVisu/trunk/visu/visu_config_demo.xml 2013-02-12 17:16:47 UTC (rev 1472)
@@ -1097,12 +1097,12 @@
<address transform="DPT:5.001" mode="readwrite">12/7/52</address>
</slide>
<break/>
- <diagram_popup rrd="eib_traffic" unit="tps" series="day" refresh="300">
+ <diagram rrd="eib_traffic" unit="tps" series="day" refresh="300" popup="true" previewlabels="false">
<label>KNX traffic</label>
- </diagram_popup>
- <diagram_inline rrd="eib_traffic" width="600" height="400">
+ </diagram>
+ <diagram rrd="eib_traffic" width="600" height="400" popup="false" previewlabels="true">
<label/>
- </diagram_inline>
+ </diagram>
<diagram_info rrd="eib_traffic" unit="tps" series="day" refresh="300">
<label>KNX traffic</label>
<address transform="DPT:9.021" mode="readwrite">12/7/9</address>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ma...@us...> - 2013-02-16 13:55:36
|
Revision: 1477
http://openautomation.svn.sourceforge.net/openautomation/?rev=1477&view=rev
Author: mayerch
Date: 2013-02-16 13:55:26 +0000 (Sat, 16 Feb 2013)
Log Message:
-----------
Initial inclusion of appcache for offline use (or to be more precise: faster loading on a mobile devices as only the bus status has to be transmitted).
The content of the cache description is far from final and must be adjusted in the future.
Modified Paths:
--------------
CometVisu/trunk/visu/index.html
Added Paths:
-----------
CometVisu/trunk/visu/cometvisu.appcache
Added: CometVisu/trunk/visu/cometvisu.appcache
===================================================================
--- CometVisu/trunk/visu/cometvisu.appcache (rev 0)
+++ CometVisu/trunk/visu/cometvisu.appcache 2013-02-16 13:55:26 UTC (rev 1477)
@@ -0,0 +1,9 @@
+CACHE MANIFEST
+# Version SVN:20130216-1420
+
+CACHE:
+index.html
+
+NETWORK:
+editor/*
+*
\ No newline at end of file
Modified: CometVisu/trunk/visu/index.html
===================================================================
--- CometVisu/trunk/visu/index.html 2013-02-15 14:42:35 UTC (rev 1476)
+++ CometVisu/trunk/visu/index.html 2013-02-16 13:55:26 UTC (rev 1477)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
+<html xmlns="http://www.w3.org/1999/xhtml" manifest="cometvisu.appcache">
<head>
<title>CometVisu-Client</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|