Commit Graph

132 Commits

Author SHA1 Message Date
Robin Gareus b2d4280e0f
Add support for Region Fx Automation 2024-04-23 21:56:22 +02:00
Robin Gareus e5506d281a
GUI support for Region Fx (in Region Properties) 2024-04-23 21:56:18 +02:00
Robin Gareus 2f61071974
Update Lua Action scripts from local file when possible 2024-03-12 04:24:58 +01:00
Robin Gareus 43c08dd2f5
Do not automatically bind ADM import script 2024-03-08 16:15:13 +01:00
Robin Gareus eb4af10745
Amend 5880e51e92, ADM script only works on Unix Systems 2024-02-27 00:30:03 +01:00
Robin Gareus 0ea0b656b8
Return Lua system-exec exit status 2024-02-27 00:23:49 +01:00
Robin Gareus 5880e51e92
Add Icon to ADM/BWF script, and preseed it 2024-02-26 22:15:08 +01:00
Robin Gareus bff0f174da
NO-OP: fix typo in method name 2024-02-26 18:43:32 +01:00
Robin Gareus 00c76e785c
Add Lua binding to query current editor-mixer route
https://discourse.ardour.org/t/lua-editor-mixer-strip/109886
2024-02-17 15:01:58 +01:00
Robin Gareus 6b3eb55ff6
Fix Lua 1Hz timer signal (#9529) 2023-11-10 14:27:19 +01:00
Robin Gareus c1be897eed
Explicitly sandbox Lua instances (3/4)
This allows UI scripts (saved in preferences) to access
os.* functions (non-sandboxed), while preventing other
scripts to do so.

Lua scripts that can run os commands can execute arbitrary
code on the system. While this is a nice feature, it can be
equally dangerous.
2023-10-04 02:50:38 +02:00
Robin Gareus b2f36804be
Add missing Lua bindings (UIConfig get/set) 2023-09-22 17:40:42 +02:00
Ben Loftis da4d2a645f
remove tempo-mapping bar, tempo_meta group. this reverts 8fbf2c and related 2023-09-06 19:31:00 +02:00
Paul Davis ae5755dbe5 do not mark sections of menu/action paths as translatable, since they are not 2023-07-14 13:03:36 -06:00
Robin Gareus 9b8040a9f4
Add Lua signal emitted when editor selection changed 2023-07-04 21:13:52 +02:00
Robin Gareus ac2ed95677
Keep Script-Dialog on top of Script-Manager Window 2023-06-10 21:37:09 +02:00
Robin Gareus 9625d22c0d
Add Lua bindings for TempoEditBehavior
See also 8fbf2c3f52
2023-04-22 22:15:00 +02:00
Robin Gareus 0852f898a3
Prepare to move SimpleExport to backend 2022-10-21 19:35:17 +02:00
Robin Gareus 1faefb5afd
Implement simple/quick export dialog 2022-10-20 21:38:45 +02:00
Paul Davis ca22ba77e1 Constification: make Stateful::get_state() const, with all other required const-ness added (GUI) 2022-04-06 21:56:59 -06:00
Robin Gareus f74b8227c5
Ignore LD-environment for video transcoding and Lua exec 2022-04-01 18:20:04 +02:00
Robin Gareus 87354918a1
Allow Lua bindings of static signals with 4 parameters 2022-03-15 22:52:58 +01:00
Ben Loftis 2a6da0113f MIDI Draw: Provide a menu to explicitly select note-length
ToDo: 3,5,7's?  keyboard shortcuts?
2021-11-18 07:35:13 -06:00
Paul Davis 2a08e4bdaa continued work on timeline types conversion. in theory, just editor_ops.cc remains 2021-08-13 12:51:29 -06:00
Paul Davis 7433bc27e0 intermediate, unfinished snapshot of ongoing timeline types work on GTK GUI 2021-08-13 12:51:29 -06:00
Ben Loftis a8395718bc Playlist UI tweaks: rationalize playlist functions in Editor::
* new global playlist functions for {all | rec-armed | selected} tracks.
* new API passes (bool copy) arg instead of separate functions for copy_X.
* consistently use mapover_X functions to consolidate code
* update Lua bindings to match
2021-06-08 08:33:48 -05:00
Robin Gareus b6ae22cfed
Fix script name of pre-seeded scripts (amend c2ffa07e28) 2020-11-15 00:41:24 +01:00
Robin Gareus c2ffa07e28
Pre-seed scripts: add "List Plugins" 2020-08-01 01:17:39 +02:00
davidhealey cac312bb6d Added lua binding for editor:add_location_mark 2020-05-17 00:05:52 +01:00
Robin Gareus 606d6de4b1
Consistent Lua script error and print() output 2/2 2020-04-18 18:16:12 +02:00
Ben Loftis 142ce953da Split Select-All-Tracks into 2 appropriately named actions
Existing function select-all-tracks is now renamed select-all-visible-lanes, to match its behavior.

New function select-all-tracks will select all Tracks, as the name implies.

To maintain consistency for those users who actively used select-all-tracks,
  the default shortcut ctrl+t  will continue calling select-all-visible-lanes.
2020-01-22 10:33:15 -06:00
Robin Gareus 8112d6472e
Drop references held by any GUI Lua script after execution 2020-01-13 20:25:00 +01:00
Robin Gareus 7570b9a594
Add Lua bindings for UIConfiguration variables 2020-01-06 01:30:19 +01:00
Robin Gareus d226b63e70
Pre-seed Lua action-buttons 2019-12-12 20:53:17 +01:00
Robin Gareus 1f73668756
New approach for Lua bindings to avoid LuaBridge_API in GUI code
Declare DoubleArray in GUI context so that runtime uses the symbol
from the .exe (not the .dll).

This is mainly for the benefit of MSVC, that does not allow to use
LuaBridge_API in .exe
2019-12-03 17:55:37 +01:00
Robin Gareus bfcadff73c
Amend 1caef183 (Windows Lua bindings) 2019-12-03 03:29:35 +01:00
Robin Gareus 1caef183bf
Fix Windows builds
This fixes a missing symbol error due to the weird way how
Windows maps the same, identical symbols using different addresses
in .dll and .exe.  Here specifically for

int luabridge::CFunc::vectorToArray<double, std::vector<double, std::allocator<double> > >(lua_State*)

which was added in 5e1a73a28c resulting in

gtk2_ardour/luainstance.cc error: explicit instantiation of 'static const void* luabridge::ClassInfo<T>::getStaticKey() [with T = std::vector<double>]' but no definition available [-fpermissive]
gtk2_ardour/luainstance.cc error: explicit instantiation of 'static const void* luabridge::ClassInfo<T>::getClassKey() [with T = std::vector<double>]' but no definition available [-fpermissive]
gtk2_ardour/luainstance.cc error: explicit instantiation of 'static const void* luabridge::ClassInfo<T>::getConstKey() [with T = std::vector<double>]' but no definition available [-fpermissive]
2019-12-03 02:27:44 +01:00
Robin Gareus 7aaf212a9b
Fix Lua Pangolayout ellipsis width 2019-11-19 04:41:12 +01:00
Robin Gareus 2d680f3061
Move LuaProgressDialog into "LuaDialog" namespace
Define class in header file
Match C++ and Lua binding namespaces (for documentation)
2019-09-02 15:44:43 +02:00
Robin Gareus 9e11542828
Add Lua progress dialog 2019-09-02 05:17:55 +02:00
Robin Gareus 85f8387f54
Lua: allow to build SelectionLists
This partially reverts 4538bcc7 to allow Editor:set_selection()
2019-08-28 18:40:08 +02:00
Robin Gareus 4538bcc7f4
Add/fix some TimeAxisView Lua bindings 2019-08-24 21:44:27 +02:00
Robin Gareus 2970ce2f59
Add Lua bindings for Pango Alignment 2019-08-07 17:40:23 +02:00
Robin Gareus 4050ca5633
Update GPL boilerplate and (C)
Copyright-holder and year information is extracted from git log.

git history begins in 2005. So (C) from 1998..2005 is lost. Also some
(C) assignment of commits where the committer didn't use --author.
2019-08-03 15:53:15 +02:00
Robin Gareus 728b53fa09
Expose mixer window screenshot method as Lua binding 2019-07-18 01:31:30 +02:00
Robin Gareus 1173ca8d34
Prefer dedicated c-pointer bindings (can be const) 2019-05-17 12:09:08 +02:00
Robin Gareus 31815b5f26
NO-OP: whitespace
This fixes mostly <tab> after <space> and similar <tab> not used
for indenting as well as some related code alignment issues.
2019-04-13 17:57:46 +02:00
Paul Davis 51df70b405 ActionManager::get_all_actions() no longer includes <Actions> in the paths it returns, part 3 (GUI) 2019-03-20 11:15:47 -07:00
Paul Davis 23a98e5f4d remove references to "Editor_menus" which is an action that no longer exists 2019-02-16 13:12:45 -07:00
Paul Davis fc83d044f8 use ActionManager namespace, rather than ActionMap objects, and remove all per-context action maps 2018-12-10 08:34:01 -05:00