7#ifndef ALBUM_ART_COMPONENT
8#define ALBUM_ART_COMPONENT
14#include <gtkmm/builder.h>
15#include <gtkmm/button.h>
16#include <gtkmm/grid.h>
17#include <gtkmm/viewport.h>
18#include <gtkmm/image.h>
19#include <sigc++/signal.h>
33 typedef sigc::signal<void(
const std::string)>
sig_art;
52 void set_album_arts(
const std::vector<AlbumArtProvider::AlbumArt>& arts,
const int window_width);
Gtk::Button * _done_button
Done button on the art selection screen.
Gtk::Viewport * _viewport
Viewport that displays the grid of album art.
AlbumArtComponent(Glib::RefPtr< Gtk::Builder > builder)
AlbumArtComponent constructor.
~AlbumArtComponent()
AlbumArtComponent destructior.
void on_done_button_clicked()
Called when the "done" button is clicked.
sig_done _signal_done
Emitted when the user leaves the art selection screen.
sigc::signal< void(const std::string)> sig_art
"Art selected" signal type.
static constexpr int SPACING
The spacing between images.
static constexpr int ART_SIZE
The width and height of art displayed on the album art selection screen.
void set_album_arts(const std::vector< AlbumArtProvider::AlbumArt > &arts, const int window_width)
Set the album art images to show on the selection screen.
Gtk::Grid * _grid
Grid of album art.
sig_done signal_done()
Getter for _signal_done.
sig_art signal_art()
Getter for _signal_art.
sigc::signal< void()> sig_done
"Done with screen" signal type.
sig_art _signal_art
Emitted when the user selects an album art image.