QTfrontend/ui/dialog/bandialog.h
author Wuzzy <Wuzzy2@mail.ru>
Wed, 25 Oct 2017 23:09:41 +0200
changeset 12768 ad67a3804981
parent 8330 aaefa587e277
permissions -rw-r--r--
Fix sometimes ammo schemes not being saved after changing before an ammo scheme got deleted in session This was because the bool isDeleting is not initialized, so its initial value is unpredictable. Which means there's chance it starts with true, confusing the frontend.
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