Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
Loading...
Searching...
No Matches
dlg_report_user.h
Go to the documentation of this file.
1
#ifndef COCKATRICE_DLG_REPORT_USER_H
2
#define COCKATRICE_DLG_REPORT_USER_H
3
4
#include <QDialog>
5
#include <QString>
6
#include <qtmetamacros.h>
7
8
class
AbstractClient
;
9
class
QComboBox;
10
class
QDialogButtonBox;
11
class
QLineEdit;
12
class
QTextEdit;
13
class
QLabel;
14
class
QWidget;
15
class
Response
;
16
17
class
DlgReportUser
:
public
QDialog
18
{
19
Q_OBJECT
20
public
:
21
DlgReportUser
(
AbstractClient
*_client,
22
const
QString &_reportedUser,
23
int
_gameId = -1,
24
const
QString &_autoChatLog = QString(),
25
QWidget *parent =
nullptr
);
26
27
private
slots:
28
void
actSubmit
();
29
void
reportResponse
(
const
Response
&response);
30
31
private
:
32
static
QString
categoryLabel
(
const
QString &key);
33
static
QString
categoryToolTip
(
const
QString &key);
34
35
AbstractClient
*
client
;
36
QString
reportedUser
;
37
int
gameId
;
38
39
QLabel *
reportedUserLabel
;
40
QLabel *
gameIdLabel
=
nullptr
;
41
QLineEdit *
gameIdEdit
=
nullptr
;
42
QComboBox *
categoryBox
;
43
QTextEdit *
descriptionEdit
;
44
QTextEdit *
chatLogEdit
;
45
QDialogButtonBox *
buttonBox
;
46
};
47
48
#endif
// COCKATRICE_DLG_REPORT_USER_H
AbstractClient
Definition
abstract_client.h:73
DlgReportUser::categoryToolTip
static QString categoryToolTip(const QString &key)
Definition
dlg_report_user.cpp:222
DlgReportUser::reportResponse
void reportResponse(const Response &response)
Definition
dlg_report_user.cpp:175
DlgReportUser::reportedUserLabel
QLabel * reportedUserLabel
Definition
dlg_report_user.h:39
DlgReportUser::DlgReportUser
DlgReportUser(AbstractClient *_client, const QString &_reportedUser, int _gameId=-1, const QString &_autoChatLog=QString(), QWidget *parent=nullptr)
Definition
dlg_report_user.cpp:30
DlgReportUser::gameIdEdit
QLineEdit * gameIdEdit
Definition
dlg_report_user.h:41
DlgReportUser::buttonBox
QDialogButtonBox * buttonBox
Definition
dlg_report_user.h:45
DlgReportUser::gameId
int gameId
Definition
dlg_report_user.h:37
DlgReportUser::client
AbstractClient * client
Definition
dlg_report_user.h:35
DlgReportUser::categoryBox
QComboBox * categoryBox
Definition
dlg_report_user.h:42
DlgReportUser::chatLogEdit
QTextEdit * chatLogEdit
Definition
dlg_report_user.h:44
DlgReportUser::actSubmit
void actSubmit()
Definition
dlg_report_user.cpp:130
DlgReportUser::reportedUser
QString reportedUser
Definition
dlg_report_user.h:36
DlgReportUser::categoryLabel
static QString categoryLabel(const QString &key)
Definition
dlg_report_user.cpp:196
DlgReportUser::gameIdLabel
QLabel * gameIdLabel
Definition
dlg_report_user.h:40
DlgReportUser::descriptionEdit
QTextEdit * descriptionEdit
Definition
dlg_report_user.h:43
Response
Definition
response.proto:11
cockatrice
src
interface
widgets
dialogs
dlg_report_user.h
Generated by
1.18.0