InterfaceWindow.h 2.24 KB
Newer Older
1
/*****************************************************************************
2
 * InterfaceWindow.h: BeOS interface window class prototype
3
 *****************************************************************************
4
 * Copyright (C) 1999, 2000, 2001 VideoLAN
5
 * $Id: InterfaceWindow.h,v 1.12 2002/03/22 13:16:35 tcastley Exp $
6
 *
7
 * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
Richard Shepherd's avatar
Richard Shepherd committed
8 9
 *          Tony Castley <tcastley@mail.powerup.com.au>
 *          Richard Shepherd <richard@rshepherd.demon.co.uk>
10 11 12 13 14
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
15
 * 
16 17
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
20
 *
21 22 23
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
24
 *****************************************************************************/
Tony Castley's avatar
Tony Castley committed
25
class MediaControlView;
26

27 28 29 30 31 32 33 34 35 36
class CDMenu : public BMenu
{
public:
	CDMenu(const char *name);
	~CDMenu();
	void AttachedToWindow(void);
private:
	int GetCD(const char *directory);
};

37 38 39
class LanguageMenu : public BMenu
{
public:
Tony Castley's avatar
Tony Castley committed
40 41
	LanguageMenu(const char *name, int menu_kind, 
	             intf_thread_t  *p_interface);
42 43 44 45 46 47 48 49
	~LanguageMenu();
	void AttachedToWindow(void);
private:
	intf_thread_t  *p_intf;
	int kind;
	int GetChannels();
};

50 51 52
class InterfaceWindow : public BWindow
{
public:
Tony Castley's avatar
Tony Castley committed
53 54
    InterfaceWindow( BRect frame, const char *name, 
                     intf_thread_t  *p_interface );
55 56 57 58 59
    ~InterfaceWindow();

    // standard window member
    virtual bool    QuitRequested();
    virtual void    MessageReceived(BMessage *message);
Sam Hocevar's avatar
Sam Hocevar committed
60 61
	void 			updateInterface();
	    
Tony Castley's avatar
Tony Castley committed
62
	MediaControlView *p_mediaControl;
63 64 65

private:	
    intf_thread_t  *p_intf;
Tony Castley's avatar
Tony Castley committed
66
    bool            b_empty_playlist;
Richard Shepherd's avatar
Richard Shepherd committed
67
	BFilePanel *file_panel;
68
    BMenuItem      *miOnTop;
69 70
	es_descriptor_t *  p_audio_es;
    es_descriptor_t *  p_spu_es;
71

72 73
};