Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 219 lines (209 sloc) 7.807 kb
7d50a5f no message
yamp authored
1 #pragma once
ba3e5a2 Fixed some memory leaks in the mod player.
butcheruk authored
2
3 #include <xtl.h>
4 #include <xgraphics.h>
5 #include <stdio.h>
6 #include <vector>
7 #include <memory>
8 #include <stdlib.h>
7d50a5f no message
yamp authored
9 #include "xbapplicationex.h"
151df40 ac3 pass through audio output classes
yamp authored
10 #include "applicationmessenger.h"
7d50a5f no message
yamp authored
11 #include "GUIWindowManager.h"
12 #include "guiwindow.h"
13 #include "GUIMessage.h"
14 #include "GUIButtonControl.h"
15 #include "GUIImage.h"
16 #include "GUIFontManager.h"
3ca7405 changed: skin directory layout now handles subdirs for all resolutions.
jmarshallnz authored
17 #include "SkinInfo.h"
7d50a5f no message
yamp authored
18 #include "key.h"
85d0849 24-02-2004 added: show info on LCD about current audio/video file playin...
yamp authored
19 #include "utils/imdb.h"
20
7d50a5f no message
yamp authored
21 #include "GUIWindowHome.h"
22 #include "GUIWindowPrograms.h"
347ac79 no message
yamp authored
23 #include "GUIWindowSettingsPrograms.h"
7d50a5f no message
yamp authored
24 #include "GUIWindowPictures.h"
25 #include "GUIWindowMyFiles.h"
fd1a107 no message
yamp authored
26 #include "GUIWindowVideo.h"
36fed40 added video genres, not fully working yet
yamp authored
27 #include "GUIWindowVideoGenre.h"
347ac79 no message
yamp authored
28 #include "GUIWindowVideoActors.h"
29 #include "GUIWindowVideoYear.h"
e8e7218 added my video: view by title
yamp authored
30 #include "GUIWindowVideoTitle.h"
7d50a5f no message
yamp authored
31 #include "GUIWindowSettings.h"
32 #include "GUIDialogYesNo.h"
1f48381 no message
yamp authored
33 #include "GUIDialogOK.h"
7d50a5f no message
yamp authored
34 #include "GUIDialogProgress.h"
1f48381 no message
yamp authored
35 #include "GUIDialogSelect.h"
890c92d no message
yamp authored
36 #include "GUIDialogFileStacking.h"
c78bf4e no message
yamp authored
37 #include "GUIWindowSystemInfo.h"
b36ff7b no message
yamp authored
38 #include "GUIWindowSettingsLCD.h"
c78bf4e no message
yamp authored
39 #include "GUIWindowSettingsGeneral.h"
55cbfc7 New re-org of settings screens
forza authored
40 //#include "GUIWindowSettingsScreen.h"
41 #include "GUIWindowSettingsMyVideo.h"
efcf8fc added many things for video playback
yamp authored
42 #include "GUIWindowSettingsUICalibration.h"
765075b Changed: FullScreen Video window is now handled by the Window Manager
jmarshallnz authored
43 #include "GUIWindowSettingsScreenCalibration.h"
9b8ea3d added subtitle font/size selection
yamp authored
44 #include "GUIWindowSettingsSubtitles.h"
ffcd710 New screensavers (dim, blank, matrix trails) and settings window
forza authored
45 #include "GUIWindowScreensaver.h" // CB: Matrix Screensaver
77da70d Changed: Moved OSD Timeout setting to new section off screen menu
forza authored
46 #include "GUIWindowOSD.h"
1f48381 no message
yamp authored
47 #include "GUIWindowMusicInfo.h"
203e723 no message
yamp authored
48 #include "GUIWindowVideoInfo.h"
9084105 added dialog for python error output (press info in scripts window)
jwnmulder authored
49 #include "GUIWindowScriptsInfo.h"
f0cf26d no message
yamp authored
50 #include "GUIWindowMusicOverlay.h"
eb6df33 added soften/zoom/strech & movie preview windows
yamp authored
51 #include "GUIWindowFullScreen.h"
56c902e no message
yamp authored
52 #include "GUIWindowVideoOverlay.h"
0a3c2fc no message
yamp authored
53 #include "GUIWindowVideoPlaylist.h"
28ce4de added slideshow settings
yamp authored
54 #include "GUIWindowSettingsSlideShow.h"
ffcd710 New screensavers (dim, blank, matrix trails) and settings window
forza authored
55 #include "GUIWindowSettingsScreensaver.h"
3b951c2 no message
yamp authored
56 #include "guiwindowsettingsautorun.h"
6c2cb29 started with beginning of minification/magnification filter settings (no...
yamp authored
57 #include "guiwindowsettingsfilter.h"
55cbfc7 New re-org of settings screens
forza authored
58 //#include "guiwindowsettingsmusic.h"
59 #include "GUIWindowSettingsMyMusic.h"
6eea282 no message
yamp authored
60 #include "GUIWindowScripts.h"
2683dc3 started with architecture for dynamic visualisation plugins
yamp authored
61 #include "GUIWindowVisualisation.h"
49bdf70 Slideshow window now handled by WindowManager.
jmarshallnz authored
62 #include "GUIWindowSlideshow.h"
6af2cd3 changed: my music window split into different windows (songs, albums, ar...
bobbin007 authored
63 #include "GUIWindowMusicPlaylist.h"
64 #include "GUIWindowMusicSongs.h"
65 #include "GUIWindowMusicAlbum.h"
66 #include "GUIWindowMusicArtists.h"
67 #include "GUIWindowMusicGenres.h"
68 #include "GUIWindowMusicTop100.h"
47d9def added: my weather (thx to mynci for programming it!)
yamp authored
69 #include "GUIWindowWeather.h" //WEATHER
3fec295 Patch merge: [ 897492 ] Settings UI for My Weather
butcheruk authored
70 #include "GUIWindowSettingsWeather.h" //WEATHER SETTINGS
ccddccf 21-02-2004 added: GUI for changing cachesize settings
yamp authored
71 #include "GUIWindowSettingsCache.h"
7d50a5f no message
yamp authored
72 #include "LocalizeStrings.h"
f1b7384 no message
yamp authored
73 #include "utils/sntp.h"
89c76c3 no message
yamp authored
74 #include "utils/delaycontroller.h"
7d50a5f no message
yamp authored
75 #include "keyboard/virtualkeyboard.h"
6eea282 no message
yamp authored
76 #include "lib/libPython/XBPython.h"
ce1e7fa update and some bugfixes for python
jwnmulder authored
77 #include "lib/libGoAhead/webserver.h"
5c9177e adding filezilla support - disabled for now
rjm2k1 authored
78 #include "lib/libfilezilla/xbfilezilla.h"
f0e49d4 no message
yamp authored
79 #include "cores/IPlayer.h"
aa6431d SQLite embedded database
yamp authored
80 #include "DetectDVDType.h"
6ddb5bf dded: Autorun media in DVD drive (Thx 2 bobbin007)
yamp authored
81 #include "Autorun.h"
82 #include "IMsgTargetCallback.h"
365c7f6 Mapping from Buttons to Actions. New file keymap.xml in the XBMC root d...
jmarshallnz authored
83 #include "ButtonTranslator.h"
85d0849 24-02-2004 added: show info on LCD about current audio/video file playin...
yamp authored
84 #include "musicInfoTag.h"
55cbfc7 New re-org of settings screens
forza authored
85 #include "GUIWindowSettingsSkinLanguage.h"
86 #include "GUIWindowSettingsUserInterface.h"
87 #include "GUIWindowSettingsAudio.h"
f16fba6 added: new python stuff by darkie!! (thx m8)
yamp authored
88
203e723 no message
yamp authored
89 using namespace std;
0c7bfaf Changed: renamed namespace XISO9660 to MEDIA_DETECT, moved CAutorun and ...
bobbin007 authored
90 using namespace MEDIA_DETECT;
85d0849 24-02-2004 added: show info on LCD about current audio/video file playin...
yamp authored
91 using namespace MUSIC_INFO;
7d50a5f no message
yamp authored
92
6ddb5bf dded: Autorun media in DVD drive (Thx 2 bobbin007)
yamp authored
93 class CApplication : public CXBApplicationEx, public IPlayerCallback, public IMsgTargetCallback
7d50a5f no message
yamp authored
94 {
95 public:
55cbfc7 New re-org of settings screens
forza authored
96 CApplication(void);
97 virtual ~CApplication(void);
98 virtual HRESULT Initialize();
99 virtual void FrameMove();
100 virtual void Render();
101 virtual HRESULT Create();
5307c47 no message
yamp authored
102
55cbfc7 New re-org of settings screens
forza authored
103 void Stop();
104 void LoadSkin(const CStdString& strSkin);
105 void DelayLoadSkin();
106 const CStdString& CurrentFile();
107 virtual bool OnMessage(CGUIMessage& message);
108 virtual void OnPlayBackEnded();
109 virtual void OnPlayBackStarted();
110 bool PlayFile(const CStdString& strFile,bool bRestart=false);
111 void StopPlaying();
112 void Restart(bool bSamePosition=true);
113 void EnableOverlay();
114 void DisableOverlay();
115 bool IsPlaying() const ;
116 bool IsPlayingAudio() const ;
117 bool IsPlayingVideo() const ;
118 void OnKey(CKey& key);
119 void RenderFullScreen();
120 bool NeedRenderFullScreen();
121 void SpinHD();
122 void CheckScreenSaver(); // CB: SCREENSAVER PATCH
123 void CheckShutdown();
124 void SetCurrentSong(const CMusicInfoTag& tag);
125 void SetCurrentMovie(const CIMDBMovie& tag);
126 void ResetAllControls();
127 virtual void Process();
128 void ResetScreenSaver();
129 int GetPlaySpeed() const;
130 void SetPlaySpeed(int iSpeed);
6ddb5bf dded: Autorun media in DVD drive (Thx 2 bobbin007)
yamp authored
131
55cbfc7 New re-org of settings screens
forza authored
132 CGUIWindowHome m_guiHome;
133 CGUIWindowPrograms m_guiPrograms;
134 CGUIWindowSettingsPrograms m_guiSettingsPrograms;
135 CGUIWindowPictures m_guiPictures;
136 CGUIDialogYesNo m_guiDialogYesNo;
137 CGUIDialogProgress m_guiDialogProgress;
138 CGUIDialogOK m_guiDialogOK;
139 CGUIWindowMyFiles m_guiMyFiles;
140 CGUIWindowVideo m_guiMyVideo;
141 CGUIWindowSettings m_guiSettings;
142 CGUIWindowSystemInfo m_guiSystemInfo;
143 CGUIWindowSettingsGeneral m_guiSettingsGeneral;
144 CGUIWindowMusicInfo m_guiMusicInfo;
145 CGUIWindowVideoInfo m_guiVideoInfo;
146 CGUIWindowScriptsInfo m_guiScriptsInfo;
147 //CGUIWindowSettingsScreen m_guiSettingsScreen; // now m_guiSettingsMyVideo
148 CGUIWindowSettingsUICalibration m_guiSettingsUICalibration;
149 CGUIWindowSettingsScreenCalibration m_guiSettingsScreenCalibration;
28ce4de added slideshow settings
yamp authored
150 CGUIWindowSettingsSlideShow m_guiSettingsSlideShow;
55cbfc7 New re-org of settings screens
forza authored
151 CGUIWindowSettingsScreensaver m_guiSettingsScreensaver;
152 //CGUIWindowSettingsOSD m_guiSettingsOSD;
153 CGUIWindowSettingsAutoRun m_guiSettingsAutoRun;
154 CGUIWindowScripts m_guiScripts;
155 CGUIWindowSettingsFilter m_guiSettingsFilter;
156 CGUIDialogSelect m_guiDialogSelect;
157 CGUIDialogFileStacking m_guiDialogFileStacking;
158 CGUIWindowMusicOverlay m_guiMusicOverlay;
159 CGUIWindowFullScreen m_guiWindowFullScreen;
160 CGUIWindowVideoOverlay m_guiWindowVideoOverlay;
161 CGUIWindowVisualisation m_guiWindowVisualisation;
162 //CGUIWindowSettingsMusic m_guiSettingsMusic; // now m_guiSettingsMyMusic
163 CGUIWindowSlideShow m_guiWindowSlideshow;
164 CGUIWindowMusicPlayList m_guiMyMusicPlayList;
165 CGUIWindowVideoPlaylist m_guiMyVideoPlayList;
166 CGUIWindowMusicSongs m_guiMyMusicSongs;
167 CGUIWindowMusicAlbum m_guiMyMusicAlbum;
168 CGUIWindowMusicArtists m_guiMyMusicArtists;
169 CGUIWindowMusicGenres m_guiMyMusicGenres;
170 CGUIWindowMusicTop100 m_guiMyMusicTop100;
171 CGUIWindowScreensaver m_guiWindowScreensaver;
172 CGUIWindowSettingsLCD m_guiSettingsLCD;
173 CGUIWindowSettingsSubtitles m_guiSettingsSubtitles;
174 CGUIWindowVideoGenre m_guiVideoGenre;
175 CGUIWindowVideoActors m_guiVideoActors;
176 CGUIWindowVideoYear m_guiVideoYear;
177 CGUIWindowVideoTitle m_guiVideoTitle;
178 CGUIWindowWeather m_guiMyWeather; //WEATHER
179 CGUIWindowSettingsWeather m_guiSettingsWeather; //WEATHER SETTINGS
180 CGUIWindowOSD m_guiWindowOSD;
181 CGUIWindowSettingsCache m_guiSettingsCache;
182 CGUIWindowSettingsSkinLanguage m_guiSettingsSkinLanguage;
183 CGUIWindowSettingsUserInterface m_guiSettingsUserInterface;
184 CGUIWindowSettingsAudio m_guiSettingsAudio;
185 CGUIWindowSettingsMyVideo m_guiSettingsMyVideo;
186 CGUIWindowSettingsMyMusic m_guiSettingsMyMusic;
187
188 CXBVirtualKeyboard m_keyboard;
189 CSNTPClient m_sntpClient;
190 CDetectDVDMedia m_DetectDVDType;
191 CAutorun m_Autorun;
192 CDelayController m_ctrDpad;
193 CDelayController m_ctrIR;
194 CWebServer* m_pWebServer;
195 CXBFileZilla* m_pFileZilla;
196 IPlayer* m_pPlayer;
197
198 bool m_bSpinDown;
199 DWORD m_dwSpinDownTime;
200 DWORD m_dwIdleTime;
fd57c69 added: screensaver SF patch from forza
yamp authored
201 bool m_bInactive; // CB: SCREENSAVER PATCH
202 bool m_bScreenSave; // CB: SCREENSAVER PATCH
203 DWORD m_dwSaverTick; // CB: SCREENSAVER PATCH
55cbfc7 New re-org of settings screens
forza authored
204 DWORD m_dwSkinTime;
205
203e723 no message
yamp authored
206 protected:
55cbfc7 New re-org of settings screens
forza authored
207 void UpdateLCD();
208 bool m_bXboxMediacenterLoaded,m_bSettingsLoaded,m_bCalibrationLoaded;;
209 CIMDBMovie m_tagCurrentMovie;
210 CMusicInfoTag m_tagCurrentSong;
211 int m_iPlaySpeed;
212 bool m_bOverlayEnabled;
213 CStdString m_strCurrentPlayer;
214 bool m_bAllSettingsLoaded;
215 CStdString m_strCurrentFile;
216 D3DGAMMARAMP m_OldRamp; // CB: SCREENSAVER PATCH
7d50a5f no message
yamp authored
217 };
f1b7384 no message
yamp authored
218
219 extern CApplication g_application;
Something went wrong with that request. Please try again.