Commit Graph

119 Commits

Author SHA1 Message Date
Michael Liebmann
d2b7f6fd64 src/gui/luainstance.cpp: Fix copy/paste error in commit aa7f5e6
- Set Lua api version to 1.5


Origin commit data
------------------
Commit: cf4beae892
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-09-19 (Sat, 19 Sep 2015)
2015-09-19 16:53:15 +02:00
Michael Liebmann
732e2b61bc CLuaInstance: Script function 'checkVersion' terminated an error...
...occurs immediately the script

Complement to commit 9c72e8fdc1

- Set Lua api version to 1.4


Origin commit data
------------------
Commit: 1e76cac3ba
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-09-17 (Thu, 17 Sep 2015)
2015-09-17 15:02:06 +02:00
Michael Liebmann
aa7f5e672e CLuaInstance: Add error message for menu callback funktions
- Set Lua api version to 1.3


Origin commit data
------------------
Commit: e86306b8ec
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-09-17 (Thu, 17 Sep 2015)
2015-09-17 12:12:27 +02:00
Thilo Graf
8c226dc8b8 CLuaInstance: simplified error message handler
use DisplayErrorMessage() instead full call of ShowMsg.

Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>


Origin commit data
------------------
Commit: 7a1fed715f
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-09-17 (Thu, 17 Sep 2015)

Origin message was:
------------------
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
Michael Liebmann
cc5ac2899a CLuaInstance: Add script function 'setActive' to enable or disable...
...individual menu items.

 - Set Lua api version to 1.2


Origin commit data
------------------
Commit: 39d10e03df
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-09-14 (Mon, 14 Sep 2015)
2015-09-14 17:47:09 +02:00
Michael Liebmann
a3aeda348a CLuaInstance: Add return value to menu function "addItem"
Function returns an ID of each item handles


Origin commit data
------------------
Commit: e0bfbfe9e3
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-09-14 (Mon, 14 Sep 2015)
2015-09-14 17:47:09 +02:00
Michael Liebmann
98b8c0218a 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


Origin commit data
------------------
Commit: b56be92d59
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-09-04 (Fri, 04 Sep 2015)

Origin message was:
------------------
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
Michael Liebmann
9c72e8fdc1 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


Origin commit data
------------------
Commit: 00dff2c598
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-09-04 (Fri, 04 Sep 2015)
2015-09-04 18:07:31 +02:00
Jacek Jendrzej
f43a282a56 src/gui/luainstance.cpp add switch enableUTF8 to ComponentsText
Origin commit data
------------------
Commit: 644d96e42d
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-07-12 (Sun, 12 Jul 2015)
2015-07-12 21:13:22 +02:00
Jacek Jendrzej
845290f007 src/gui/luainstance.cpp add setCenterPos option to CC objects
Origin commit data
------------------
Commit: c325a3bbae
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-07-09 (Thu, 09 Jul 2015)
2015-07-09 16:51:52 +02:00
vanhofen
6a4659bf77 framebuffer: revival of showFrame() function to allow ...
... pictures like start.jpg, mp3.jpg etc. from /var/tuxbox/icons


Origin commit data
------------------
Commit: edc8527379
Author: vanhofen <vanhofen@gmx.de>
Date: 2015-05-05 (Tue, 05 May 2015)

Origin message was:
------------------
- 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
4522aeb9b4 luainstance.cpp fix button color
Origin commit data
------------------
Commit: cdae30fe5e
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-05-03 (Sun, 03 May 2015)
2015-05-03 17:06:16 +02:00
Thilo Graf
f23ae1d565 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.


Origin commit data
------------------
Commit: 2f96c2653b
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-02-16 (Mon, 16 Feb 2015)
2015-02-19 08:39:09 +01:00
Jacek Jendrzej
6ff2c1b6bd use empty to check string
Origin commit data
------------------
Commit: 2b5e7b5ba3
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-01-09 (Fri, 09 Jan 2015)
2015-01-09 17:15:11 +01:00
vanhofen
6a4c992996 luainstance: switch to lua_Integer/lua_Unsigned
Origin commit data
------------------
Commit: d3e52fa9f6
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-11-26 (Wed, 26 Nov 2014)

Origin message was:
------------------
- luainstance: switch to lua_Integer/lua_Unsigned
2014-11-26 10:23:21 +01:00
vanhofen
e83583e7eb luainstance: add CKeybordInput
Syntax:
m:addItem { \
	type="keyboardinput", \
	action="_action", \
	id="_id", \
	value="_value", \
	name="_name", \
	help="help (first line)",
	help2="help (second line)"
}


Origin commit data
------------------
Commit: d7b496062c
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-11-24 (Mon, 24 Nov 2014)

Origin message was:
------------------
- 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
Michael Liebmann
419e281a1e CLuaMenuChangeObserver::changeNotify: Fix segfault in item type 'chooser'
Origin commit data
------------------
Commit: 02137ca987
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-11-10 (Mon, 10 Nov 2014)
2014-11-10 07:35:43 +01:00
Jacek Jendrzej
3905eb0fda fix some possible errors
Origin commit data
------------------
Commit: d5d6c4de62
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2014-11-06 (Thu, 06 Nov 2014)
2014-11-06 14:40:44 +01:00
martii
35fcbc3447 system/luaserver: Terminate Lua script when luaclient dies.
Origin commit data
------------------
Commit: ffec667030
Author: martii <m4rtii@gmx.de>
Date: 2014-10-13 (Mon, 13 Oct 2014)
2014-10-14 10:27:37 +02:00
martii
fd587b369f luaserver: reorganize
Origin commit data
------------------
Commit: b2b7cd8bb1
Author: martii <m4rtii@gmx.de>
Date: 2014-10-13 (Mon, 13 Oct 2014)
2014-10-14 10:27:37 +02:00
martii
f0bcb0fa4d lua: implement "luaclient".
This allows for starting Lua scripts in neutrino context from the
command line. Experimental, not fully regression-tested.


Origin commit data
------------------
Commit: 5d25185684
Author: martii <m4rtii@gmx.de>
Date: 2014-10-13 (Mon, 13 Oct 2014)
2014-10-14 10:27:37 +02:00
Michael Liebmann
e27631a4c4 luainstance: Fix default parameter for config file getXXX functions
- Revert commit 'Fix default parameter for config file setXXX functions'


Origin commit data
------------------
Commit: b2945b1a1a
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-17 (Wed, 17 Sep 2014)
2014-09-17 20:51:38 +02:00
Michael Liebmann
479d202f4f luainstance/cwindow: Add funktion setWindowColor
Origin commit data
------------------
Commit: 57ffa12e6b
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-17 (Wed, 17 Sep 2014)
2014-09-17 20:51:32 +02:00
Michael Liebmann
9540a9ae83 luainstance: Remove unnecessary hide()/kill() calls from xxxDelete functions
- functions:
 CWindowDelete()
 SignalBoxDelete()
 ComponentsTextDelete()
 CPictureDelete()


Origin commit data
------------------
Commit: 7c5ab40468
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-17 (Wed, 17 Sep 2014)

Origin message was:
------------------
luainstance: Remove unnecessary hide()/kill() calls from xxxDelete functions

- functions:
  CWindowDelete()
  SignalBoxDelete()
  ComponentsTextDelete()
  CPictureDelete()
2014-09-17 20:51:23 +02:00
Michael Liebmann
88b9e44240 CLuaInstance: Use native bool parameter instead of string for Lua script functions
Origin commit data
------------------
Commit: d923d991aa
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-11 (Thu, 11 Sep 2014)
2014-09-13 22:56:42 +02:00
Michael Liebmann
cc62dc1385 CLuaInstance: Add member paramBoolDeprecated() for info...
...when Boolean parameters are passed as a string or number


Origin commit data
------------------
Commit: 86186e6443
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-11 (Thu, 11 Sep 2014)
2014-09-13 22:56:36 +02:00
Michael Liebmann
bc4bd7acfe CLuaInstance: Add overloaded member tableLookup() for bool vars
Origin commit data
------------------
Commit: fc0f5d780a
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-11 (Thu, 11 Sep 2014)
2014-09-13 22:56:22 +02:00
Michael Liebmann
d6a0ee78bc luainstance: Fix default parameter for config file setXXX functions
Origin commit data
------------------
Commit: c49ceac121
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-12 (Fri, 12 Sep 2014)
2014-09-12 20:00:02 +02:00
Michael Liebmann
9cbf2bdf92 CLuaInstance::setBlank: Fix parameter
Origin commit data
------------------
Commit: 7398b43276
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-12 (Fri, 12 Sep 2014)
2014-09-12 19:59:31 +02:00
Michael Liebmann
7ace3dd22e CLuaInstance: Add CConfigFile functions
Functions: loadConfig(), saveConfig(), clear(), getString(),
  setString(), getInt32(), setInt32(), getBool(), setBool()


Origin commit data
------------------
Commit: b74e80ee6f
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-11 (Thu, 11 Sep 2014)

Origin message was:
------------------
CLuaInstance: Add CConfigFile functions

Functions: loadConfig(), saveConfig(), clear(), getString(),
      setString(), getInt32(), setInt32(), getBool(), setBool()
2014-09-11 12:14:24 +02:00
Michael Liebmann
18b2198528 CLuaInstance: Add missed library function _luaL_checkbool()
Origin commit data
------------------
Commit: 457f974eed
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-11 (Thu, 11 Sep 2014)
2014-09-11 12:14:24 +02:00
Michael Liebmann
83ee24f234 CLuaInstance: Add cVideo functions
- cVideo::SetBlank()
- cVideo::ShowPicture()
- cVideo::StopPicture()


Origin commit data
------------------
Commit: c511a44a2b
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-10 (Wed, 10 Sep 2014)
2014-09-11 12:14:24 +02:00
Michael Liebmann
042aea94b3 CLuaInstance: Fix segfault when hide() in CPictureDelete()
Origin commit data
------------------
Commit: dff6a6413d
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-10 (Wed, 10 Sep 2014)
2014-09-11 12:14:24 +02:00
Michael Liebmann
da623c5f0b CLuaInstance: More global colors added
Origin commit data
------------------
Commit: 263e023879
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-10 (Wed, 10 Sep 2014)
2014-09-11 12:14:24 +02:00
Michael Liebmann
a35e7882f9 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.


Origin commit data
------------------
Commit: 51fb2fb9e7
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-10 (Wed, 10 Sep 2014)

Origin message was:
------------------
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
Michael Liebmann
1230b1c411 CLuaInstance: Add parameter info1/info2 to PlayFile()
- This parameter display in info viewer instead of epg data


Origin commit data
------------------
Commit: b6f1963f2c
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-10 (Wed, 10 Sep 2014)
2014-09-11 12:14:24 +02:00
Michael Liebmann
2bc8639b95 CLuaInstance: Fix broken icon name in menu
Origin commit data
------------------
Commit: 2f0f27f466
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-07-18 (Fri, 18 Jul 2014)
2014-07-18 11:28:09 +04:00
[CST] Focus
958139cd31 merge neutrino-mp menu/buttons/icons changes, (C) martii
Origin commit data
------------------
Commit: cf91f2eccb
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-07-17 (Thu, 17 Jul 2014)
2014-07-17 17:02:25 +04:00
Michael Liebmann
ce45208e0e CLuaInstance: Add function checkMagicMask() for use the color constants
- Use checkMagicMask() for colors in CComponents-Lua functions


Origin commit data
------------------
Commit: a3c453c403
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-07-16 (Wed, 16 Jul 2014)
2014-07-16 23:45:23 +02:00
Michael Liebmann
d5f68835ff CLuainstance: Use lua_Unsigned for color definitions
- Add additional tableLookup() for get lua_Unsigned
- Change tableLookup() for int to lua_Integer


Origin commit data
------------------
Commit: 0714c7f5ed
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-07-16 (Wed, 16 Jul 2014)
2014-07-16 23:45:23 +02:00
Michael Liebmann
edeee02da1 CLuainstance/cwindow.new: Add parameter for show or hide header/footer
- default (parameter missing) is true (show)


Origin commit data
------------------
Commit: b8ed776a76
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-07-16 (Wed, 16 Jul 2014)
2014-07-16 23:45:23 +02:00
Michael Liebmann
882a344373 CLuaInstance::MenuAddItem: Add separator typ 'subhead'
Origin commit data
------------------
Commit: 09a39546c2
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-07-11 (Fri, 11 Jul 2014)
2014-07-12 22:12:28 +02:00
Michael Liebmann
eee80b12d8 CLuaInstance::CPictureNew: Add parameter 'transparent' for cpicture.new
- Default is CFrameBuffer::TM_NONE (No 'pseudo' transparency)


Origin commit data
------------------
Commit: e991507888
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-07-10 (Thu, 10 Jul 2014)
2014-07-10 16:38:09 +02:00
Michael Liebmann
6c48bf341b CLuaInstance::SignalBoxNew: Add 'parent' parameter...
...for the integration of signalbox in a parent cwindow


Origin commit data
------------------
Commit: 176d97969e
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-07-04 (Fri, 04 Jul 2014)
2014-07-04 02:13:38 +02:00
Thilo Graf
46495cbf40 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.


Origin commit data
------------------
Commit: 5eb63b9515
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-20 (Fri, 20 Jun 2014)

Origin message was:
------------------
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
74f731f23f gui/luainstance.cpp: add function to start file/url play
Origin commit data
------------------
Commit: 943850eefc
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-06-12 (Thu, 12 Jun 2014)
2014-06-12 18:58:16 +04:00
vanhofen
98c0a441d8 change RenderString() default to UTF8
Origin commit data
------------------
Commit: 649d1b1f9d
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-06-11 (Wed, 11 Jun 2014)

Origin message was:
------------------
- change RenderString() default to UTF8
2014-06-11 23:07:13 +02:00
vanhofen
3bba3094e2 change getRenderWidth() default to UTF8
Origin commit data
------------------
Commit: 8b91cda918
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-06-11 (Wed, 11 Jun 2014)

Origin message was:
------------------
- change getRenderWidth() default to UTF8
2014-06-11 23:07:00 +02:00
vanhofen
4f57f066d9 drop obsolete code around FONT_TYPE_GAMELIST
these fonts are not needed since gamelist/scriptlist
 are painted with menu-widget


Origin commit data
------------------
Commit: da7f3b9cb1
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-05-02 (Fri, 02 May 2014)

Origin message was:
------------------
- 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
5f830d53b7 luainstance: fix wrong integer type usage
Origin commit data
------------------
Commit: caa5d5c327
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2014-05-02 (Fri, 02 May 2014)
2014-05-02 09:47:43 +02:00