~ubuntu-branches/ubuntu/quantal/gtkpod-aac/quantal

« back to all changes in this revision

Viewing changes to src/display_coverart.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-07-17 18:25:25 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070717182525-rhl5w4pk8lbk6pna
Tags: 0.99.10-2ubuntu1
* Resynchronise with gtkpod 0.9.10-2.
* Hack in dpatch support, since it was removed.
* Rename debian/patches/03-configure.dpatch to
  debian/patches/aac-configure.dpatch.
* Update debian/gtkpod-aac.diff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
|  Copyright (C) 2007 P.G. Richardson <phantom_sf at users.sourceforge.net>
 
3
|  Part of the gtkpod project.
 
4
|
 
5
|  URL: http://www.gtkpod.org/
 
6
|  URL: http://gtkpod.sourceforge.net/
 
7
|
 
8
|  Gtkpod is free software; you can redistribute it and/or modify
 
9
|  it under the terms of the GNU General Public License as published by
 
10
|  the Free Software Foundation; either version 2 of the License, or
 
11
|  (at your option) any later version.
 
12
|
 
13
|  Gtkpod is distributed in the hope that it will be useful,
 
14
|  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
|  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
|  GNU General Public License for more details.
 
17
|
 
18
|  You should have received a copy of the GNU General Public License
 
19
|  along with gtkpod; if not, write to the Free Software
 
20
|  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 
21
|
 
22
|  iTunes and iPod are trademarks of Apple
 
23
|
 
24
|  This product is not supported/written/published by Apple!
 
25
|
 
26
|  $Id: display_coverart.h 1600 2007-06-27 18:45:37Z tmzullinger $
 
27
*/
 
28
 
 
29
#ifndef __DISPLAY_COVERART_H__
 
30
#define __DISPLAY_COVERART_H__
 
31
 
 
32
#include <gtk/gtk.h>
 
33
#include <libgnomecanvas/libgnomecanvas.h>
 
34
 
 
35
#define IMG_MAIN 4
 
36
#define IMG_NEXT 1
 
37
#define IMG_PREV 2
 
38
#define IMG_TOTAL 9
 
39
#define BORDER 10
 
40
 
 
41
#define COVERART_REMOVE_SIGNAL 1
 
42
#define COVERART_CREATE_SIGNAL 2
 
43
#define COVERART_CHANGE_SIGNAL 3
 
44
 
 
45
typedef struct {
 
46
        GList *tracks;
 
47
        gchar *albumname;
 
48
        gchar *artist;
 
49
        GdkPixbuf *albumart;
 
50
} Album_Item;
 
51
 
 
52
typedef struct {
 
53
        Album_Item *album;
 
54
        gdouble img_x;
 
55
        gdouble img_y;
 
56
        gdouble img_width;
 
57
        gdouble img_height;
 
58
        GnomeCanvasItem *cdcvrgrp;
 
59
        GnomeCanvasItem *cdimage;
 
60
        GnomeCanvasItem *cdreflection;
 
61
        GnomeCanvasItem *highlight;
 
62
} Cover_Item;
 
63
 
 
64
typedef struct {
 
65
        GtkWidget *contentpanel;
 
66
        GtkWidget *canvasbox;
 
67
        GtkWidget *controlbox;
 
68
        GnomeCanvas *canvas;
 
69
        GnomeCanvasItem *bground;
 
70
        GnomeCanvasText *cvrtext;
 
71
        GtkButton *leftbutton;
 
72
        GtkHScale *cdslider;
 
73
        GtkButton *rightbutton;
 
74
        GPtrArray *cdcovers;
 
75
        gint first_imgindex;
 
76
        gboolean block_display_change;
 
77
} CD_Widget;
 
78
 
 
79
extern const gchar *DISPLAY_COVER_SHOW;
 
80
 
 
81
void coverart_display_big_artwork ();
 
82
GList *coverart_get_displayed_tracks (void);
 
83
GdkPixbuf *coverart_get_default_track_thumb (void);
 
84
void coverart_init (gchar *progpath);
 
85
void force_update_covers ();
 
86
void coverart_select_cover (Itdb_Track *track);
 
87
void coverart_set_images (gboolean clear_track_list);
 
88
void coverart_track_changed (Track *track, gint signal);
 
89
void coverart_clear_images ();
 
90
void coverart_block_change (gboolean val);
 
91
void coverart_init_display ();
 
92
GdkPixbuf *coverart_get_track_thumb (Track *track, Itdb_Device *device);
 
93
void coverart_set_cover_from_file ();
 
94
void coverart_set_cover_from_web ();
 
95
#endif