dolphin/Source/Core/DolphinQt2/MainWindow.h

62 lines
1.1 KiB
C
Raw Normal View History

2015-11-27 09:33:07 +01:00
// 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>
2015-12-20 06:24:48 +01:00
#include "DolphinQt2/MenuBar.h"
2015-11-27 09:33:07 +01:00
#include "DolphinQt2/RenderWidget.h"
#include "DolphinQt2/ToolBar.h"
2015-11-27 09:33:07 +01:00
#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 Play();
void Pause();
// May ask for confirmation. Returns whether or not it actually stopped.
2015-11-27 09:33:07 +01:00
bool Stop();
void ForceStop();
2015-11-27 09:33:07 +01:00
void FullScreen();
void ScreenShot();
2015-12-31 04:03:13 +01:00
void PathsConfig();
2015-11-27 09:33:07 +01:00
private:
void MakeGameList();
2015-12-20 06:24:48 +01:00
void MakeMenuBar();
2015-11-27 09:33:07 +01:00
void MakeRenderWidget();
2015-12-20 06:24:48 +01:00
void MakeStack();
void MakeToolBar();
2015-11-27 09:33:07 +01:00
void StartGame(const QString& path);
2015-11-27 09:33:07 +01:00
void ShowRenderWidget();
void HideRenderWidget();
QStackedWidget* m_stack;
ToolBar* m_tool_bar;
2015-12-20 06:24:48 +01:00
MenuBar* m_menu_bar;
2015-11-27 09:33:07 +01:00
GameList* m_game_list;
RenderWidget* m_render_widget;
bool m_rendering_to_main;
};