diff --git a/GF3StripPatchProcess/GF3StripPatchProcess.vcxproj b/GF3StripPatchProcess/GF3StripPatchProcess.vcxproj
new file mode 100644
index 0000000..48c17f9
--- /dev/null
+++ b/GF3StripPatchProcess/GF3StripPatchProcess.vcxproj
@@ -0,0 +1,108 @@
+
+
+
+
+ Debug
+ x64
+
+
+ Release
+ x64
+
+
+
+ {6386D3E3-B743-419F-8354-DA48D0B08728}
+ QtVS_v304
+ 10.0
+ 10.0
+ $(MSBuildProjectDirectory)\QtMsBuild
+
+
+
+ Application
+ v143
+ true
+ Unicode
+
+
+ Application
+ v143
+ false
+ true
+ Unicode
+
+
+
+
+
+
+ tools_qt5
+ core
+ debug
+
+
+ tools_qt5
+ core
+ release
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ Level3
+ true
+ true
+
+
+ Console
+ true
+
+
+
+
+ true
+ Level3
+ true
+ true
+ true
+ true
+
+
+ Console
+ false
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/GF3StripPatchProcess/GF3StripPatchProcess.vcxproj.filters b/GF3StripPatchProcess/GF3StripPatchProcess.vcxproj.filters
new file mode 100644
index 0000000..db47d74
--- /dev/null
+++ b/GF3StripPatchProcess/GF3StripPatchProcess.vcxproj.filters
@@ -0,0 +1,31 @@
+
+
+
+
+ {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
+ qml;cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
+
+
+ {93995380-89BD-4b04-88EB-625FBE52EBFB}
+ h;hh;hpp;hxx;hm;inl;inc;xsd
+
+
+ {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
+ qrc;rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
+
+
+ {99349809-55BA-4b9d-BF79-8FDBB0286EB3}
+ ui
+
+
+ {639EADAA-A684-42e4-A9AD-28FC9BCB8F7C}
+ ts
+
+
+
+
+ Source Files
+
+
+
+
diff --git a/GF3StripPatchProcess/main.cpp b/GF3StripPatchProcess/main.cpp
new file mode 100644
index 0000000..03cd4d5
--- /dev/null
+++ b/GF3StripPatchProcess/main.cpp
@@ -0,0 +1,8 @@
+#include
+
+int main(int argc, char *argv[])
+{
+ QCoreApplication a(argc, argv);
+
+ return a.exec();
+}
diff --git a/LAMPDataProcess.sln b/LAMPDataProcess.sln
index d22ae33..5db6c11 100644
--- a/LAMPDataProcess.sln
+++ b/LAMPDataProcess.sln
@@ -44,6 +44,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SPG4Tool", "SPG4Tool\SPG4To
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "KJ135WBJYAlgInterfaceToolbox", "Toolbox\KJ135WBJYAlgInterfaceToolbox\KJ135WBJYAlgInterfaceToolbox.vcxproj", "{D3E9A2CA-7F05-425A-A4B6-416EC20972E8}"
EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GF3StripPatchProcess", "GF3StripPatchProcess\GF3StripPatchProcess.vcxproj", "{6386D3E3-B743-419F-8354-DA48D0B08728}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM = Debug|ARM
@@ -210,6 +212,18 @@ Global
{D3E9A2CA-7F05-425A-A4B6-416EC20972E8}.Release|x64.Build.0 = Release|x64
{D3E9A2CA-7F05-425A-A4B6-416EC20972E8}.Release|x86.ActiveCfg = Release|x64
{D3E9A2CA-7F05-425A-A4B6-416EC20972E8}.Release|x86.Build.0 = Release|x64
+ {6386D3E3-B743-419F-8354-DA48D0B08728}.Debug|ARM.ActiveCfg = Debug|x64
+ {6386D3E3-B743-419F-8354-DA48D0B08728}.Debug|ARM.Build.0 = Debug|x64
+ {6386D3E3-B743-419F-8354-DA48D0B08728}.Debug|x64.ActiveCfg = Debug|x64
+ {6386D3E3-B743-419F-8354-DA48D0B08728}.Debug|x64.Build.0 = Debug|x64
+ {6386D3E3-B743-419F-8354-DA48D0B08728}.Debug|x86.ActiveCfg = Debug|x64
+ {6386D3E3-B743-419F-8354-DA48D0B08728}.Debug|x86.Build.0 = Debug|x64
+ {6386D3E3-B743-419F-8354-DA48D0B08728}.Release|ARM.ActiveCfg = Release|x64
+ {6386D3E3-B743-419F-8354-DA48D0B08728}.Release|ARM.Build.0 = Release|x64
+ {6386D3E3-B743-419F-8354-DA48D0B08728}.Release|x64.ActiveCfg = Release|x64
+ {6386D3E3-B743-419F-8354-DA48D0B08728}.Release|x64.Build.0 = Release|x64
+ {6386D3E3-B743-419F-8354-DA48D0B08728}.Release|x86.ActiveCfg = Release|x64
+ {6386D3E3-B743-419F-8354-DA48D0B08728}.Release|x86.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/LAMPDataProcessEXE/LAMPMainWidget.sqlite b/LAMPDataProcessEXE/LAMPMainWidget.sqlite
index 340aaa1..d3659c6 100644
Binary files a/LAMPDataProcessEXE/LAMPMainWidget.sqlite and b/LAMPDataProcessEXE/LAMPMainWidget.sqlite differ
diff --git a/Toolbox/KJ135WBJYAlgInterfaceToolbox/KJ135WBJYAlgInterfaceToolbox.vcxproj b/Toolbox/KJ135WBJYAlgInterfaceToolbox/KJ135WBJYAlgInterfaceToolbox.vcxproj
index 4ef9e99..92b08ab 100644
--- a/Toolbox/KJ135WBJYAlgInterfaceToolbox/KJ135WBJYAlgInterfaceToolbox.vcxproj
+++ b/Toolbox/KJ135WBJYAlgInterfaceToolbox/KJ135WBJYAlgInterfaceToolbox.vcxproj
@@ -112,8 +112,10 @@
+
+
diff --git a/Toolbox/KJ135WBJYAlgInterfaceToolbox/KJ135WBJYAlgInterfaceToolbox.vcxproj.filters b/Toolbox/KJ135WBJYAlgInterfaceToolbox/KJ135WBJYAlgInterfaceToolbox.vcxproj.filters
index f392d43..c82777d 100644
--- a/Toolbox/KJ135WBJYAlgInterfaceToolbox/KJ135WBJYAlgInterfaceToolbox.vcxproj.filters
+++ b/Toolbox/KJ135WBJYAlgInterfaceToolbox/KJ135WBJYAlgInterfaceToolbox.vcxproj.filters
@@ -32,22 +32,28 @@
Source Files
+
+ Source Files
+
Header Files
+
+ Header Files
+
-
- Header Files
-
Header Files
Header Files
+
+ Header Files
+
diff --git a/Toolbox/KJ135WBJYAlgInterfaceToolbox/KJ135WBJYAlgWidgetComponet.cpp b/Toolbox/KJ135WBJYAlgInterfaceToolbox/KJ135WBJYAlgWidgetComponet.cpp
index 5652a7d..31e482f 100644
--- a/Toolbox/KJ135WBJYAlgInterfaceToolbox/KJ135WBJYAlgWidgetComponet.cpp
+++ b/Toolbox/KJ135WBJYAlgInterfaceToolbox/KJ135WBJYAlgWidgetComponet.cpp
@@ -1,149 +1,225 @@
#include "KJ135WBJYAlgWidgetComponet.h"
#include
+#include
-
-FileSelectWidget::FileSelectWidget( ComponentType paramtype, QWidget* parent)
- : QWidget(parent),
- paramType(paramtype)
+AbstractComponentWidget::AbstractComponentWidget(QWidget* parent) :QWidget(parent)
+{
+ this->componentType = ComponentType::UNKNOW; // ĬÈÏδ֪ÀàÐÍ
+ this->ParaName = QString(); // ²ÎÊýÃû³Æ
+ this->ParaChsName = QString(); // ²ÎÊýÖÐÎÄÃû³Æ
+ this->Description = QString(); // ²ÎÊýÃèÊö
+ this->Datatype = QString(); // Êý¾ÝÀàÐÍ
+ this->ParaType = QString(); // ²ÎÊýÀàÐÍ
+}
+
+AbstractComponentWidget::~AbstractComponentWidget()
+{
+}
+
+QString AbstractComponentWidget::getParaName() const
+{
+ return this->ParaName;
+}
+
+void AbstractComponentWidget::setParaName(const QString& name)
+{
+ this->ParaName = name;
+}
+
+QString AbstractComponentWidget::getParaChsName() const
+{
+ return this->ParaChsName;
+}
+
+void AbstractComponentWidget::setParaChsName(const QString& name)
+{
+ this->ParaChsName = name;
+}
+
+QString AbstractComponentWidget::getDescription() const
+{
+
+ return this->Description;
+}
+
+void AbstractComponentWidget::setDescription(const QString& description)
+{
+ this->setToolTip(description);// °ó¶¨Ìáʾ
+ this->Description = description;
+}
+
+QString AbstractComponentWidget::getDatatype() const
+{
+ return this->Datatype;
+}
+
+void AbstractComponentWidget::setDatatype(const QString& datatype)
+{
+ this->Datatype = datatype;
+}
+
+QString AbstractComponentWidget::getParaType() const
+{
+ return this->ParaType;
+}
+
+void AbstractComponentWidget::setParaType(const QString& type)
+{
+ this->ParaType = type;
+}
+
+void AbstractComponentWidget::setComponentType(ComponentType type)
+{
+ this->componentType = type;
+}
+
+ComponentType AbstractComponentWidget::getComponentType() const
+{
+ return this->componentType;
+}
+
+// File ÎļþÑ¡Ôñ
+
+FileSelectWidget::FileSelectWidget(QWidget* parent) :AbstractComponentWidget(parent)
{
- this->m_pFileSelectButton = new QToolButton(this);
- this->m_pFileSelectButton->setText("Select File");
- QObject::connect(m_pFileSelectButton, SIGNAL(clicked()), this, SLOT(onSelectFile()));
- m_pFileNameEdit = new QLineEdit(this);
- this->m_pFileNameLabel = new QLabel("Selected File:", this);
- QHBoxLayout* layout = new QHBoxLayout(this);
- layout->addWidget(m_pFileNameLabel);
- layout->addWidget(m_pFileNameEdit);
- layout->addWidget(m_pFileSelectButton);
- setLayout(layout);
}
-
FileSelectWidget::~FileSelectWidget()
{
- // Destructor implementation
}
-void FileSelectWidget::setFileName(const QString& fileName)
+void FileSelectWidget::initUI()
{
- this->m_pFileNameEdit->setText(fileName);
+ // ³õʼ»¯¿Ø¼þ
+ // fileNameLabel
+ fileNameLabel = new QLabel(this);
+ fileNameLabel->setText(this->getParaName());
+
+ //filePathEdit
+ filePathEdit = new QLineEdit(this);
+
+ // fileSelectButton
+ fileSelectButton = new QToolButton(this);
+ fileSelectButton->setText(u8"Ñ¡ÔñÎļþ");
+
+
+
+ // ÉèÖÃÎļþ×îС¿Ø¼þ¸ß¶È
+ fileNameLabel->setMinimumHeight(30);
+ filePathEdit->setMinimumHeight(30);
+ fileSelectButton->setMinimumHeight(30);
+
+ // °ó¶¨ÐźÅ-²Û
+ QObject::connect(fileSelectButton, SIGNAL(clicked()) , this, SLOT(onFileSelectButtonClicked()));
+
+ // ˮƽ²¼¾Ö
+ QHBoxLayout* layout = new QHBoxLayout(this);
+ layout->addWidget(fileNameLabel);
+ layout->addWidget(filePathEdit);
+ layout->addWidget(fileSelectButton);
+ this->setLayout(layout);
+
+
}
-QString FileSelectWidget::getFileName() const
+QString FileSelectWidget::getValue() const
{
- return this->m_pFileNameEdit->text();
-}
-
-void FileSelectWidget::setLabelText(const QString& text)
-{
- this->m_pFileNameLabel->setText(text);
-}
-
-void FileSelectWidget::setDataTypeStr(const QString& str)
-{
- this->DataTypeStr = str;
-}
-
-void FileSelectWidget::onSelectFile()
-{
- if (this->paramType == ComponentType::FolderSelect)
+ if (nullptr != filePathEdit)
{
- QString folderName = QFileDialog::getExistingDirectory(this, u8"Select Folder", "");
- if (!folderName.isEmpty())
- {
- this->m_pFileNameEdit->setText(folderName);
- emit fileSelected(folderName);
- }
- return;
+ return filePathEdit->text();
}
- else if (this->paramType == ComponentType::FileSelect)
+ else {
+ QMessageBox::warning(nullptr, u8"¾¯¸æ", u8"ÇëÏÈÑ¡ÔñÎļþ");
+ return QString();
+ }
+}
+
+void FileSelectWidget::onFileSelectButtonClicked()
+{
+ if (this->componentType == ComponentType::FileSelect)
{
- QString fileName = QFileDialog::getOpenFileName(this, u8"Select File", "", QString("All Files (*);;%1(*.%1)").arg(this->DataTypeStr));
+ QString fileName = QFileDialog::getOpenFileName(this, u8"Ñ¡ÔñÎļþ", "", u8"ËùÓÐÎļþ(*.*);;Îı¾Îļþ(*.txt);;ͼÏñÎļþ(*.png *.jpg *.bmp)");
if (!fileName.isEmpty())
{
- this->m_pFileNameEdit->setText(fileName);
- emit fileSelected(fileName);
+ filePathEdit->setText(fileName);
+ }
+ else {
+ QMessageBox::warning(this, u8"¾¯¸æ", u8"ÇëÑ¡ÔñÎļþ");
}
- return;
}
- else {}
-
+ else if (this->componentType == ComponentType::FolderSelect)
+ {
+ QString fileName = QFileDialog::getOpenFileName(this,
+ QString(u8"Ñ¡Ôñ%1").arg(this->getParaChsName()),
+ "",
+ QString(u8"ËùÓÐÎļþ(*.*);;%1Îļþ(*.%2);;").arg(this->getDatatype()).arg(this->getDatatype()));
+ if (!fileName.isEmpty())
+ {
+ filePathEdit->setText(fileName);
+ }
+ else {
+ QMessageBox::warning(this, u8"¾¯¸æ", u8"ÇëÑ¡ÔñÎļþ");
+ }
+ }
+ else {
+ QString fileName = QFileDialog::getExistingDirectory(this,
+ QString(u8"Ñ¡ÔñÎļþ¼Ð£º%1").arg(this->getParaChsName()),
+ "");
+ if (!fileName.isEmpty())
+ {
+ filePathEdit->setText(fileName);
+ }
+ else {
+ QMessageBox::warning(this, u8"¾¯¸æ", u8"ÇëÑ¡ÔñÎļþ¼Ð");
+ }
+ }
}
-/*************** ¸´Ñ¡¿ò **************************/
-ComboxSelectWidget::ComboxSelectWidget(QWidget* parent)
+
+// ÕûÊýÊäÈë×é¼þ
+IntInputWidget::IntInputWidget(QWidget* parent) :AbstractComponentWidget(parent)
{
+
}
-
-ComboxSelectWidget::~ComboxSelectWidget()
-{
-}
-
-void ComboxSelectWidget::setLabelText(const QString& text)
-{
-}
-
-void ComboxSelectWidget::setDataTypeStr(const QString& str)
-{
-}
-
-void ComboxSelectWidget::addItem(const QString& item)
-{
-}
-
-void ComboxSelectWidget::setCurrentIndex(int index)
-{
-}
-
-void ComboxSelectWidget::setCurrentText(const QString& text)
-{
-}
-
-QString ComboxSelectWidget::getCurrentText() const
-{
- return QString();
-}
-
-
-
-
-
-
-/*************** ÕûÊýÊäÈë **************************/
-
-
-
-IntInputWidget::IntInputWidget(QWidget* parent)
-{
-}
-
IntInputWidget::~IntInputWidget()
{
}
-void IntInputWidget::setLabelText(const QString& text)
+void IntInputWidget::initUI()
{
+ fileNameLabel = new QLabel(this);
+ fileNameLabel->setText(this->getParaName());
+
+
+ intInput = new QSpinBox(this);
+ intInput->setRange(-1000000, 1000000);
+ intInput->setSingleStep(1);
+
+ // ÉèÖÃÎļþ×îС¿Ø¼þ¸ß¶È
+ fileNameLabel->setMinimumHeight(30);
+ intInput->setMinimumHeight(30);
+ // ˮƽ²¼¾Ö
+ QHBoxLayout* layout = new QHBoxLayout(this);
+ layout->addWidget(fileNameLabel);
+ layout->addWidget(intInput);
+ this->setLayout(layout);
}
-void IntInputWidget::setDataTypeStr(const QString& str)
+QString IntInputWidget::getValue() const
{
+ if (nullptr == this->intInput)
+ {
+ return QString();
+ }
+ else {
+ return QString::number(this->intInput->value());
+ }
}
+
+// ¸¡µãÊýÊäÈë×é¼þ
-void IntInputWidget::setValue(int value)
-{
-}
-
-int IntInputWidget::getValue() const
-{
- return 0;
-}
-
-
-
-/*************** ¸¡µãÊýÊäÈë **************************/
-
-DoubleInputWidget::DoubleInputWidget(QWidget* parent)
+DoubleInputWidget::DoubleInputWidget(QWidget* parent) :AbstractComponentWidget(parent)
{
}
@@ -151,19 +227,140 @@ DoubleInputWidget::~DoubleInputWidget()
{
}
-void DoubleInputWidget::setLabelText(const QString& text)
+void DoubleInputWidget::initUI()
+{
+ fileNameLabel = new QLabel(this);
+ fileNameLabel->setText(this->getParaName());
+
+
+ doubleInput = new QDoubleSpinBox(this);
+ doubleInput->setRange(-1000000, 1000000);
+ doubleInput->setSingleStep(1e-6);
+
+ // ÉèÖÃÎļþ×îС¿Ø¼þ¸ß¶È
+ fileNameLabel->setMinimumHeight(30);
+ doubleInput->setMinimumHeight(30);
+ // ˮƽ²¼¾Ö
+ QHBoxLayout* layout = new QHBoxLayout(this);
+ layout->addWidget(fileNameLabel);
+ layout->addWidget(doubleInput);
+ this->setLayout(layout);
+}
+
+QString DoubleInputWidget::getValue() const
+{
+ if (nullptr != this->doubleInput)
+ {
+ return QString::number(this->doubleInput->value(),'e',14);
+ }
+ else {
+ return QString();
+ }
+}
+
+
+
+// ÕûÊýÊäÈë×é¼þ
+ScopeIntInputWidget::ScopeIntInputWidget(QWidget* parent) :AbstractComponentWidget(parent)
+{
+
+}
+
+ScopeIntInputWidget::~ScopeIntInputWidget()
{
}
-void DoubleInputWidget::setDataTypeStr(const QString& str)
+void ScopeIntInputWidget::initUI()
+{
+ fileNameLabel = new QLabel(this);
+ fileNameLabel->setText(this->getParaName());
+ intInputMin = new QSpinBox(this);
+ intInputMin->setRange(-1000000, 1000000);
+ intInputMin->setSingleStep(1);
+
+ scopeConnectStr = new QLabel(this);
+ scopeConnectStr->setText(u8" - ");
+
+ intInputMax = new QSpinBox(this);
+ intInputMax->setRange(-1000000, 1000000);
+ intInputMax->setSingleStep(1);
+
+ // ÉèÖÃÎļþ×îС¿Ø¼þ¸ß¶È
+ fileNameLabel->setMinimumHeight(30);
+ intInputMin->setMinimumHeight(30);
+ intInputMax->setMinimumHeight(30);
+ // ˮƽ²¼¾Ö
+ QHBoxLayout* layout = new QHBoxLayout(this);
+ layout->addWidget(fileNameLabel);
+ layout->addWidget(intInputMin);
+ layout->addWidget(scopeConnectStr);
+ layout->addWidget(intInputMax);
+ this->setLayout(layout);
+}
+
+QString ScopeIntInputWidget::getValue() const
+{
+ if (nullptr != intInputMin && nullptr != intInputMax)
+ {
+ return QString("%1;%2")
+ .arg(QString::number(intInputMin->value()))
+ .arg(QString::number(intInputMax->value()));
+ }
+ else {
+ QMessageBox::warning(nullptr, u8"¾¯¸æ", u8"ÇëÏÈÊäÈë");
+ }
+ return QString();
+}
+
+
+
+// ¸¡µãÊýÊäÈë×é¼þ
+ScopeDoubleInputWidget::ScopeDoubleInputWidget(QWidget* parent) :AbstractComponentWidget(parent)
{
}
-void DoubleInputWidget::setValue(double value)
+ScopeDoubleInputWidget::~ScopeDoubleInputWidget()
{
}
-double DoubleInputWidget::getValue() const
+void ScopeDoubleInputWidget::initUI()
{
- return 0.0;
+ fileNameLabel = new QLabel(this);
+ fileNameLabel->setText(this->getParaName());
+ doubleInputMin = new QDoubleSpinBox(this);
+ doubleInputMax->setRange(-1000000, 1000000);
+ doubleInputMin->setSingleStep(1);
+
+ scopeConnectStr = new QLabel(this);
+ scopeConnectStr->setText(u8" - ");
+
+ doubleInputMax = new QDoubleSpinBox(this);
+ doubleInputMax->setRange(-1000000, 1000000);
+ doubleInputMax->setSingleStep(1);
+
+ // ÉèÖÃÎļþ×îС¿Ø¼þ¸ß¶È
+ fileNameLabel->setMinimumHeight(30);
+ doubleInputMin->setMinimumHeight(30);
+ doubleInputMax->setMinimumHeight(30);
+ // ˮƽ²¼¾Ö
+ QHBoxLayout* layout = new QHBoxLayout(this);
+ layout->addWidget(fileNameLabel);
+ layout->addWidget(doubleInputMin);
+ layout->addWidget(scopeConnectStr);
+ layout->addWidget(doubleInputMax);
+ this->setLayout(layout);
+}
+
+QString ScopeDoubleInputWidget::getValue() const
+{
+ if (nullptr != doubleInputMin && nullptr != doubleInputMax)
+ {
+ return QString("%1;%2")
+ .arg(QString::number(doubleInputMin->value(),'e',14))
+ .arg(QString::number(doubleInputMax->value(), 'e', 14));
+ }
+ else {
+ QMessageBox::warning(nullptr, u8"¾¯¸æ", u8"ÇëÏÈÊäÈë");
+ }
+ return QString();
}
diff --git a/Toolbox/KJ135WBJYAlgInterfaceToolbox/KJ135WBJYAlgWidgetComponet.h b/Toolbox/KJ135WBJYAlgInterfaceToolbox/KJ135WBJYAlgWidgetComponet.h
index bfd129b..6f314d2 100644
--- a/Toolbox/KJ135WBJYAlgInterfaceToolbox/KJ135WBJYAlgWidgetComponet.h
+++ b/Toolbox/KJ135WBJYAlgInterfaceToolbox/KJ135WBJYAlgWidgetComponet.h
@@ -26,106 +26,181 @@
#include
+
+
///
/// ²ÎÊýÀàÐÍö¾Ù
///
enum ComponentType{
- FileSelect = 0, // ÎļþÑ¡Ôñ
+ UNKNOW = 0, // δ֪ÀàÐÍ
+ FileSelect , // ÎļþÑ¡Ôñ
FolderSelect, // Îļþ¼ÐÑ¡Ôñ
ComboxSelect,// ö¾Ù¶àÑ¡
IntInput,// ÕûÊýÊäÈë
DoubleInput,// ¸¡µãÊýÊäÈë
-
+ MultipleSelect,// ¶àÑ¡
+ ScopeIntInput,// ÕûÊý·¶Î§ÊäÈë
+ ScopeDoubleInput,// ¸¡µãÊý·¶Î§ÊäÈë
};
-class FileSelectWidget : public QWidget
+
+
+
+
+/**
+
+CoveringIDs
+µØ±í¸²¸ÇÀàÐÍÊý¾ÝµÄÀà±ðid
+µØ±í¸²¸ÇÀàÐÍÊý¾ÝÖÐÖ²±»ÇøÓò¡¢ÂãÍÁÇøÓòµÄÀà±ðid,¶à¸öidʹÓá°;¡±·Ö¸î¡£Ê¾Àý£ºGlobeLand30Êý¾ÝµÄcover_roi_ids = 10;20;30;40;50;70;71;72;83;74;90
+Value
+string
+Man
+1;4;5;6;7;11;10;20;30;50;60;70;71;72;73;74;80;90;255
+True
+False
+UploadInput
+Aux
+0
+Aux
+DEFAULT
+DEFAULT
+DEFAULT
+DEFAULT
+DEFAULT
+
+
+**/
+
+class AbstractComponentWidget : public QWidget
{
Q_OBJECT
public:
- FileSelectWidget(ComponentType paramtype = ComponentType::FileSelect,QWidget* parent = nullptr);
+ AbstractComponentWidget(QWidget* parent = nullptr);
+ ~AbstractComponentWidget();
+
+protected:
+ QString ParaName; // ²ÎÊýÃû³Æ
+ QString ParaChsName;// ²ÎÊýÖÐÎÄÃû³Æ
+ QString Description;// ²ÎÊýÃèÊö
+
+ QString Datatype;// Êý¾ÝÀàÐÍ Value // ¾ö¶¨²ÎÊýµÄÊäÈëÀàÐÍ
+ QString ParaType;// ²ÎÊýÀàÐÍ string
+
+ ComponentType componentType = ComponentType::UNKNOW; // ×é¼þÀàÐÍ
+public://ÊôÐÔ²Ù×÷
+ QString getParaName() const;
+ void setParaName(const QString& name);
+ // ÉèÖòÎÊýÖÐÎÄÃû³Æ
+ QString getParaChsName() const;
+ void setParaChsName(const QString& name);
+ // ÉèÖòÎÊýÃèÊö
+ QString getDescription() const;
+ void setDescription(const QString& description);
+ // ÉèÖÃÊý¾ÝÀàÐÍ
+ QString getDatatype() const;
+ void setDatatype(const QString& datatype);
+ // ÉèÖòÎÊýÀàÐÍ
+ QString getParaType() const;
+ void setParaType(const QString& type);
+
+ void setComponentType(ComponentType type);
+ ComponentType getComponentType() const;
+};
+
+///
+/// File ÎļþÑ¡Ôñ×é¼þ
+///
+class FileSelectWidget : public AbstractComponentWidget
+{
+ Q_OBJECT
+public:
+ FileSelectWidget(QWidget* parent = nullptr);
~FileSelectWidget();
-
- void setFileName(const QString& fileName);
- QString getFileName() const;
-
- void setLabelText(const QString& text);
- void setDataTypeStr(const QString& str);
-private slots:
- void onSelectFile();
-
-signals:
- void fileSelected(const QString& fileName);
+ void initUI();
private:
- QToolButton* m_pFileSelectButton;
- QLineEdit* m_pFileNameEdit;
- QLabel* m_pFileNameLabel;
- QString DataTypeStr;
- ComponentType paramType;
-};
-
-
-class ComboxSelectWidget : public QWidget
-{
- Q_OBJECT
+ QLabel* fileNameLabel=nullptr; // ÎļþÃû³Æ
+ QLineEdit* filePathEdit = nullptr;
+ QToolButton* fileSelectButton = nullptr;
+ public slots:
+ void onFileSelectButtonClicked();
public:
- ComboxSelectWidget(QWidget* parent = nullptr);
- ~ComboxSelectWidget();
- void setLabelText(const QString& text);
- void setDataTypeStr(const QString& str);
- void addItem(const QString& item);
- void setCurrentIndex(int index);
- void setCurrentText(const QString& text);
- QString getCurrentText() const;
-private:
- QComboBox* m_pCombox;
- QLabel* m_pComboxLabel;
- QString DataTypeStr;
-};
+ QString getValue() const;
+ };
-class IntInputWidget : public QWidget
+///
+/// intÊäÈë×é¼þ
+///
+class IntInputWidget : public AbstractComponentWidget
{
Q_OBJECT
public:
IntInputWidget(QWidget* parent = nullptr);
~IntInputWidget();
- void setLabelText(const QString& text);
- void setDataTypeStr(const QString& str);
- void setValue(int value);
- int getValue() const;
+ void initUI();
private:
- QSpinBox* m_pIntInput;
- QLabel* m_pIntInputLabel;
- QString DataTypeStr;
+ QLabel* fileNameLabel = nullptr; // ÎļþÃû³Æ
+ QSpinBox* intInput = nullptr;
+
+public:
+ QString getValue() const;
+
};
-class DoubleInputWidget : public QWidget
+///
+/// double ÊäÈë×é¼þ
+///
+class DoubleInputWidget : public AbstractComponentWidget
{
Q_OBJECT
public:
DoubleInputWidget(QWidget* parent = nullptr);
~DoubleInputWidget();
- void setLabelText(const QString& text);
- void setDataTypeStr(const QString& str);
- void setValue(double value);
- double getValue() const;
+ void initUI();
private:
- QDoubleSpinBox* m_pDoubleInput;
- QLabel* m_pDoubleInputLabel;
- QString DataTypeStr;
+ QLabel* fileNameLabel = nullptr; // ÎļþÃû³Æ
+ QDoubleSpinBox* doubleInput = nullptr;
+ public:
+ QString getValue() const;
+ };
+
+///
+/// ÕûÊýÖµ Êý¾Ý·¶Î§ÊäÈë×é¼þ
+///
+class ScopeIntInputWidget : public AbstractComponentWidget
+{
+ Q_OBJECT
+public:
+ ScopeIntInputWidget(QWidget* parent = nullptr);
+ ~ScopeIntInputWidget();
+ void initUI();
+private:
+ QLabel* fileNameLabel = nullptr; // ÎļþÃû³Æ
+ QLabel* scopeConnectStr = nullptr; // ÎļþÃû³Æ
+ QSpinBox* intInputMin = nullptr;
+ QSpinBox* intInputMax = nullptr;
+public:
+ QString getValue() const;
};
-
-
-
-
-
-
-
-
-
-
-
+///
+/// ¸¡µãÊýÖµ Êý¾Ý·¶Î§ÊäÈë×é¼þ
+///
+class ScopeDoubleInputWidget : public AbstractComponentWidget
+{
+ Q_OBJECT
+public:
+ ScopeDoubleInputWidget(QWidget* parent = nullptr);
+ ~ScopeDoubleInputWidget();
+ void initUI();
+private:
+ QLabel* fileNameLabel = nullptr; // ÎļþÃû³Æ
+ QLabel* scopeConnectStr = nullptr; // ÎļþÃû³Æ
+ QDoubleSpinBox* doubleInputMin = nullptr;
+ QDoubleSpinBox* doubleInputMax = nullptr;
+public:
+ QString getValue() const;
+};
diff --git a/Toolbox/KJ135WBJYAlgInterfaceToolbox/QWBFZAlgComponetXmlParamsDialog.cpp b/Toolbox/KJ135WBJYAlgInterfaceToolbox/QWBFZAlgComponetXmlParamsDialog.cpp
index 2d88e6e..15ebdb7 100644
--- a/Toolbox/KJ135WBJYAlgInterfaceToolbox/QWBFZAlgComponetXmlParamsDialog.cpp
+++ b/Toolbox/KJ135WBJYAlgInterfaceToolbox/QWBFZAlgComponetXmlParamsDialog.cpp
@@ -22,7 +22,9 @@ void WBFZAlgComponetLoadXmlParamsProcess()
return;
}
else {
+ // TODO: ½âÎöxmlÎļþ£¬¼ÓÔØ²ÎÊý
}
+ return;
}
diff --git a/Toolbox/KJ135WBJYAlgInterfaceToolbox/QWBFZAlgComponetXmlParamsDialog.ui b/Toolbox/KJ135WBJYAlgInterfaceToolbox/QWBFZAlgComponetXmlParamsDialog.ui
index 89152af..5bf6b56 100644
--- a/Toolbox/KJ135WBJYAlgInterfaceToolbox/QWBFZAlgComponetXmlParamsDialog.ui
+++ b/Toolbox/KJ135WBJYAlgInterfaceToolbox/QWBFZAlgComponetXmlParamsDialog.ui
@@ -16,6 +16,9 @@
-
+
+
+
true
diff --git a/Toolbox/KJ135WBJYAlgInterfaceToolbox/WBFZAlgComponetXmlParaseOperator.cpp b/Toolbox/KJ135WBJYAlgInterfaceToolbox/WBFZAlgComponetXmlParaseOperator.cpp
new file mode 100644
index 0000000..05beed6
--- /dev/null
+++ b/Toolbox/KJ135WBJYAlgInterfaceToolbox/WBFZAlgComponetXmlParaseOperator.cpp
@@ -0,0 +1 @@
+#include "WBFZAlgComponetXmlParaseOperator.h"
diff --git a/Toolbox/KJ135WBJYAlgInterfaceToolbox/WBFZAlgComponetXmlParaseOperator.h b/Toolbox/KJ135WBJYAlgInterfaceToolbox/WBFZAlgComponetXmlParaseOperator.h
new file mode 100644
index 0000000..a7a5744
--- /dev/null
+++ b/Toolbox/KJ135WBJYAlgInterfaceToolbox/WBFZAlgComponetXmlParaseOperator.h
@@ -0,0 +1,67 @@
+#pragma once
+#ifndef __WBFZAlgComponetXmlParaseOperator_H__
+#define __WBFZAlgComponetXmlParaseOperator_H__
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include "KJ135WBJYAlgWidgetComponet.h" // Ëã·¨×é¼þ²ÎÊý½çÃæ×é¼þÀà
+
+
+// Ëã·¨×é¼þ²ÎÊýxmlÏî
+class WBFZAlgComponetXmlParamenterItem
+{
+public:
+ WBFZAlgComponetXmlParamenterItem(QDomElement* itemparameter);
+ ~WBFZAlgComponetXmlParamenterItem();
+ void setName(const QString& name);
+ void setValue(const QString& value);
+ QString getName() const;
+ QString getValue() const;
+ QString WriteXml() const;
+private:
+ QString name; // ²ÎÊýÃû³Æ
+ QString value;// ²ÎÊýÖµ
+ QString Datatype;// ²ÎÊýÀàÐÍ
+ QString ParaType;// ²ÎÊýÀàÐÍ
+ QDomElement* itemparameter;
+};
+
+// Ëã·¨×é¼þxml²ÎÊý½âÎöÖ÷Àà
+class WBFZAlgComponetXmlParaseOperator
+{
+public:
+ WBFZAlgComponetXmlParaseOperator();
+ ~WBFZAlgComponetXmlParaseOperator();
+ void loadXmlFile(const QString& fileName);
+
+private:
+ void parseXmlFile();
+ void displayParsedData();
+
+private:
+ QString workSpacePath;
+
+private:// ²ÎÊýÎļþ½á¹¹
+
+
+
+};
+
+
+
+#endif// __WBFZAlgComponetXmlParaseOperator_H__
+