]> git.sesse.net Git - vlc/blobdiff - plugins/beos/InterfaceWindow.h
*) Added "#include <string.>" to include/threads.h
[vlc] / plugins / beos / InterfaceWindow.h
index b7246620e942be200b493f72bb631aa6ae0d04ac..9dcba51d68fbabe6f9700be78fbf12558d66a036 100644 (file)
@@ -2,6 +2,7 @@
  * InterfaceWindow.h: BeOS interface window class prototype
  *****************************************************************************
  * Copyright (C) 1999, 2000, 2001 VideoLAN
+ * $Id: InterfaceWindow.h,v 1.11 2001/06/15 09:07:10 tcastley Exp $
  *
  * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
  *          Tony Castley <tcastley@mail.powerup.com.au>
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
  *****************************************************************************/
+class MediaControlView;
 
-class InterfaceWindow : public BWindow
+class CDMenu : public BMenu
 {
 public:
-    InterfaceWindow( BRect frame, const char *name, intf_thread_t  *p_intf );
-    ~InterfaceWindow();
-
-    // standard window member
-    virtual bool    QuitRequested();
-    virtual void    MessageReceived(BMessage *message);
-    
-       
-    intf_thread_t  *p_intf;
-       BSlider * p_vol;
-       BSlider * p_seek;
-       BCheckBox * p_mute;
-       sem_id  fScrubSem;
-       bool    fSeeking;
-       BFilePanel *file_panel;
-
+       CDMenu(const char *name);
+       ~CDMenu();
+       void AttachedToWindow(void);
 private:
-       int GetCD(const char *directory, BMenu *cd_menu);
+       int GetCD(const char *directory);
 };
 
-class InterfaceView : public BView
+class LanguageMenu : public BMenu
 {
 public:
-    InterfaceView();
-    ~InterfaceView();
-
-    virtual void    MessageReceived(BMessage *message);
+       LanguageMenu(const char *name, int menu_kind, 
+                    intf_thread_t  *p_interface);
+       ~LanguageMenu();
+       void AttachedToWindow(void);
+private:
+       intf_thread_t  *p_intf;
+       int kind;
+       int GetChannels();
 };
 
-
-class MediaSlider : public BSlider
+class InterfaceWindow : public BWindow
 {
 public:
-       MediaSlider(BRect frame,
-                               BMessage *message,
-                               int32 minValue,
-                               int32 maxValue);
-       ~MediaSlider();
-       virtual void DrawThumb(void);
-};
-                               
+    InterfaceWindow( BRect frame, const char *name, 
+                     intf_thread_t  *p_interface );
+    ~InterfaceWindow();
 
-class SeekSlider : public MediaSlider
-{
-public:
-       SeekSlider(BRect frame,
-                               InterfaceWindow *owner,
-                               int32 minValue,
-                               int32 maxValue,
-                               thumb_style thumbType = B_TRIANGLE_THUMB);
+    // standard window member
+    virtual bool    QuitRequested();
+    virtual void    MessageReceived(BMessage *message);
+       void                    updateInterface();
+           
+       MediaControlView *p_mediaControl;
+
+private:       
+    intf_thread_t  *p_intf;
+    bool            b_empty_playlist;
+       BFilePanel *file_panel;
+       es_descriptor_t *  p_audio_es;
+    es_descriptor_t *  p_spu_es;
 
-       ~SeekSlider();
-       
-       virtual void MouseDown(BPoint);
-       virtual void MouseUp(BPoint pt);
-       virtual void MouseMoved(BPoint pt, uint32 c, const BMessage *m);
-private:
-       InterfaceWindow*        fOwner; 
-       bool fMouseDown;
 };
+