mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Refactor proxy models and toolbar.
Remove the ugly LARGE_ICON column hack from the table proxy and use a list proxy. Move the toolbar into its own file.
This commit is contained in:
47
Source/Core/DolphinQt2/ToolBar.h
Normal file
47
Source/Core/DolphinQt2/ToolBar.h
Normal file
@ -0,0 +1,47 @@
|
||||
// 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:
|
||||
ToolBar(QWidget* parent = nullptr);
|
||||
|
||||
public slots:
|
||||
void EmulationStarted();
|
||||
void EmulationPaused();
|
||||
void EmulationStopped();
|
||||
|
||||
signals:
|
||||
void OpenPressed();
|
||||
void PathsPressed();
|
||||
|
||||
void PlayPressed();
|
||||
void PausePressed();
|
||||
void StopPressed();
|
||||
void FullScreenPressed();
|
||||
void ScreenShotPressed();
|
||||
|
||||
private:
|
||||
void MakeActions();
|
||||
void UpdateIcons();
|
||||
|
||||
QAction* m_open_action;
|
||||
QAction* m_paths_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_graphics_action;
|
||||
QAction* m_controllers_action;
|
||||
};
|
Reference in New Issue
Block a user