X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fsession_dialog.h;h=a464e5a5ef182fe09ed70f7a1b79e39d4dfcf6f0;hb=921d2c5809a101995165ee05ad970d4a21adcdf8;hp=b2896c6b219772b8fe1bad0d44587ee7c3872bea;hpb=18afd09b3b84abb4a3410077a778dd44adcff16c;p=ardour.git diff --git a/gtk2_ardour/session_dialog.h b/gtk2_ardour/session_dialog.h index b2896c6b21..a464e5a5ef 100644 --- a/gtk2_ardour/session_dialog.h +++ b/gtk2_ardour/session_dialog.h @@ -47,7 +47,7 @@ class EngineControl; class SessionDialog : public ArdourDialog { public: - SessionDialog (bool require_new, const std::string& session_name, const std::string& session_path, + SessionDialog (bool require_new, const std::string& session_name, const std::string& session_path, const std::string& template_name, bool cancel_not_quit); SessionDialog (); ~SessionDialog (); @@ -56,7 +56,7 @@ class SessionDialog : public ArdourDialog { std::string session_name (bool& should_be_new); std::string session_folder (); - + bool use_session_template(); std::string session_template_name(); @@ -76,6 +76,11 @@ class SessionDialog : public ArdourDialog { bool connect_outs_to_master() const; bool connect_outs_to_physical() const; + void set_provided_session(const std::string& session_name, const std::string& session_path) { + _provided_session_name = session_name; + _provided_session_path = session_path; + } + private: bool new_only; std::string _provided_session_name; @@ -89,6 +94,7 @@ class SessionDialog : public ArdourDialog { Gtk::Button* quit_button; bool back_button_pressed (GdkEventButton*); + bool open_button_pressed (GdkEventButton*); Gtk::Frame info_frame; @@ -133,15 +139,18 @@ class SessionDialog : public ArdourDialog { Gtk::TreeView recent_session_display; Glib::RefPtr recent_session_model; Gtk::ScrolledWindow recent_scroller; - Gtk::Label recent_label; + Gtk::Label recent_label; Gtk::FileChooserButton existing_session_chooser; int redisplay_recent_sessions (); void recent_session_row_selected (); void recent_session_sort_changed (); void recent_row_activated (const Gtk::TreePath& path, Gtk::TreeViewColumn* col); + bool recent_button_press (GdkEventButton*); + void recent_context_mennu (GdkEventButton*); + void recent_remove_selected (); void existing_session_selected (); - void session_selected (); + void session_selected (); /* new sessions */ @@ -231,6 +240,10 @@ class SessionDialog : public ArdourDialog { void master_bus_button_clicked (); void setup_more_options_box (); + /* --disable plugins UI */ + Gtk::CheckButton _disable_plugins; + void disable_plugins_clicked (); + /* always there */ Glib::RefPtr layout;