PlayListWindow.h
上传用户:kjfoods
上传日期:2020-07-06
资源大小:29949k
文件大小:3k
源码类别:

midi

开发平台:

Unix_Linux

  1. /*****************************************************************************
  2.  * PlayListWindow.h: BeOS interface window class prototype
  3.  *****************************************************************************
  4.  * Copyright (C) 1999, 2000, 2001 the VideoLAN team
  5.  * $Id: bfcfd63f2a3ef252f0596f6038bc6cfe731e354d $
  6.  *
  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>
  11.  *
  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.
  16.  *
  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.
  21.  *
  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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  25.  *****************************************************************************/
  26. #if 0
  27. #ifndef BEOS_PLAY_LIST_WINDOW_H
  28. #define BEOS_PLAY_LIST_WINDOW_H
  29. #include <Window.h>
  30. class BMenuItem;
  31. class InterfaceWindow;
  32. class PlaylistView;
  33. class PlayListWindow : public BWindow
  34. {
  35.  public:
  36.                                 PlayListWindow(BRect frame,
  37.                                                const char* name,
  38.                                                InterfaceWindow* mainWindow,
  39.                                                intf_thread_t *p_interface );
  40.     virtual                        ~PlayListWindow();
  41.                                 // BWindow
  42.     virtual    bool                QuitRequested();
  43.     virtual    void                MessageReceived(BMessage *message);
  44.     virtual    void                FrameResized(float width, float height);
  45.                                 // PlayListWindow
  46.             void                ReallyQuit();
  47.             void                UpdatePlaylist( bool rebuild = false );
  48.             void                SetDisplayMode( uint32 mode );
  49.             uint32                DisplayMode() const;
  50.  private:    
  51.             void                _CheckItemsEnableState() const;
  52.             void                _SetMenuItemEnabled( BMenuItem* item,
  53.                                                      bool enabled ) const;
  54.             PlaylistView *      fListView;
  55.             BView *             fBackgroundView;
  56.             BMenuBar *          fMenuBar;
  57.             InterfaceWindow *   fMainWindow;
  58.             BMenuItem*            fSelectAllMI;
  59.             BMenuItem*            fSelectNoneMI;
  60.             BMenuItem*            fSortReverseMI;
  61.             BMenuItem*            fSortNameMI;
  62.             BMenuItem*            fSortPathMI;
  63.             BMenuItem*            fRandomizeMI;
  64.             BMenuItem*            fRemoveMI;
  65.             BMenuItem*            fRemoveAllMI;
  66.             BMenu*                fViewMenu;
  67.             
  68.             intf_thread_t *     p_intf;
  69. };
  70. #endif    // BEOS_PLAY_LIST_WINDOW_H
  71. #endif