13
0

add initial code/stubs, actions, menu items for save as

This commit is contained in:
Paul Davis 2015-01-11 12:15:46 -05:00
parent c3725d0a7b
commit 2866514c09
4 changed files with 15 additions and 3 deletions

View File

@ -9,7 +9,8 @@
<menuitem action='Save'/>
<menuitem action='SaveAs'/>
<menuitem action='Rename'/>
<menuitem action='Snapshot'/>
<menuitem action='SnapshotStay'/>
<menuitem action='SnapshotSwitch'/>
<menuitem action='SaveTemplate'/>
<menu name='Metadata' action='Metadata'>
<menuitem action='EditMetadata'/>

View File

@ -2282,6 +2282,12 @@ ARDOUR_UI::stop_clocking ()
clock_signal_connection.disconnect ();
}
void
ARDOUR_UI::save_session_as ()
{
}
/** Ask the user for the name of a new snapshot and then take it.
*/

View File

@ -605,6 +605,7 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
guint32 last_key_press_time;
void snapshot_session (bool switch_to_it);
void save_session_as ();
void rename_session ();
void setup_order_hint ();

View File

@ -141,11 +141,15 @@ ARDOUR_UI::install_actions ()
hide_return (sigc::bind (sigc::mem_fun(*editor, &PublicEditor::export_video), false)));
ActionManager::session_sensitive_actions.push_back (act);
act = ActionManager::register_action (main_actions, X_("Snapshot"), _("Snapshot..."), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::snapshot_session), false));
act = ActionManager::register_action (main_actions, X_("SnapshotStay"), _("Snapshot (& keep working on current version) ..."), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::snapshot_session), false));
ActionManager::session_sensitive_actions.push_back (act);
ActionManager::write_sensitive_actions.push_back (act);
act = ActionManager::register_action (main_actions, X_("SaveAs"), _("Save As..."), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::snapshot_session), true));
act = ActionManager::register_action (main_actions, X_("SnapshotSwitch"), _("Snapshot (& switch to new version) ..."), sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::snapshot_session), true));
ActionManager::session_sensitive_actions.push_back (act);
ActionManager::write_sensitive_actions.push_back (act);
act = ActionManager::register_action (main_actions, X_("SaveAs"), _("Save As..."), sigc::mem_fun(*this, &ARDOUR_UI::save_session_as));
ActionManager::session_sensitive_actions.push_back (act);
ActionManager::write_sensitive_actions.push_back (act);