X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fsession_dialog.h;h=69532182a2e10428ceb230ebd2d89dd103280be0;hb=36dd7f8d9d602d5e609277e0c2cf0cd8454eac72;hp=2178cfbe7364393778291a80ba83011f07b1d3a4;hpb=e5888d398350b26ba2cdc634cc9791e90b4fc6b6;p=ardour.git diff --git a/gtk2_ardour/session_dialog.h b/gtk2_ardour/session_dialog.h index 2178cfbe73..69532182a2 100644 --- a/gtk2_ardour/session_dialog.h +++ b/gtk2_ardour/session_dialog.h @@ -47,15 +47,16 @@ 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 (); void clear_given (); std::string session_name (bool& should_be_new); std::string session_folder (); - + bool use_session_template(); std::string session_template_name(); @@ -94,6 +95,7 @@ class SessionDialog : public ArdourDialog { /* initial choice page */ void setup_initial_choice_box (); + void setup_recent_sessions (); Gtk::VBox ic_vbox; Gtk::Button ic_new_session_button; void new_session_button_clicked (); @@ -104,7 +106,7 @@ class SessionDialog : public ArdourDialog { struct RecentSessionsSorter { bool operator() (std::pair a, std::pair b) const { - return cmp_nocase(a.first, b.first) == -1; + return ARDOUR::cmp_nocase(a.first, b.first) == -1; } }; @@ -115,12 +117,16 @@ class SessionDialog : public ArdourDialog { add (fullpath); add (sample_rate); add (disk_format); + add (time_modified); + add (time_formatted); } Gtk::TreeModelColumn visible_name; Gtk::TreeModelColumn tip; Gtk::TreeModelColumn fullpath; Gtk::TreeModelColumn sample_rate; Gtk::TreeModelColumn disk_format; + Gtk::TreeModelColumn time_modified; + Gtk::TreeModelColumn time_formatted; }; RecentSessionModelColumns recent_session_columns; @@ -131,6 +137,7 @@ class SessionDialog : public ArdourDialog { 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); void existing_session_selected ();