1693
|
1
|
|
2 #ifndef __MY_WIDGET
|
|
3 #define __MY_WIDGET
|
|
4
|
|
5 #include <gdk/gdkkeysyms.h>
|
|
6 #include <gtk/gtk.h>
|
|
7
|
1706
|
8 #include "../../linux/shmem.h"
|
1693
|
9
|
1907
|
10 #define GTK_MB_SIMPLE 0
|
|
11 #define GTK_MB_MODAL 1
|
|
12 #define GTK_MB_FATAL 2
|
|
13 #define GTK_MB_ERROR 4
|
|
14 #define GTK_MB_WARNING 8
|
|
15
|
1693
|
16 typedef struct
|
|
17 {
|
|
18 char dir[ 1024 ];
|
|
19 char filename[ 1024 ];
|
|
20 } gtkFileSelectorStruct;
|
|
21
|
|
22 typedef struct
|
|
23 {
|
|
24 int sx;
|
|
25 int sy;
|
|
26 int tsx;
|
|
27 int tsy;
|
1907
|
28 int type;
|
1693
|
29 char str[512];
|
|
30 } gtkMessageBoxStruct;
|
|
31
|
|
32 typedef struct
|
|
33 {
|
|
34 char name[128];
|
|
35 } gtkSkinStruct;
|
|
36
|
|
37 typedef struct
|
|
38 {
|
|
39 int window;
|
|
40 } gtkVisibleStruct;
|
|
41
|
|
42 typedef struct
|
|
43 {
|
|
44 int i;
|
|
45 } gtkOptionsStruct;
|
|
46
|
|
47 typedef struct
|
|
48 {
|
|
49 int message;
|
|
50 gtkFileSelectorStruct fs;
|
|
51 gtkMessageBoxStruct mb;
|
|
52 gtkSkinStruct sb;
|
|
53 gtkVisibleStruct vs;
|
|
54 gtkOptionsStruct op;
|
|
55 } gtkCommStruct;
|
|
56
|
|
57 extern gtkCommStruct * gtkShMem;
|
|
58
|
|
59 extern GtkWidget * SkinBrowser;
|
|
60 extern GtkWidget * PlayList;
|
|
61 extern GtkWidget * FileSelect;
|
|
62 extern GtkWidget * AboutBox;
|
|
63 extern GtkWidget * Options;
|
|
64
|
1925
|
65 extern GtkWidget * MessageBox;
|
|
66
|
|
67 extern GtkWidget * WarningPixmap;
|
|
68 extern GtkWidget * ErrorPixmap;
|
|
69
|
1693
|
70 extern GtkWidget * SkinList;
|
|
71 extern GtkWidget * gtkMessageBoxText;
|
|
72
|
|
73 extern int gtkVisibleSkinBrowser;
|
|
74 extern int gtkVisiblePlayList;
|
|
75 extern int gtkVisibleFileSelect;
|
|
76 extern int gtkVisibleMessageBox;
|
|
77 extern int gtkVisibleAboutBox;
|
|
78 extern int gtkVisibleOptions;
|
|
79
|
|
80 extern char * sbMPlayerDirInHome;
|
|
81 extern char * sbMPlayerPrefixDir;
|
|
82
|
|
83 extern void widgetsCreate( void );
|
|
84
|
|
85 extern void gtkInit( int argc,char* argv[], char *envp[] );
|
|
86 extern void gtkDone( void );
|
1907
|
87 extern void gtkMessageBox( int type,gchar * str );
|
1693
|
88 extern int gtkFillSkinList( gchar * dir );
|
|
89 extern void gtkClearList( GtkWidget * list );
|
|
90 extern void gtkSetDefaultToCList( GtkWidget * list,char * item );
|
|
91 extern int gtkFindCList( GtkWidget * list,char * item );
|
|
92
|
1925
|
93 #endif
|