mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
55_InfoPanel.pm: updated
git-svn-id: https://svn.fhem.de/fhem/trunk@7938 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
940e740b94
commit
00c8cec7d6
@ -765,6 +765,8 @@ sub btIP_evalLayout {
|
|||||||
my ($width,$height)= split(/x/, AttrVal($name,"size","800x600"));
|
my ($width,$height)= split(/x/, AttrVal($name,"size","800x600"));
|
||||||
my @layout= split("\n", $layout);
|
my @layout= split("\n", $layout);
|
||||||
|
|
||||||
|
my %pstack;
|
||||||
|
my $pstackcount = 0;
|
||||||
my %params;
|
my %params;
|
||||||
$params{name}= $name;
|
$params{name}= $name;
|
||||||
$params{width}= $width;
|
$params{width}= $width;
|
||||||
@ -824,6 +826,21 @@ sub btIP_evalLayout {
|
|||||||
eval {
|
eval {
|
||||||
given($cmd) {
|
given($cmd) {
|
||||||
|
|
||||||
|
when("push") {
|
||||||
|
$pstackcount++;
|
||||||
|
while ( my ($key, $value) = each(%params) ) {
|
||||||
|
$pstack{$pstackcount}{$key} = $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
when("pop") {
|
||||||
|
while ( my ($key, $value) = each($pstack{$pstackcount}) ) {
|
||||||
|
$params{$key} = $value;
|
||||||
|
}
|
||||||
|
delete $pstack{$pstackcount};
|
||||||
|
$pstackcount--;
|
||||||
|
}
|
||||||
|
|
||||||
when("area") {
|
when("area") {
|
||||||
($id,$x1,$y1,$x2,$y2,$link)= split("[ \t]+", $def, 6);
|
($id,$x1,$y1,$x2,$y2,$link)= split("[ \t]+", $def, 6);
|
||||||
($x1,$y1)= btIP_xy($x1,$y1,%params);
|
($x1,$y1)= btIP_xy($x1,$y1,%params);
|
||||||
|
Loading…
Reference in New Issue
Block a user