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
svenhoefer
da7f3b9cb1
- drop obsolete code around FONT_TYPE_GAMELIST
...
these fonts are not needed since gamelist/scriptlist
are painted with menu-widget
2014-05-02 22:28:36 +02:00
Stefan Seyfried
caa5d5c327
luainstance: fix wrong integer type usage
2014-05-02 09:47:43 +02:00
[CST] Focus
c78676f7fd
fix warnings if some want to use c++11
2014-04-21 14:07:38 +04:00
M. Liebmann
b80e7480a2
CLuaInstance::runScript: Set script parameter 0 to 'script name'...
...
...for compatibility with standalone lua scripts
2014-03-19 16:03:38 +01:00
M. Liebmann
0a957abf31
CLuaInstance: Add runScript() function for using in Lua script
...
- Script runs in a new instance in neutrino context
Example:
local n = neutrino()
n:runScript(filename [, args, ...])
2014-03-19 10:14:43 +01:00
M. Liebmann
b61a225d2b
CLuaInstance: Optional specification of parameters for runScript()
...
- Add parameters as std::vector and possibility of return of
status and error messages. (THX Martii)
Example:
void runScript(const char *fileName, std::vector<std::string> *argv,
std::string *result_code, std::string *result_string,
std::string *error_string);
- Add Parameters as const char*, last parameter to NULL is imperative.
Example:
void runScript(const char *fileName, const char *arg0, const char *arg1, ..., NULL);
2014-03-19 10:14:43 +01:00
M. Liebmann
2dbdb8798e
CLuaInstance: Replace cwindow header_height & footer_height
...
- Replace with headerHeight & footerHeight
- Set header_height & footer_height to deprecated
2014-03-16 12:33:26 +01:00
M. Liebmann
1e78781d18
CLuaInstance: Add various CComponentsPicture functions
...
- Added: new, paint, hide, setpicture
2014-03-16 12:33:26 +01:00
M. Liebmann
a501f4e10e
CLuaInstance: Add setCaption & paintHeader function to cwindow
2014-03-16 12:33:26 +01:00
M. Liebmann
5136563035
CLuaInstance: Add function 'functionDeprecated()' for debug output...
...
...when a script function is deprecated.
2014-03-16 12:33:26 +01:00
M. Liebmann
4df0449e39
CLuaInstance: Add setText function to ctext
2014-03-16 12:33:26 +01:00
M. Liebmann
81608cbd3f
CLuaInstance::ComponentsTextNew: Add 'parent' parameter...
...
...for the integration of ctext in a parent cwindow
2014-03-16 12:33:26 +01:00
M. Liebmann
f4c70c96a5
CLuaInstance: Add additional tableLookup for get userdata
2014-03-16 12:33:26 +01:00
M. Liebmann
623efecc2f
CLuaInstance: Add debug output to CWindowDelete/ComponentsTextDelete
2014-03-16 12:33:26 +01:00
Thilo Graf
23d7b62cf0
CComponents: add new parameter 'parent'
...
Use strictly CComponentsForm as parent parameter in constructors.
Some parts have been cleaned up (Constructors, init methodes removed)
New parameter makes it possible already add current item in constructor.
So in mostly situations is it not necessary to use explicit addCCItem(),
but addCCItem()is still valid and necessary in certain situations.
Affected are all cc-classes and their derivates.
Some classes must or can be adapted later. The function is
not currently restricted, because usage of parent parameter is not explicit
defined in constructors, see CImageInfo, here yet are used addCCItem()
methodes.
Generally this parameter is located in the constructors before bool has_shadow,
but it is not sure whether it would be better to use this parameter as the first.
That remains to be clarified.
2014-03-03 09:43:39 +01:00