/* * Copyright 2007, Haiku. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * Stephan Aßmus * Fredrik Modéen */ #ifndef PLAYLIST_WINDOW_H #define PLAYLIST_WINDOW_H #include #include "ListenerAdapter.h" class BMenuBar; class BMenuItem; class CommandStack; class Controller; class Notifier; class Playlist; class PlaylistListView; class RWLocker; class BButton; class BFilePanel; class PlaylistWindow : public BWindow { public: PlaylistWindow(BRect frame, Playlist* playlist, Controller* controller); virtual ~PlaylistWindow(); virtual bool QuitRequested(); virtual void MessageReceived(BMessage* message); private: void _CreateMenu(BRect& frame); void _ObjectChanged(const Notifier* object); Playlist* fPlaylist; PlaylistListView* fListView; BView* fTopView; BMenuItem* fUndoMI; BMenuItem* fRedoMI; BFilePanel* fOpenPanel; BFilePanel* fSavePanel; RWLocker* fLocker; CommandStack* fCommandStack; ListenerAdapter fCommandStackListener; }; #endif // PLAYLIST_WINDOW_H