mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-02 11:33:55 -07:00
Added official warning messages moderators can use to inform users
This commit is contained in:
parent
1409b97490
commit
6ad2a59367
23 changed files with 429 additions and 7 deletions
|
|
@ -3,9 +3,11 @@
|
|||
|
||||
#include <QDialog>
|
||||
#include <QGroupBox>
|
||||
#include <QComboBox>
|
||||
#include <QTreeWidgetItem>
|
||||
#include <QStyledItemDelegate>
|
||||
#include "user_level.h"
|
||||
#include "pb/moderator_commands.pb.h"
|
||||
|
||||
class QTreeWidget;
|
||||
class ServerInfo_User;
|
||||
|
|
@ -42,6 +44,23 @@ public:
|
|||
QString getVisibleReason() const;
|
||||
};
|
||||
|
||||
class WarningDialog : public QDialog {
|
||||
Q_OBJECT
|
||||
private:
|
||||
QLabel *descriptionLabel;
|
||||
QLineEdit *nameWarning;
|
||||
QComboBox *warningOption;
|
||||
QLineEdit * warnClientID;
|
||||
private slots:
|
||||
void okClicked();
|
||||
public:
|
||||
WarningDialog(const QString userName, const QString clientID, QWidget *parent = 0);
|
||||
QString getName() const;
|
||||
QString getWarnID() const;
|
||||
QString getReason() const;
|
||||
void addWarningOption(const QString warning);
|
||||
};
|
||||
|
||||
class UserListItemDelegate : public QStyledItemDelegate {
|
||||
public:
|
||||
UserListItemDelegate(QObject *const parent);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue