1 /*
2  * ui_playlist_widget.h
3  * Copyright 2011-2012 John Lindgren, William Pitcock, and Michał Lipski
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright notice,
9  *    this list of conditions, and the following disclaimer.
10  *
11  * 2. Redistributions in binary form must reproduce the above copyright notice,
12  *    this list of conditions, and the following disclaimer in the documentation
13  *    provided with the distribution.
14  *
15  * This software is provided "as is" and without any warranty, express or
16  * implied. In no event shall the authors be liable for any damages arising from
17  * the use of this software.
18  */
19 
20 #ifndef UI_PLAYLIST_WIDGET_H
21 #define UI_PLAYLIST_WIDGET_H
22 
23 #include <gtk/gtk.h>
24 #include <libaudcore/playlist.h>
25 
26 GtkWidget * ui_playlist_widget_new (Playlist playlist);
27 void ui_playlist_widget_update (GtkWidget * widget);
28 void ui_playlist_widget_scroll (GtkWidget * widget);
29 
30 enum {
31     PW_COL_NUMBER,
32     PW_COL_TITLE,
33     PW_COL_ARTIST,
34     PW_COL_YEAR,
35     PW_COL_ALBUM,
36     PW_COL_ALBUM_ARTIST,
37     PW_COL_TRACK,
38     PW_COL_GENRE,
39     PW_COL_QUEUED,
40     PW_COL_LENGTH,
41     PW_COL_PATH,
42     PW_COL_FILENAME,
43     PW_COL_CUSTOM,
44     PW_COL_BITRATE,
45     PW_COL_COMMENT,
46     PW_COLS
47 };
48 
49 extern const char * const pw_col_names[PW_COLS];
50 
51 extern int pw_num_cols;
52 extern int pw_cols[PW_COLS];
53 extern int pw_col_widths[PW_COLS];
54 
55 void pw_col_init ();
56 void * pw_col_create_chooser ();
57 void pw_col_save ();
58 void pw_col_cleanup ();
59 
60 #endif
61