annotate audacious/ui_playlist.h @ 1934:886b479afe63 trunk

[svn] - assign Control+Shift+R keybinding. to Randomize Playlist. Closes #529
author nenolod
date Sat, 04 Nov 2006 23:34:22 -0800
parents 7d32dff734da
children f18a5b617c34
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1653
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
1 /* BMP - Cross-platform multimedia player
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
2 * Copyright (C) 2003-2004 BMP development team.
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
3 *
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
4 * Based on XMMS:
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
5 * Copyright (C) 1998-2003 XMMS development team.
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
6 *
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
7 * This program is free software; you can redistribute it and/or modify
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
8 * it under the terms of the GNU General Public License as published by
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
10 * (at your option) any later version.
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
11 *
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful,
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
15 * GNU General Public License for more details.
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
16 *
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
17 * You should have received a copy of the GNU General Public License
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
18 * along with this program; if not, write to the Free Software
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
20 */
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
21
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
22 #ifndef PLAYLISTWIN_H
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
23 #define PLAYLISTWIN_H
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
24
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
25 #include <glib.h>
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
26
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
27 #include "mainwin.h"
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
28 #include "widgets/widgetcore.h"
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
29
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
30 #define PLAYLISTWIN_FRAME_TOP_HEIGHT 20
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
31 #define PLAYLISTWIN_FRAME_BOTTOM_HEIGHT 38
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
32 #define PLAYLISTWIN_FRAME_LEFT_WIDTH 12
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
33 #define PLAYLISTWIN_FRAME_RIGHT_WIDTH 19
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
34
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
35 #define PLAYLISTWIN_MIN_WIDTH MAINWIN_WIDTH
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
36 #define PLAYLISTWIN_MIN_HEIGHT MAINWIN_HEIGHT
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
37 #define PLAYLISTWIN_WIDTH_SNAP 25
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
38 #define PLAYLISTWIN_HEIGHT_SNAP 29
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
39 #define PLAYLISTWIN_SHADED_HEIGHT MAINWIN_SHADED_HEIGHT
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
40 #define PLAYLISTWIN_WIDTH cfg.playlist_width
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
41 #define PLAYLISTWIN_HEIGHT \
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
42 (cfg.playlist_shaded ? PLAYLISTWIN_SHADED_HEIGHT : cfg.playlist_height)
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
43
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
44 #define PLAYLISTWIN_DEFAULT_WIDTH 275
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
45 #define PLAYLISTWIN_DEFAULT_HEIGHT 232
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
46 #define PLAYLISTWIN_DEFAULT_POS_X 295
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
47 #define PLAYLISTWIN_DEFAULT_POS_Y 20
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
48
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
49 #define PLAYLISTWIN_DEFAULT_FONT "Sans Bold 8"
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
50
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
51 gboolean playlistwin_is_shaded(void);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
52 void playlistwin_update_list(void);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
53 gboolean playlistwin_item_visible(gint index);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
54 gint playlistwin_get_toprow(void);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
55 void playlistwin_set_toprow(gint top);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
56 void playlistwin_set_shade_menu_cb(gboolean shaded);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
57 void playlistwin_set_shade(gboolean shaded);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
58 void playlistwin_shade_toggle(void);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
59 void playlistwin_create(void);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
60 void draw_playlist_window(gboolean force);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
61 void playlistwin_hide_timer(void);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
62 void playlistwin_set_time(gint time, gint length, TimerMode mode);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
63 void playlistwin_show(void);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
64 void playlistwin_hide(void);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
65 void playlistwin_set_back_pixmap(void);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
66 void playlistwin_scroll(gint num);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
67 void playlistwin_scroll_up_pushed(void);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
68 void playlistwin_scroll_down_pushed(void);
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
69 void playlistwin_select_playlist_to_load(const gchar * default_filename);
1775
7d32dff734da [svn] improvement of shaded playlist window
yaz
parents: 1653
diff changeset
70 void playlistwin_set_sinfo_font(gchar *font);
7d32dff734da [svn] improvement of shaded playlist window
yaz
parents: 1653
diff changeset
71 void playlistwin_set_sinfo_scroll(gboolean scroll);
1653
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
72
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
73 extern GtkWidget *playlistwin;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
74 extern PlayList_List *playlistwin_list;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
75
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
76 extern PButton *playlistwin_shade, *playlistwin_close;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
77
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
78 extern gboolean playlistwin_focus;
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
79
a6e6d3500c13 [svn] - revert back to r2216
nenolod
parents:
diff changeset
80 #endif