Commit Graph

93 Commits

Author SHA1 Message Date
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
M. Liebmann
3fa31ef441 CLuaInstance: Add footer_height function 2014-03-02 12:58:41 +01:00
M. Liebmann
8d1e6b1e00 CLuaInstance: Add has_shadow and window colors to cwindow.new 2014-02-27 22:52:02 +01:00
M. Liebmann
a250436d29 CLuaInstance: Add DECODE_HTML flag to ctext.new for decode html string
- Use function htmlEntityDecode()
2014-02-26 10:11:40 +01:00
M. Liebmann
9184ac6266 CLuaInstance: Rename componentstext to ctext
- Better readability and consistent designation
- Still not a problem since API not yet public
2014-02-23 21:34:07 +01:00
M. Liebmann
a3d9bff44e CLuaInstance: Add various CComponentsWindow fuctions
- Added: color buttons for footer, header_height
2014-02-21 00:02:47 +01:00
M. Liebmann
cc7e1136ec CLuaInstance: Add various CComponentsText fuctions
- Added: new, paint, hide, scroll
2014-02-21 00:02:47 +01:00
M. Liebmann
6475e77a84 CLuaInstance: Add function getRenderWidth() 2014-02-21 00:02:47 +01:00
M. Liebmann
3f0400a23e Fix compiler warnings (-Wfloat-equal) 2014-02-21 00:02:47 +01:00
M. Liebmann
6dada97564 CLuaInstance::MenuAddItem: Fix neutrino segfault at (type == "chooser")
when options in lua script broken
2014-02-04 15:47:23 +01:00
M. Liebmann
7d88327dbc CLuaInstance::MessageboxExec: Fix align 2014-02-04 15:47:23 +01:00
M. Liebmann
da2738cd9e CLuaMenuForwarder: Fix error msg 2014-01-28 12:59:17 +01:00
svenhoefer
6a821fe2a5 - CLuaInstance::MenuAddItem: add 'next' and 'cancel' items 2014-01-27 21:10:41 +01:00
svenhoefer
73446dbc52 - CLuaInstance::MenuAddItem: separation of "separator" and "separatorline" 2014-01-27 11:47:40 +01:00