2008-04-22 09:33:39 +00:00
|
|
|
/*
|
|
|
|
* This file is part of MPlayer.
|
|
|
|
*
|
|
|
|
* MPlayer is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* MPlayer is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with MPlayer; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
2008-02-22 09:09:46 +00:00
|
|
|
#ifndef MPLAYER_GUI_WIDGETS_H
|
|
|
|
#define MPLAYER_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>
|
|
|
|
|
2008-04-12 16:03:07 +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"
|
2008-04-11 16:55:27 +00:00
|
|
|
#include "gui/interface.h"
|
|
|
|
#include "gui/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
|
|
|
|
2008-02-22 09:09:46 +00:00
|
|
|
#endif /* MPLAYER_GUI_WIDGETS_H */
|