From: hickert Date: Thu, 18 May 2006 07:41:49 +0000 (+0000) Subject: Switched default to inherited X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=57db1effa11deb40a102c2564bff08f9e6b158d6;p=gosa.git Switched default to inherited git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3407 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_terminalService.inc b/plugins/admin/systems/class_terminalService.inc index e1c3d6f9b..bff691c79 100644 --- a/plugins/admin/systems/class_terminalService.inc +++ b/plugins/admin/systems/class_terminalService.inc @@ -40,16 +40,11 @@ class termservice extends plugin "i128", "i740", "i810", "imstt", "mga", "neomagic", "newport", "nsc", "nv", "r128", "radeon", "rendition", "s3", "s3virge", "savage", "siliconmotion", "sis", "tdfx", "tga", "trident", "tseng", "vesa", "vga", "vmware"); - var $XResolutions= array("default", "640x480", "800x600", "1024x768", "1152x864", "1280x1024", - "1400x1050", "1600x1200"); - var $XColordepths= array("default", "8", "15", "16", "24"); - var $XKbModels= array ("default", "btc9000", "chicony", "compaq", "dell", "dell101", "everex", - "flexpro", "geniuscomfy", "hp", "itouch", "jp106", "logicordless", - "logiinetnav", "logiinternet", "macintosh", "microsoft", - "microsoftpro", "omnikey101", "pc101", "pc102", "pc104", - "pc105", "rapidaccess", "rapidaccess2", "winbook"); - var $XKbLayouts= array ("default"=>"default","de"=> "de","intl" =>"intl","us" =>"us"); - var $XKbVariants= array ("default", "nodeadkeys", "basic"); + var $XResolutions= array(); + var $XColordepths= array(); + var $XKbModels= array (); + var $XKbLayouts= array (); + var $XKbVariants= array (); var $MouseTypes= array("AUTO", "ImPS/2", "PS/2", "Microsoft", "Logitech"); var $MousePorts= array("AUTO", "/dev/ttyS0", "/dev/ttyS1", "/dev/psaux", "/dev/input/mice"); var $gotoScannerModels= array(); @@ -70,8 +65,37 @@ class termservice extends plugin function termservice ($config, $dn= NULL) { plugin::plugin ($config, $dn); - + $this->XResolutions= array( + "default" => _("inherited") , + "640x480" => "640x480", + "800x600" => "800x600", + "1024x768" => "1024x768", + "1152x864" => "1152x864", + "1280x1024" => "1280x1024", + "1400x1050" => "1400x1050", + "1600x1200" => "1600x1200"); + + $this->XColordepths= array( + "default" => _("inherited"), + "8" => "8 " ._("bit"), + "15" => "15 "._("bit"), + "16" => "16 "._("bit"), + "24" => "24 "._("bit")); + + $this->XKbModels['default']= _("inherited"); + foreach(array ("btc9000", "chicony", "compaq", "dell", "dell101", "everex", + "flexpro", "geniuscomfy", "hp", "itouch", "jp106", "logicordless", + "logiinetnav", "logiinternet", "macintosh", "microsoft", + "microsoftpro", "omnikey101", "pc101", "pc102", "pc104", + "pc105", "rapidaccess", "rapidaccess2", "winbook") as $type){ + $this->XKbModels[$type] = $type; + } + + /* Additional values will be extracted from /etc/gosa/keyboardLayouts */ + $this->XKbLayouts= array ("default"=>_("inherited"),"de"=> "de","intl" =>"intl","us" =>"us"); + $this->XKbVariants= array ("default"=>_("inherited"), "nodeadkeys"=>"nodeadkeys", "basic"=>"basic"); + /* try to read additional keyboard layouts */ if(file_exists(CONFIG_DIR."/keyboardLayouts")){ diff --git a/plugins/admin/systems/terminalService.tpl b/plugins/admin/systems/terminalService.tpl index c75780394..50d4645d3 100644 --- a/plugins/admin/systems/terminalService.tpl +++ b/plugins/admin/systems/terminalService.tpl @@ -7,7 +7,7 @@ @@ -15,7 +15,7 @@ @@ -23,7 +23,7 @@ @@ -94,7 +94,7 @@ @@ -102,7 +102,7 @@