QTfrontend/ui/dialog/bandialog.h
author Wuzzy <Wuzzy2@mail.ru>
Wed, 22 Aug 2018 00:40:11 +0200
branch0.9.24
changeset 13688 076b7d23fab8
parent 8330 aaefa587e277
permissions -rw-r--r--
Backed out changeset 6c0cf6b9eff8. Scripters should be prepared for nil and pretending the gear exists would cause more pain
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:
8330
aaefa587e277 update branch with default
koda
parents: 8157
diff changeset
    14
    explicit BanDialog(QWidget *parent = 0);
8157
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