Commit Graph

42 Commits

Author SHA1 Message Date
Stefan Seyfried
c34087a3b5 luainstance: fix -Wnarrowing compiler warnings on 32bit platforms
Origin commit data
------------------
Commit: 1ab77083ba
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2014-01-23 (Thu, 23 Jan 2014)
2014-01-23 19:28:39 +01:00
Stefan Seyfried
2a83c16c65 luainstance: make the type of table_key.code explicitly clear
Origin commit data
------------------
Commit: 2cd5aa4b1f
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2014-01-23 (Thu, 23 Jan 2014)
2014-01-23 17:17:42 +01:00
Stefan Seyfried
c0b3b45caf luainstance: do not export machine specific stuff
It's an exported API, so it should be somewhat useful/stable,
not change for every machine...


Origin commit data
------------------
Commit: 116065f7ac
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2014-01-23 (Thu, 23 Jan 2014)
2014-01-23 17:17:25 +01:00
Stefan Seyfried
6a64fa20ec Revert "CLuaInstance: Fix compiler warnings"
This reverts commit 5afb1db6da.

This is wrong in so many aspects... just look up the definition
of lua_integer...


Origin commit data
------------------
Commit: 4da2a33b29
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2014-01-23 (Thu, 23 Jan 2014)
2014-01-23 17:16:56 +01:00
Michael Liebmann
f047069aba CLuaInstance: Fix bool parameter in CWindow/SignalBox => paint()/hide()
Origin commit data
------------------
Commit: 71e5f964ab
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-01-22 (Wed, 22 Jan 2014)
2014-01-23 10:48:07 +01:00
vanhofen
8d5aa84e20 adapt ShowMsg handling from martii's neutrino-mp
Origin commit data
------------------
Commit: 53f5801d6f
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-01-22 (Wed, 22 Jan 2014)

Origin message was:
------------------
- adapt ShowMsg handling from martii's neutrino-mp
2014-01-22 12:37:21 +01:00
Michael Liebmann
5afb1db6da CLuaInstance: Fix compiler warnings
Origin commit data
------------------
Commit: 87031add94
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-01-21 (Tue, 21 Jan 2014)
2014-01-21 22:35:49 +01:00
Michael Liebmann
dc9701c87e CLuaInstance: Add parameter 'vertical' to CLuaSignalBox
Origin commit data
------------------
Commit: 1f7e8b41d7
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-01-21 (Tue, 21 Jan 2014)
2014-01-21 18:09:46 +01:00
Michael Liebmann
04ac36e08d CLuaInstance: fix format strings
Origin commit data
------------------
Commit: 9a346f8d25
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-01-21 (Tue, 21 Jan 2014)
2014-01-21 18:09:46 +01:00
Michael Liebmann
1428775371 CLuaInstance: Multiple functions made from CComponents in CLuaInstance available
- CComponentsWindow: new(), paint(), hide()
- CSignalBox: new(), paint()


Origin commit data
------------------
Commit: ad206dbbc1
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-01-20 (Mon, 20 Jan 2014)
2014-01-20 21:35:39 +01:00
Michael Liebmann
65d8a1cb51 Adaptation of CLuaInstance
Origin commit data
------------------
Commit: ab00bb11b2
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-01-19 (Sun, 19 Jan 2014)
2014-01-19 20:57:40 +01:00
martii
5e1e1d1974 gui/luainstance: recognize menu hints
Origin commit data
------------------
Commit: b59141d1f5
Author: martii <m4rtii@gmx.de>
Date: 2013-12-11 (Wed, 11 Dec 2013)
2014-01-19 20:57:39 +01:00
martii
769f5b8e74 gui/luainstance: rename menue => menu
Origin commit data
------------------
Commit: 60dbf9194e
Author: martii <m4rtii@gmx.de>
Date: 2013-12-11 (Wed, 11 Dec 2013)
2014-01-19 20:57:39 +01:00
martii
c7a0128d92 lua: pictureviewer support
Origin commit data
------------------
Commit: 007d700d53
Author: martii <m4rtii@gmx.de>
Date: 2013-05-17 (Fri, 17 May 2013)
2014-01-19 20:57:39 +01:00
martii
a7c995b2ac lua menues: add directkey forwarder
Origin commit data
------------------
Commit: 1bdd23676a
Author: martii <m4rtii@gmx.de>
Date: 2013-05-11 (Sat, 11 May 2013)
2014-01-19 20:57:39 +01:00
martii
b877542e91 lua: update menue callback api to include an id parameter
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>


Origin commit data
------------------
Commit: d2e5a703c3
Author: martii <m4rtii@gmx.de>
Date: 2013-05-10 (Fri, 10 May 2013)
2014-01-19 20:57:39 +01:00
martii
16a2595488 lua: msgbox fix
Origin commit data
------------------
Commit: 82be6f8e66
Author: martii <m4rtii@gmx.de>
Date: 2013-05-08 (Wed, 08 May 2013)
2014-01-19 20:57:39 +01:00
martii
741f1a5aab lua: msgbox fix
Origin commit data
------------------
Commit: 7b9adbe65b
Author: martii <m4rtii@gmx.de>
Date: 2013-05-08 (Wed, 08 May 2013)
2014-01-19 20:57:39 +01:00
martii
277529681f lua related fixes
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>


Origin commit data
------------------
Commit: c6912180ee
Author: martii <m4rtii@gmx.de>
Date: 2013-05-08 (Wed, 08 May 2013)
2014-01-19 20:57:39 +01:00
martii
f6796023ba lua: remove debugging output
Origin commit data
------------------
Commit: a568f3004e
Author: martii <m4rtii@gmx.de>
Date: 2013-05-07 (Tue, 07 May 2013)
2014-01-19 20:57:39 +01:00
martii
2768748738 LUA fixes
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>


Origin commit data
------------------
Commit: df1ec23980
Author: martii <m4rtii@gmx.de>
Date: 2013-05-07 (Tue, 07 May 2013)
2014-01-19 20:57:38 +01:00
martii
a094c5ee30 LUA: change stringinput valid chars
Origin commit data
------------------
Commit: 920e475526
Author: martii <m4rtii@gmx.de>
Date: 2013-05-06 (Mon, 06 May 2013)
2014-01-19 20:57:38 +01:00
martii
3848695e25 LUA: messagebox support
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>


Origin commit data
------------------
Commit: 098c205b57
Author: martii <m4rtii@gmx.de>
Date: 2013-05-05 (Sun, 05 May 2013)
2014-01-19 20:57:38 +01:00
martii
250cee1a8b LUA: add hintbox; bugfixes
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>


Origin commit data
------------------
Commit: 0b38475439
Author: martii <m4rtii@gmx.de>
Date: 2013-05-05 (Sun, 05 May 2013)
2014-01-19 20:57:38 +01:00
martii
1753676aaa LUA: experimental support for native neutrino menues
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>


Origin commit data
------------------
Commit: 2a41749eb5
Author: martii <m4rtii@gmx.de>
Date: 2013-05-04 (Sat, 04 May 2013)
2014-01-19 20:57:38 +01:00
martii
34767acee2 luainstance: support new text coloring scheme
Signed-off-by: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>


Origin commit data
------------------
Commit: c0a720bd8b
Author: martii <m4rtii@gmx.de>
Date: 2013-08-29 (Thu, 29 Aug 2013)
2014-01-19 20:57:37 +01:00
Christian Ege
e82d193d8e handling of luaposix for dynamic environment
Origin commit data
------------------
Commit: 53ed75f66d
Author: Christian Ege <k4230r6@googlemail.com>
Date: 2013-04-28 (Sun, 28 Apr 2013)
2014-01-19 20:57:37 +01:00
Stefan Seyfried
cc1187a264 luainstance: return render width from RenderString
Return the string's renderwidth from RenderString. If boxh is < 0
then the string is not rendered and only the width is determined.


Origin commit data
------------------
Commit: a61dbcee0b
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-07 (Sun, 07 Apr 2013)
2014-01-19 20:57:37 +01:00
Stefan Seyfried
e3aa6f0c44 luainstance: remove utf8 parameter from RenderString, add center
Everybody should always be using utf8 anyway, so remove the "utf8"
parameter from RenderString and replace it with a "center" parameter
which centers the string horizontally in its box.

new usage:
 RenderString(font, text, x, y, color, boxwidth, boxheight, center)
defaults:
 color = COL_MENUCONTENT, boxwidth = window's width minus x
 boxheight = 0, center = 0


Origin commit data
------------------
Commit: 7c7c7e55a4
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-07 (Sun, 07 Apr 2013)

Origin message was:
------------------
luainstance: remove utf8 parameter from RenderString, add center

Everybody should always be using utf8 anyway, so remove the "utf8"
parameter from RenderString and replace it with a "center" parameter
which centers the string horizontally in its box.

new usage:
  RenderString(font, text, x, y, color, boxwidth, boxheight, center)
defaults:
  color = COL_MENUCONTENT, boxwidth = window's width minus x
  boxheight = 0, center = 0
2014-01-19 20:57:36 +01:00
Stefan Seyfried
833efaac25 luainstance: export customcolor.h colors, too
Origin commit data
------------------
Commit: 3f57d7c528
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-07 (Sun, 07 Apr 2013)
2014-01-19 20:57:36 +01:00
Stefan Seyfried
c69842f9d8 luainstance: work around a signed/unsigned problem on ppc
Origin commit data
------------------
Commit: 8af79e1152
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-06 (Sat, 06 Apr 2013)
2014-01-19 20:57:36 +01:00
Stefan Seyfried
9b41d86736 luainstance: allow any color for PaintBox, disable debug
Origin commit data
------------------
Commit: ef512f897a
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-06 (Sat, 06 Apr 2013)
2014-01-19 20:57:36 +01:00
Stefan Seyfried
e83c351578 luainstance: allow rounded corners in PaintBox
Origin commit data
------------------
Commit: a73dfbb2c5
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-24 (Sun, 24 Mar 2013)
2014-01-19 20:57:36 +01:00
Stefan Seyfried
7f99decca8 luainstance: dynamic values are not static
Origin commit data
------------------
Commit: 56db064368
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-24 (Sun, 24 Mar 2013)
2014-01-19 20:57:36 +01:00
Stefan Seyfried
53c1d781ed luainstance: export FontHeight to Lua scripts
Origin commit data
------------------
Commit: f7fc13becd
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-22 (Fri, 22 Mar 2013)
2014-01-19 20:57:36 +01:00
Stefan Seyfried
64c180d870 luainstance: also export RCInput constants
Origin commit data
------------------
Commit: f43585cbe3
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-22 (Fri, 22 Mar 2013)
2014-01-19 20:57:36 +01:00
Stefan Seyfried
1b82561336 luainstance: export variables as tables
This exports arrays FONT_TYPE_foo as FONT['foo'], COL_bar als COL['bar']
and SCREEN_OFF_a as SCREEN['OFF_a'] instead of lots of single variables.

Later these could also be made dynamic if the need arises.


Origin commit data
------------------
Commit: fee8c10f42
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-22 (Fri, 22 Mar 2013)
2014-01-19 20:57:36 +01:00
Stefan Seyfried
0de1b12b5d luainstance: show errors from loadfile()
Origin commit data
------------------
Commit: 9bdc0309a7
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-22 (Fri, 22 Mar 2013)
2014-01-19 20:57:36 +01:00
Stefan Seyfried
7e28b9762e luainstance: add minimal error reporting
Origin commit data
------------------
Commit: 8dfa4c9bf8
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-19 (Tue, 19 Mar 2013)
2014-01-19 20:57:35 +01:00
Stefan Seyfried
77fcde0e75 luainstance: add simple GetInput() method
use like this in the lua script:
--
RC_home = 174
local n = neutrino()
repeat msg, data = m:GetInput(1000) until msg == RC_home


Origin commit data
------------------
Commit: eefd75537e
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-18 (Mon, 18 Mar 2013)
2014-01-19 20:57:35 +01:00
Stefan Seyfried
483fe277f6 luainstance: the name is "Lua", not "LUA"
Origin commit data
------------------
Commit: 4d7e07f81f
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-18 (Mon, 18 Mar 2013)
2014-01-19 20:57:35 +01:00
Stefan Seyfried
b02792fe65 neutrino: add a prototype of a lua plugin interface
this is just for preliminary tests, not yet really usable
for anything useful


Origin commit data
------------------
Commit: f26357e887
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-17 (Sun, 17 Mar 2013)
2014-01-19 20:57:35 +01:00