home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / IOC / MMSTEREO / MLTVID.HPP < prev    next >
Text File  |  1995-05-01  |  3KB  |  97 lines

  1. #include "mltvid.h"
  2. #include <immdigvd.hpp>
  3. #include <ifont.hpp>
  4. #include <immttime.hpp>
  5. #include <inotifev.hpp>
  6. #include <icolor.hpp>
  7. #include <ianimbut.hpp>
  8. #include <icmdhdr.hpp>
  9. #include <istattxt.hpp>
  10. #include <iobservr.hpp>
  11. #include <immplypn.hpp>
  12. #include <immplyhd.hpp>
  13. #include <ifiledlg.hpp>
  14. class VideoHandler;
  15. class VideoObserver;
  16.  
  17. class VIDEO  : public IMMPlayerPanel {
  18. //**************************************************************************
  19. // Class:   VIDEO                                                          *
  20. //                                                                         *
  21. // Purpose: Provide a Video player.                                        *
  22. //          It is a subclass of IMMPlayerPanel                             *
  23. //                                                                         *
  24. //**************************************************************************
  25. public:
  26.  
  27.   VIDEO( IMMDigitalVideo*  pVideo,
  28.          unsigned long     windowid,
  29.          IWindow*          parent,
  30.          IWindow*          owner);
  31.  
  32.   ~VIDEO();
  33.  
  34. /*-------------------------------- Device ------------------------------------*/
  35. IMMDigitalVideo*
  36.   videoPlayer          () const;
  37.  
  38. IStaticText
  39.   name,
  40.   readout;
  41.  
  42. private:
  43. IMMDigitalVideo
  44.   *pVideoPlayer;
  45.  
  46. IAnimatedButton
  47.   *loadit;
  48.  
  49. VideoHandler
  50.   *handler;
  51.  
  52. VideoObserver
  53.   *observer;
  54.  
  55. };
  56.  
  57. class VideoHandler : public IMMPlayerPanelHandler {
  58. typedef IMMPlayerPanelHandler
  59.   Inherited;
  60. //**************************************************************************
  61. // Class:   VideoHandler                                                   *
  62. //                                                                         *
  63. // Purpose: Provide a Handler for processing the load button.              *
  64. //                                                                         *
  65. //**************************************************************************
  66. public:
  67.  
  68.   VideoHandler ();
  69.  
  70. /*---------------------------- Event Dispatching -----------------------------*/
  71. virtual Boolean
  72.   command (ICommandEvent& event);
  73.  
  74. };
  75.  
  76. class VideoObserver : public IObserver {
  77. typedef IObserver
  78.   Inherited;
  79. //**************************************************************************
  80. // Class:   VideoObserver                                                  *
  81. //                                                                         *
  82. // Purpose: Provide an Observer for processing the play notifications.     *
  83. //                                                                         *
  84. //**************************************************************************
  85. public:
  86.  
  87.   VideoObserver (VIDEO& videoPanel);
  88.  
  89. virtual VideoObserver
  90.   &dispatchNotificationEvent(const INotificationEvent&);
  91.  
  92. private:
  93. VIDEO
  94.   &panel;
  95.  
  96. };
  97.