blob: 38aa98004f2f2a05388ee7743cc0fc5be88b4e8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
// Copyright 2015 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include <QToolBar>
class QAction;
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 RefreshPressed();
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();
void UpdatePausePlayButtonState(bool playing_state);
QAction* m_open_action;
QAction* m_refresh_action;
QAction* m_pause_play_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;
};
|