Mercurial > mplayer.hg
comparison gui/ui/widgets.h @ 33556:520fb0f7544c
Rename GUI directory 'mplayer' and some files in it.
The directory 'mplayer' contains the files for the user interface and
has thus been renamed 'ui'.
Inside this directory the following files have been renamed to better
reflect their contents:
mw.c -> main.c
sw.c -> sub.c
pb.c -> playbar.c
gui_common.* -> render.*
play.* -> actions.*
author | ib |
---|---|
date | Sat, 18 Jun 2011 16:03:31 +0000 |
parents | gui/mplayer/widgets.h@10f9498fada1 |
children | 998f94e62a61 |
comparison
equal
deleted
inserted
replaced
33555:c5a19bbeac2b | 33556:520fb0f7544c |
---|---|
1 /* | |
2 * This file is part of MPlayer. | |
3 * | |
4 * MPlayer 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 * MPlayer 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 along | |
15 * with MPlayer; if not, write to the Free Software Foundation, Inc., | |
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
17 */ | |
18 | |
19 #ifndef MPLAYER_GUI_WIDGETS_H | |
20 #define MPLAYER_GUI_WIDGETS_H | |
21 | |
22 #include <stdio.h> | |
23 #include <stdlib.h> | |
24 #include <gdk/gdkkeysyms.h> | |
25 #include <gtk/gtk.h> | |
26 #include <X11/Xlib.h> | |
27 #include <X11/Xproto.h> | |
28 | |
29 #include "config.h" | |
30 #include "osdep/shmem.h" | |
31 #include "actions.h" | |
32 #include "mplayer.h" | |
33 #include "gui/interface.h" | |
34 | |
35 #define GTK_MB_SIMPLE 0 | |
36 #define GTK_MB_MODAL 1 | |
37 #define GTK_MB_FATAL 2 | |
38 #define GTK_MB_ERROR 4 | |
39 #define GTK_MB_WARNING 8 | |
40 | |
41 extern GtkWidget *PlayList; | |
42 extern GtkWidget *Options; | |
43 extern GtkWidget *PopUpMenu; | |
44 | |
45 extern GtkWidget *WarningPixmap; | |
46 extern GtkWidget *ErrorPixmap; | |
47 | |
48 extern GtkWidget *SkinList; | |
49 extern GtkWidget *gtkMessageBoxText; | |
50 | |
51 extern int gtkPopupMenu; | |
52 extern int gtkPopupMenuParam; | |
53 | |
54 extern char *sbMPlayerDirInHome; | |
55 extern char *sbMPlayerPrefixDir; | |
56 | |
57 typedef struct { | |
58 Pixmap small; | |
59 Pixmap small_mask; | |
60 Pixmap normal; | |
61 Pixmap normal_mask; | |
62 int collection_size; | |
63 CARD32 *collection; | |
64 } guiIcon_t; | |
65 | |
66 extern guiIcon_t guiIcon; | |
67 | |
68 void widgetsCreate(void); | |
69 | |
70 void gtkInit(void); | |
71 void gtkAddIcon(GtkWidget *window); | |
72 | |
73 int gtkFillSkinList(gchar *dir); | |
74 void gtkClearList(GtkWidget *list); | |
75 void gtkSetDefaultToCList(GtkWidget *list, char *item); | |
76 int gtkFindCList(GtkWidget *list, char *item); | |
77 | |
78 void gtkEventHandling(void); | |
79 | |
80 void gtkShow(int type, char *param); | |
81 void gtkMessageBox(int type, const gchar *str); | |
82 void gtkSetLayer(GtkWidget *wdg); | |
83 void gtkActive(GtkWidget *wdg); | |
84 | |
85 #endif /* MPLAYER_GUI_WIDGETS_H */ |