From 5c6ba165f684fbd45be33c83d41083567d4dd88f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 9 Nov 2010 06:03:51 +0000 Subject: initial pass at a missing file dialog and "relocatable" source files. lots more to do here git-svn-id: svn://localhost/ardour2/branches/3.0@7983 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/missing_file_dialog.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 gtk2_ardour/missing_file_dialog.h (limited to 'gtk2_ardour/missing_file_dialog.h') diff --git a/gtk2_ardour/missing_file_dialog.h b/gtk2_ardour/missing_file_dialog.h new file mode 100644 index 0000000000..dce720fcdb --- /dev/null +++ b/gtk2_ardour/missing_file_dialog.h @@ -0,0 +1,39 @@ +#ifndef __gtk_ardour_missing_file_dialog_h__ +#define __gtk_ardour_missing_file_dialog_h__ + +#include +#include +#include +#include + +#include "ardour/types.h" + +#include "ardour_dialog.h" + +namespace ARDOUR { + class Session; +} + +class MissingFileDialog : public ArdourDialog +{ + public: + MissingFileDialog (ARDOUR::Session*, const std::string& path, ARDOUR::DataType type); + + int get_action(); + + private: + ARDOUR::DataType filetype; + + Gtk::FileChooserWidget chooser; + Gtk::RadioButton use_chosen; + Gtk::RadioButton::Group choice_group; + Gtk::RadioButton use_chosen_and_no_more_questions; + Gtk::RadioButton stop_loading_button; + Gtk::RadioButton all_missing_ok; + Gtk::RadioButton this_missing_ok; + Gtk::Label msg; + + void add_chosen (); +}; + +#endif /* __gtk_ardour_missing_file_dialog_h__ */ -- cgit v1.2.3