Mercurial > mplayer.hg
annotate Gui/mplayer/widgets.h @ 3172:bb38b6b072f8
support for FLI image decoding
author | melanson |
---|---|
date | Wed, 28 Nov 2001 01:35:55 +0000 |
parents | 9507f90d8254 |
children | 93351eec9f1f |
rev | line source |
---|---|
1693 | 1 |
2 #ifndef __MY_WIDGET | |
3 #define __MY_WIDGET | |
4 | |
5 #include <gdk/gdkkeysyms.h> | |
6 #include <gtk/gtk.h> | |
7 | |
3054 | 8 #include "../../config.h" |
1706 | 9 #include "../../linux/shmem.h" |
3054 | 10 #include "play.h" |
1693 | 11 |
1907 | 12 #define GTK_MB_SIMPLE 0 |
13 #define GTK_MB_MODAL 1 | |
14 #define GTK_MB_FATAL 2 | |
15 #define GTK_MB_ERROR 4 | |
16 #define GTK_MB_WARNING 8 | |
17 | |
1693 | 18 typedef struct |
19 { | |
2902
d47cbcdce1a8
rewrite some header meg jol csinaltam menu -t koepso gombra gonosz mod ( bocs, tom, nem angol).
pontscho
parents:
1925
diff
changeset
|
20 char dir[ 2048 ]; |
d47cbcdce1a8
rewrite some header meg jol csinaltam menu -t koepso gombra gonosz mod ( bocs, tom, nem angol).
pontscho
parents:
1925
diff
changeset
|
21 char filename[ 2048 ]; |
1693 | 22 } gtkFileSelectorStruct; |
23 | |
24 typedef struct | |
25 { | |
26 int sx; | |
27 int sy; | |
28 int tsx; | |
29 int tsy; | |
1907 | 30 int type; |
1693 | 31 char str[512]; |
32 } gtkMessageBoxStruct; | |
33 | |
34 typedef struct | |
35 { | |
36 char name[128]; | |
37 } gtkSkinStruct; | |
38 | |
39 typedef struct | |
40 { | |
41 int window; | |
42 } gtkVisibleStruct; | |
43 | |
44 typedef struct | |
45 { | |
46 int i; | |
47 } gtkOptionsStruct; | |
48 | |
49 typedef struct | |
50 { | |
51 int message; | |
52 gtkFileSelectorStruct fs; | |
53 gtkMessageBoxStruct mb; | |
54 gtkSkinStruct sb; | |
55 gtkVisibleStruct vs; | |
56 gtkOptionsStruct op; | |
3054 | 57 |
58 #ifdef USE_DVDREAD | |
59 mplDVDStruct DVD; | |
60 #endif | |
2980 | 61 |
2940 | 62 int popupmenu; |
3054 | 63 int popupmenuparam; |
2980 | 64 int visiblepopupmenu; |
1693 | 65 } gtkCommStruct; |
66 | |
67 extern gtkCommStruct * gtkShMem; | |
68 | |
69 extern GtkWidget * SkinBrowser; | |
70 extern GtkWidget * PlayList; | |
71 extern GtkWidget * FileSelect; | |
72 extern GtkWidget * AboutBox; | |
73 extern GtkWidget * Options; | |
2902
d47cbcdce1a8
rewrite some header meg jol csinaltam menu -t koepso gombra gonosz mod ( bocs, tom, nem angol).
pontscho
parents:
1925
diff
changeset
|
74 extern GtkWidget * PopUpMenu; |
1693 | 75 |
1925 | 76 extern GtkWidget * MessageBox; |
77 | |
78 extern GtkWidget * WarningPixmap; | |
79 extern GtkWidget * ErrorPixmap; | |
80 | |
1693 | 81 extern GtkWidget * SkinList; |
82 extern GtkWidget * gtkMessageBoxText; | |
83 | |
84 extern int gtkVisibleSkinBrowser; | |
85 extern int gtkVisiblePlayList; | |
86 extern int gtkVisibleFileSelect; | |
87 extern int gtkVisibleMessageBox; | |
88 extern int gtkVisibleAboutBox; | |
89 extern int gtkVisibleOptions; | |
90 | |
91 extern char * sbMPlayerDirInHome; | |
92 extern char * sbMPlayerPrefixDir; | |
93 | |
94 extern void widgetsCreate( void ); | |
95 | |
96 extern void gtkInit( int argc,char* argv[], char *envp[] ); | |
97 extern void gtkDone( void ); | |
1907 | 98 extern void gtkMessageBox( int type,gchar * str ); |
1693 | 99 extern int gtkFillSkinList( gchar * dir ); |
100 extern void gtkClearList( GtkWidget * list ); | |
101 extern void gtkSetDefaultToCList( GtkWidget * list,char * item ); | |
102 extern int gtkFindCList( GtkWidget * list,char * item ); | |
103 | |
1925 | 104 #endif |