2017-10-01 19:49:36 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QFrame>
|
|
|
|
|
2017-10-28 15:46:39 +03:00
|
|
|
class FlatButton;
|
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:
|
2017-12-10 16:22:01 +03:00
|
|
|
void closing(bool isJoining, const QString &room);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void paintEvent(QPaintEvent *event) override;
|
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:
|
|
|
|
FlatButton *confirmBtn_;
|
|
|
|
FlatButton *cancelBtn_;
|
|
|
|
|
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
|