From a2338591ba321bc2af8c8491292b83d0cd63e29a Mon Sep 17 00:00:00 2001
From: betateilchen <>
Date: Wed, 28 Jan 2015 18:48:20 +0000
Subject: [PATCH] contrib/InfoPanel: update
git-svn-id: https://svn.fhem.de/fhem/trunk@7761 2b470e98-0d58-463d-a4d8-8e2adae1ed80
---
fhem/contrib/InfoPanel/55_InfoPanel.pm | 23 ++++++++++++++++++-----
1 file changed, 18 insertions(+), 5 deletions(-)
diff --git a/fhem/contrib/InfoPanel/55_InfoPanel.pm b/fhem/contrib/InfoPanel/55_InfoPanel.pm
index b94edaeed..7bc623a46 100644
--- a/fhem/contrib/InfoPanel/55_InfoPanel.pm
+++ b/fhem/contrib/InfoPanel/55_InfoPanel.pm
@@ -13,6 +13,7 @@ use warnings;
use MIME::Base64;
use Image::Info qw(image_info dim);
+#use Data::Dumper;
use feature qw/switch/;
use vars qw(%data);
@@ -399,9 +400,10 @@ sub btIP_itemTextBox {
}
$d = "
\n".
+ "width:".$boxwidth."px; height:".$boxheight."px; text-overflow:ellipsis; z-index:2\" >\n".
"
\n$text\n
\n".
"
\n";
@@ -564,6 +566,8 @@ sub btIP_evalLayout($$@) {
my ($width,$height)= split(/x/, AttrVal($name,"size","800x600"));
my @layout= split("\n", $layout);
+ my %h4params;
+
my %params;
$params{name}= $name;
$params{width}= $width;
@@ -578,6 +582,7 @@ sub btIP_evalLayout($$@) {
$params{ivalign} = 'top';
$params{thalign} = 'start';
$params{tvalign} = 'auto';
+ $params{tbalign} = 'left';
$params{linespace} = 0;
$params{boxcolor} = undef;
$params{padding} = 0;
@@ -620,6 +625,12 @@ sub btIP_evalLayout($$@) {
eval {
given($cmd) {
+ when("push") {
+ }
+
+ when("pop") {
+ }
+
when("area") {
($id,$x1,$y1,$x2,$y2,$arg)= split("[ \t]+", $def, 6);
($x1,$y1)= btIP_xy($x1,$y1,%params);
@@ -728,7 +739,7 @@ sub btIP_evalLayout($$@) {
}
$params{pt} = 6 if($params{pt} < 0);
}
-
+
when("rect") {
($id,$x1,$y1,$x2,$y2,$r1,$r2,$format)= split("[ \t]+", $def, 8);
($x1,$y1)= btIP_xy($x1,$y1,%params);
@@ -772,6 +783,10 @@ sub btIP_evalLayout($$@) {
$params{yy} = $y + $boxheight;
}
+ when("textboxalign") {
+ $params{tbalign} = $def;
+ }
+
when("time") {
($id,$x,$y)= split("[ \t]+", $def, 3);
($x,$y)= btIP_xy($x,$y,%params);
@@ -780,8 +795,6 @@ sub btIP_evalLayout($$@) {
$svg .= btIP_itemTime($id,$x,$y,%params);
}
- when('@include') {}
-
default {
if($cmd ~~ @cmd_halign) {
my $d = AnalyzePerlCommand(undef, $def);