2015-12-03 21:41:17 -07:00
|
|
|
// Copyright 2015 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QAction>
|
|
|
|
#include <QLineEdit>
|
|
|
|
#include <QToolBar>
|
|
|
|
|
|
|
|
class ToolBar final : public QToolBar
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2015-12-21 20:46:03 -07:00
|
|
|
explicit ToolBar(QWidget* parent = nullptr);
|
2015-12-03 21:41:17 -07:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void EmulationStarted();
|
|
|
|
void EmulationPaused();
|
|
|
|
void EmulationStopped();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void OpenPressed();
|
|
|
|
void PlayPressed();
|
|
|
|
void PausePressed();
|
|
|
|
void StopPressed();
|
|
|
|
void FullScreenPressed();
|
|
|
|
void ScreenShotPressed();
|
|
|
|
|
2015-12-30 20:03:13 -07:00
|
|
|
void PathsPressed();
|
2016-05-09 07:34:07 -06:00
|
|
|
void SettingsPressed();
|
2015-12-03 21:41:17 -07:00
|
|
|
private:
|
|
|
|
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;
|
2015-12-30 20:03:13 -07:00
|
|
|
QAction* m_paths_action;
|
2015-12-03 21:41:17 -07:00
|
|
|
QAction* m_config_action;
|
|
|
|
QAction* m_controllers_action;
|
|
|
|
};
|