22 print "<schemalist>\n";
23 print "\t<schema id=\"$ARGV[1]\" path=\"/apps/anjuta/\">\n";
26 open FILE
, "<", $ARGV[2] or die $!;
27 while (<FILE
>) { print "\t\t$_"; }
30 my $parser = new XML
::Parser
(Style
=> "Stream");
31 $parser->parsefile($ARGV[0]);
33 print "\t</schema>\n";
34 print "</schemalist>";
40 if ($key =~ /object/) {
42 if ($k =~ /(preferences_(color|entry|font|spin|text|toggle|menu|folder|file|combo)):(.*):(.*):(\d):(.*)/) {
48 my $realtype = $datatypes{$type};
50 if (exists $keys{$propkey})
59 if ($type =~ /bool/) {
60 $default = $boolean{$default};
64 print "\t\t<key name=\"$propkey\" type=\"$realtype\">\n";
65 if ($pref eq "combo") {
66 @values = split(',', $default);
67 print "\t\t\t<choices>\n";
69 print "\t\t\t\t<choice value=\"$_\" />\n"
71 print "\t\t\t</choices>\n";
72 print "\t\t\t<default>\"$values[$flags]\"</default>\n";
74 elsif ($realtype ne "s") {
75 print "\t\t\t<default>$default</default>\n";
78 print "\t\t\t<default>\"$default\"</default>\n";