1 /*****************************************************************************
2 * InterfaceWindow.h: BeOS interface window class prototype
3 *****************************************************************************
4 * Copyright (C) 1999, 2000, 2001 VideoLAN
6 * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
7 * Tony Castley <tcastley@mail.powerup.com.au>
8 * Richard Shepherd <richard@rshepherd.demon.co.uk>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
23 *****************************************************************************/
28 class CDMenu : public BMenu
31 CDMenu(const char *name);
33 void AttachedToWindow(void);
35 int GetCD(const char *directory);
38 class InterfaceWindow : public BWindow
41 InterfaceWindow( BRect frame, const char *name, intf_thread_t *p_intf );
44 // standard window member
45 virtual bool QuitRequested();
46 virtual void MessageReceived(BMessage *message);
49 intf_thread_t *p_intf;
55 BFilePanel *file_panel;
59 class InterfaceView : public BView
65 virtual void MessageReceived(BMessage *message);
69 class MediaSlider : public BSlider
72 MediaSlider(BRect frame,
77 virtual void DrawThumb(void);
81 class SeekSlider : public MediaSlider
84 SeekSlider(BRect frame,
85 InterfaceWindow *owner,
88 thumb_style thumbType = B_TRIANGLE_THUMB);
92 virtual void MouseDown(BPoint);
93 virtual void MouseUp(BPoint pt);
94 virtual void MouseMoved(BPoint pt, uint32 c, const BMessage *m);
96 InterfaceWindow* fOwner;