Added games picker and play/stop buttons
This commit is contained in:
10
GamesPanel.h
10
GamesPanel.h
@@ -13,21 +13,27 @@ class GamesPanel : public QWidget
|
||||
public:
|
||||
explicit GamesPanel(QWidget *parent = nullptr);
|
||||
void loadFromResponse(const QString &response); // GAM list (installed)
|
||||
void loadAllFromResponse(const QString &response); // GAM listall (all available)
|
||||
void loadAllFromResponse(const QString &response); // GAM listall (full catalogue)
|
||||
|
||||
signals:
|
||||
void commandRequested(const QString &cmd);
|
||||
|
||||
private slots:
|
||||
void onAddClicked();
|
||||
void onStartClicked();
|
||||
|
||||
private:
|
||||
void rebuildAvailable();
|
||||
|
||||
// Left pane
|
||||
QListWidget *m_availableList = nullptr;
|
||||
QListWidget *m_installedList = nullptr;
|
||||
QPushButton *m_addBtn = nullptr;
|
||||
|
||||
// Right pane
|
||||
QListWidget *m_installedList = nullptr;
|
||||
QPushButton *m_startBtn = nullptr;
|
||||
QPushButton *m_stopBtn = nullptr;
|
||||
|
||||
QMap<QString,QString> m_allGames; // name -> code (GAM listall)
|
||||
QMap<QString,QString> m_installedGames; // name -> code (GAM list)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user