元数据页面实现更新UF20、UFT30接口数据
This commit is contained in:
@@ -6,8 +6,10 @@
|
||||
#include "ElaText.h"
|
||||
#include "ElaProgressBar.h"
|
||||
#include "ElaCheckBox.h"
|
||||
#include "metadataupdate/metadataprocessor.h"
|
||||
#include <QGridLayout>
|
||||
#include <QMessageBox>
|
||||
#include <QThread>
|
||||
|
||||
class MetadataUpdatePage : public ElaScrollPage
|
||||
{
|
||||
@@ -28,9 +30,25 @@ private slots:
|
||||
void onUFT3SelectNone();
|
||||
void onUpdateUFT3();
|
||||
|
||||
private slots:
|
||||
void onUpdateProgress(int progress, const QString& message);
|
||||
void onUpdateFinished(bool success, const QString& message);
|
||||
|
||||
private:
|
||||
void initUI();
|
||||
void showUpdateItems();
|
||||
void updateUf2Interfaces(const QStringList& items);
|
||||
void updateUft3Interfaces(const QStringList& items);
|
||||
|
||||
void processUf2StdFields(const QString& basePath);
|
||||
void processUf2DataType(const QString& basePath);
|
||||
void processUf2ErrNumber(const QString& basePath);
|
||||
void processUf2Interface(const QString& basePath);
|
||||
|
||||
void processUft3StdFields(const QString& basePath);
|
||||
void processUft3DataType(const QString& basePath);
|
||||
void processUft3ErrNumber(const QString& basePath);
|
||||
void processUft3Interface(const QString& basePath);
|
||||
|
||||
QGridLayout* _updateGridLayout{nullptr};
|
||||
QGridLayout* _updateUf2GridLayout{nullptr};
|
||||
@@ -45,6 +63,9 @@ private:
|
||||
|
||||
QList<ElaCheckBox*> uft3CheckBoxes;
|
||||
QList<ElaCheckBox*> uf20CheckBoxes;
|
||||
|
||||
MetadataProcessor* _processor{nullptr};
|
||||
QThread* _workerThread{nullptr};
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user