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.
53 lines
1.2 KiB
C++
53 lines
1.2 KiB
C++
#ifndef HOMEPAGESETINGWIDGET_H
|
|
#define HOMEPAGESETINGWIDGET_H
|
|
|
|
#include <QSettings>
|
|
#include <QWidget>
|
|
|
|
namespace Ui {
|
|
class HomePageSetingWidget;
|
|
}
|
|
|
|
class HomePageSetingWidget : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit HomePageSetingWidget(QWidget *parent = nullptr);
|
|
~HomePageSetingWidget();
|
|
|
|
private:
|
|
Ui::HomePageSetingWidget *ui;
|
|
QString _GDDCIp; // 光电吊舱
|
|
QString _lLinkIp; // L链
|
|
QString _adHocNetwork; // 自组网
|
|
QString _satelliteComm; // PDT
|
|
std::unique_ptr<QSettings> _configIni; // 配置文件写入
|
|
QString urlFile; // 配置文件路径
|
|
private:
|
|
void initEdit();
|
|
|
|
public:
|
|
void setUrl(std::unordered_map<QString, QString> &urlMap);
|
|
|
|
private slots:
|
|
void on_lLinkButton_clicked();
|
|
void on_netButton_clicked();
|
|
void on_sateliteButton_clicked();
|
|
void on_oneKeyButton_clicked();
|
|
void on_GDDCPushButton_clicked();
|
|
|
|
signals:
|
|
void sendOnlyUrl(unsigned char urlIndex, QString url); // 发送信号给网页显示
|
|
void sendAllUrl(std::unordered_map<QString, QString> urlMap);
|
|
|
|
public:
|
|
enum urlEnum : unsigned char {
|
|
GDDC = 1,
|
|
L_Link,
|
|
Adhoc_Network,
|
|
Satelite_Comm
|
|
};
|
|
};
|
|
|
|
#endif // HOMEPAGESETINGWIDGET_H
|