QTfrontend/ui/dialog/bandialog.h
author alfadur
Wed, 07 Nov 2018 00:02:48 +0300
changeset 14171 6205a5230d23
parent 8330 aaefa587e277
permissions -rw-r--r--
make fill point asserts persistent
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