changeset 8055:79ddb7291765

not needed
author pontscho
date Sat, 02 Nov 2002 18:57:14 +0000
parents 3d2ec2568659
children 324b6e5387be
files Gui/mplayer/mplayer.c Gui/mplayer/mw.c Gui/mplayer/play.c Gui/mplayer/sw.c
diffstat 4 files changed, 41 insertions(+), 29 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/mplayer/mplayer.c	Sat Nov 02 18:56:16 2002 +0000
+++ b/Gui/mplayer/mplayer.c	Sat Nov 02 18:57:14 2002 +0000
@@ -1,47 +1,28 @@
 
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
 #include <inttypes.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
 
-#include "./mplayer.h"
 #include "../app.h"
-#include "../cfg.h"
-#include "../interface.h"
 #include "../skin/skin.h"
-#include "../skin/font.h"
 #include "../wm/ws.h"
-#include "../wm/wskeys.h"
-#include "../wm/widget.h"
 #include "../wm/wsxdnd.h"
-#include "../bitmap/bitmap.h"
 
 #include "../../config.h"
 #include "../../help_mp.h"
 #include "../../libvo/x11_common.h"
-#include "../../libmpdemux/stream.h"
-#include "../../mp_msg.h"
-
-#include <gdk/gdkprivate.h>
-#include <gdk/gdkkeysyms.h>
-#include <gdk/gdk.h>
-#include <gtk/gtk.h>
-
-#define mplRedrawTimerConst 5
-
-int mplRedrawTimer = mplRedrawTimerConst;
 
 void mplEventHandling( int msg,float param );
 
+extern void mplMainDraw( wsParamDisplay );
+extern void mplEventHandling( int msg,float param );
+extern void mplMainMouseHandle( int Button,int X,int Y,int RX,int RY );
+extern void mplMainKeyHandle( int KeyCode,int Type,int Key );
+extern void mplDandDHandler(int num,char** files);
+extern void mplSubDraw( wsParamDisplay );
+extern void mplSubMouseHandle( int Button,int X,int Y,int RX,int RY );
+
 #include "widgets.h"
 #include "play.h"
 #include "menu.h"
-#include "mw.h"
-#include "sw.h"
-#include "widgets.h"
 
 void mplInit( void * disp )
 {
--- a/Gui/mplayer/mw.c	Sat Nov 02 18:56:16 2002 +0000
+++ b/Gui/mplayer/mw.c	Sat Nov 02 18:57:14 2002 +0000
@@ -1,12 +1,32 @@
 
 // main window
 
+#include <stdlib.h>
+#include <stdio.h>
+#include <inttypes.h>
+#include <sys/stat.h>
+#include <unistd.h>
+
+#include "../app.h"
+#include "../skin/font.h"
+#include "../wm/ws.h"
+
+#include "../../config.h"
+#include "../../help_mp.h"
+#include "../../libvo/x11_common.h"
+
 #include "../../libmpdemux/stream.h"
 #include "../../mixer.h"
 #include "../../libvo/sub.h"
 #include "../../mplayer.h"
 
+#include "play.h"
+#include "widgets.h"
+
 extern unsigned int GetTimerMS( void );
+extern void mplHideMenu( int mx,int my,int w );
+extern void mplShowMenu( int mx,int my );
+extern void mplMenuMouseHandle( int X,int Y,int RX,int RY );
 
 unsigned char * mplDrawBuffer = NULL;
 int             mplMainRender = 1;
@@ -470,7 +490,6 @@
    case evRedraw:
         mplMainRender=1;
         wsPostRedisplay( &appMPlayer.mainWindow );
-        mplRedrawTimer=mplRedrawTimerConst;
         break;
 // --- system events
 #ifdef MP_DEBUG
--- a/Gui/mplayer/play.c	Sat Nov 02 18:56:16 2002 +0000
+++ b/Gui/mplayer/play.c	Sat Nov 02 18:57:14 2002 +0000
@@ -16,7 +16,6 @@
 #include "../app.h"
 
 #include "../wm/wskeys.h"
-#include "../wm/widget.h"
 #include "../interface.h"
 
 #include "widgets.h"
--- a/Gui/mplayer/sw.c	Sat Nov 02 18:56:16 2002 +0000
+++ b/Gui/mplayer/sw.c	Sat Nov 02 18:57:14 2002 +0000
@@ -1,9 +1,22 @@
 
 // sub window
 
+#include "../app.h"
+#include "../interface.h"
+#include "../../help_mp.h"
+#include "widgets.h"
+
 int             mplSubRender = 0;
 int             SubVisible = 0;
 
+extern int             boxMoved;
+extern int             sx,sy;
+extern int             i,pot;
+
+extern void mplHideMenu( int mx,int my,int w );
+extern void mplShowMenu( int mx,int my );
+extern void mplMenuMouseHandle( int X,int Y,int RX,int RY );
+
 void mplSubDraw( wsParamDisplay )
 {
  if ( appMPlayer.subWindow.State == wsWindowClosed ) exit_player( MSGTR_Exit_quit );