mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
DolphinQt2
This commit is contained in:
61
Source/Core/DolphinQt2/MainWindow.h
Normal file
61
Source/Core/DolphinQt2/MainWindow.h
Normal file
@ -0,0 +1,61 @@
|
||||
// Copyright 2015 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QStackedWidget>
|
||||
#include <QString>
|
||||
#include <QToolBar>
|
||||
|
||||
#include "DolphinQt2/RenderWidget.h"
|
||||
#include "DolphinQt2/GameList/GameList.h"
|
||||
|
||||
class MainWindow final : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit MainWindow();
|
||||
~MainWindow();
|
||||
|
||||
signals:
|
||||
void EmulationStarted();
|
||||
void EmulationPaused();
|
||||
void EmulationStopped();
|
||||
|
||||
private slots:
|
||||
void Open();
|
||||
void Browse();
|
||||
void Play();
|
||||
void Pause();
|
||||
bool Stop();
|
||||
void ForceStop();
|
||||
void FullScreen();
|
||||
void ScreenShot();
|
||||
|
||||
private:
|
||||
void MakeToolBar();
|
||||
void MakeStack();
|
||||
void MakeGameList();
|
||||
void MakeRenderWidget();
|
||||
|
||||
void MakeMenus();
|
||||
void MakeFileMenu();
|
||||
void MakeViewMenu();
|
||||
void AddTableColumnsMenu(QMenu* view_menu);
|
||||
void AddListTypePicker(QMenu* view_menu);
|
||||
|
||||
void PopulateToolBar();
|
||||
|
||||
void StartGame(QString path);
|
||||
void ShowRenderWidget();
|
||||
void HideRenderWidget();
|
||||
|
||||
QStackedWidget* m_stack;
|
||||
QToolBar* m_tool_bar;
|
||||
GameList* m_game_list;
|
||||
RenderWidget* m_render_widget;
|
||||
bool m_rendering_to_main;
|
||||
};
|
Reference in New Issue
Block a user