QTfrontend/ui/dialog/bandialog.h
author vitiv <nikita.utiu@gmail.com>
Tue, 08 Jan 2013 21:27:35 +0200
changeset 8364 fbc9bcc6c39d
parent 8157 695f1eef72c8
child 8330 aaefa587e277
permissions -rw-r--r--
Added "New account" button when connectiong to the official server
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8157
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
     1
#ifndef BANDIALOG_H
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
     2
#define BANDIALOG_H
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
     3
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
     4
#include <QDialog>
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
     5
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
     6
class QComboBox;
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
     7
class QRadioButton;
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
     8
class QLineEdit;
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
     9
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    10
class BanDialog : public QDialog
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    11
{
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    12
    Q_OBJECT
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    13
public:
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    14
    explicit BanDialog(QWidget *parent = 0);    
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    15
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    16
    bool byIP();
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    17
    int duration();
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    18
    QString banId();
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    19
    QString reason();
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    20
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    21
private:
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    22
    QRadioButton * rbIP;
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    23
    QRadioButton * rbNick;
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    24
    QLineEdit * leId;
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    25
    QLineEdit * leReason;
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    26
    QComboBox * cbTime;
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    27
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    28
private slots:
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    29
    void okClicked();
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    30
};
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    31
695f1eef72c8 Bans manager
unc0rr
parents:
diff changeset
    32
#endif // BANDIALOG_H