2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
#ifndef __MY_WIDGET
|
|
|
|
#define __MY_WIDGET
|
|
|
|
|
|
|
|
#include <gdk/gdkkeysyms.h>
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
2001-08-26 19:54:37 +00:00
|
|
|
#include "../../linux/shmem.h"
|
2001-08-25 21:04:29 +00:00
|
|
|
|
2001-09-17 21:16:00 +00:00
|
|
|
#define GTK_MB_SIMPLE 0
|
|
|
|
#define GTK_MB_MODAL 1
|
|
|
|
#define GTK_MB_FATAL 2
|
|
|
|
#define GTK_MB_ERROR 4
|
|
|
|
#define GTK_MB_WARNING 8
|
|
|
|
|
2001-08-25 21:04:29 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
char dir[ 1024 ];
|
|
|
|
char filename[ 1024 ];
|
|
|
|
} gtkFileSelectorStruct;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int sx;
|
|
|
|
int sy;
|
|
|
|
int tsx;
|
|
|
|
int tsy;
|
2001-09-17 21:16:00 +00:00
|
|
|
int type;
|
2001-08-25 21:04:29 +00:00
|
|
|
char str[512];
|
|
|
|
} gtkMessageBoxStruct;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
char name[128];
|
|
|
|
} gtkSkinStruct;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int window;
|
|
|
|
} gtkVisibleStruct;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
} gtkOptionsStruct;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int message;
|
|
|
|
gtkFileSelectorStruct fs;
|
|
|
|
gtkMessageBoxStruct mb;
|
|
|
|
gtkSkinStruct sb;
|
|
|
|
gtkVisibleStruct vs;
|
|
|
|
gtkOptionsStruct op;
|
|
|
|
} gtkCommStruct;
|
|
|
|
|
|
|
|
extern gtkCommStruct * gtkShMem;
|
|
|
|
|
|
|
|
extern GtkWidget * SkinBrowser;
|
|
|
|
extern GtkWidget * PlayList;
|
|
|
|
extern GtkWidget * FileSelect;
|
|
|
|
extern GtkWidget * AboutBox;
|
|
|
|
extern GtkWidget * Options;
|
|
|
|
|
2001-09-20 10:27:24 +00:00
|
|
|
extern GtkWidget * MessageBox;
|
|
|
|
|
|
|
|
extern GtkWidget * WarningPixmap;
|
|
|
|
extern GtkWidget * ErrorPixmap;
|
|
|
|
|
2001-08-25 21:04:29 +00:00
|
|
|
extern GtkWidget * SkinList;
|
|
|
|
extern GtkWidget * gtkMessageBoxText;
|
|
|
|
|
|
|
|
extern int gtkVisibleSkinBrowser;
|
|
|
|
extern int gtkVisiblePlayList;
|
|
|
|
extern int gtkVisibleFileSelect;
|
|
|
|
extern int gtkVisibleMessageBox;
|
|
|
|
extern int gtkVisibleAboutBox;
|
|
|
|
extern int gtkVisibleOptions;
|
|
|
|
|
|
|
|
extern char * sbMPlayerDirInHome;
|
|
|
|
extern char * sbMPlayerPrefixDir;
|
|
|
|
|
|
|
|
extern void widgetsCreate( void );
|
|
|
|
|
|
|
|
extern void gtkInit( int argc,char* argv[], char *envp[] );
|
|
|
|
extern void gtkDone( void );
|
2001-09-17 21:16:00 +00:00
|
|
|
extern void gtkMessageBox( int type,gchar * str );
|
2001-08-25 21:04:29 +00:00
|
|
|
extern int gtkFillSkinList( gchar * dir );
|
|
|
|
extern void gtkClearList( GtkWidget * list );
|
|
|
|
extern void gtkSetDefaultToCList( GtkWidget * list,char * item );
|
|
|
|
extern int gtkFindCList( GtkWidget * list,char * item );
|
|
|
|
|
2001-09-20 10:27:24 +00:00
|
|
|
#endif
|