2017-10-01 19:49:36 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QFrame>
|
|
|
|
|
2018-09-19 22:42:26 +03:00
|
|
|
class QPushButton;
|
2017-12-10 16:22:01 +03:00
|
|
|
class TextField;
|
2017-10-01 19:49:36 +03:00
|
|
|
|
2017-11-30 21:02:46 +03:00
|
|
|
namespace dialogs {
|
|
|
|
|
|
|
|
class JoinRoom : public QFrame
|
2017-10-01 19:49:36 +03:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2017-11-30 21:02:46 +03:00
|
|
|
JoinRoom(QWidget *parent = nullptr);
|
2017-10-01 19:49:36 +03:00
|
|
|
|
|
|
|
signals:
|
2018-09-19 22:42:26 +03:00
|
|
|
void joinRoom(const QString &room);
|
2017-12-10 16:22:01 +03:00
|
|
|
|
|
|
|
protected:
|
2018-01-16 23:50:47 +03:00
|
|
|
void showEvent(QShowEvent *event) override;
|
2017-10-01 19:49:36 +03:00
|
|
|
|
2018-07-22 18:03:12 +03:00
|
|
|
private slots:
|
|
|
|
void handleInput();
|
|
|
|
|
2017-10-01 19:49:36 +03:00
|
|
|
private:
|
2018-09-19 22:42:26 +03:00
|
|
|
QPushButton *confirmBtn_;
|
|
|
|
QPushButton *cancelBtn_;
|
2017-10-01 19:49:36 +03:00
|
|
|
|
2017-12-10 16:22:01 +03:00
|
|
|
TextField *roomInput_;
|
2017-10-01 19:49:36 +03:00
|
|
|
};
|
2017-11-30 21:02:46 +03:00
|
|
|
|
|
|
|
} // dialogs
|