diff options
-rw-r--r-- | css/styles.css | 35 | ||||
-rw-r--r-- | pages/Makefile | 11 | ||||
-rw-r--r-- | pages/keypress.ecpp | 16 | ||||
-rw-r--r-- | pages/menu.ecpp | 5 |
4 files changed, 60 insertions, 7 deletions
diff --git a/css/styles.css b/css/styles.css index b4fda24..8d17ee7 100644 --- a/css/styles.css +++ b/css/styles.css @@ -147,3 +147,38 @@ table.schedule tr td { table.schedule tr.active { background: #DEE6EE; } + +<# + ########################## + # Remote Control Keypad + ########################## +#> + +table.keypad { + margin-top: 10px; + border: 1px solid #6D96A9; +} + +table.keypad tr td.button button { + width: 4em; +} + +table.keypad tr td.redbutton button { + width: 3em; + background-color: #FF0000; +} + +table.keypad tr td.greenbutton button { + width: 3em; + background-color: #00FF00; +} + +table.keypad tr td.yellowbutton button { + width: 3em; + background-color: #FFFF00; +} + +table.keypad tr td.bluebutton button { + width: 3em; + background-color: #0000FF; +} diff --git a/pages/Makefile b/pages/Makefile index d55b4a5..53266af 100644 --- a/pages/Makefile +++ b/pages/Makefile @@ -16,7 +16,8 @@ VDRDIR ?= ../../../.. ### The object files (add further files here): OBJS = menu.o event_widget.o channels.o recordings.o schedule.o \ - screenshot.o timers.o whats_on_now.o whats_on_next.o + screenshot.o timers.o whats_on_now.o whats_on_next.o \ + keypress.o remote.o ### Default rules: @@ -33,16 +34,16 @@ all: libpages.a $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_CPP) $< %.cpp: %.gif - $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_GIF) -b $< + $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_GIF) -b -m "image/gif" $< %.cpp: %.jpg - $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_JPG) -b $< + $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_JPG) -b -m "image/jpg" $< %.cpp: %.css - $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_CSS) -b $< + $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_CSS) -b -m "text/css" $< %.cpp: %.js - $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_JS) -b $< + $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_JS) -b -m "test/javascript" $< ### Targets: diff --git a/pages/keypress.ecpp b/pages/keypress.ecpp new file mode 100644 index 0000000..2475dc1 --- /dev/null +++ b/pages/keypress.ecpp @@ -0,0 +1,16 @@ +<%pre> +#include <vdr/remote.h> +</%pre> +<%args> +int keycode = kNone; +</%args> +<%cpp> +reply.setContentType("application/xml"); +</%cpp> +<?xml version="1.0"?> +<service> +<request name="keypress"> +<param name="keycode"><$ keycode $></param> +</request> +<response><$ cRemote::Put( (eKeys)keycode ) ? "1" : "0" $></response> +</service> diff --git a/pages/menu.ecpp b/pages/menu.ecpp index 8fc6b5e..dddc43c 100644 --- a/pages/menu.ecpp +++ b/pages/menu.ecpp @@ -7,5 +7,6 @@ <a href="whats_on_next.html"><$ tr("What's on next?") $></a><br/> <a href="schedule.html"><$ tr("Schedule") $></a><br /> <a href="timers.html"><$ tr("Timers") $></a><br /> - <a href="recordings.html"><$ tr("Recordings") $></a> - </div>
\ No newline at end of file + <a href="recordings.html"><$ tr("Recordings") $></a><br /> + <a href="remote.html"><$ tr("Remote Control") $></a> + </div> |