// Copyright 2014-2020 David Robillard // SPDX-License-Identifier: GPL-3.0-or-later #ifndef PATCHAGE_LEGEND_HPP #define PATCHAGE_LEGEND_HPP #include "PortType.hpp" #include #include #include #include namespace Gtk { class ColorButton; } // namespace Gtk namespace patchage { class Configuration; class Legend : public Gtk::HBox { public: explicit Legend(const Configuration& configuration); sigc::signal signal_color_changed; private: void add_button(PortType id, const std::string& label, uint32_t rgba); void on_color_set(PortType id, const std::string& label, const Gtk::ColorButton* but); }; } // namespace patchage #endif // PATCHAGE_LEGEND_HPP