From b3cf3d2df22b20b3527622b9e06a13ac8163e8c5 Mon Sep 17 00:00:00 2001 From: momo Date: Sun, 16 Oct 2011 17:15:26 +0200 Subject: //streichelzoo: initial commit --- streichelzoo/button_down.png | 1 + streichelzoo/button_up.png | 1 + streichelzoo/main.avg | 1 + streichelzoo/streichelzoo.py | 1 + 4 files changed, 4 insertions(+) create mode 120000 streichelzoo/button_down.png create mode 120000 streichelzoo/button_up.png create mode 120000 streichelzoo/main.avg create mode 120000 streichelzoo/streichelzoo.py (limited to 'streichelzoo') diff --git a/streichelzoo/button_down.png b/streichelzoo/button_down.png new file mode 120000 index 00000000..f73a2282 --- /dev/null +++ b/streichelzoo/button_down.png @@ -0,0 +1 @@ +/home/momo/dev/comshack/button_down.png \ No newline at end of file diff --git a/streichelzoo/button_up.png b/streichelzoo/button_up.png new file mode 120000 index 00000000..9b686df6 --- /dev/null +++ b/streichelzoo/button_up.png @@ -0,0 +1 @@ +/home/momo/dev/comshack/button_up.png \ No newline at end of file diff --git a/streichelzoo/main.avg b/streichelzoo/main.avg new file mode 120000 index 00000000..2e98e62d --- /dev/null +++ b/streichelzoo/main.avg @@ -0,0 +1 @@ +/home/momo/dev/comshack/main.avg \ No newline at end of file diff --git a/streichelzoo/streichelzoo.py b/streichelzoo/streichelzoo.py new file mode 120000 index 00000000..d011e2c9 --- /dev/null +++ b/streichelzoo/streichelzoo.py @@ -0,0 +1 @@ +/home/momo/dev/comshack/comshack.py \ No newline at end of file -- cgit v1.2.3 From 7a620847ed43efb2dcecc7e01c36296cabc086ee Mon Sep 17 00:00:00 2001 From: momo Date: Sun, 16 Oct 2011 17:18:31 +0200 Subject: //streichelzoo: fixed symlink misbehaviors --- streichelzoo/README | 2 ++ streichelzoo/button_down.png | Bin 39 -> 6501 bytes streichelzoo/button_up.png | Bin 37 -> 6655 bytes streichelzoo/main.avg | 32 +++++++++++++++++++++++++++++++- streichelzoo/streichelzoo.py | 32 +++++++++++++++++++++++++++++++- 5 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 streichelzoo/README mode change 120000 => 100755 streichelzoo/button_down.png mode change 120000 => 100755 streichelzoo/button_up.png mode change 120000 => 100644 streichelzoo/main.avg mode change 120000 => 100644 streichelzoo/streichelzoo.py (limited to 'streichelzoo') diff --git a/streichelzoo/README b/streichelzoo/README new file mode 100644 index 00000000..f93eb8c5 --- /dev/null +++ b/streichelzoo/README @@ -0,0 +1,2 @@ +Streichelzoo is a libavg based touchscreen interface for shackspace interface controll and is currently under development. +As you already read it still is under development and not yet working. diff --git a/streichelzoo/button_down.png b/streichelzoo/button_down.png deleted file mode 120000 index f73a2282..00000000 --- a/streichelzoo/button_down.png +++ /dev/null @@ -1 +0,0 @@ -/home/momo/dev/comshack/button_down.png \ No newline at end of file diff --git a/streichelzoo/button_down.png b/streichelzoo/button_down.png new file mode 100755 index 00000000..f952aabf Binary files /dev/null and b/streichelzoo/button_down.png differ diff --git a/streichelzoo/button_up.png b/streichelzoo/button_up.png deleted file mode 120000 index 9b686df6..00000000 --- a/streichelzoo/button_up.png +++ /dev/null @@ -1 +0,0 @@ -/home/momo/dev/comshack/button_up.png \ No newline at end of file diff --git a/streichelzoo/button_up.png b/streichelzoo/button_up.png new file mode 100755 index 00000000..71253b23 Binary files /dev/null and b/streichelzoo/button_up.png differ diff --git a/streichelzoo/main.avg b/streichelzoo/main.avg deleted file mode 120000 index 2e98e62d..00000000 --- a/streichelzoo/main.avg +++ /dev/null @@ -1 +0,0 @@ -/home/momo/dev/comshack/main.avg \ No newline at end of file diff --git a/streichelzoo/main.avg b/streichelzoo/main.avg new file mode 100644 index 00000000..2a67a881 --- /dev/null +++ b/streichelzoo/main.avg @@ -0,0 +1,31 @@ + + +
+
+ + + + +
+ + + + + + +
+
+
+ +
+
+ +
diff --git a/streichelzoo/streichelzoo.py b/streichelzoo/streichelzoo.py deleted file mode 120000 index d011e2c9..00000000 --- a/streichelzoo/streichelzoo.py +++ /dev/null @@ -1 +0,0 @@ -/home/momo/dev/comshack/comshack.py \ No newline at end of file diff --git a/streichelzoo/streichelzoo.py b/streichelzoo/streichelzoo.py new file mode 100644 index 00000000..25b83964 --- /dev/null +++ b/streichelzoo/streichelzoo.py @@ -0,0 +1,31 @@ +#! /bin/python +from libavg import * + +#This function is a slightly modified version of cmiles code from dev.c-base.org/c_leuse/c_leuse.git +#It takes a bunch of word nodes an slides them from left to right just as the HTML function +line = 16 +def welcomeScroll(): + global line + line += 1 + textNode = player.getElementByID("welcometext") + if line >= textNode.getNumChildren(): + line = 0 + node = textNode.getChild(line) + LinearAnim(node, "x", 11500, 1200, -1400, -1000, None, welcomeScroll).start() +# +def start_lightcontrol(event): + mainwindow = player.getElementByID("mainwindow") + lightcontrolwindow = player.getElementByID("lightcontrol") + mainwindow.active =False + lightcontrolwindow.active =True + + +player = avg.Player.get() +player.loadFile("main.avg") + +player.setTimeout(10, welcomeScroll) +player.getElementByID("light").setEventHandler(avg.CURSORDOWN, avg.MOUSE, start_lightcontrol) +#player.getElementByID("roster").setEventHandler(avg.CURSORDOWN, avg.MOUSE, buttondown) +#player.getElementByID("blank").setEventHandler(avg.CURSORDOWN, avg.MOUSE, buttondown) +player.play() + -- cgit v1.2.3 From 691e77d4e0c55bffa1f8c6ecc761d3de9b30062d Mon Sep 17 00:00:00 2001 From: momo Date: Sun, 16 Oct 2011 17:29:10 +0200 Subject: //streichelzoo: chmod -x on both .png files for maximum integrity --- streichelzoo/button_down.png | Bin streichelzoo/button_up.png | Bin 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 streichelzoo/button_down.png mode change 100755 => 100644 streichelzoo/button_up.png (limited to 'streichelzoo') diff --git a/streichelzoo/button_down.png b/streichelzoo/button_down.png old mode 100755 new mode 100644 diff --git a/streichelzoo/button_up.png b/streichelzoo/button_up.png old mode 100755 new mode 100644 -- cgit v1.2.3