PlayListWindow.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * PlayListWindow.h: BeOS interface window class prototype
00003  *****************************************************************************
00004  * Copyright (C) 1999, 2000, 2001 the VideoLAN team
00005  * $Id$
00006  *
00007  * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
00008  *          Tony Castley <tcastley@mail.powerup.com.au>
00009  *          Richard Shepherd <richard@rshepherd.demon.co.uk>
00010  *          Stephan Aßmus <stippi@yellowbites.com>
00011  *
00012  * This program is free software; you can redistribute it and/or modify
00013  * it under the terms of the GNU General Public License as published by
00014  * the Free Software Foundation; either version 2 of the License, or
00015  * (at your option) any later version.
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program; if not, write to the Free Software
00024  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00025  *****************************************************************************/
00026 #if 0
00027 #ifndef BEOS_PLAY_LIST_WINDOW_H
00028 #define BEOS_PLAY_LIST_WINDOW_H
00029 
00030 #include <Window.h>
00031 
00032 class BMenuItem;
00033 class InterfaceWindow;
00034 class PlaylistView;
00035 
00036 class PlayListWindow : public BWindow
00037 {
00038  public:
00039                                 PlayListWindow(BRect frame,
00040                                                const char* name,
00041                                                InterfaceWindow* mainWindow,
00042                                                intf_thread_t *p_interface );
00043     virtual                        ~PlayListWindow();
00044 
00045                                 // BWindow
00046     virtual    bool                QuitRequested();
00047     virtual    void                MessageReceived(BMessage *message);
00048     virtual    void                FrameResized(float width, float height);
00049 
00050                                 // PlayListWindow
00051             void                ReallyQuit();
00052             void                UpdatePlaylist( bool rebuild = false );
00053 
00054             void                SetDisplayMode( uint32 mode );
00055             uint32                DisplayMode() const;
00056 
00057  private:    
00058             void                _CheckItemsEnableState() const;
00059             void                _SetMenuItemEnabled( BMenuItem* item,
00060                                                      bool enabled ) const;
00061 
00062             PlaylistView *      fListView;
00063             BView *             fBackgroundView;
00064             BMenuBar *          fMenuBar;
00065             InterfaceWindow *   fMainWindow;
00066 
00067             BMenuItem*            fSelectAllMI;
00068             BMenuItem*            fSelectNoneMI;
00069             BMenuItem*            fSortReverseMI;
00070             BMenuItem*            fSortNameMI;
00071             BMenuItem*            fSortPathMI;
00072             BMenuItem*            fRandomizeMI;
00073             BMenuItem*            fRemoveMI;
00074             BMenuItem*            fRemoveAllMI;
00075             BMenu*                fViewMenu;
00076             
00077             intf_thread_t *     p_intf;
00078 };
00079 
00080 #endif    // BEOS_PLAY_LIST_WINDOW_H
00081 #endif
00082 

Generated on Wed Mar 31 08:05:22 2010 for VLC by  doxygen 1.5.6