#ifndef COCKATRICE_DLG_REPORT_USER_H #define COCKATRICE_DLG_REPORT_USER_H #include #include #include class AbstractClient; class QComboBox; class QDialogButtonBox; class QLineEdit; class QTextEdit; class QLabel; class QWidget; class Response; class DlgReportUser : public QDialog { Q_OBJECT public: DlgReportUser(AbstractClient *_client, const QString &_reportedUser, int _gameId = -1, const QString &_autoChatLog = QString(), QWidget *parent = nullptr); private slots: void actSubmit(); void reportResponse(const Response &response); void applyChatLogFont(); private: static QString categoryLabel(const QString &key); static QString categoryToolTip(const QString &key); AbstractClient *client; QString reportedUser; int gameId; QLabel *reportedUserLabel; QLabel *gameIdLabel = nullptr; QLineEdit *gameIdEdit = nullptr; QComboBox *categoryBox; QTextEdit *descriptionEdit; QTextEdit *chatLogEdit; QDialogButtonBox *buttonBox; }; #endif // COCKATRICE_DLG_REPORT_USER_H