Debian Codegraph @

Source/Core/DolphinQt/ToolBar.h

raw symbols SCIP
1 // Copyright 2015 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5
6 #include <QToolBar>
7
8 class QAction;
9
10 namespace Core
11 {
12 enum class State;
13 }
14
15 class ToolBar final : public QToolBar
16 {
17 Q_OBJECT
18
19 public:
20 explicit ToolBar(QWidget* parent = nullptr);
21
22 void closeEvent(QCloseEvent*) override;
23 signals:
24 void OpenPressed();
25 void RefreshPressed();
26 void PlayPressed();
27 void PausePressed();
28 void StopPressed();
29 void FullScreenPressed();
30 void ScreenShotPressed();
31
32 void SettingsPressed();
33 void ControllersPressed();
34 void GraphicsPressed();
35
36 void StepPressed();
37 void StepOverPressed();
38 void StepOutPressed();
39 void SkipPressed();
40 void ShowPCPressed();
41 void SetPCPressed();
42
43 private:
44 void OnEmulationStateChanged(Core::State state);
45 void OnDebugModeToggled(bool enabled);
46
47 void MakeActions();
48 void UpdateIcons();
49 void UpdatePausePlayButtonState(bool playing_state);
50
51 QAction* m_open_action;
52 QAction* m_refresh_action;
53 QAction* m_pause_play_action;
54 QAction* m_stop_action;
55 QAction* m_fullscreen_action;
56 QAction* m_screenshot_action;
57 QAction* m_config_action;
58 QAction* m_controllers_action;
59 QAction* m_graphics_action;
60
61 QAction* m_step_action;
62 QAction* m_step_over_action;
63 QAction* m_step_out_action;
64 QAction* m_skip_action;
65 QAction* m_show_pc_action;
66 QAction* m_set_pc_action;
67 };