Commit Graph

73 Commits

Author SHA1 Message Date
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
striper
4b6d2d310c - rewrite Lua handling
* depend pkg checks on enable-lua switch
* define STATIC_LUAPOSIX in case of static lua build to exclude unwanted
code in neutrino
* remove DYNAMIC_LUAPOSIX code as it's not needed in case of dynamic lua
build
2014-01-25 21:17:06 +01:00
Stefan Seyfried
1ab77083ba luainstance: fix -Wnarrowing compiler warnings on 32bit platforms 2014-01-23 19:28:39 +01:00
Stefan Seyfried
2cd5aa4b1f luainstance: make the type of table_key.code explicitly clear 2014-01-23 17:17:42 +01:00
Stefan Seyfried
116065f7ac luainstance: do not export machine specific stuff
It's an exported API, so it should be somewhat useful/stable,
not change for every machine...
2014-01-23 17:17:25 +01:00
Stefan Seyfried
4da2a33b29 Revert "CLuaInstance: Fix compiler warnings"
This reverts commit 87031add94.

This is wrong in so many aspects... just look up the definition
of lua_integer...
2014-01-23 17:16:56 +01:00
M. Liebmann
71e5f964ab CLuaInstance: Fix bool parameter in CWindow/SignalBox => paint()/hide() 2014-01-23 10:48:07 +01:00
svenhoefer
53f5801d6f - adapt ShowMsg handling from martii's neutrino-mp 2014-01-22 12:37:21 +01:00
M. Liebmann
87031add94 CLuaInstance: Fix compiler warnings 2014-01-21 22:35:49 +01:00
M. Liebmann
1f7e8b41d7 CLuaInstance: Add parameter 'vertical' to CLuaSignalBox 2014-01-21 18:09:46 +01:00
M. Liebmann
9a346f8d25 CLuaInstance: fix format strings 2014-01-21 18:09:46 +01:00
M. Liebmann
ad206dbbc1 CLuaInstance: Multiple functions made from CComponents in CLuaInstance available
- CComponentsWindow: new(), paint(), hide()
- CSignalBox: new(), paint()
2014-01-20 21:35:39 +01:00
M. Liebmann
ab00bb11b2 Adaptation of CLuaInstance 2014-01-19 20:57:40 +01:00
martii
b59141d1f5 gui/luainstance: recognize menu hints 2014-01-19 20:57:39 +01:00
martii
60dbf9194e gui/luainstance: rename menue => menu 2014-01-19 20:57:39 +01:00
martii
007d700d53 lua: pictureviewer support 2014-01-19 20:57:39 +01:00
martii
1bdd23676a lua menues: add directkey forwarder 2014-01-19 20:57:39 +01:00
martii
d2e5a703c3 lua: update menue callback api to include an id parameter
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>
2014-01-19 20:57:39 +01:00
martii
82be6f8e66 lua: msgbox fix 2014-01-19 20:57:39 +01:00
martii
7b9adbe65b lua: msgbox fix 2014-01-19 20:57:39 +01:00
martii
c6912180ee lua related fixes
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>
2014-01-19 20:57:39 +01:00