add initial code/stubs, actions, menu items for save as
This commit is contained in:
parent
c3725d0a7b
commit
2866514c09
@ -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'/>
|
||||
|
@ -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.
|
||||
*/
|
||||
|
||||
|
@ -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 ();
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user