1 /* Time-stamp: <2008-11-08 17:35:16 jcs>
2 |
3 |  Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
4 |  Part of the gtkpod project.
5 |
6 |  URL: http://www.gtkpod.org/
7 |  URL: http://gtkpod.sourceforge.net/
8 |
9 |  This program is free software; you can redistribute it and/or modify
10 |  it under the terms of the GNU General Public License as published by
11 |  the Free Software Foundation; either version 2 of the License, or
12 |  (at your option) any later version.
13 |
14 |  This program is distributed in the hope that it will be useful,
15 |  but WITHOUT ANY WARRANTY; without even the implied warranty of
16 |  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 |  GNU General Public License for more details.
18 |
19 |  You should have received a copy of the GNU General Public License
20 |  along with this program; if not, write to the Free Software
21 |  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 |
23 |  iTunes and iPod are trademarks of Apple
24 |
25 |  This product is not supported/written/published by Apple!
26 |
27 |  $Id$
28 */
29 
30 #ifndef __DETAILS_H__
31 #define __DETAILS_H__
32 
33 #ifdef HAVE_CONFIG_H
34 #  include <config.h>
35 #endif
36 
37 #include <gtk/gtk.h>
38 #include "itdb.h"
39 #include <glade/glade.h>
40 
41 struct _Detail
42 {
43     GladeXML *xml;      /* XML info                           */
44     GtkWidget *window;  /* pointer to details window          */
45     iTunesDB *itdb;     /* pointer to the original itdb       */
46     GList *orig_tracks; /* tracks displayed in details window */
47     GList *tracks;      /* tracks displayed in details window */
48     Track *track;       /* currently displayed track          */
49     gboolean artwork_ok;/* artwork can be displayed or not    */
50     gboolean changed;   /* at least one track was changed     */
51 
52 };
53 
54 typedef struct _Detail Detail;
55 
56 extern const gchar *DETAILS_WINDOW_NOTEBOOK_PAGE;
57 
58 /* details window */
59 void details_edit (GList *selected_tracks);
60 void details_update_default_sizes (void);
61 void details_remove_track (Track *track);
62 gboolean details_writethrough (Detail *detail);
63 void details_update_thumbnail (Detail *detail);
64 void details_update_buttons (Detail *detail);
65 Detail *details_get_selected_detail ();
66 #endif
67