dolphin/Source/Core/DolphinQt2/ToolBar.h

51 lines
939 B
C
Raw Normal View History

// 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);
signals:
void OpenPressed();
void PlayPressed();
void PausePressed();
void StopPressed();
void FullScreenPressed();
void ScreenShotPressed();
void SettingsPressed();
2017-05-09 10:49:10 -06:00
void ControllersPressed();
2017-06-15 17:39:59 -06:00
void GraphicsPressed();
private:
void OnEmulationStateChanged(Core::State state);
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;
2017-06-15 17:39:59 -06:00
QAction* m_graphics_action;
};