Commit Graph

24 Commits

Author SHA1 Message Date
Frankenstone
46b0d73099 OK Key added for lua 2021-02-09 12:20:40 +01:00
BPanther
18b2c81295 keys play and playpause added for lua 2021-02-09 12:20:40 +01:00
BPanther
13d5b3107e lua num keys added 2021-02-09 12:20:40 +01:00
Thilo Graf
4c63c6ffa8 lua: add function to set background image to window body
update to v1.87
2020-10-05 10:54:37 +02:00
Stefan Seyfried
0d9139054a remove "using namespace std" from header files
"using namespace std" in headers is considered bad practice, so move it
either into the respective cpp files or (for files which have lots of
other std::xxx usage anyway) just write it out explicitly.
Looking at the headers and the affected cpp files, one can actually see
why it is bad practice, as it's spreading very far ;-)
2017-10-02 13:43:57 +02:00
Thilo Graf
942a27e3ef cc_frm_header.cpp/h: remove CTextBox types for title allignment
Title object has only width of current text content. This causes CTextBox
types have not a really visible effect. Now we have only three align types for title
and these are related to cc-text object position.

Involved classes adjusted too.
2017-05-11 12:15:16 +02:00
Jacek Jendrzej
843703b175 use lua_Integer 2017-05-10 15:35:44 +02:00
Thilo Graf
27eb80eb5b CLuaInstCCWindow: try to fix window title align parameter
Additional (lua_Integer)CTextBox::NO_AUTO_LINEBREAK) overwrites
passed parameter and has no effect, because NO_AUTO_LINEBREAK is
already default.
2017-05-10 10:42:08 +02:00
Thilo Graf
1f978f01ad CLuaInstCCWindow: fix passed shadow paramater 2017-05-09 12:09:20 +02:00
Thilo Graf
a788eee298 LUA-Api: add alignment parameter for text in window header
Possible modes are :
	* "DEFAULT" (left)
	* "CENTER"
	* "RIGHT"

TODO: doc
2017-03-31 10:12:35 +02:00
Thilo Graf
c766a970dc CComponentsFooter: simplify implementation of button labels
button_label_l and button_label_s are now
merged to button_label_cc with prepared default values for text and locales.This type contains all possible
button label properties. Values for locales and string
are evaluated in setButtonLabels(), so it's possible to remove some
overloaded methodes.
2017-03-11 00:45:25 +01:00
M. Liebmann
2d30ef10d8 lua cwindow.new: Fix draw small windows
- Ignore percent conversion of width and height
   to remain compatible with the Lua API
2017-02-28 23:31:58 +01:00
svenhoefer
75fe6e407d - colors: add COL_FRAME wrapper 2016-10-10 14:19:54 +02:00
M. Liebmann
c566466ff1 CLuaInstCCWindow::CCWindowNew: use setButtonLabels real footer width 2016-09-02 17:24:32 +02:00
Jacek Jendrzej
52d16769f1 src/gui/lua/lua_cc_window.cpp use setButtonLabels real window width 2016-08-22 20:59:06 +02:00
Jacek Jendrzej
5c26de095c lua_cc_window: add setDimensionsAll option 2016-08-21 18:29:10 +02:00
svenhoefer
b1eab6a23e - lua_cc_*: use COL_SHADOW for shadows 2016-08-16 08:37:54 +02:00
Jacek Jendrzej
8fb4e1b78e avoid null pointer use 2016-04-21 18:14:46 +02:00
M. Liebmann
f12e49e720 CLuaInstance: Precise error message for obsolete hide() parameter
- Supplement for commit 75631a97f1
2016-01-01 14:43:59 +01:00
M. Liebmann
a7790ce049 CLuaInstance: Fix commit e85f64d733
- Use return value from checkMagicMask() for color
2016-01-01 14:43:59 +01:00
M. Liebmann
75631a97f1 CLuaInstance: Display warning when using a obsolete parameter...
...in cwindow/ctext/cpicture:hide()
2015-12-28 16:24:24 +01:00
Thilo Graf
7b28c80b74 lua instances: adopt for last rebases with splitted lua source files
TODO: check/fix lua functionality, not tested yet
2015-12-27 14:42:28 +01:00
M. Liebmann
9e331ee4e3 CLuaInstance: Fix and unified script function calls
- No api changes, code only
2015-12-23 08:29:15 +01:00
M. Liebmann
ad17505888 CLuaInstance: Move ccomponents functions in separate classes / files
- cwindow   (CComponentsWindow)
 - ctext     (CComponentsText)
 - cpicture  (CComponentsPicture)
 - signalbox (CSignalBox)

 - No api changes, code only
2015-12-12 10:42:28 +01:00