QTfrontend/ui/dialog/bandialog.h
branchwebgl
changeset 8330 aaefa587e277
parent 8157 695f1eef72c8
equal deleted inserted replaced
8116:d24257910f8d 8330:aaefa587e277
       
     1 #ifndef BANDIALOG_H
       
     2 #define BANDIALOG_H
       
     3 
       
     4 #include <QDialog>
       
     5 
       
     6 class QComboBox;
       
     7 class QRadioButton;
       
     8 class QLineEdit;
       
     9 
       
    10 class BanDialog : public QDialog
       
    11 {
       
    12     Q_OBJECT
       
    13 public:
       
    14     explicit BanDialog(QWidget *parent = 0);
       
    15 
       
    16     bool byIP();
       
    17     int duration();
       
    18     QString banId();
       
    19     QString reason();
       
    20 
       
    21 private:
       
    22     QRadioButton * rbIP;
       
    23     QRadioButton * rbNick;
       
    24     QLineEdit * leId;
       
    25     QLineEdit * leReason;
       
    26     QComboBox * cbTime;
       
    27 
       
    28 private slots:
       
    29     void okClicked();
       
    30 };
       
    31 
       
    32 #endif // BANDIALOG_H