paragui-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paragui-cvs] CVS: pgmpeg/test main.cpp,1.1.1.1,1.2


From: Eric Ross <address@hidden>
Subject: [paragui-cvs] CVS: pgmpeg/test main.cpp,1.1.1.1,1.2
Date: Fri, 19 Apr 2002 21:24:35 -0400

Update of /cvsroot/paragui/pgmpeg/test
In directory subversions:/tmp/cvs-serv15707

Modified Files:
        main.cpp 
Log Message:
Test program updated to reflect the changes in PG_MPEGPlayer. New buttons to 
stop, rewind and pause the video.


Index: main.cpp
===================================================================
RCS file: /cvsroot/paragui/pgmpeg/test/main.cpp,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** main.cpp    15 Apr 2002 13:47:29 -0000      1.1.1.1
--- main.cpp    20 Apr 2002 01:24:33 -0000      1.2
***************
*** 55,58 ****
--- 55,76 ----
  }
  
+ PARAGUI_CALLBACK(handle_stop) 
+ {
+       thePlayer->Stop();
+         return true;
+ }
+ 
+ PARAGUI_CALLBACK(handle_rewind) 
+ {
+       thePlayer->Rewind();
+       return true;
+ }
+ 
+ PARAGUI_CALLBACK(handle_pause) 
+ {
+       thePlayer->Pause();
+         return true;
+ }
+ 
  PARAGUI_CALLBACK(handle_transparency) 
  {
***************
*** 112,122 ****
        f.Show();
  
!       PG_Button start(&f, 12, PG_Rect(10,10,80,30), "Start");
          start.SetEventCallback(MSG_BUTTONCLICK, handle_start, &app);
          start.Show();
  
!       PG_Button quit(&f, 12, PG_Rect(10,45,80,30), "Quit");
          quit.SetEventCallback(MSG_BUTTONCLICK, handle_exit, &app);
          quit.Show();
  
        thePlayer = new PG_MPEGPlayerWindow(argv[1], 
--- 130,159 ----
        f.Show();
  
!       int ypos = 10, height = 30, yskip = 5;
! 
!       PG_Button start(&f, 12, PG_Rect(10,ypos,80,height), "Start");
          start.SetEventCallback(MSG_BUTTONCLICK, handle_start, &app);
          start.Show();
+       ypos += height + yskip;
  
!       PG_Button stop(&f, 13, PG_Rect(10,ypos,80,height), "Stop");
!         stop.SetEventCallback(MSG_BUTTONCLICK, handle_stop, &app);
!         stop.Show();
!       ypos += height + yskip;
!       
!       PG_Button rewind(&f, 14, PG_Rect(10,ypos,80,height), "Rewind");
!         rewind.SetEventCallback(MSG_BUTTONCLICK, handle_rewind, &app);
!         rewind.Show();
!       ypos += height + yskip;
!       
!       PG_Button pause(&f, 15, PG_Rect(10,ypos,80,height), "Pause");
!         pause.SetEventCallback(MSG_BUTTONCLICK, handle_pause, &app);
!         pause.Show();
!       ypos += height + yskip;
!       
!       PG_Button quit(&f, 16, PG_Rect(10,ypos,80,height), "Quit");
          quit.SetEventCallback(MSG_BUTTONCLICK, handle_exit, &app);
          quit.Show();
+       ypos += height + yskip;
  
        thePlayer = new PG_MPEGPlayerWindow(argv[1], 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]