Tab based websocket comms looking like trad RM
This commit is contained in:
26
GamesPanel.h
Normal file
26
GamesPanel.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
#include <QWidget>
|
||||
#include <QMap>
|
||||
#include <QString>
|
||||
|
||||
class QLabel;
|
||||
class QListWidget;
|
||||
|
||||
class GamesPanel : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit GamesPanel(QWidget *parent = nullptr);
|
||||
void loadFromResponse(const QString &response);
|
||||
|
||||
private slots:
|
||||
void onGameSelected(const QString &name);
|
||||
|
||||
private:
|
||||
QListWidget *m_gameList = nullptr;
|
||||
QWidget *m_detailWidget = nullptr;
|
||||
QLabel *m_nameLabel = nullptr;
|
||||
QLabel *m_codeLabel = nullptr;
|
||||
QLabel *m_hintLabel = nullptr;
|
||||
QMap<QString, QString> m_games; // display name -> 4-letter code
|
||||
};
|
||||
Reference in New Issue
Block a user