summaryrefslogtreecommitdiff
path: root/gtk2_ardour/luainstance.cc
AgeCommit message (Collapse)Author
2020-04-18Consistent Lua script error and print() output 2/2Robin Gareus
2020-01-22Split Select-All-Tracks into 2 appropriately named actionsBen Loftis
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-13Drop references held by any GUI Lua script after executionRobin Gareus
2020-01-06Add Lua bindings for UIConfiguration variablesRobin Gareus
2019-12-12Pre-seed Lua action-buttonsRobin Gareus
2019-12-03New approach for Lua bindings to avoid LuaBridge_API in GUI codeRobin Gareus
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-03Amend 1caef183 (Windows Lua bindings)Robin Gareus
2019-12-03Fix Windows buildsRobin Gareus
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 5e1a73a28c07 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-11-19Fix Lua Pangolayout ellipsis widthRobin Gareus
2019-09-02Move LuaProgressDialog into "LuaDialog" namespaceRobin Gareus
Define class in header file Match C++ and Lua binding namespaces (for documentation)
2019-09-02Add Lua progress dialogRobin Gareus
2019-08-28Lua: allow to build SelectionListsRobin Gareus
This partially reverts 4538bcc7 to allow Editor:set_selection()
2019-08-24Add/fix some TimeAxisView Lua bindingsRobin Gareus
2019-08-07Add Lua bindings for Pango AlignmentRobin Gareus
2019-08-03Update GPL boilerplate and (C)Robin Gareus
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-07-18Expose mixer window screenshot method as Lua bindingRobin Gareus
2019-05-17Prefer dedicated c-pointer bindings (can be const)Robin Gareus
2019-04-13NO-OP: whitespaceRobin Gareus
This fixes mostly <tab> after <space> and similar <tab> not used for indenting as well as some related code alignment issues.
2019-03-20ActionManager::get_all_actions() no longer includes <Actions> in the paths ↵Paul Davis
it returns, part 3 (GUI)
2019-02-16remove references to "Editor_menus" which is an action that no longer existsPaul Davis
2018-12-10use ActionManager namespace, rather than ActionMap objects, and remove all ↵Paul Davis
per-context action maps
2018-11-17Add a 1Hz Lua Callback SignalRobin Gareus
2018-11-12Fix load/save Lua Editor scriptsRobin Gareus
* callbacks are unregistered during session-deletion, skip saving them during session destruction. * prevent duplicate state restore, re-load script with the session, not window instance.
2018-11-12Fix saving Lua Callbacks when un/register succeedsRobin Gareus
This fix an issue introduce in 9971e718
2018-11-04Save Lua UI scripts separatelyRobin Gareus
Previously EditorAction and ExitorHook scripts were saved with instant.xml. The were saved with each session and in the config dir (for new sessions). This allowed inconsistent UI setups, especially when loading old sessions that had no or different scripts. Now Editor scripts (actions and hooks) are saved in a dedicated file, session-independently. This goes along with ui_config in general e.g. action-table-columns The scripts are not saved with ui_config file for two reasons: ui_config settings related to built-in ui_config_vars.h, and in the future there may be further indirection like "ui-rc-file". Note: previously loaded editor scripts are lost with this change.
2018-10-04Unhardcode and increase bindable Lua-script-action countRobin Gareus
2018-07-12Move static function out of header-file, fix -Wunused-functionRobin Gareus
2018-06-02no error logging for CURL HTTP requests; future callers can request it if ↵Paul Davis
necessary
2018-02-09new_grid: Rewrite of Snap and Grid. (squashed commit)Ben Loftis
Separate Snap from Grid. Lots of naming changes. Multiple simultaneous snap options allowed. Grid is one of the possible Snap options. Grid uses the same data as the rulers. Replace complicated tempo_lines with simple grid_lines. The Grid is zoom-scale-sensitive along with the rulers. If you are zoomed out, grid becomes coarser.
2018-02-09new_snap: Snapped Cursor ( squashed commit )Ben Loftis
Snapped Cursor is a line that follows the edit point, and indicates where the operation will occur. This replaces and extends the line that appears with the Cut tool. New associated preferences: snap_threshold and show_snap_cursor.
2018-01-30LuaInstance: prepare for 3 argument signal/slot callbacksRobin Gareus
2017-12-07Drop the "Lua" in Lua Action Buttons:Ben Loftis
Removed the term "Lua", because users were turned off by something they didn't understand. A special-case Lua script ("Shortcut") allows the user to select an arbitrary Action. The "Shortcut" script is selected by default, and in this case there is no "Type" or "Author" displayed. Action-Buttons may still trigger Lua scripts, as a secondary function.
2017-12-05Add Lua binding to query action-listRobin Gareus
2017-12-05Lua Script-Selector updateRobin Gareus
* register bindings for action_param * honor pre-seeded value (don't ask) * allow to pre-seed a script-name * allow to cancel interactive script load at parameter-stage
2017-11-23Catch exceptions by const referenceRobin Gareus
2017-09-27More s/frame/sample/ -- Lua ScriptsRobin Gareus
Sadly this breaks existing loaded scripts. C'est la vie.
2017-09-18globally change all use of "frame" to refer to audio into "sample".Paul Davis
Generated by tools/f2s. Some hand-editing will be required in a few places to fix up comments related to timecode and video in order to keep the legible
2017-09-18fully remove diskstream codePaul Davis
2017-08-26Fix too restrictive Lua sandboxRobin Gareus
Don't limit the environment when evaluating bytecode (factory function).
2017-08-22Add Lua bindings for ArdourUI's translate_order()Robin Gareus
e.g. calculate the route insert position: print (ArdourUI.translate_order (ArdourUI.InsertAt.BeforeSelection))
2017-08-19Lua may call C++ functions with throw. Catch themRobin Gareus
2017-08-11Fix MSVC builds (binding external static members)Robin Gareus
This Revert "Lua GUI Instance update: prepare for template scripts" commit c37cdf548d14b01744ff560217fb55958e6992fc.
2017-08-10Update Lua os.exec, SystemExec APIRobin Gareus
We can't use Lua to construct a PBD::SystemExec Obejct. Lifetime of the object is bound to the Lua interpreter or local function scope. Destroying the C++ object terminates the process. Additionally to adding a dedicated method, we also override the existing os.execute Lua libary method with a rt-save (vfork, close filedescriptors) wrapper.
2017-08-10Lua GUI Instance update: prepare for template scriptsRobin Gareus
2017-08-10Add a Lua SetSession signal/hookRobin Gareus
2017-08-10Lua Script Sandbox - GUI partRobin Gareus
2017-08-09Add Lua bindings to set toggle-actionsRobin Gareus
2017-08-08SystemExec Lua bindings (vfork, fire+forget)Robin Gareus
2017-08-07Fix Windows builds (amend 7009ff03)Robin Gareus
2017-08-06Update Selection API to include all StripablesRobin Gareus