1 /*
2    Project: MPDCon
3 
4    Copyright (C) 2004
5 
6    Author: Daniel Luederwald
7 
8    Created: 2004-05-12 17:59:14 +0200 by flip
9 
10    Custom View : Shows Trackinfos etc.
11 
12    This application is free software; you can redistribute it and/or
13    modify it under the terms of the GNU General Public
14    License as published by the Free Software Foundation; either
15    version 2 of the License, or (at your option) any later version.
16 
17    This application 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 GNU
20    Library General Public License for more details.
21 
22    You should have received a copy of the GNU General Public
23    License along with this library; if not, write to the Free
24    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
25 */
26 
27 #ifndef _PCAPPPROJ_PLAYVIEW_H
28 #define _PCAPPPROJ_PLAYVIEW_H
29 
30 #include <AppKit/AppKit.h>
31 #include "PlaylistItem.h"
32 #include "Strings.h"
33 
34 @interface PlayView : NSView
35 {
36   PlaylistItem *dispSong;
37   int currentSong, totalSongs;
38   BOOL displayEnabled;
39 
40   int artistScroll, titleScroll, albumScroll;
41   BOOL artistScrollForward, titleScrollForward, albumScrollForward;
42   BOOL reversedTime;
43   BOOL notificationAdded;
44 }
45 
46 // Display Methods
47 - (void) setDisplaySong: (PlaylistItem *)newSong;
48 - (void) setCurrentSong: (int)newSong;
49 - (void) setTotalSongs: (int)newSong;
50 - (void) setElapsedTime: (int)newTime;
51 - (void) setReversedTime: (BOOL)reversed;
52 - (void) enableDisplay: (BOOL)enable;
53 
54 // Notification Methods
55 - (void) songChanged: (NSNotification *)aNotif;
56 
57 //NSColor *colorFromDict(NSDictionary *dict);
58 @end
59 
60 #endif
61