#include "luainstance.h"
#include "luasignal.h"
#include "marker.h"
+#include "processor_box.h"
#include "time_axis_view.h"
#include "selection.h"
#include "script_selector.h"
}; // namespace
+/** special cases for Ardour's Mixer UI */
+namespace LuaMixer {
+
+ ProcessorBox::ProcSelection
+ processor_selection (lua_State* L) {
+ return ProcessorBox::current_processor_selection ();
+ }
+
+};
+
////////////////////////////////////////////////////////////////////////////////
#define xstr(s) stringify(s)
.addFunction ("http_get", (std::string (*)(const std::string&))&ArdourCurl::http_get)
+ .addFunction ("processor_selection", &LuaMixer::processor_selection)
+
.beginStdList <ArdourMarker*> ("ArdourMarkerList")
.endClass ()
static Gtkmm2ext::Bindings* bindings;
static void register_actions();
+ typedef std::vector<boost::shared_ptr<ARDOUR::Processor> > ProcSelection;
+
+ static ProcSelection current_processor_selection () {
+ ProcSelection ps;
+ if (_current_processor_box) {
+ _current_processor_box->get_selected_processors (ps);
+ }
+ return ps;
+ }
+
#ifndef NDEBUG
static bool show_all_processors;
#endif
void ab_plugins ();
- typedef std::vector<boost::shared_ptr<ARDOUR::Processor> > ProcSelection;
-
void cut_processors (const ProcSelection&);
void copy_processors (const ProcSelection&);
void delete_processors (const ProcSelection&);