Mercurial > mplayer.hg
comparison gui/dialog/dialog.h @ 35529:8ad4d2fb46e8
Rebuild GUI directory structure.
Rename and move ui/widgets.* to dialog/dialog.*.
author | ib |
---|---|
date | Thu, 06 Dec 2012 15:16:38 +0000 |
parents | gui/ui/widgets.h@31a5320909f7 |
children | 46b3d0bb76e0 |
comparison
equal
deleted
inserted
replaced
35528:ab07b17fddfb | 35529:8ad4d2fb46e8 |
---|---|
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_DIALOG_H | |
20 #define MPLAYER_GUI_DIALOG_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 "osdep/shmem.h" | |
30 #include "gui/ui/actions.h" | |
31 #include "mplayer.h" | |
32 | |
33 #define GTK_MB_SIMPLE 0 | |
34 #define GTK_MB_MODAL 1 | |
35 #define GTK_MB_FATAL 2 | |
36 #define GTK_MB_ERROR 4 | |
37 #define GTK_MB_WARNING 8 | |
38 | |
39 extern GtkWidget *PlayList; | |
40 extern GtkWidget *Options; | |
41 extern GtkWidget *PopUpMenu; | |
42 | |
43 extern GtkWidget *WarningPixmap; | |
44 extern GtkWidget *ErrorPixmap; | |
45 | |
46 extern GtkWidget *SkinList; | |
47 extern GtkWidget *gtkMessageBoxText; | |
48 | |
49 extern int gtkPopupMenu; | |
50 extern int gtkPopupMenuParam; | |
51 | |
52 extern char *sbMPlayerDirInHome; | |
53 extern char *sbMPlayerPrefixDir; | |
54 | |
55 typedef struct { | |
56 Pixmap small; | |
57 Pixmap small_mask; | |
58 Pixmap normal; | |
59 Pixmap normal_mask; | |
60 int collection_size; | |
61 long *collection; | |
62 } guiIcon_t; | |
63 | |
64 extern guiIcon_t guiIcon; | |
65 | |
66 void widgetsCreate(void); | |
67 | |
68 void gtkInit(void); | |
69 void gtkAddIcon(GtkWidget *window); | |
70 | |
71 int gtkFillSkinList(gchar *dir); | |
72 void gtkClearList(GtkWidget *list); | |
73 void gtkSetDefaultToCList(GtkWidget *list, char *item); | |
74 int gtkFindCList(GtkWidget *list, char *item); | |
75 | |
76 void gtkEventHandling(void); | |
77 | |
78 void gtkShow(int type, char *param); | |
79 void gtkMessageBox(int type, const gchar *str); | |
80 void gtkSetLayer(GtkWidget *wdg); | |
81 void gtkActive(GtkWidget *wdg); | |
82 | |
83 #endif /* MPLAYER_GUI_DIALOG_H */ |