QTfrontend/ui/dialog/bandialog.h
author Wuzzy <almikes@aol.com>
Mon, 10 Apr 2017 21:42:53 +0200
changeset 12217 a6cd48b8ef61
parent 8330 aaefa587e277
permissions -rw-r--r--
Prevent frontend from starting game w/ >48 hogs This is because the engine does not support >48 hogs (another bug), but at least this commit a common crash with useless/confusing error message.

#ifndef BANDIALOG_H
#define BANDIALOG_H

#include <QDialog>

class QComboBox;
class QRadioButton;
class QLineEdit;

class BanDialog : public QDialog
{
    Q_OBJECT
public:
    explicit BanDialog(QWidget *parent = 0);

    bool byIP();
    int duration();
    QString banId();
    QString reason();

private:
    QRadioButton * rbIP;
    QRadioButton * rbNick;
    QLineEdit * leId;
    QLineEdit * leReason;
    QComboBox * cbTime;

private slots:
    void okClicked();
};

#endif // BANDIALOG_H