summaryrefslogtreecommitdiff
path: root/gtk2_ardour/luainstance.cc
AgeCommit message (Collapse)Author
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
2017-07-19Expose editor-vertical zoom lua bindingsRobin Gareus
2017-06-22Remove LocaleGuards from LuaInstance state methodsTim Mayberry
There are no float <=> string conversions in these methods and g_base64_encode etc functions are not affected by locale.
2017-04-26Skip script-setup if there are no parameters (and name is unique)Robin Gareus
2017-04-25Lua: Action Script Dialog & MessageBoxRobin Gareus
2017-04-19Use XMLNode::set_property API in LuaInstance classTim Mayberry
Didn't seem worth converting from XMLNode::property API to XMLNode::get_property and there may be some ordering issues.
2017-03-27optimize LuaInstance::get_action_state, LuaInstance::get_hook_stateRobin Gareus
Lua serialize() is called recursively and concatenates strings. (in Lua that results in a new string on the stack, with 2 unused old strings). Collecting garbage every time becomes expensive, so do it only once at the end. GUI scripts are not memory limited anyway.
2017-02-24Save Lua script file origin (for later updates) -- GUI+Session pluginRobin Gareus
2017-02-24Add some convenient public editor methods (for lua-bindings)Robin Gareus
and s/get// in the old API for consistency.
2017-02-24re-order inheritanceRobin Gareus
LuaBridge only allows one parent class, others need explicit casts. Allowing RoutUI to be passed as Selectable argument is handy.
2017-02-23Lua bindings to access editor selection + region selection bindingsRobin Gareus
2017-02-20Lua binding for pango_cairo_layout_path (text outlines)Robin Gareus
2017-02-19Allow to un/load Lua Session Scripts in the Script ManagerRobin Gareus
2017-02-18Remove LuaCairo.color_to_rgba (now Ardour.LuaAPI.color_to_rgba)Robin Gareus