| 
									
										
										
										
											2014-10-18 11:07:17 -04:00
										 |  |  | // Copyright 2014 Dolphin Emulator Project
 | 
					
						
							| 
									
										
										
										
											2015-05-18 01:08:10 +02:00
										 |  |  | // Licensed under GPLv2+
 | 
					
						
							| 
									
										
										
										
											2014-10-18 11:07:17 -04:00
										 |  |  | // Refer to the license.txt file included.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <cstring>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-11-02 13:53:48 -05:00
										 |  |  | #include <QApplication>
 | 
					
						
							|  |  |  | #include <QResizeEvent>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-10-18 11:07:17 -04:00
										 |  |  | #include "Common/MsgHandler.h"
 | 
					
						
							|  |  |  | #include "Core/Host.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-11-02 13:53:48 -05:00
										 |  |  | #include "DolphinQt/MainWindow.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-10-18 11:07:17 -04:00
										 |  |  | void Host_Message(int id) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	// TODO
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-11-02 13:53:48 -05:00
										 |  |  | void Host_UpdateMainFrame() | 
					
						
							| 
									
										
										
										
											2014-10-18 11:07:17 -04:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2014-11-02 13:53:48 -05:00
										 |  |  | 	// TODO
 | 
					
						
							| 
									
										
										
										
											2014-10-18 11:07:17 -04:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-11-02 13:53:48 -05:00
										 |  |  | void Host_UpdateTitle(const std::string& title) | 
					
						
							| 
									
										
										
										
											2014-10-18 11:07:17 -04:00
										 |  |  | { | 
					
						
							|  |  |  | 	// TODO
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-11-02 13:53:48 -05:00
										 |  |  | void* Host_GetRenderHandle() | 
					
						
							| 
									
										
										
										
											2014-10-18 11:07:17 -04:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2014-11-02 13:53:48 -05:00
										 |  |  | 	return (void*)(g_main_window->GetRenderWidget()->winId()); | 
					
						
							| 
									
										
										
										
											2014-10-18 11:07:17 -04:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-11-02 13:53:48 -05:00
										 |  |  | void Host_RequestRenderWindowSize(int w, int h) | 
					
						
							| 
									
										
										
										
											2014-10-18 11:07:17 -04:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2014-11-02 13:53:48 -05:00
										 |  |  | 	DRenderWidget* render_widget = g_main_window->GetRenderWidget(); | 
					
						
							|  |  |  | 	qApp->postEvent(render_widget, new QResizeEvent(QSize(w, h), render_widget->size())); | 
					
						
							| 
									
										
										
										
											2014-10-18 11:07:17 -04:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-11-02 13:53:48 -05:00
										 |  |  | bool Host_RendererHasFocus() | 
					
						
							| 
									
										
										
										
											2014-10-18 11:07:17 -04:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2014-11-02 13:53:48 -05:00
										 |  |  | 	return g_main_window->RenderWidgetHasFocus(); | 
					
						
							| 
									
										
										
										
											2014-10-18 11:07:17 -04:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-11-02 13:53:48 -05:00
										 |  |  | bool Host_UIHasFocus() | 
					
						
							| 
									
										
										
										
											2014-10-18 11:07:17 -04:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2014-11-02 13:53:48 -05:00
										 |  |  | 	return g_main_window->isActiveWindow(); | 
					
						
							| 
									
										
										
										
											2014-10-18 11:07:17 -04:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-01-04 17:09:56 +01:00
										 |  |  | bool Host_RendererIsFullscreen() | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	return false; // TODO
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-11-02 13:53:48 -05:00
										 |  |  | void Host_RequestFullscreen(bool enable) | 
					
						
							| 
									
										
										
										
											2014-10-18 11:07:17 -04:00
										 |  |  | { | 
					
						
							|  |  |  | 	// TODO
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-11-02 13:53:48 -05:00
										 |  |  | void Host_NotifyMapLoaded() | 
					
						
							| 
									
										
										
										
											2014-10-18 11:07:17 -04:00
										 |  |  | { | 
					
						
							|  |  |  | 	// TODO
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-11-02 13:53:48 -05:00
										 |  |  | void Host_UpdateDisasmDialog() | 
					
						
							| 
									
										
										
										
											2014-10-18 11:07:17 -04:00
										 |  |  | { | 
					
						
							|  |  |  | 	// TODO
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-11-02 13:53:48 -05:00
										 |  |  | void Host_SetStartupDebuggingParameters() | 
					
						
							| 
									
										
										
										
											2014-10-18 11:07:17 -04:00
										 |  |  | { | 
					
						
							|  |  |  | 	// TODO
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-11-02 13:53:48 -05:00
										 |  |  | void Host_SetWiiMoteConnectionState(int state) | 
					
						
							| 
									
										
										
										
											2014-10-18 11:07:17 -04:00
										 |  |  | { | 
					
						
							|  |  |  | 	// TODO
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void Host_ConnectWiimote(int wm_idx, bool connect) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	// TODO
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void Host_ShowVideoConfig(void* parent, const std::string& backend_name, | 
					
						
							|  |  |  |                           const std::string& config_name) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	// TODO
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void Host_RefreshDSPDebuggerWindow() | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	// TODO
 | 
					
						
							|  |  |  | } |