2 * MainWin.h - Media Player for the Haiku Operating System
4 * Copyright (C) 2006 Marcus Overhagen <marcus@overhagen.de>
6 * Released under the terms of the MIT license.
8 #ifndef __FILE_INFO_WIN_H
9 #define __FILE_INFO_WIN_H
19 class ControllerObserver
;
23 #define INFO_STATS 0x00000001
24 #define INFO_TRANSPORT 0x00000002
25 #define INFO_FILE 0x00000004
26 #define INFO_AUDIO 0x00000008
27 #define INFO_VIDEO 0x00000010
28 #define INFO_COPYRIGHT 0x00000020
30 #define INFO_ALL 0xffffffff
33 class InfoWin
: public BWindow
{
35 InfoWin(BPoint leftTop
,
36 Controller
* controller
);
39 virtual void MessageReceived(BMessage
* message
);
40 virtual bool QuitRequested();
43 void Update(uint32 which
= INFO_ALL
);
49 void _UpdateDuration();
50 void _UpdateCopyright();
52 BStringView
* _CreateLabel(const char* name
,
54 BStringView
* _CreateInfo(const char* name
);
55 BLayoutItem
* _CreateSeparator();
56 void _SetVisible(BView
* view
, bool visible
);
59 Controller
* fController
;
60 ControllerObserver
* fControllerObserver
;
63 BStringView
* fFilenameView
;
65 BStringView
* fContainerInfo
;
66 BLayoutItem
* fVideoSeparator
;
67 BStringView
* fVideoLabel
;
68 BStringView
* fVideoFormatInfo
;
69 BStringView
* fVideoConfigInfo
;
70 BStringView
* fDisplayModeLabel
;
71 BStringView
* fDisplayModeInfo
;
72 BLayoutItem
* fAudioSeparator
;
73 BStringView
* fAudioLabel
;
74 BStringView
* fAudioFormatInfo
;
75 BStringView
* fAudioConfigInfo
;
76 BStringView
* fDurationInfo
;
77 BStringView
* fLocationInfo
;
78 BLayoutItem
* fCopyrightSeparator
;
79 BStringView
* fCopyrightLabel
;
80 BStringView
* fCopyrightInfo
;
84 #endif // __FILE_INFO_WIN_H