| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <QDialog> |
| 7 |
|
| 8 |
#include "DolphinQt/GameList/GameListModel.h" |
| 9 |
|
| 10 |
class QVBoxLayout; |
| 11 |
class QListWidget; |
| 12 |
class QDialogButtonBox; |
| 13 |
|
| 14 |
namespace UICommon |
| 15 |
{ |
| 16 |
class GameFile; |
| 17 |
} |
| 18 |
|
| 19 |
class GameListDialog : public QDialog |
| 20 |
{ |
| 21 |
Q_OBJECT |
| 22 |
public: |
| 23 |
explicit GameListDialog(const GameListModel& game_list_model, QWidget* parent); |
| 24 |
|
| 25 |
int exec() override; |
| 26 |
const UICommon::GameFile& GetSelectedGame() const; |
| 27 |
|
| 28 |
private: |
| 29 |
void CreateWidgets(); |
| 30 |
void ConnectWidgets(); |
| 31 |
void PopulateGameList(); |
| 32 |
|
| 33 |
const GameListModel& m_game_list_model; |
| 34 |
QVBoxLayout* m_main_layout; |
| 35 |
QListWidget* m_game_list; |
| 36 |
QDialogButtonBox* m_button_box; |
| 37 |
}; |