2015-12-30 19:03:13 -08:00
|
|
|
// Copyright 2015 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2017-05-31 01:08:04 -07:00
|
|
|
#include <QWidget>
|
2015-12-30 19:03:13 -08:00
|
|
|
|
2017-05-31 01:08:04 -07:00
|
|
|
class QGridLayout;
|
|
|
|
class QGroupBox;
|
|
|
|
class QLineEdit;
|
|
|
|
class QListWidget;
|
2018-05-12 23:36:07 +02:00
|
|
|
class QPushButton;
|
2017-05-31 01:08:04 -07:00
|
|
|
|
|
|
|
class PathPane final : public QWidget
|
2015-12-30 19:03:13 -08:00
|
|
|
{
|
2018-05-13 16:16:20 -04:00
|
|
|
Q_OBJECT
|
2015-12-30 19:03:13 -08:00
|
|
|
public:
|
2017-05-31 01:08:04 -07:00
|
|
|
explicit PathPane(QWidget* parent = nullptr);
|
2015-12-30 19:03:13 -08:00
|
|
|
|
2017-05-31 01:08:04 -07:00
|
|
|
private:
|
2015-12-30 19:03:13 -08:00
|
|
|
void Browse();
|
|
|
|
void BrowseDefaultGame();
|
|
|
|
void BrowseWiiNAND();
|
2018-04-25 21:43:12 +02:00
|
|
|
void BrowseDump();
|
2019-10-06 00:51:42 -05:00
|
|
|
void BrowseLoad();
|
2019-10-06 01:21:06 -05:00
|
|
|
void BrowseResourcePack();
|
2018-04-25 21:43:12 +02:00
|
|
|
void BrowseSDCard();
|
2015-12-30 19:03:13 -08:00
|
|
|
QGroupBox* MakeGameFolderBox();
|
|
|
|
QGridLayout* MakePathsLayout();
|
|
|
|
void RemovePath();
|
|
|
|
|
2018-04-29 01:01:14 +02:00
|
|
|
void OnSDCardPathChanged();
|
|
|
|
void OnNANDPathChanged();
|
|
|
|
|
2015-12-30 19:03:13 -08:00
|
|
|
QListWidget* m_path_list;
|
|
|
|
QLineEdit* m_game_edit;
|
|
|
|
QLineEdit* m_nand_edit;
|
2018-04-25 21:43:12 +02:00
|
|
|
QLineEdit* m_dump_edit;
|
2019-10-06 00:51:42 -05:00
|
|
|
QLineEdit* m_load_edit;
|
2019-10-06 01:21:06 -05:00
|
|
|
QLineEdit* m_resource_pack_edit;
|
2018-04-25 21:43:12 +02:00
|
|
|
QLineEdit* m_sdcard_edit;
|
2018-05-12 23:36:07 +02:00
|
|
|
|
|
|
|
QPushButton* m_remove_path;
|
2015-12-30 19:03:13 -08:00
|
|
|
};
|