From 047f69a2cfe42bff432d339faee612e583dbb78b Mon Sep 17 00:00:00 2001 From: Michael Wiebusch Date: Thu, 1 Aug 2013 11:15:59 +0200 Subject: [PATCH] test --- tools/testgui.pl | 200 +---------------------------------------------- 1 file changed, 1 insertion(+), 199 deletions(-) diff --git a/tools/testgui.pl b/tools/testgui.pl index 0f5494b..3d1a32c 100755 --- a/tools/testgui.pl +++ b/tools/testgui.pl @@ -233,7 +233,7 @@ sub print_sensorArea { print ""; print ""; print ""; - my $command = "./preview/prevImg.pl"; + my $command = "./prevImg.pl"; print q%%; print ""; print ""; @@ -273,204 +273,6 @@ sub print_quickEditArea { } -# sub print_registers { -# -# my $configFile = getConfigFile(); -# my $specFile = getSpecFile(); -# my $configFileName = getConfigFileName(); -# my $specFileName = getSpecFileName(); -# my $configTree = getConfigTree(); -# my $specTree = getSpecTree(); -# -# my $xmlfile = $_[0]; -# my $xmltree; -# if ( $xmlfile eq $configFile ) { -# $xmltree = $configTree; -# } -# elsif ( $xmlfile eq $specFile ) { -# $xmltree = $specTree; -# } -# else { -# die "xmlfile given to sub print_registers is unknown"; -# } -# -# my @registers = sort by_name $xmltree->findnodes("/MAPS/register"); -# print ""; -# -# for my $register (@registers) { -# -# -# my $registerName = $register->findvalue("./\@name"); -# -# # if register not in the mask file, don't print! -# unless( $quickEditMaskTree->findnodes("/MAPS/register[\@name='". -# $registerName."']")) { -# next; -# } -# -# my $registerId = $register->findvalue("./\@id"); -# my $registerSize = $register->findvalue("./\@size"); -# my $registerDescr = prepare_text( -# $specTree->findvalue( -# "/MAPS/register[\@name='" . $registerName . "']/description" -# ) -# || "n/a" -# ); -# -# my $flistid = $xmlfile . "//" . $registerName; -# -# print ""; -# -# print < +  -# EOF -# print ""; -# -# #print ""; -# -# if ( $xmlfile eq $configFile ) { # we are printing the Specifications Tree -# print < X  -# EOF -# } -# if ( $xmlfile eq $specFile ) { # we are printing the Settings Tree -# -# print < →  -# EOF -# } -# -# print ""; -# -# #print ""; -# -# print ''; -# print ''; -# print '"; -# } -# print "
$registerName$registerId
'; -# print_fields( $xmlfile, $register ); -# print ""; -# print "
"; -# } -# -# -# sub print_fields { -# -# my $configFile = getConfigFile(); -# my $specFile = getSpecFile(); -# my $configFileName = getConfigFileName(); -# my $specFileName = getSpecFileName(); -# my $configTree = getConfigTree(); -# my $specTree = getSpecTree(); -# -# my $register = $_[1]; -# my $xmlfile = $_[0]; -# my $registerName = $register->findvalue("./\@name"); -# my @fields = sort by_name $register->findnodes("./field"); -# print ""; -# for my $field (@fields) { -# -# my $fieldName = $field->findvalue("./\@name"); -# -# # if field not in the mask file, don't print! -# unless( $quickEditMaskTree->findnodes("/MAPS/register[\@name='". -# $registerName."']/field[\@name='".$fieldName."']")) { -# next; -# } -# -# my $isHeritageFrom = $field->findvalue("./\@isHeritageFrom") || ""; -# my $readOnlyFlag = 0; -# my $fieldValue = $field->findvalue("./\@value"); -# my $fieldSize = -# $specTree->findvalue( "/MAPS/register[\@name='" -# . $registerName -# . "']/field[\@name='" -# . $fieldName -# . "']/\@size" ) -# || "n/a"; -# my $fieldDescr = prepare_text( -# $specTree->findvalue( -# "/MAPS/register[\@name='" -# . $registerName -# . "']/field[\@name='" -# . $fieldName -# . "']/description" -# ) -# || "n/a" -# ); -# -# my $maxFieldVal = 2**$fieldSize; -# my $sizeInfo = -# sprintf( -# "Field contains %d bits, possible values: 0-%d (0x0-0x%x)\n\n", -# $fieldSize, $maxFieldVal, $maxFieldVal ); -# -# $fieldDescr = $sizeInfo . $fieldDescr; -# -# unless ( $isHeritageFrom eq "" ) { -# $fieldDescr = -# "Field was inherited from $isHeritageFrom\n\n" . $fieldDescr; -# } -# -# my $fieldId = $xmlfile . "//" . $registerName . "/" . $fieldName; -# if ( $fieldValue eq "" ) { -# $fieldValue = $field->findvalue("./\@defaultValue"); -# $readOnlyFlag = 1; -# } -# -# print ""; -# print ""; -# print ""; -# if ($readOnlyFlag) { -# print <$fieldValue -# EOF -# } -# else { -# print < -# -# -# EOF -# -# } -# -# print ''; -# if ( $xmlfile eq $specFile ) { # we are printing the Specifications tree -# print < →  -# EOF -# } -# if ( $xmlfile eq $configFile ) { # we are printing the Settings Tree -# -# if ( $isHeritageFrom eq "" ) -# { # these are actual settings, not inherited! -# print < X  -# EOF -# } -# else { -# print ""; -# } -# } -# print ""; -# if ( ( any2dec($fieldValue) < 0 ) -# or ( any2dec($fieldValue) > $maxFieldVal ) ) -# { -# print -# "" -# ; # just debug -# } -# } -# print "
$fieldName  =  X 
!!!Above value not in allowed range!!!
"; -# -# } sub print_registers { -- 2.43.0