1 /*****************************************************************************
2 * InterfaceWindow.h: BeOS interface window class prototype
3 *****************************************************************************
4 * Copyright (C) 1999, 2000, 2001 VideoLAN
5 * $Id: InterfaceWindow.h,v 1.9 2003/01/22 01:13:22 titer Exp $
7 * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
8 * Tony Castley <tcastley@mail.powerup.com.au>
9 * Richard Shepherd <richard@rshepherd.demon.co.uk>
10 * Stephan Aßmus <stippi@yellowbites.com>
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
25 *****************************************************************************/
27 #ifndef BEOS_INTERFACE_WINDOW_H
28 #define BEOS_INTERFACE_WINDOW_H
34 class MediaControlView;
37 class PreferencesWindow;
39 class CDMenu : public BMenu
42 CDMenu( const char* name );
45 virtual void AttachedToWindow();
48 int GetCD( const char* directory );
51 class LanguageMenu : public BMenu
54 LanguageMenu( const char* name,
56 VlcWrapper *p_wrapper );
57 virtual ~LanguageMenu();
59 virtual void AttachedToWindow();
64 VlcWrapper * p_wrapper;
68 class TitleMenu : public BMenu
71 TitleMenu( const char* name, intf_thread_t *p_interface );
74 virtual void AttachedToWindow();
76 intf_thread_t *p_intf;
79 class ChapterMenu : public BMenu
82 ChapterMenu( const char* name, intf_thread_t *p_interface );
83 virtual ~ChapterMenu();
85 virtual void AttachedToWindow();
87 intf_thread_t *p_intf;
91 class InterfaceWindow : public BWindow
94 InterfaceWindow( BRect frame,
96 intf_thread_t* p_interface );
97 virtual ~InterfaceWindow();
100 virtual void FrameResized( float width, float height );
101 virtual void MessageReceived( BMessage* message );
102 virtual bool QuitRequested();
105 void updateInterface();
106 bool IsStopped() const;
108 MediaControlView* p_mediaControl;
111 void _UpdatePlaylist();
112 void _SetMenusEnabled( bool hasFile,
113 bool hasChapters = false,
114 bool hasTitles = false );
115 void _UpdateSpeedMenu( int rate );
116 void _InputStreamChanged();
118 intf_thread_t* p_intf;
119 es_descriptor_t* p_spu_es;
121 bool fPlaylistIsEmpty;
122 BFilePanel* fFilePanel;
123 BFilePanel* fSubtitlesPanel;
124 PlayListWindow* fPlaylistWindow;
125 PreferencesWindow* fPreferencesWindow;
127 BMenuItem* fNextTitleMI;
128 BMenuItem* fPrevTitleMI;
129 BMenuItem* fNextChapterMI;
130 BMenuItem* fPrevChapterMI;
132 BMenuItem* fSlowerMI;
133 BMenuItem* fNormalMI;
134 BMenuItem* fFasterMI;
135 BMenuItem* fPreferencesMI;
137 BMenu* fNavigationMenu;
140 BMenu* fLanguageMenu;
141 BMenu* fSubtitlesMenu;
143 BMenu* fSettingsMenu;
144 bigtime_t fLastUpdateTime;
146 VlcWrapper * p_wrapper;
149 #endif // BEOS_INTERFACE_WINDOW_H