13
0

no more trigger UI actions and bindings

This commit is contained in:
Paul Davis 2022-11-16 14:14:53 -07:00
parent ffd089720d
commit 847f421542
3 changed files with 0 additions and 48 deletions

View File

@ -90,7 +90,6 @@ ARDOUR_UI::we_have_dependents ()
*/
ProcessorBox::register_actions ();
StepEntry::setup_actions_and_bindings ();
TriggerUI::setup_actions_and_bindings ();
ClipEditorBox::init ();
/* Global, editor, mixer, processor box actions are defined now. Link

View File

@ -68,9 +68,6 @@ std::string TriggerUI::longest_launch;
std::vector<std::string> TriggerUI::stretch_mode_strings;
std::string TriggerUI::longest_stretch_mode;
Gtkmm2ext::Bindings* TriggerUI::bindings = 0;
Glib::RefPtr<Gtk::ActionGroup> TriggerUI::trigger_actions;
TriggerUI::TriggerUI ()
: _renaming (false)
, _file_chooser (0)
@ -140,43 +137,6 @@ TriggerUI::trigger_swap (uint32_t n)
trigger_changed (Properties::name);
}
void
TriggerUI::setup_actions_and_bindings ()
{
load_bindings ();
register_actions ();
}
void
TriggerUI::load_bindings ()
{
bindings = Bindings::get_bindings (X_("Cues"));
}
void
TriggerUI::register_actions ()
{
trigger_actions = ActionManager::create_action_group (bindings, X_("Cues"));
for (int32_t n = 0; n < TriggerBox::default_triggers_per_box; ++n) {
const std::string action_name = string_compose ("trigger-cue-%1", n);
const std::string display_name = string_compose (_("Trigger Cue %1"), cue_marker_name (n));
ActionManager::register_action (trigger_actions, action_name.c_str (), display_name.c_str (), sigc::bind (sigc::ptr_fun (TriggerUI::trigger_cue_row), n));
}
}
void
TriggerUI::trigger_cue_row (int32_t n)
{
Session* s = AudioEngine::instance()->session();
if (s) {
s->trigger_cue_row (n);
}
}
void
TriggerUI::choose_color ()
{

View File

@ -94,13 +94,6 @@ public:
private:
void trigger_changed (PBD::PropertyChange const& ); //calls on_trigger_changed to subclasses
/* Actions for Triggers: accessed via ardour_ui and shortcuts and lua */
static Glib::RefPtr<Gtk::ActionGroup> trigger_actions;
static void trigger_cue_row (int32_t);
static Gtkmm2ext::Bindings* bindings;
static void load_bindings ();
static void register_actions ();
protected:
/* all of this for name editing ... */
bool namebox_button_press (GdkEventButton*);