mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-11 07:56:27 +01:00
rough in snapshot promotion menu entry
This commit is contained in:
parent
0c9a00476b
commit
8411fd17db
2 changed files with 10 additions and 2 deletions
|
|
@ -201,6 +201,7 @@ MixerSnapshotList::popup_context_menu (int button, int32_t time, TreeModel::iter
|
|||
|
||||
add_item_with_sensitivity(items, MenuElem (_("Remove"), sigc::bind(sigc::mem_fun (*this, &MixerSnapshotList::remove_snapshot), iter)), true);
|
||||
add_item_with_sensitivity (items, MenuElem (_("Rename..."), sigc::bind (sigc::mem_fun (*this, &MixerSnapshotList::rename_snapshot), iter)), true);
|
||||
add_item_with_sensitivity (items, MenuElem (_("Promote To Mixer Template"), sigc::bind (sigc::mem_fun (*this, &MixerSnapshotList::promote_snapshot), iter)), true);
|
||||
_menu.popup (button, time);
|
||||
}
|
||||
|
||||
|
|
@ -219,7 +220,7 @@ void MixerSnapshotList::remove_snapshot(TreeModel::iterator& iter)
|
|||
if (prompter.run () == 1) {
|
||||
redisplay ();
|
||||
}
|
||||
printf("remove snapshot @ path %s\n", snapshot->get_path().c_str());
|
||||
printf("remove snapshot %s @ path %s\n", snapshot->get_label().c_str(), snapshot->get_path().c_str());
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -242,7 +243,13 @@ MixerSnapshotList::rename_snapshot(TreeModel::iterator& iter)
|
|||
redisplay ();
|
||||
}
|
||||
}
|
||||
printf("rename snapshot to %s\n", new_name.c_str());
|
||||
printf("rename snapshot %s to %s\n", snapshot->get_label().c_str(), new_name.c_str());
|
||||
}
|
||||
|
||||
void MixerSnapshotList::promote_snapshot(TreeModel::iterator& iter)
|
||||
{
|
||||
MixerSnapshot* snapshot = (*iter)[_columns.snapshot];
|
||||
printf("promote snapshot %s to mixer template\n", snapshot->get_label().c_str());
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ private:
|
|||
void popup_context_menu (int, int32_t, Gtk::TreeModel::iterator&);
|
||||
void remove_snapshot (Gtk::TreeModel::iterator&);
|
||||
void rename_snapshot (Gtk::TreeModel::iterator&);
|
||||
void promote_snapshot (Gtk::TreeModel::iterator&);
|
||||
};
|
||||
|
||||
#endif // __gtk_ardour_mixer_snapshots_h__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue