X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fsearch_path_option.h;h=6a7b018aff6bef45a31eabd6513afc77937ce8c4;hb=0e9dab6aabc2efddc957c7c71bc55354c16626ed;hp=0230666656da546e806faf23a3cde2afb619c190;hpb=db36cb793a8e500531e18efd967a9f6eac8183eb;p=ardour.git diff --git a/gtk2_ardour/search_path_option.h b/gtk2_ardour/search_path_option.h index 0230666656..6a7b018aff 100644 --- a/gtk2_ardour/search_path_option.h +++ b/gtk2_ardour/search_path_option.h @@ -31,42 +31,43 @@ class SearchPathOption : public Option { - public: - SearchPathOption (const std::string& pathname, const std::string& label, - const std::string& default_path, - sigc::slot, sigc::slot); - ~SearchPathOption (); +public: + SearchPathOption (const std::string& pathname, const std::string& label, + const std::string& default_path, + sigc::slot, sigc::slot); + ~SearchPathOption (); - void set_state_from_config (); - void add_to_page (OptionEditorPage*); - void clear (); + void set_state_from_config (); + void add_to_page (OptionEditorPage*); + void clear (); - Gtk::Widget& tip_widget() { return add_chooser; } + Gtk::Widget& tip_widget() { return add_chooser; } - protected: +protected: sigc::slot _get; ///< slot to get the configuration variable's value sigc::slot _set; ///< slot to set the configuration variable's value - struct PathEntry { - PathEntry (const std::string& path, bool removable=true); + struct PathEntry + { + PathEntry (const std::string& path, bool removable=true); - Gtk::Entry entry; - Gtk::Button remove_button; - Gtk::HBox box; + Gtk::Entry entry; + Gtk::Button remove_button; + Gtk::HBox box; - std::string path; - }; + std::string path; + }; - std::list paths; - Gtk::FileChooserButton add_chooser; - Gtk::VBox vbox; - Gtk::VBox path_box; - Gtk::Label session_label; + std::list paths; + Gtk::FileChooserButton add_chooser; + Gtk::VBox vbox; + Gtk::VBox path_box; + Gtk::Label session_label; - void add_path (const std::string& path, bool removable=true); - void remove_path (PathEntry*); - void changed (); - void path_chosen (); + void add_path (const std::string& path, bool removable=true); + void remove_path (PathEntry*); + void changed (); + void path_chosen (); }; #endif /* __gtk_ardour_search_path_option_h__ */