dolphin/Source/Core/DolphinQt2/MainWindow.h

68 lines
1.2 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"
2016-02-10 05:42:06 +01:00
class PathDialog;
2015-11-27 09:33:07 +01:00
class MainWindow final : public QMainWindow
{
Q_OBJECT
public:
explicit 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();
private:
2016-02-10 05:42:06 +01:00
void CreateComponents();
void ConnectGameList();
void ConnectMenuBar();
void ConnectRenderWidget();
void ConnectStack();
void ConnectToolBar();
void ConnectPathsDialog();
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();
2016-02-10 05:42:06 +01:00
void ShowPathsDialog();
2015-11-27 09:33:07 +01:00
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;
2016-02-10 05:42:06 +01:00
PathDialog* m_paths_dialog;
2015-11-27 09:33:07 +01:00
};