>From ee49ab918b64fd17638bb7c83572111a668439d9 Mon Sep 17 00:00:00 2001
From: Olivier Fourdan <ofour...@redhat.com>
Date: Fri, 30 Nov 2012 11:34:43 +0100
Subject: [PATCH] tools: show touchring and touchring labels
in show-svg-image tool.
Signed-off-by: Olivier Fourdan <ofour...@redhat.com>
---
tools/show-svg-image.c | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/tools/show-svg-image.c b/tools/show-svg-image.c
index 8ec5ddb..03b4c5d 100644
--- a/tools/show-svg-image.c
+++ b/tools/show-svg-image.c
@@ -171,6 +171,25 @@ print_button_labels (cairo_t *cairo_context, Tablet *tablet)
g_free (label);
g_free (sub);
}
+
+ /* Touch rings */
+ if (libwacom_has_ring(tablet->device)) {
+ print_label (cairo_context, tablet, "#LabelRingCCW", "<span foreground=\"" INACTIVE_COLOR "\" >Ring Counter Clockwise</span>", WACOM_BUTTON_POSITION_LEFT);
+ print_label (cairo_context, tablet, "#LabelRingCW", "<span foreground=\"" INACTIVE_COLOR "\" >Ring Clockwise</span>", WACOM_BUTTON_POSITION_LEFT);
+ }
+ if (libwacom_has_ring2(tablet->device)) {
+ print_label (cairo_context, tablet, "#LabelRing2CCW", "<span foreground=\"" INACTIVE_COLOR "\" >2nd Ring Counter Clockwise</span>", WACOM_BUTTON_POSITION_RIGHT);
+ print_label (cairo_context, tablet, "#LabelRing2CW", "<span foreground=\"" INACTIVE_COLOR "\" >2nd Ring Clockwise</span>", WACOM_BUTTON_POSITION_RIGHT);
+ }
+ /* Touch strips */
+ if (libwacom_get_num_strips(tablet->device) > 0) {
+ print_label (cairo_context, tablet, "#LabelStripUp", "<span foreground=\"" INACTIVE_COLOR "\" >Strip Up</span>", WACOM_BUTTON_POSITION_LEFT);
+ print_label (cairo_context, tablet, "#LabelStripDown", "<span foreground=\"" INACTIVE_COLOR "\" >Strip Down</span>", WACOM_BUTTON_POSITION_LEFT);
+ }
+ if (libwacom_get_num_strips(tablet->device) > 1) {
+ print_label (cairo_context, tablet, "#LabelStrip2Up", "<span foreground=\"" INACTIVE_COLOR "\" >2nd Strip Up</span>", WACOM_BUTTON_POSITION_RIGHT);
+ print_label (cairo_context, tablet, "#LabelStrip2Down", "<span foreground=\"" INACTIVE_COLOR "\" >2nd Strip Down</span>", WACOM_BUTTON_POSITION_RIGHT);
+ }
}
static void
--
1.7.1
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
TUNE You got it built. Now make it sing. Tune shows you how.
http://goparallel.sourceforge.net
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel