M. Liebmann
3c849a2649
CLuaInstance::createChannelIDfromUrl: Use format macro in snprintf
2015-10-31 08:50:27 +01:00
M. Liebmann
77a2b389bd
CLuaInstance: Add script function "createChannelIDfromUrl' to create...
...
...WebTV channel_id from a specified url
- Set Lua api version to 1.6
2015-10-28 13:54:14 +01:00
M. Liebmann
cf4beae892
src/gui/luainstance.cpp: Fix copy/paste error in commit e86306b
...
- Set Lua api version to 1.5
2015-09-19 16:53:15 +02:00
M. Liebmann
1e76cac3ba
CLuaInstance: Script function 'checkVersion' terminated an error...
...
...occurs immediately the script
Complement to commit 00dff2c598
- Set Lua api version to 1.4
2015-09-17 15:02:06 +02:00
M. Liebmann
e86306b8ec
CLuaInstance: Add error message for menu callback funktions
...
- Set Lua api version to 1.3
2015-09-17 12:12:27 +02:00
Thilo Graf
7a1fed715f
CLuaInstance: simplified error message handler
...
use DisplayErrorMessage() instead full call of ShowMsg.
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com >
2015-09-17 12:12:26 +02:00
M. Liebmann
39d10e03df
CLuaInstance: Add script function 'setActive' to enable or disable...
...
...individual menu items.
- Set Lua api version to 1.2
2015-09-14 17:47:09 +02:00
M. Liebmann
e0bfbfe9e3
CLuaInstance: Add return value to menu function "addItem"
...
Function returns an ID of each item handles
2015-09-14 17:47:09 +02:00
M. Liebmann
b56be92d59
CLuaInstance::PlayFile: Function now returns the status of buttons
...
- Set Lua api version to 1.1
return code defined LUA Variables
--------------------------------------------------
0 = normal exit PLAYSTATE.NORMAL
1 = aborted by stop button PLAYSTATE.STOP
2 = next button PLAYSTATE.NEXT
3 = prev button PLAYSTATE.PREV
2015-09-04 18:07:32 +02:00
M. Liebmann
00dff2c598
CLuaInstance: Add versions definition for lua api in luainstance.h
...
- Version is defined in lua script as APIVERSION.MAJOR, APIVERSION.MINOR
- Set Lua API version to 1.0
2015-09-04 18:07:31 +02:00
Jacek Jendrzej
644d96e42d
src/gui/luainstance.cpp add switch enableUTF8 to ComponentsText
2015-07-12 21:13:22 +02:00
Jacek Jendrzej
c325a3bbae
src/gui/luainstance.cpp add setCenterPos option to CC objects
2015-07-09 16:51:52 +02:00
svenhoefer
edc8527379
- framebuffer: revival of showFrame() function to allow ...
...
... pictures like start.jpg, mp3.jpg etc. from /var/tuxbox/icons
2015-05-05 12:01:04 +02:00
Jacek Jendrzej
cdae30fe5e
luainstance.cpp fix button color
2015-05-03 17:06:16 +02:00
Thilo Graf
2f96c2653b
CLuaInstance: implement current method for generation of button labels in footer object
...
This controls more effective fontsize and button arrangement.
Lua API is not touched.
TODO: add more possible buttons. Color buttons for sure are not
be enough for some applications.
2015-02-19 08:39:09 +01:00
Jacek Jendrzej
2b5e7b5ba3
use empty to check string
2015-01-09 17:15:11 +01:00
svenhoefer
d3e52fa9f6
- luainstance: switch to lua_Integer/lua_Unsigned
2014-11-26 10:23:21 +01:00
svenhoefer
d7b496062c
- luainstance: add CKeybordInput
...
Syntax:
m:addItem { \
type="keyboardinput", \
action="_action", \
id="_id", \
value="_value", \
name="_name", \
help="help (first line)",
help2="help (second line)"
}
2014-11-24 10:04:02 +01:00
M. Liebmann
02137ca987
CLuaMenuChangeObserver::changeNotify: Fix segfault in item type 'chooser'
2014-11-10 07:35:43 +01:00
Jacek Jendrzej
d5d6c4de62
fix some possible errors
2014-11-06 14:40:44 +01:00
martii
ffec667030
system/luaserver: Terminate Lua script when luaclient dies.
2014-10-14 10:27:37 +02:00
martii
b2b7cd8bb1
luaserver: reorganize
2014-10-14 10:27:37 +02:00
martii
5d25185684
lua: implement "luaclient".
...
This allows for starting Lua scripts in neutrino context from the
command line. Experimental, not fully regression-tested.
2014-10-14 10:27:37 +02:00
M. Liebmann
b2945b1a1a
luainstance: Fix default parameter for config file getXXX functions
...
- Revert commit 'Fix default parameter for config file setXXX functions'
2014-09-17 20:51:38 +02:00
M. Liebmann
57ffa12e6b
luainstance/cwindow: Add funktion setWindowColor
2014-09-17 20:51:32 +02:00
M. Liebmann
7c5ab40468
luainstance: Remove unnecessary hide()/kill() calls from xxxDelete functions
...
- functions:
CWindowDelete()
SignalBoxDelete()
ComponentsTextDelete()
CPictureDelete()
2014-09-17 20:51:23 +02:00
M. Liebmann
d923d991aa
CLuaInstance: Use native bool parameter instead of string for Lua script functions
2014-09-13 22:56:42 +02:00
M. Liebmann
86186e6443
CLuaInstance: Add member paramBoolDeprecated() for info...
...
...when Boolean parameters are passed as a string or number
2014-09-13 22:56:36 +02:00
M. Liebmann
fc0f5d780a
CLuaInstance: Add overloaded member tableLookup() for bool vars
2014-09-13 22:56:22 +02:00
M. Liebmann
c49ceac121
luainstance: Fix default parameter for config file setXXX functions
2014-09-12 20:00:02 +02:00
M. Liebmann
7398b43276
CLuaInstance::setBlank: Fix parameter
2014-09-12 19:59:31 +02:00
M. Liebmann
b74e80ee6f
CLuaInstance: Add CConfigFile functions
...
Functions: loadConfig(), saveConfig(), clear(), getString(),
setString(), getInt32(), setInt32(), getBool(), setBool()
2014-09-11 12:14:24 +02:00
M. Liebmann
457f974eed
CLuaInstance: Add missed library function _luaL_checkbool()
2014-09-11 12:14:24 +02:00
M. Liebmann
c511a44a2b
CLuaInstance: Add cVideo functions
...
- cVideo::SetBlank()
- cVideo::ShowPicture()
- cVideo::StopPicture()
2014-09-11 12:14:24 +02:00
M. Liebmann
dff6a6413d
CLuaInstance: Fix segfault when hide() in CPictureDelete()
2014-09-11 12:14:24 +02:00
M. Liebmann
263e023879
CLuaInstance: More global colors added
2014-09-11 12:14:24 +02:00
M. Liebmann
51fb2fb9e7
CLuaInstance: Add strFind() and strSub() functions
...
- These functions are possible substitutes for the
Lua functions string.find() and string.sub()
- This Lua functions have problems e.g. with the contents
of some websites.
2014-09-11 12:14:24 +02:00
M. Liebmann
b6f1963f2c
CLuaInstance: Add parameter info1/info2 to PlayFile()
...
- This parameter display in info viewer instead of epg data
2014-09-11 12:14:24 +02:00
M. Liebmann
2f0f27f466
CLuaInstance: Fix broken icon name in menu
2014-07-18 11:28:09 +04:00
[CST] Focus
cf91f2eccb
merge neutrino-mp menu/buttons/icons changes, (C) martii
2014-07-17 17:02:25 +04:00
M. Liebmann
a3c453c403
CLuaInstance: Add function checkMagicMask() for use the color constants
...
- Use checkMagicMask() for colors in CComponents-Lua functions
2014-07-16 23:45:23 +02:00
M. Liebmann
0714c7f5ed
CLuainstance: Use lua_Unsigned for color definitions
...
- Add additional tableLookup() for get lua_Unsigned
- Change tableLookup() for int to lua_Integer
2014-07-16 23:45:23 +02:00
M. Liebmann
b8ed776a76
CLuainstance/cwindow.new: Add parameter for show or hide header/footer
...
- default (parameter missing) is true (show)
2014-07-16 23:45:23 +02:00
M. Liebmann
09a39546c2
CLuaInstance::MenuAddItem: Add separator typ 'subhead'
2014-07-12 22:12:28 +02:00
M. Liebmann
e991507888
CLuaInstance::CPictureNew: Add parameter 'transparent' for cpicture.new
...
- Default is CFrameBuffer::TM_NONE (No 'pseudo' transparency)
2014-07-10 16:38:09 +02:00
M. Liebmann
176d97969e
CLuaInstance::SignalBoxNew: Add 'parent' parameter...
...
...for the integration of signalbox in a parent cwindow
2014-07-04 02:13:38 +02:00
Thilo Graf
5eb63b9515
CComponentsPicture: structure of class highly simplified
...
It should be now easier to use images as objects. An initialized
picture object should provide all relevant properties and some
functionalities of picture viewer.
2014-06-23 18:43:47 +02:00
[CST] Focus
943850eefc
gui/luainstance.cpp: add function to start file/url play
2014-06-12 18:58:16 +04:00
svenhoefer
649d1b1f9d
- change RenderString() default to UTF8
2014-06-11 23:07:13 +02:00
svenhoefer
8b91cda918
- change getRenderWidth() default to UTF8
2014-06-11 23:07:00 +02:00