Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
dlg_register.h
Go to the documentation of this file.
1
6
7#ifndef DLG_REGISTER_H
8#define DLG_REGISTER_H
9
10#include <QComboBox>
11#include <QDialog>
12#include <QLineEdit>
13
14class QLabel;
15class QPushButton;
16class QCheckBox;
17
18class DlgRegister : public QDialog
19{
20 Q_OBJECT
21public:
22 explicit DlgRegister(QWidget *parent = nullptr);
23 [[nodiscard]] QString getHost() const
24 {
25 return hostEdit->text();
26 }
27 [[nodiscard]] int getPort() const
28 {
29 return portEdit->text().toInt();
30 }
31 [[nodiscard]] QString getPlayerName() const
32 {
33 return playernameEdit->text();
34 }
35 [[nodiscard]] QString getPassword() const
36 {
37 return passwordEdit->text();
38 }
39 [[nodiscard]] QString getEmail() const
40 {
41 return emailEdit->text();
42 }
43 [[nodiscard]] QString getCountry() const
44 {
45 return countryEdit->currentIndex() == 0 ? "" : countryEdit->currentText();
46 }
47 [[nodiscard]] QString getRealName() const
48 {
49 return realnameEdit->text();
50 }
51private slots:
52 void actOk();
53
54private:
59 QComboBox *countryEdit;
60};
61
62#endif
QComboBox * countryEdit
Definition dlg_register.h:59
QString getPlayerName() const
Definition dlg_register.h:31
QLabel * playernameLabel
Definition dlg_register.h:55
QLineEdit * emailConfirmationEdit
Definition dlg_register.h:58
QLabel * passwordLabel
Definition dlg_register.h:55
void actOk()
Definition dlg_register.cpp:357
QString getRealName() const
Definition dlg_register.h:47
QString getHost() const
Definition dlg_register.h:23
QLabel * emailConfirmationLabel
Definition dlg_register.h:56
QLineEdit * portEdit
Definition dlg_register.h:57
QLabel * emailLabel
Definition dlg_register.h:56
QString getEmail() const
Definition dlg_register.h:39
QLabel * portLabel
Definition dlg_register.h:55
QString getPassword() const
Definition dlg_register.h:35
QLineEdit * realnameEdit
Definition dlg_register.h:58
QLabel * countryLabel
Definition dlg_register.h:56
int getPort() const
Definition dlg_register.h:27
QLabel * hostLabel
Definition dlg_register.h:55
QString getCountry() const
Definition dlg_register.h:43
QLabel * realnameLabel
Definition dlg_register.h:56
QLabel * infoLabel
Definition dlg_register.h:55
QLineEdit * emailEdit
Definition dlg_register.h:57
QLineEdit * passwordEdit
Definition dlg_register.h:57
QLineEdit * hostEdit
Definition dlg_register.h:57
QLineEdit * playernameEdit
Definition dlg_register.h:57
DlgRegister(QWidget *parent=nullptr)
Definition dlg_register.cpp:13
QLineEdit * passwordConfirmationEdit
Definition dlg_register.h:57
QLabel * passwordConfirmationLabel
Definition dlg_register.h:55