dolphin/Source/Core/DolphinQt/Settings/GameCubePane.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.1 KiB
C
Raw Normal View History

2018-01-04 00:41:31 +00:00
// Copyright 2018 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2018-01-04 00:41:31 +00:00
#pragma once
2021-07-04 10:53:53 +00:00
#include <array>
#include <string>
#include <string_view>
2018-01-04 00:41:31 +00:00
#include <QWidget>
class QCheckBox;
class QComboBox;
2021-07-04 10:53:53 +00:00
class QLineEdit;
2018-01-04 00:41:31 +00:00
class QPushButton;
class GameCubePane : public QWidget
{
Q_OBJECT
2018-01-04 00:41:31 +00:00
public:
explicit GameCubePane();
2021-07-04 10:53:53 +00:00
static std::string GetOpenGBARom(std::string_view title);
2018-01-04 00:41:31 +00:00
private:
void CreateWidgets();
void ConnectWidgets();
void LoadSettings();
void SaveSettings();
2021-07-04 10:53:53 +00:00
void OnEmulationStateChanged();
void UpdateButton(int slot);
2018-01-04 00:41:31 +00:00
void OnConfigPressed(int slot);
2021-07-04 10:53:53 +00:00
void BrowseGBABios();
void BrowseGBARom(size_t index);
void SaveRomPathChanged();
void BrowseGBASaves();
2018-01-04 00:41:31 +00:00
QCheckBox* m_skip_main_menu;
QComboBox* m_language_combo;
QPushButton* m_slot_buttons[3];
2018-01-04 00:41:31 +00:00
QComboBox* m_slot_combos[3];
2021-07-04 10:53:53 +00:00
QCheckBox* m_gba_threads;
QCheckBox* m_gba_save_rom_path;
QPushButton* m_gba_browse_bios;
QLineEdit* m_gba_bios_edit;
std::array<QPushButton*, 4> m_gba_browse_roms;
std::array<QLineEdit*, 4> m_gba_rom_edits;
QPushButton* m_gba_browse_saves;
QLineEdit* m_gba_saves_edit;
2018-01-04 00:41:31 +00:00
};