479 Commits

Autor SHA1 Nachricht Datum
Reinder Feenstra
3d72576ed3 CI: changed client build to cmake, try 4 2021-04-23 23:12:55 +02:00
Reinder Feenstra
8bcb1c0fbe CI: changed client build to cmake, try 3 2021-04-23 22:45:04 +02:00
Reinder Feenstra
dda2991b1f CI: changed client build to cmake, try 2 2021-04-23 22:38:54 +02:00
Reinder Feenstra
1b1821e302 CI: changed client build to cmake, try 1 2021-04-23 22:31:49 +02:00
Reinder Feenstra
2e362d7576 client: replaced Qt project by CMake 2021-04-23 22:06:50 +02:00
Reinder Feenstra
ef610b3e43 moved frozen to shared/thirdparty 2021-04-23 21:59:13 +02:00
Reinder Feenstra
b6db974745 lua: added set support to check<> and to<> 2021-04-23 21:03:22 +02:00
Reinder Feenstra
37b46f67cb Merge branch 'master' of github.com:traintastic/traintastic 2021-04-22 23:28:47 +02:00
Reinder Feenstra
d9b121948f Lua: fix: ReadOnlyTable, existing keys could be written 2021-04-22 23:28:41 +02:00
Reinder Feenstra
919e2e2787 test: lua: added check if writing to enum/set.type_name.* raises an error 2021-04-22 23:24:27 +02:00
Reinder Feenstra
a71d7bc7b1 innosetup: added installatin of VC++ redistributables if required 2021-04-21 22:12:42 +02:00
Reinder Feenstra
7ab43c4598 test: added missing registation of Lua::ReadOnlyTable 2021-04-20 23:08:22 +02:00
Reinder Feenstra
56926a375a Lua::ReadOnlyTable added assert to check if type is registered 2021-04-20 23:07:51 +02:00
Reinder Feenstra
ef6d5ff9fd Lua: moved all error's to error.hpp
for easy reuse and maintenance
2021-04-20 22:59:51 +02:00
Reinder Feenstra
5b4ab8f30d Added test and support for Lua::check<> enum's 2021-04-20 22:24:26 +02:00
Reinder Feenstra
1c4b3bb74a Added test and support for Lua::check<> string/string_view 2021-04-20 22:22:23 +02:00
Reinder Feenstra
beb4576dc1 Lua::check<> fixed (u)int implementation
moved error to seperate header for easier re-use
2021-04-19 23:22:15 +02:00
Reinder Feenstra
d9f02fcbac added tests Lua::check<> bool, int and float types 2021-04-19 23:20:39 +02:00
Reinder Feenstra
08f78d1ab9 test: moved protect jmp_buf global to lua state
so every lua state has its own jmp_buf
2021-04-19 23:18:50 +02:00
Reinder Feenstra
63af226e16 CI: added code coverage, try 4 2021-04-14 23:13:49 +02:00
Reinder Feenstra
ecf6edbec7 CI: added code coverage, try 3: install lcov deb 2021-04-14 21:43:36 +02:00
Reinder Feenstra
19bed6d79c CI: added code coverage, try 2 2021-04-14 21:40:01 +02:00
Reinder Feenstra
e65202a0dd CI: added code coverage, try 1 2021-04-14 21:35:14 +02:00
Reinder Feenstra
fb1eecb01f Added ccov (code coverage) target 2021-04-14 20:57:20 +02:00
Reinder Feenstra
c24c1d7e4a test lua enum: added tostring testing 2021-04-14 20:47:23 +02:00
Reinder Feenstra
b45a1c851f added missing include guard 2021-04-14 08:09:03 +02:00
Reinder Feenstra
5727e70048 removed garbage code 2021-04-14 08:08:25 +02:00
Reinder Feenstra
f2b7d7bb52 test lua: replace panic-to-exception by longjmp
calls to Lua can now easily be protected using the protect<> template function, it will return false if a lua error occurs.
The exception method didn't work properly with catch2 on windows.
2021-04-14 00:04:03 +02:00
Reinder Feenstra
0af23f9503
CI: added option --output-on-failure to ctest 2021-04-13 20:57:48 +02:00
Reinder Feenstra
0ae199574e added license header to tests 2021-04-12 23:41:54 +02:00
Reinder Feenstra
ac1ade0a3d test: Added test for Lua::Enum<> 2021-04-12 23:31:41 +02:00
Reinder Feenstra
a4a90fde12 test fix: added missing pushnumber 2021-04-12 23:30:22 +02:00
Reinder Feenstra
13cf3ed57f Lua::to<> added enum support 2021-04-12 23:29:44 +02:00
Reinder Feenstra
6e8dd4972b lua enum: added assert to check if registered 2021-04-12 23:25:10 +02:00
Reinder Feenstra
b4bb83f108 test: added Lua::Set<> test 2021-04-07 23:03:16 +02:00
Reinder Feenstra
282cc1c9c5 lua: set: added support for add/subtract operators 2021-04-07 23:00:13 +02:00
Reinder Feenstra
cc79919789 renamed trackPowerOff to powerOn (inverts value!) 2021-04-06 22:55:47 +02:00
Reinder Feenstra
1b64fd275e command station: don't store online/emergency_stop/track_voltage_off as state values
properties must have a safe value when created/loaded
2021-04-05 23:29:27 +02:00
Reinder Feenstra
cba0a554a5 controller: now responds to offline/online events 2021-04-05 23:20:48 +02:00
Reinder Feenstra
0b7c5967e1 enlarged stop/run icons a little 2021-04-05 23:20:00 +02:00
Reinder Feenstra
b9001dba11 en-us: added translations 2021-04-05 23:19:12 +02:00
Reinder Feenstra
0eafd5018c redesigned world states/events
- added online/offline for connection to e.g. command station(s)
- changed track power to more generic power on/off
- renamed emergency stop to stop
- added run, to clear stop
- added mute function (not yet handled internally)
2021-04-05 16:47:26 +02:00
Reinder Feenstra
39f5a518c3 added methods to simplify some common actions 2021-04-05 16:24:17 +02:00
Reinder Feenstra
6f0c6d3dcf implmented client set type property support 2021-04-05 16:17:18 +02:00
Reinder Feenstra
f02b4863c4 Added icons 2021-04-05 16:14:17 +02:00
Reinder Feenstra
38aa1dd179 fix: script list add enabled wasn't updated on world edit change 2021-04-05 10:13:19 +02:00
Reinder Feenstra
cc159459dd missing in f9b0e947a6d4666155d0d1031017ae90597b9e21 2021-04-05 00:22:52 +02:00
Reinder Feenstra
e0e915c9ac client: added codename to help url 2021-04-05 00:18:39 +02:00
Reinder Feenstra
0ef49296e1 added translations 2021-04-05 00:18:39 +02:00
Reinder Feenstra
f9b0e947a6 replaced QSharedPointer by std::shared_ptr 2021-04-05 00:18:39 +02:00