annotate src/audacious/ui_skinned_playlist.h @ 4237:8f6956130372

initial Replay Gain support
author Eugene Zagidullin <e.asphyx@gmail.com>
date Sat, 02 Feb 2008 01:53:15 +0300
parents 46591501603e
children 93d13f5c0980
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3217
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
1 /*
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
2 * Audacious - a cross-platform multimedia player
3840
46591501603e Add my name in few places
Tomasz Mon <desowin@gmail.com>
parents: 3274
diff changeset
3 * Copyright (c) 2007 Tomasz Moń
3217
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
4 *
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
5 * Based on:
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
6 * BMP - Cross-platform multimedia player
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
7 * Copyright (C) 2003-2004 BMP development team.
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
8 * XMMS:
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
9 * Copyright (C) 1998-2003 XMMS development team.
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
10 *
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
11 * This program is free software; you can redistribute it and/or modify
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
12 * it under the terms of the GNU General Public License as published by
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
13 * the Free Software Foundation; under version 3 of the License.
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
14 *
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
15 * This program is distributed in the hope that it will be useful,
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
18 * GNU General Public License for more details.
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
19 *
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
20 * You should have received a copy of the GNU General Public License
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
21 * along with this program. If not, see <http://www.gnu.org/licenses>.
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
22 *
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
23 * The Audacious team does not consider modular code linking to
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
24 * Audacious or using our public API to be a derived work.
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
25 */
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
26
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
27 #ifndef UISKINNEDPLAYLIST_H
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
28 #define UISKINNEDPLAYLIST_H
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
29
3219
2f08ee945857 fix includes
Tomasz Mon <desowin@gmail.com>
parents: 3217
diff changeset
30 #include <gtk/gtk.h>
3251
f02623377013 goodbye widgets directory
Tomasz Mon <desowin@gmail.com>
parents: 3219
diff changeset
31 #include "skin.h"
3219
2f08ee945857 fix includes
Tomasz Mon <desowin@gmail.com>
parents: 3217
diff changeset
32
3217
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
33 #ifdef __cplusplus
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
34 extern "C" {
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
35 #endif
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
36
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
37 #define UI_SKINNED_PLAYLIST(obj) GTK_CHECK_CAST (obj, ui_skinned_playlist_get_type (), UiSkinnedPlaylist)
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
38 #define UI_SKINNED_PLAYLIST_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, ui_skinned_playlist_get_type (), UiSkinnedPlaylistClass)
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
39 #define UI_SKINNED_IS_PLAYLIST(obj) GTK_CHECK_TYPE (obj, ui_skinned_playlist_get_type ())
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
40
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
41 typedef struct _UiSkinnedPlaylist UiSkinnedPlaylist;
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
42 typedef struct _UiSkinnedPlaylistClass UiSkinnedPlaylistClass;
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
43
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
44 struct _UiSkinnedPlaylist {
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
45 GtkWidget widget;
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
46 gboolean pressed;
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
47 gint x, y;
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
48 gint first;
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
49 gint num_visible;
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
50 gint prev_selected, prev_min, prev_max;
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
51 gboolean drag_motion;
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
52 gint drag_motion_x, drag_motion_y;
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
53 gint fheight;
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
54 };
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
55
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
56 struct _UiSkinnedPlaylistClass {
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
57 GtkWidgetClass parent_class;
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
58 void (* redraw) (UiSkinnedPlaylist *playlist);
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
59 };
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
60
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
61 GtkWidget* ui_skinned_playlist_new(GtkWidget *fixed, gint x, gint y, gint w, gint h);
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
62 GtkType ui_skinned_playlist_get_type(void);
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
63 void ui_skinned_playlist_resize_relative(GtkWidget *widget, gint w, gint h);
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
64 void ui_skinned_playlist_set_font(const gchar * font);
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
65 void ui_skinned_playlist_move_up(UiSkinnedPlaylist *pl);
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
66 void ui_skinned_playlist_move_down(UiSkinnedPlaylist *pl);
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
67 gint ui_skinned_playlist_get_position(GtkWidget *widget, gint x, gint y);
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
68
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
69 #ifdef __cplusplus
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
70 }
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
71 #endif
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
72
764e8f87c186 port PlayList_List to gtk2
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
73 #endif