forked from dolphin-emu/dolphin
		
	
		
			
				
	
	
		
			67 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
// Copyright 2015 Dolphin Emulator Project
 | 
						|
// Licensed under GPLv2+
 | 
						|
// Refer to the license.txt file included.
 | 
						|
 | 
						|
#pragma once
 | 
						|
 | 
						|
#include <QAction>
 | 
						|
#include <QLineEdit>
 | 
						|
#include <QToolBar>
 | 
						|
 | 
						|
namespace Core
 | 
						|
{
 | 
						|
enum class State;
 | 
						|
}
 | 
						|
 | 
						|
class ToolBar final : public QToolBar
 | 
						|
{
 | 
						|
  Q_OBJECT
 | 
						|
 | 
						|
public:
 | 
						|
  explicit ToolBar(QWidget* parent = nullptr);
 | 
						|
 | 
						|
  void closeEvent(QCloseEvent*) override;
 | 
						|
signals:
 | 
						|
  void OpenPressed();
 | 
						|
  void PlayPressed();
 | 
						|
  void PausePressed();
 | 
						|
  void StopPressed();
 | 
						|
  void FullScreenPressed();
 | 
						|
  void ScreenShotPressed();
 | 
						|
 | 
						|
  void SettingsPressed();
 | 
						|
  void ControllersPressed();
 | 
						|
  void GraphicsPressed();
 | 
						|
 | 
						|
  void StepPressed();
 | 
						|
  void StepOverPressed();
 | 
						|
  void StepOutPressed();
 | 
						|
  void SkipPressed();
 | 
						|
  void ShowPCPressed();
 | 
						|
  void SetPCPressed();
 | 
						|
 | 
						|
private:
 | 
						|
  void OnEmulationStateChanged(Core::State state);
 | 
						|
  void OnDebugModeToggled(bool enabled);
 | 
						|
 | 
						|
  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;
 | 
						|
  QAction* m_graphics_action;
 | 
						|
 | 
						|
  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;
 | 
						|
};
 |