1
/* Audacious - Cross-platform multimedia player
2
* Copyright (C) 2005-2010 Audacious development team
3
* Copyright (C) 2010 Michał Lipski <tallica@o2.pl>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; under version 3 of the License.
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.
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses>.
17
* The Audacious team does not consider modular code linking to
18
* Audacious or using our public API to be a derived work.
21
#ifndef __PLAYLISTUTIL_H__
22
#define __PLAYLISTUTIL_H__
24
void playlist_set_selected(GtkTreeView *treeview, GtkTreePath *path);
25
void playlist_set_selected_list(GtkTreeView *treeview, GList *list, gint distance);
26
GtkTreeView *playlist_get_treeview_from_page(GtkWidget *page);
27
GtkTreeView *playlist_get_treeview(gint playlist);
28
GtkTreeView *playlist_get_active_treeview(void);
29
GtkTreeView *playlist_get_playing_treeview(void);
30
gint playlist_get_playlist_from_treeview(GtkTreeView *treeview);
31
void playlist_scroll_to_row(GtkTreeView *treeview, gint position);
32
GList *playlist_get_selected_list(GtkTreeView *treeview);
33
gint playlist_get_selected_length(GtkTreeView *treeview);
34
gint playlist_get_first_selected_index(GtkTreeView *treeview);
35
GtkTreePath *playlist_get_first_selected_path(GtkTreeView *treeview);
36
gint playlist_get_index_from_path(GtkTreePath * path);
38
void playlist_select_range (gint list, gint top, gint length);
39
gint playlist_count_selected_in_range (gint list, gint top, gint length);
40
void playlist_selected_to_indexes (gint list, struct index * * namesp,
41
struct index * * tuplesp);
43
gint treeview_get_focus (GtkTreeView * tree);
45
/* these also refresh selection */
46
void treeview_set_focus (GtkTreeView * tree, gint focus);
47
void treeview_set_focus_now (GtkTreeView * tree, gint focus);
49
void treeview_refresh_selection (GtkTreeView * tree);
50
void treeview_refresh_selection_now (GtkTreeView * tree);
52
void treeview_add_indexes (GtkTreeView * tree, gint row, struct index * names,
53
struct index * tuples);
54
void treeview_add_urilist (GtkTreeView * tree, gint row, const gchar * list);
55
void treeview_remove_selected (GtkTreeView * tree);