2015-12-04 04:41:17 +00:00
|
|
|
// Copyright 2015 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2015-12-04 04:41:17 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QToolBar>
|
|
|
|
|
2019-02-25 19:59:49 +00:00
|
|
|
class QAction;
|
|
|
|
|
2017-09-04 18:12:13 +00:00
|
|
|
namespace Core
|
|
|
|
{
|
|
|
|
enum class State;
|
|
|
|
}
|
|
|
|
|
2015-12-04 04:41:17 +00:00
|
|
|
class ToolBar final : public QToolBar
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2015-12-22 03:46:03 +00:00
|
|
|
explicit ToolBar(QWidget* parent = nullptr);
|
2015-12-04 04:41:17 +00:00
|
|
|
|
2018-04-19 09:32:00 +00:00
|
|
|
void closeEvent(QCloseEvent*) override;
|
2015-12-04 04:41:17 +00:00
|
|
|
signals:
|
|
|
|
void OpenPressed();
|
2018-06-04 19:44:46 +00:00
|
|
|
void RefreshPressed();
|
2015-12-04 04:41:17 +00:00
|
|
|
void PlayPressed();
|
|
|
|
void PausePressed();
|
|
|
|
void StopPressed();
|
|
|
|
void FullScreenPressed();
|
|
|
|
void ScreenShotPressed();
|
2016-06-24 08:43:46 +00:00
|
|
|
|
2016-05-09 13:34:07 +00:00
|
|
|
void SettingsPressed();
|
2017-05-09 16:49:10 +00:00
|
|
|
void ControllersPressed();
|
2017-06-15 23:39:59 +00:00
|
|
|
void GraphicsPressed();
|
2016-06-24 08:43:46 +00:00
|
|
|
|
2018-02-14 22:25:01 +00:00
|
|
|
void StepPressed();
|
|
|
|
void StepOverPressed();
|
|
|
|
void StepOutPressed();
|
|
|
|
void SkipPressed();
|
|
|
|
void ShowPCPressed();
|
|
|
|
void SetPCPressed();
|
|
|
|
|
2015-12-04 04:41:17 +00:00
|
|
|
private:
|
2017-09-04 18:12:13 +00:00
|
|
|
void OnEmulationStateChanged(Core::State state);
|
2018-02-14 22:25:01 +00:00
|
|
|
void OnDebugModeToggled(bool enabled);
|
2017-09-04 18:12:13 +00:00
|
|
|
|
2015-12-04 04:41:17 +00:00
|
|
|
void MakeActions();
|
|
|
|
void UpdateIcons();
|
2018-05-14 20:05:23 +00:00
|
|
|
void UpdatePausePlayButtonState(bool playing_state);
|
2016-06-24 08:43:46 +00:00
|
|
|
|
2015-12-04 04:41:17 +00:00
|
|
|
QAction* m_open_action;
|
2018-06-04 19:44:46 +00:00
|
|
|
QAction* m_refresh_action;
|
2018-05-14 20:05:23 +00:00
|
|
|
QAction* m_pause_play_action;
|
2015-12-04 04:41:17 +00:00
|
|
|
QAction* m_stop_action;
|
|
|
|
QAction* m_fullscreen_action;
|
|
|
|
QAction* m_screenshot_action;
|
|
|
|
QAction* m_config_action;
|
|
|
|
QAction* m_controllers_action;
|
2017-06-15 23:39:59 +00:00
|
|
|
QAction* m_graphics_action;
|
2018-02-14 22:25:01 +00: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-04 04:41:17 +00:00
|
|
|
};
|