You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.4 KiB
C++
68 lines
1.4 KiB
C++
#ifndef RESCUELOADWIDGET_H
|
|
#define RESCUELOADWIDGET_H
|
|
|
|
#include "rescueload.h"
|
|
|
|
#include <QStandardItem>
|
|
#include <QTableWidget>
|
|
#include <QWidget>
|
|
|
|
namespace Ui {
|
|
class RescueLoadWidget;
|
|
}
|
|
|
|
// 搜救页面
|
|
class RescueLoadWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit RescueLoadWidget(QWidget *parent = nullptr);
|
|
~RescueLoadWidget();
|
|
|
|
private:
|
|
Ui::RescueLoadWidget *ui;
|
|
QTableWidgetItem *protoItem; // 单元格模版
|
|
QStandardItem *standardItem; // 单元格模版
|
|
QSet<QString> wnamelist;
|
|
QSet<QString> bnamelist;
|
|
ImsiTableModel* imsiDataModel;
|
|
QStandardItemModel* wnamelistModel;
|
|
QStandardItemModel* bnamelistModel;
|
|
public:
|
|
RescueLoad* rescueLoad;
|
|
void initialUi();
|
|
|
|
void openQLocationMap();
|
|
|
|
private slots:
|
|
void on_start4G_clicked();
|
|
|
|
void on_stop4G_clicked();
|
|
|
|
void on_start5G_clicked();
|
|
|
|
void on_stop5G_clicked();
|
|
|
|
void on_addwlistBtn_clicked();
|
|
|
|
void on_addblistBtn_clicked();
|
|
|
|
void updateDetailTable(const QString imsi);
|
|
private:
|
|
void setDeviceTable(QTableWidget* tableWidget);
|
|
void addNewData();
|
|
void deleteData();
|
|
void syncTime();
|
|
|
|
void setDeviceDetail(QTableWidget *);
|
|
QList<QString> getNameListEditList();
|
|
void updateWBnamelist(QString, QString, QList<QString>&);
|
|
|
|
void setTable(QTableView *tableWidget);
|
|
void initialModel();
|
|
};
|
|
|
|
|
|
#endif // RESCUELOADWIDGET_H
|