2021-12-17 18:02:39 +08:00
|
|
|
//
|
|
|
|
|
// Created by Krad on 2021/11/11.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#ifndef GUI_GETIPDIALOG_H
|
|
|
|
|
#define GUI_GETIPDIALOG_H
|
|
|
|
|
|
2022-02-14 11:40:40 +08:00
|
|
|
#include "src/dialogs/GUIFormBaseDialog.h"
|
2021-12-17 18:02:39 +08:00
|
|
|
class QLineEdit;
|
|
|
|
|
class QLabel;
|
|
|
|
|
class GetIPDialog :public GUIFormBaseDialog {
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
explicit GetIPDialog(QWidget* parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
|
|
|
|
|
~GetIPDialog();
|
|
|
|
|
QStringList getList()const;
|
|
|
|
|
void setList(const QStringList& list);
|
|
|
|
|
protected:
|
|
|
|
|
bool updateReferenceData();
|
|
|
|
|
private:
|
|
|
|
|
QLineEdit* _ip = nullptr;
|
|
|
|
|
QLineEdit* _mask = nullptr;
|
2021-12-20 18:08:32 +08:00
|
|
|
QLabel* lbl_error = nullptr;
|
2021-12-17 18:02:39 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif //GUI_GetIPDialog_H
|