Added an "Event" tab with a BiddingRoundControl class in it. No connections of signals and slots yet.

This commit is contained in:
2026-02-13 16:12:03 +01:00
parent bea89a2a16
commit a4d2815947
7 changed files with 134 additions and 23 deletions

View File

@ -0,0 +1,41 @@
#ifndef BIDDINGROUNDCONTROL_H
#define BIDDINGROUNDCONTROL_H
#include <QWidget>
#include "model/metadata.h"
class QPushButton;
class QLabel;
class QHBoxLayout;
class BiddingRoundControl : public QWidget {
Q_OBJECT
public:
explicit BiddingRoundControl(QWidget* parent = nullptr);
signals:
void sendGetRequest(GetRequestTypes type);
void triggerStartNewRound();
void triggerRestartLastRound();
void triggerStopCurrentRound();
// void refreshCurrentRound();
public slots:
/// button slots
void onRefreshCurrentRoundTriggered();
/// event slots
void onCurrentBiddingRoundChanged(int roundNumber, bool isActive);
private:
QHBoxLayout* m_layout = nullptr;
QLabel* m_title = nullptr;
QLabel* m_status = nullptr;
QPushButton* m_newRoundButton = nullptr;
QPushButton* m_restartRoundButton = nullptr;
QPushButton* m_stopRoundButton = nullptr;
QPushButton* m_refreshRoundButton = nullptr;
};
#endif // BIDDINGROUNDCONTROL_H