Commit Graph

61 Commits

Author SHA1 Message Date
BPanther
18b2c81295 keys play and playpause added for lua 2021-02-09 12:20:40 +01:00
Thilo Graf
626305cc29 lua: Complete list of available fonts 2020-09-30 19:41:40 +02:00
Markus Volk
11ae2fa699 neutrino: add luajit
Luajit is a dynamic scripting language completely compatible to lua 5.1. the whole VM has been rewritten from the ground up
and is relentlessly optimized for performance. It combines a high-speed interpreter, written in assembler, with a state-of-the-art JIT compiler.
A substantial reduction of the overhead associated with dynamic languages allows it to break into the performance range traditionally reserved for offline,
static language compilers.

https://luajit.org/luajit.html
https://github.com/LuaJIT/LuaJIT/tree/master

There was additional code needed to enable neutrino to compile against lua 5.1. This was mostly taken from the luaposix compat-headers.
There are still some minor issue that will be easy to fix but it's up and running so damn fast!

Signed-off-by: Markus Volk <f_l_k@t-online.de>
2020-09-17 16:03:24 +02:00
Jacek Jendrzej
6704e0de9f luainstance.cpp: init var 2020-01-21 15:22:05 +01:00
Jacek Jendrzej
de699f2a2f lua: disable block from luavideo 2019-06-07 19:01:49 +02:00
Thilo Graf
289e167462 themes: move rounded corners to theme section 2019-02-11 11:14:12 +01:00
svenhoefer
00e159b5fa - simplify more includes of compatibility headers
Signed-off-by: Thilo Graf <dbt@novatux.de>
2018-12-31 11:47:45 +01:00
FlatTV
1652faecff OSD Menu: Add progressbar color
Signed-off-by: Thilo Graf <dbt@novatux.de>

- themes/Makefile.am unchanged, build was broken
- whitespace errors fixed
- unnecessary comments removed
- bump lua api version, was missed
2018-04-11 15:58:20 +02:00
svenhoefer
0fc3e793a4 - neutrino: unify modes handling; ...
remove double enum from CNeutrinoApp and move mostly used enum from NeutrinoMessages to new NeutrinoModes

Signed-off-by: Thilo Graf <dbt@novatux.de>
2017-11-22 15:42:09 +01:00
svenhoefer
3fd544737a - add webradio; first steps
Conflicts:
	data/Makefile.am
	data/scripts/backup.sh
	src/neutrino.cpp
	src/zapit/include/zapit/zapit.h

Signed-off-by: Thilo Graf <dbt@novatux.de>
2017-11-16 19:43:26 +01:00
vanhofen
6fe5d269af - add hd51; mostly ported from TangoCash's neutrino-mp 2017-10-29 18:31:30 +01:00
svenhoefer
3669130b14 - luainstance: add missing COL_SCROLLBAR colors 2017-04-22 17:02:48 +02:00
Thilo Graf
83cfd68f88 Lua: try to implement progresswindow 2017-03-31 10:12:35 +02:00
Thilo Graf
a788eee298 LUA-Api: add alignment parameter for text in window header
Possible modes are :
	* "DEFAULT" (left)
	* "CENTER"
	* "RIGHT"

TODO: doc
2017-03-31 10:12:35 +02:00
svenhoefer
75ff8687dd - luainstance: re-add typo TO_WIDE to stay backward compatible 2017-03-03 08:57:42 +01:00
svenhoefer
6afe247bc3 - luainstance: add missing RADIUS_NONE; fix typo in dynfont handling 2017-03-03 08:55:35 +01:00
svenhoefer
6eb1bb1ea4 - luainstance: add offsets to lua; set Lua api version to 1.70 2017-03-02 23:00:49 +01:00
M. Liebmann
6166f4a6f4 CLuaInstance: Add script fumction 'scale2Res'
- Set Lua api version to 1.69
2017-02-27 00:24:34 +01:00
Stefan Seyfried
2303d94300 replace fontrenderer.h include with forward declaration
in order to flatten the build dependency tree further, include
fontrenderer.h directly where needed, in header files a forward
declaration is enough
2017-02-07 17:23:42 +01:00
Thilo Graf
e19536fe99 Includes: remove unused includes 2016-10-26 10:25:07 +02:00
svenhoefer
104d21e784 - rename customcolor.h -> color_custom.h; reduce unneeded inludes 2016-10-10 14:19:55 +02:00
vanhofen
be40e67b70 - colors: add COL_PROGRESSBAR wrapper 2016-10-10 14:19:55 +02:00
vanhofen
6629b64d6c - colors: add COL_SCROLLBAR_PASSIVE wrapper 2016-10-10 14:19:54 +02:00
vanhofen
7e7d4e5fc1 - colors: add COL_SCROLLBAR_ACTIVE wrapper 2016-10-10 14:19:54 +02:00
svenhoefer
75fe6e407d - colors: add COL_FRAME wrapper 2016-10-10 14:19:54 +02:00
svenhoefer
84dfce8018 - lua: add RC_timeout to keyname table; set lua api version to 1.57 2016-09-06 01:11:16 +02:00
svenhoefer
0fa4486077 - lua: add stand-alone stringinput; set lua api version to 1.56 2016-09-05 23:49:37 +02:00
M. Liebmann
295ca1f7c9 src/gui/lua: Add lua_filehelpers.cpp 2016-09-05 23:46:01 +02:00
svenhoefer
a9446a084a - luainstance: add missing entry for shadow color 2016-08-15 00:32:57 +02:00
svenhoefer
cc5258e6d5 - colors: make footer background color configurable
TODO: footer text color and maybe footer font
2016-08-15 00:14:47 +02:00
svenhoefer
bc39d1e14e - colors: some internal renamings
* INFOBAR_SHADOW to SHADOW because it's not only used in infoviewer
* INFOBAR_SHADOW_TEXT to MENUFOOT_TEXT because it's the proper name

This is in preparation to make footer colors configurable
2016-08-14 21:55:18 +02:00
Jacek Jendrzej
c9e8a57418 check if string msg is not NULL, fix segfault 2016-05-19 15:22:15 +02:00
M. Liebmann
10f17ad5ee CLuaInstance: Fix compiler warnings 2016-04-24 19:37:17 +02:00
Jacek Jendrzej
8638cd73b7 some compil warning fixes 2016-04-22 16:46:21 +02:00
M. Liebmann
8a61c3bfcd CLuaInstance: Add some CComponentsHeader functions
- Set Lua api version to 1.38
2016-01-21 17:42:07 +01:00
M. Liebmann
a7790ce049 CLuaInstance: Fix commit e85f64d733
- Use return value from checkMagicMask() for color
2016-01-01 14:43:59 +01:00
Stefan Seyfried
b346b7077f luainstance: narrow scope of video_cs header 2015-12-31 11:44:04 +01:00
Stefan Seyfried
59f91b190c avoid continuous rebuilds from LUA_API* changes
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>
2015-12-31 11:44:04 +01:00
Stefan Seyfried
85b03349e9 luainstance: remove unneeded hardware dependencies 2015-12-31 11:44:04 +01:00
Stefan Seyfried
b62da2624e luainstance: fix types to allow compilation with newer gcc 2015-12-31 11:44:04 +01:00
M. Liebmann
31f2f1275a CLuaInstance: Fixes occasional problems when exiting the movie player
Reduces debug output in curl
2015-12-25 07:51:09 +01:00
M. Liebmann
9e331ee4e3 CLuaInstance: Fix and unified script function calls
- No api changes, code only
2015-12-23 08:29:15 +01:00
M. Liebmann
ee73678d8f CLuaInstance: Add linux pthread support
- code ported from lua-llthreads2
   (https://github.com/moteus/lua-llthreads2)
 - code in neutrino integrated for use of lua neutrino api in threads
 - add thread::cancel() function

 - Set Lua api version to 1.34
2015-12-22 12:00:24 +01:00
M. Liebmann
37e8c328c5 CLuaInstMisc:: Add script function postMsg() to send a neutrino message
- Currently possible message: POSTMSG.STANDBY_ON
 - Set Lua api version to 1.33
2015-12-15 22:21:42 +01:00
M. Liebmann
e4de37f1bb CMoviePlayerGui: Send PLUGIN_PLAYSTATE_LEAVE_ALL to plugin...
...when tv/radio button are pressed on remote control

 - Set Lua api version to 1.32
2015-12-15 11:45:48 +01:00
M. Liebmann
473af7b2ea CLuaInstVideo: Add getNeutrinoMode()
- Set Lua api version to 1.28

Example:
	video = video.new()
	if video.getNeutrinoMode() == NMODE.TS then
		messagebox.exec{title="Attention!", text="Movie player is busy.", buttons={ "ok" } }
	end
2015-12-14 22:34:53 +01:00
M. Liebmann
4f9158c2a9 CLuaInstance: Add class for using libcurl
- Add simple download function
 - Set Lua api version to 1.24

	parameter	typ		default
	----------------------------------------
	url		string		required
	o, outputfile	string		when empty then save to string
					as secund return value
	A, userAgent	string		empty
	v, verbose	bool		false
	s, silent	bool		false
	connectTimeout	number		20
	ipv4		bool		false
	ipv6		bool		false
	useProxy	bool		true (default)
	followRedir	bool		true
	maxRedirs	number		20

Example:
	-- simplest program call:
	-- ----------------------
	local curl = curl.new()
	local ret, data = curl:download{url="http://example.com", o="/tmp/test.txt"}
	if ret ~= CURL.OK then
		print("Error: " .. data)
	end

	-- or --

	local curl = curl.new()
	local ret, data = curl:download{url="http://example.com"}
	if ret == CURL.OK then
		-- downloaded data
		print(data)
		..
	else
		print("Error: " .. data)
	end
2015-12-13 23:36:52 +01:00
M. Liebmann
83176835e3 CLuaInstance: Use CLuaVideo for video, CLuaMisc for misc functions
- The old version of the video and misc functions is deprecated
   but still valid
2015-12-12 10:42:28 +01:00
M. Liebmann
d45a98c363 CLuaInstance: Code cleaning luainstance.cpp/.h
- No api changes, code only
2015-12-12 10:42:28 +01:00
M. Liebmann
5e6ad91efe CLuaInstance: Move misc functions in separate classes / files
- No api changes, code only
2015-12-12 10:42:28 +01:00