2001-08-25 21:04:29 +00:00
|
|
|
|
2007-07-02 22:34:45 +00:00
|
|
|
#ifndef GUI_WIDGETS_H
|
|
|
|
#define GUI_WIDGETS_H
|
2001-08-25 21:04:29 +00:00
|
|
|
|
2002-02-23 15:12:55 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2001-08-25 21:04:29 +00:00
|
|
|
#include <gdk/gdkkeysyms.h>
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
2005-12-08 22:12:57 +00:00
|
|
|
#include "../config.h"
|
|
|
|
#include "../osdep/shmem.h"
|
2001-11-21 17:43:57 +00:00
|
|
|
#include "play.h"
|
2002-02-23 15:12:55 +00:00
|
|
|
#include "mplayer.h"
|
2005-12-08 22:12:57 +00:00
|
|
|
#include "interface.h"
|
|
|
|
#include "wm/ws.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
|
|
|
extern GtkWidget * PlayList;
|
|
|
|
extern GtkWidget * Options;
|
2001-11-14 16:05:33 +00:00
|
|
|
extern GtkWidget * PopUpMenu;
|
2001-08-25 21:04:29 +00:00
|
|
|
|
2001-09-20 10:27:24 +00:00
|
|
|
extern GtkWidget * WarningPixmap;
|
|
|
|
extern GtkWidget * ErrorPixmap;
|
|
|
|
|
2001-08-25 21:04:29 +00:00
|
|
|
extern GtkWidget * SkinList;
|
|
|
|
extern GtkWidget * gtkMessageBoxText;
|
|
|
|
|
2002-02-23 15:12:55 +00:00
|
|
|
extern int gtkPopupMenu;
|
|
|
|
extern int gtkPopupMenuParam;
|
2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
extern char * sbMPlayerDirInHome;
|
|
|
|
extern char * sbMPlayerPrefixDir;
|
2007-07-18 10:09:42 +00:00
|
|
|
extern char * sbMPlayerDirInHome_obsolete;
|
|
|
|
extern char * sbMPlayerPrefixDir_obsolete;
|
2001-08-25 21:04:29 +00:00
|
|
|
|
2002-07-05 23:47:00 +00:00
|
|
|
extern GdkPixmap * gtkIcon;
|
|
|
|
extern GdkBitmap * gtkIconMask;
|
|
|
|
extern Pixmap guiIcon;
|
|
|
|
extern Pixmap guiIconMask;
|
|
|
|
|
2001-08-25 21:04:29 +00:00
|
|
|
extern void widgetsCreate( void );
|
|
|
|
|
2002-05-28 11:55:17 +00:00
|
|
|
extern void gtkInit( void );
|
2002-07-05 23:47:00 +00:00
|
|
|
extern void gtkAddIcon( GtkWidget * window );
|
2002-02-23 15:12:55 +00:00
|
|
|
|
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 );
|
|
|
|
|
2002-02-23 15:12:55 +00:00
|
|
|
extern void gtkEventHandling( void );
|
|
|
|
|
|
|
|
extern void gtkShow( int type,char * param );
|
2006-07-14 16:57:24 +00:00
|
|
|
extern void gtkMessageBox( int type,const gchar * str );
|
2002-05-20 13:56:16 +00:00
|
|
|
extern void gtkSetLayer( GtkWidget * wdg );
|
|
|
|
extern void gtkActive( GtkWidget * wdg );
|
2002-02-23 15:12:55 +00:00
|
|
|
|
2001-09-20 10:27:24 +00:00
|
|
|
#endif
|