// This file Copyright © Mnemosyne LLC. // It may be used under GPLv2 (SPDX: GPL-2.0-only), GPLv3 (SPDX: GPL-3.0-only), // or any future license endorsed by Mnemosyne LLC. // License text can be found in the licenses/ folder. #pragma once #include "GtkCompat.h" #include #include #include #include #include #include #include #if GTKMM_CHECK_VERSION(4, 0, 0) #include #else #include #endif #include #include #include class PathButton : public IF_GTKMM4(Gtk::Button, Gtk::FileChooserButton) { using BaseWidgetType = IF_GTKMM4(Gtk::Button, Gtk::FileChooserButton); public: PathButton(); PathButton(BaseObjectType* cast_item, Glib::RefPtr const& builder); ~PathButton() override; TR_DISABLE_COPY_MOVE(PathButton) void set_shortcut_folders(std::list const& value); #if GTKMM_CHECK_VERSION(4, 0, 0) std::string get_filename() const; void set_filename(std::string const& value); void add_filter(Glib::RefPtr const& value); Glib::PropertyProxy property_action(); Glib::PropertyProxy property_title(); sigc::signal& signal_selection_changed(); #endif private: class Impl; std::unique_ptr const impl_; };