dolphin/Source/Core/DolphinQt2/MenuBar.h

167 lines
3.7 KiB
C
Raw Normal View History

2015-12-20 05:24:48 +00:00
// Copyright 2015 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include <string>
2015-12-20 05:24:48 +00:00
#include <QMenu>
#include <QMenuBar>
#include "DolphinQt2/GameList/GameFile.h"
namespace Core
{
enum class State;
}
namespace DiscIO
{
enum class Region;
};
2015-12-20 05:24:48 +00:00
class MenuBar final : public QMenuBar
{
Q_OBJECT
2015-12-20 05:24:48 +00:00
public:
explicit MenuBar(QWidget* parent = nullptr);
2015-12-20 05:24:48 +00:00
void UpdateStateSlotMenu();
void UpdateToolsMenu(bool emulation_started);
2015-12-20 05:24:48 +00:00
signals:
// File
void Open();
void Exit();
2015-12-20 05:24:48 +00:00
// Emulation
void Play();
void Pause();
void Stop();
void Reset();
void Fullscreen();
void FrameAdvance();
void Screenshot();
void StartNetPlay();
void StateLoad();
void StateSave();
void StateLoadSlot();
void StateSaveSlot();
void StateLoadSlotAt(int slot);
void StateSaveSlotAt(int slot);
void StateLoadUndo();
void StateSaveUndo();
void StateSaveOldest();
void SetStateSlot(int slot);
void BootWiiSystemMenu();
void ImportNANDBackup();
void PerformOnlineUpdate(const std::string& region);
// Tools
void BootGameCubeIPL(DiscIO::Region region);
2017-08-30 14:44:28 +00:00
void ShowFIFOPlayer();
void ShowAboutDialog();
// Options
void Configure();
void ConfigureGraphics();
void ConfigureAudio();
void ConfigureControllers();
void ConfigureHotkeys();
// View
void ShowList();
void ShowGrid();
2017-05-08 17:03:59 +00:00
void ColumnVisibilityToggled(const QString& row, bool visible);
void GameListPlatformVisibilityToggled(const QString& row, bool visible);
void GameListRegionVisibilityToggled(const QString& row, bool visible);
2015-12-20 05:24:48 +00:00
2017-08-27 11:55:05 +00:00
// Movie
void PlayRecording();
void StartRecording();
void StopRecording();
void ExportRecording();
void SelectionChanged(QSharedPointer<GameFile> game_file);
void RecordingStatusChanged(bool recording);
void ReadOnlyModeChanged(bool read_only);
2015-12-20 05:24:48 +00:00
private:
void OnEmulationStateChanged(Core::State state);
void AddFileMenu();
2015-12-20 05:24:48 +00:00
void AddEmulationMenu();
void AddStateLoadMenu(QMenu* emu_menu);
void AddStateSaveMenu(QMenu* emu_menu);
void AddStateSlotMenu(QMenu* emu_menu);
void AddViewMenu();
void AddGameListTypeSection(QMenu* view_menu);
void AddListColumnsMenu(QMenu* view_menu);
void AddShowPlatformsMenu(QMenu* view_menu);
void AddShowRegionsMenu(QMenu* view_menu);
void AddOptionsMenu();
void AddToolsMenu();
void AddHelpMenu();
2017-08-27 11:55:05 +00:00
void AddMovieMenu();
void InstallWAD();
void ImportWiiSave();
void ExportWiiSaves();
void CheckNAND();
void NANDExtractCertificates();
2017-08-27 11:55:05 +00:00
void OnSelectionChanged(QSharedPointer<GameFile> game_file);
void OnRecordingStatusChanged(bool recording);
void OnReadOnlyModeChanged(bool read_only);
void OnDebugModeToggled(bool enabled);
2017-08-27 11:55:05 +00:00
// File
QAction* m_open_action;
QAction* m_exit_action;
// Tools
QAction* m_wad_install_action;
QMenu* m_perform_online_update_menu;
QAction* m_perform_online_update_for_current_region;
QAction* m_ntscj_ipl;
QAction* m_ntscu_ipl;
QAction* m_pal_ipl;
QAction* m_import_backup;
QAction* m_check_nand;
QAction* m_extract_certificates;
// Emulation
QAction* m_play_action;
QAction* m_pause_action;
QAction* m_stop_action;
QAction* m_reset_action;
QAction* m_fullscreen_action;
QAction* m_frame_advance_action;
QAction* m_screenshot_action;
QAction* m_boot_sysmenu;
QMenu* m_state_load_menu;
QMenu* m_state_save_menu;
QMenu* m_state_slot_menu;
QActionGroup* m_state_slots;
QMenu* m_state_load_slots_menu;
QMenu* m_state_save_slots_menu;
2017-08-27 11:55:05 +00:00
// Movie
QAction* m_recording_export;
QAction* m_recording_play;
QAction* m_recording_start;
QAction* m_recording_stop;
QAction* m_recording_read_only;
// View
QAction* m_show_registers;
2017-09-27 06:53:05 +00:00
QAction* m_show_watch;
QAction* m_show_breakpoints;
2015-12-20 05:24:48 +00:00
};