/* | Copyright (C) 2007 P.G. Richardson | Part of the gtkpod project. | | URL: http://www.gtkpod.org/ | URL: http://gtkpod.sourceforge.net/ | | Gtkpod is free software; you can redistribute it and/or modify | it under the terms of the GNU General Public License as published by | the Free Software Foundation; either version 2 of the License, or | (at your option) any later version. | | Gtkpod is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | GNU General Public License for more details. | | You should have received a copy of the GNU General Public License | along with gtkpod; if not, write to the Free Software | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | | iTunes and iPod are trademarks of Apple | | This product is not supported/written/published by Apple! | | $Id: display_coverart.h 1600 2007-06-27 18:45:37Z tmzullinger $ */ #ifndef __DISPLAY_COVERART_H__ #define __DISPLAY_COVERART_H__ #include #include #define IMG_MAIN 4 #define IMG_NEXT 1 #define IMG_PREV 2 #define IMG_TOTAL 9 #define BORDER 10 #define COVERART_REMOVE_SIGNAL 1 #define COVERART_CREATE_SIGNAL 2 #define COVERART_CHANGE_SIGNAL 3 typedef struct { GList *tracks; gchar *albumname; gchar *artist; GdkPixbuf *albumart; } Album_Item; typedef struct { Album_Item *album; gdouble img_x; gdouble img_y; gdouble img_width; gdouble img_height; GnomeCanvasItem *cdcvrgrp; GnomeCanvasItem *cdimage; GnomeCanvasItem *cdreflection; GnomeCanvasItem *highlight; } Cover_Item; typedef struct { GtkWidget *contentpanel; GtkWidget *canvasbox; GtkWidget *controlbox; GnomeCanvas *canvas; GnomeCanvasItem *bground; GnomeCanvasText *cvrtext; GtkButton *leftbutton; GtkHScale *cdslider; GtkButton *rightbutton; GPtrArray *cdcovers; gint first_imgindex; gboolean block_display_change; } CD_Widget; extern const gchar *DISPLAY_COVER_SHOW; void coverart_display_big_artwork (); GList *coverart_get_displayed_tracks (void); GdkPixbuf *coverart_get_default_track_thumb (void); void coverart_init (gchar *progpath); void force_update_covers (); void coverart_select_cover (Itdb_Track *track); void coverart_set_images (gboolean clear_track_list); void coverart_track_changed (Track *track, gint signal); void coverart_clear_images (); void coverart_block_change (gboolean val); void coverart_init_display (); GdkPixbuf *coverart_get_track_thumb (Track *track, Itdb_Device *device); void coverart_set_cover_from_file (); void coverart_set_cover_from_web (); #endif