1 #ifndef __gtk_ardour_search_path_option_h__
2 #define __gtk_ardour_search_path_option_h__
6 #include <gtkmm/filechooserbutton.h>
7 #include <gtkmm/entry.h>
8 #include <gtkmm/button.h>
11 #include "option_editor.h"
13 class SearchPathOption : public Option
16 SearchPathOption (const std::string& pathname, const std::string& label,
17 sigc::slot<std::string>, sigc::slot<bool, std::string>);
20 void set_state_from_config ();
21 void add_to_page (OptionEditorPage*);
25 sigc::slot<std::string> _get; ///< slot to get the configuration variable's value
26 sigc::slot<bool, std::string> _set; ///< slot to set the configuration variable's value
29 PathEntry (const std::string& path, bool removable=true);
32 Gtk::Button remove_button;
38 std::list<PathEntry*> paths;
39 Gtk::FileChooserButton add_chooser;
42 Gtk::Label session_label;
44 void add_path (const std::string& path, bool removable=true);
45 void remove_path (PathEntry*);
50 #endif /* __gtk_ardour_search_path_option_h__ */