M. Liebmann
f12e49e720
CLuaInstance: Precise error message for obsolete hide() parameter
...
- Supplement for commit 75631a97f1
2016-01-01 14:43:59 +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
Stefan Seyfried
e85f64d733
luainstance: fix build with newer GCC
...
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com >
2015-12-31 11:44:04 +01:00
M. Liebmann
75631a97f1
CLuaInstance: Display warning when using a obsolete parameter...
...
...in cwindow/ctext/cpicture:hide()
2015-12-28 16:24:24 +01:00
Thilo Graf
7b28c80b74
lua instances: adopt for last rebases with splitted lua source files
...
TODO: check/fix lua functionality, not tested yet
2015-12-27 14:42:28 +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
6b99596c37
CLuaInstance: Fix commit 9e331ee4e3
2015-12-25 03:54:38 +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
6b6dff36d6
CLuaInstCurl: Fix compiler warning
2015-12-22 13:14:18 +01:00
M. Liebmann
6f939800b6
CLuaInstance: Add multiple script functions for mute icon & volume
...
- Functions: enableMuteIcon, isMuted, AudioMute, setVolume, getVolume
- This allows to save volume/mute status at plugin start
and restore it on exit.
- Set Lua api version to 1.35
2015-12-22 12:00:24 +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
c5bcbf490c
CLuaInstCurl::CurlDownload: Rework progress display
...
- Set Lua api version to 1.31
2015-12-15 00:34:13 +01:00
M. Liebmann
e3fdcaec99
CLuaInstCCText::CCTextScroll: Add Parameter 'pages'
...
- By pages parameter the number of pages can be specified
to be scrolled
- Set Lua api version to 1.30
Example:
ct = ctext.new{...}
...
ct:scroll{dir="down", pages=2};
2015-12-14 22:34:53 +01:00
M. Liebmann
ed26f2ea05
CLuaInstVideo: Add setSinglePlay()
...
- When setSinglePlay() Neutrino returns after playing a movie
immediately in the tv/radio modus back
- Set Lua api version to 1.29
Example:
video = video.new()
video.setSinglePlay()
video.PlayFile(...)
2015-12-14 22:34:53 +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
30ebe003f4
CLuaInstConfigFile: Add parameters & functions
...
- LuaConfigFileNew: Add parameter delimiter & saveDefaults
- Add 'deleteKey' function
- Set Lua api version to 1.27
2015-12-14 05:15:38 +01:00
M. Liebmann
5a7de075a2
lua_misc.cpp: Fix compiler error 'overflow in implicit constant conversion'
...
- Set Lua api version to 1.26
2015-12-13 23:36:52 +01:00
M. Liebmann
5259e80b1c
CLuaMenuFilebrowser::exec: Fix value handling when dirMode = false
...
- Add luaId to action function as parameter
- Set Lua api version to 1.25
2015-12-13 23:36:52 +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
M. Liebmann
b904febf6a
CLuaInstance: Move msg box functions in separate classes / files
...
- hintbox
- messagebox
- No api changes, code only
2015-12-12 10:42:28 +01:00
M. Liebmann
ad17505888
CLuaInstance: Move ccomponents functions in separate classes / files
...
- cwindow (CComponentsWindow)
- ctext (CComponentsText)
- cpicture (CComponentsPicture)
- signalbox (CSignalBox)
- No api changes, code only
2015-12-12 10:42:28 +01:00
M. Liebmann
e34d1c314f
CLuaInstance: Move menue functions in separate classes / files
...
- No api changes, code only
2015-12-12 10:42:28 +01:00
M. Liebmann
aff947af92
CLuaInstance: Move video functions in separate class
...
- No api changes, code only
2015-12-12 10:42:28 +01:00
M. Liebmann
f52ba5ba4a
CLuaInstance: Move configfile functions in separate classes / files
...
- No api changes, code only
2015-12-12 10:42:28 +01:00
M. Liebmann
1238b0c677
CLuaInstance: Move types, definitions & functions from
...
luainstance.cpp/.h to luainstance_helpers.cpp/.h
- No api changes, code only
2015-12-12 10:42:28 +01:00
M. Liebmann
d06594dd60
CLuaInstance::GetRevision: Add second return value as a string...
...
...for hardware identification
- Set Lua api version to 1.22
2015-12-08 12:01:25 +01:00
M. Liebmann
b9afbb1e2c
CLuaInstance: Add script function 'channelRezap'
...
- Alternative rezap method for movie plugins
- Set Lua api version to 1.21
2015-12-08 12:01:25 +01:00
M. Liebmann
0a008ab308
CLuaInstance: Add script function zapitStopPlayBack
...
- For safe running ShowPicture() in the plugin
- Set Lua api version to 1.19
2015-12-08 12:01:25 +01:00
M. Liebmann
ffea6559c9
CLuaInstance: The first call to Lua::PlayFile() block restoreNeutrino
...
- Running restoreNeutrino when exiting the plugin and
function is blocked
- Set Lua api version to 1.18
2015-12-08 12:01:25 +01:00
M. Liebmann
464f929437
CLuaInstance: Move luainstance into a separate directory (src/gui/lua)
...
- Move video functions from luainstance.cpp to lua_video.cpp
- For the future, provided the individual classes
(eg menu, CComponents etc.) to move in separate files.
2015-12-08 12:01:25 +01:00