26029
|
1 #ifndef MPLAYER_GUI_WIDGETS_H
|
|
2 #define MPLAYER_GUI_WIDGETS_H
|
23077
|
3
|
|
4 #include <stdio.h>
|
|
5 #include <stdlib.h>
|
|
6 #include <gdk/gdkkeysyms.h>
|
|
7 #include <gtk/gtk.h>
|
|
8
|
|
9 #include "../config.h"
|
|
10 #include "../osdep/shmem.h"
|
|
11 #include "play.h"
|
|
12 #include "mplayer.h"
|
|
13 #include "interface.h"
|
|
14 #include "wm/ws.h"
|
|
15
|
|
16 #define GTK_MB_SIMPLE 0
|
|
17 #define GTK_MB_MODAL 1
|
|
18 #define GTK_MB_FATAL 2
|
|
19 #define GTK_MB_ERROR 4
|
|
20 #define GTK_MB_WARNING 8
|
|
21
|
|
22 extern GtkWidget * PlayList;
|
|
23 extern GtkWidget * Options;
|
|
24 extern GtkWidget * PopUpMenu;
|
|
25
|
|
26 extern GtkWidget * WarningPixmap;
|
|
27 extern GtkWidget * ErrorPixmap;
|
|
28
|
|
29 extern GtkWidget * SkinList;
|
|
30 extern GtkWidget * gtkMessageBoxText;
|
|
31
|
|
32 extern int gtkPopupMenu;
|
|
33 extern int gtkPopupMenuParam;
|
|
34
|
|
35 extern char * sbMPlayerDirInHome;
|
|
36 extern char * sbMPlayerPrefixDir;
|
23795
|
37 extern char * sbMPlayerDirInHome_obsolete;
|
|
38 extern char * sbMPlayerPrefixDir_obsolete;
|
23077
|
39
|
|
40 extern GdkPixmap * gtkIcon;
|
|
41 extern GdkBitmap * gtkIconMask;
|
|
42 extern Pixmap guiIcon;
|
|
43 extern Pixmap guiIconMask;
|
|
44
|
|
45 extern void widgetsCreate( void );
|
|
46
|
|
47 extern void gtkInit( void );
|
|
48 extern void gtkAddIcon( GtkWidget * window );
|
|
49
|
|
50 extern int gtkFillSkinList( gchar * dir );
|
|
51 extern void gtkClearList( GtkWidget * list );
|
|
52 extern void gtkSetDefaultToCList( GtkWidget * list,char * item );
|
|
53 extern int gtkFindCList( GtkWidget * list,char * item );
|
|
54
|
|
55 extern void gtkEventHandling( void );
|
|
56
|
|
57 extern void gtkShow( int type,char * param );
|
|
58 extern void gtkMessageBox( int type,const gchar * str );
|
|
59 extern void gtkSetLayer( GtkWidget * wdg );
|
|
60 extern void gtkActive( GtkWidget * wdg );
|
|
61
|
26029
|
62 #endif /* MPLAYER_GUI_WIDGETS_H */
|