1 /* -*- linux-c -*- 2 Copyright (C) 2004 Tom Szilagyi 3 4 This program is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 2 of the License, or 7 (at your option) any later version. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License 15 along with this program; if not, write to the Free Software 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 17 18 $Id: music_browser.h 1236 2012-02-04 10:28:58Z assworth $ 19 */ 20 21 #ifndef AQUALUNG_MUSIC_BROWSER_H 22 #define AQUALUNG_MUSIC_BROWSER_H 23 24 #include <glib.h> 25 #include <gtk/gtk.h> 26 27 28 void create_music_browser(void); 29 void show_music_browser(void); 30 void hide_music_browser(void); 31 32 void music_store_search(void); 33 34 int path_get_store_type(GtkTreePath * p); 35 int iter_get_store_type(GtkTreeIter * i); 36 void music_store_iter_addlist_defmode(GtkTreeIter * ms_iter, GtkTreeIter * pl_iter, int new_tab); 37 int music_store_iter_is_track(GtkTreeIter * iter); 38 39 void music_store_selection_changed(int store_type); 40 void music_browser_set_font(int cond); 41 42 void music_store_mark_changed(GtkTreeIter * iter); 43 void music_store_mark_saved(GtkTreeIter* iter_store); 44 45 void music_store_load_all(void); 46 void music_store_save_all(void); 47 48 49 struct keybinds { 50 void (*callback)(gpointer); 51 int keyval1; 52 int keyval2; 53 int state; 54 }; 55 56 enum { 57 MS_COL_NAME = 0, 58 MS_COL_SORT, 59 MS_COL_FONT, 60 MS_COL_ICON, 61 MS_COL_DATA, 62 63 MS_COL_COUNT 64 }; 65 66 enum { 67 STORE_TYPE_INVALID, 68 STORE_TYPE_FILE, 69 STORE_TYPE_CDDA, 70 STORE_TYPE_PODCAST, 71 STORE_TYPE_ALL 72 }; 73 74 typedef union { 75 int type; 76 } store_t; 77 78 79 #endif /* AQUALUNG_MUSIC_BROWSER_H */ 80 81 // vim: shiftwidth=8:tabstop=8:softtabstop=8 : 82