vfmg: VFMG/qvwm_out.pm (NEW) - qvwm backend

sparky sparky at pld-linux.org
Sat Dec 2 00:18:52 CET 2006


Author: sparky                       Date: Fri Dec  1 23:18:52 2006 GMT
Module: vfmg                          Tag: HEAD
---- Log message:
- qvwm backend

---- Files affected:
vfmg/VFMG:
   qvwm_out.pm (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: vfmg/VFMG/qvwm_out.pm
diff -u /dev/null vfmg/VFMG/qvwm_out.pm:1.1
--- /dev/null	Sat Dec  2 00:18:52 2006
+++ vfmg/VFMG/qvwm_out.pm	Sat Dec  2 00:18:47 2006
@@ -0,0 +1,32 @@
+package VFMG::Output;
+
+use strict;
+use warnings;
+
+sub qvwm {
+	my ($no, $level) = @_;
+	my $apps = "";
+	foreach my $entry (sort main::cmpdname keys %{$main::menu[$no]}) {
+		my $d = $main::desktop[$entry];
+		( my $name = $$d{Name} ) =~ s/\"/\\\"/g;
+		my $icon = "";
+		$icon = main::scale_icon($$d{Icon}) if $main::opt{icons};
+		if ($main::menu[$no]{$entry} < 0) {
+			( my $exec = $$d{Exec} ) =~ s/\"/\\\"/g;
+			$apps .= qq($level"$name" "$icon" "$exec"\n);
+		} else {
+			print qq($level"$name" "$icon"\n),
+				"$level+\n";
+			qvwm( $main::menu[$no]{$entry}, $level."\t");
+			print "$level-\n";
+		}
+	}
+	print $apps;
+}
+
+sub do_menu() {
+	print "[StartMenu]\n";
+	qvwm($main::opt{strip}, "");
+}
+
+1;
================================================================


More information about the pld-cvs-commit mailing list