dolphin/Source/Core/DolphinQt/ToolBar.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

68 lines
1.3 KiB
C
Raw Normal View History

// Copyright 2015 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include <QToolBar>
2019-02-25 20:59:49 +01:00
class QAction;
namespace Core
{
enum class State;
}
class ToolBar final : public QToolBar
{
Q_OBJECT
public:
explicit ToolBar(QWidget* parent = nullptr);
2018-04-19 11:32:00 +02:00
void closeEvent(QCloseEvent*) override;
signals:
void OpenPressed();
2018-06-04 21:44:46 +02:00
void RefreshPressed();
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();
2018-02-14 23:25:01 +01:00
void StepPressed();
void StepOverPressed();
void StepOutPressed();
void SkipPressed();
void ShowPCPressed();
void SetPCPressed();
private:
void OnEmulationStateChanged(Core::State state);
2018-02-14 23:25:01 +01:00
void OnDebugModeToggled(bool enabled);
void MakeActions();
void UpdateIcons();
void UpdatePausePlayButtonState(bool playing_state);
QAction* m_open_action;
2018-06-04 21:44:46 +02:00
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;
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;
};