| 
									
										
										
										
											2015-12-03 20:41:17 -08:00
										 |  |  | // Copyright 2015 Dolphin Emulator Project
 | 
					
						
							|  |  |  | // Licensed under GPLv2+
 | 
					
						
							|  |  |  | // Refer to the license.txt file included.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <QAction>
 | 
					
						
							|  |  |  | #include <QLineEdit>
 | 
					
						
							|  |  |  | #include <QToolBar>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-04 11:12:13 -07:00
										 |  |  | namespace Core | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | enum class State; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-03 20:41:17 -08:00
										 |  |  | class ToolBar final : public QToolBar | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  |   Q_OBJECT | 
					
						
							| 
									
										
										
										
											2015-12-03 20:41:17 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | public: | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  |   explicit ToolBar(QWidget* parent = nullptr); | 
					
						
							| 
									
										
										
										
											2015-12-03 20:41:17 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-04-19 11:32:00 +02:00
										 |  |  |   void closeEvent(QCloseEvent*) override; | 
					
						
							| 
									
										
										
										
											2015-12-03 20:41:17 -08:00
										 |  |  | signals: | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  |   void OpenPressed(); | 
					
						
							|  |  |  |   void PlayPressed(); | 
					
						
							|  |  |  |   void PausePressed(); | 
					
						
							|  |  |  |   void StopPressed(); | 
					
						
							|  |  |  |   void FullScreenPressed(); | 
					
						
							|  |  |  |   void ScreenShotPressed(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   void SettingsPressed(); | 
					
						
							| 
									
										
										
										
											2017-05-09 18:49:10 +02:00
										 |  |  |   void ControllersPressed(); | 
					
						
							| 
									
										
										
										
											2017-06-16 01:39:59 +02:00
										 |  |  |   void GraphicsPressed(); | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-14 23:25:01 +01:00
										 |  |  |   void StepPressed(); | 
					
						
							|  |  |  |   void StepOverPressed(); | 
					
						
							|  |  |  |   void StepOutPressed(); | 
					
						
							|  |  |  |   void SkipPressed(); | 
					
						
							|  |  |  |   void ShowPCPressed(); | 
					
						
							|  |  |  |   void SetPCPressed(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-03 20:41:17 -08:00
										 |  |  | private: | 
					
						
							| 
									
										
										
										
											2017-09-04 11:12:13 -07:00
										 |  |  |   void OnEmulationStateChanged(Core::State state); | 
					
						
							| 
									
										
										
										
											2018-02-14 23:25:01 +01:00
										 |  |  |   void OnDebugModeToggled(bool enabled); | 
					
						
							| 
									
										
										
										
											2017-09-04 11:12:13 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  |   void MakeActions(); | 
					
						
							|  |  |  |   void UpdateIcons(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   QAction* m_open_action; | 
					
						
							|  |  |  |   QAction* m_play_action; | 
					
						
							|  |  |  |   QAction* m_pause_action; | 
					
						
							|  |  |  |   QAction* m_stop_action; | 
					
						
							|  |  |  |   QAction* m_fullscreen_action; | 
					
						
							|  |  |  |   QAction* m_screenshot_action; | 
					
						
							|  |  |  |   QAction* m_config_action; | 
					
						
							|  |  |  |   QAction* m_controllers_action; | 
					
						
							| 
									
										
										
										
											2017-06-16 01:39:59 +02:00
										 |  |  |   QAction* m_graphics_action; | 
					
						
							| 
									
										
										
										
											2018-02-14 23:25:01 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |   QAction* m_step_action; | 
					
						
							|  |  |  |   QAction* m_step_over_action; | 
					
						
							|  |  |  |   QAction* m_step_out_action; | 
					
						
							|  |  |  |   QAction* m_skip_action; | 
					
						
							|  |  |  |   QAction* m_show_pc_action; | 
					
						
							|  |  |  |   QAction* m_set_pc_action; | 
					
						
							| 
									
										
										
										
											2015-12-03 20:41:17 -08:00
										 |  |  | }; |