QTfrontend/ui/dialog/bandialog.h
author koda
Wed, 22 Jan 2014 00:37:43 +0100
changeset 10047 ed59a6c046b9
parent 8330 aaefa587e277
permissions -rw-r--r--
more scripts found by sheepluva
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