annotate audacious/ui_playlist.h @ 785:20a62ae86b6e trunk

[svn] - some compilers couldn't figure the original call out, so put a struct infront of it
author nenolod
date Thu, 02 Mar 2006 16:07:31 -0800
parents 2b9dc862967b
children 13d5b542f4fd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1 /* BMP - Cross-platform multimedia player
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2 * Copyright (C) 2003-2004 BMP development team.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4 * Based on XMMS:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5 * Copyright (C) 1998-2003 XMMS development team.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7 * This program is free software; you can redistribute it and/or modify
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
8 * it under the terms of the GNU General Public License as published by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10 * (at your option) any later version.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 * GNU General Public License for more details.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17 * You should have received a copy of the GNU General Public License
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18 * along with this program; if not, write to the Free Software
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
20 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
21
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
22 #ifndef PLAYLISTWIN_H
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
23 #define PLAYLISTWIN_H
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
25 #include <glib.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
26
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27 #include "mainwin.h"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
28 #include "pbutton.h"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
29 #include "playlist_list.h"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
30
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
31
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32 #define PLAYLISTWIN_FRAME_TOP_HEIGHT 20
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33 #define PLAYLISTWIN_FRAME_BOTTOM_HEIGHT 38
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34 #define PLAYLISTWIN_FRAME_LEFT_WIDTH 12
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
35 #define PLAYLISTWIN_FRAME_RIGHT_WIDTH 19
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
36
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37 #define PLAYLISTWIN_MIN_WIDTH MAINWIN_WIDTH
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
38 #define PLAYLISTWIN_MIN_HEIGHT MAINWIN_HEIGHT
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
39 #define PLAYLISTWIN_WIDTH_SNAP 25
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
40 #define PLAYLISTWIN_HEIGHT_SNAP 29
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41 #define PLAYLISTWIN_SHADED_HEIGHT MAINWIN_SHADED_HEIGHT
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42 #define PLAYLISTWIN_WIDTH cfg.playlist_width
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43 #define PLAYLISTWIN_HEIGHT \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44 (cfg.playlist_shaded ? PLAYLISTWIN_SHADED_HEIGHT : cfg.playlist_height)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 #define PLAYLISTWIN_DEFAULT_WIDTH 275
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47 #define PLAYLISTWIN_DEFAULT_HEIGHT 232
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48 #define PLAYLISTWIN_DEFAULT_POS_X 295
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49 #define PLAYLISTWIN_DEFAULT_POS_Y 20
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
50
205
94ca5a831695 [svn] Force pango to use a sane fontsize for the playlist window.
nenolod
parents: 0
diff changeset
51 #define PLAYLISTWIN_DEFAULT_FONT "Sans Bold 8"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53 void playlistwin_update_list(void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54 gboolean playlistwin_item_visible(gint index);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55 gint playlistwin_get_toprow(void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56 void playlistwin_set_toprow(gint top);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57 void playlistwin_set_shade_menu_cb(gboolean shaded);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58 void playlistwin_set_shade(gboolean shaded);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
59 void playlistwin_shade_toggle(void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
60 void playlistwin_create(void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
61 void draw_playlist_window(gboolean force);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
62 void playlistwin_hide_timer(void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
63 void playlistwin_set_time(gint time, gint length, TimerMode mode);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
64 void playlistwin_show(void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
65 void playlistwin_hide(void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
66 void playlistwin_set_back_pixmap(void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
67 void playlistwin_scroll(gint num);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
68 void playlistwin_scroll_up_pushed(void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
69 void playlistwin_scroll_down_pushed(void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
70 void playlistwin_select_playlist_to_load(const gchar * default_filename);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
71
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
72 extern GtkWidget *playlistwin;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
73 extern PlayList_List *playlistwin_list;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
74
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
75 extern PButton *playlistwin_shade, *playlistwin_close;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
76
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
77 extern gboolean playlistwin_focus;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
78
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
79 #endif