diff --git a/src/translations/Dyt_zh_CN.qm b/src/translations/Dyt_zh_CN.qm index 449ed17f..04a95a6b 100644 Binary files a/src/translations/Dyt_zh_CN.qm and b/src/translations/Dyt_zh_CN.qm differ diff --git a/src/translations/Dyt_zh_CN.ts b/src/translations/Dyt_zh_CN.ts index eae835fa..457d64d7 100644 --- a/src/translations/Dyt_zh_CN.ts +++ b/src/translations/Dyt_zh_CN.ts @@ -5,6 +5,7 @@ AddCurveFileDlg + Add Curve Data File @@ -14,198 +15,198 @@ - + File Path: - + Select curve data file... - + ... - + File Name: - - + + - - + File Size: - + Chart Properties - + Chart Name: - + Chart 1 - + Enter chart name... - + Chart Type: - + X Axis Title: - + Enter X axis title... - + Y Axis Title: - + Enter Y axis title... - + Time: - + Axis Range Settings - + X Tick Count: - + X Min: - + Y Max: - + Y Min: - + X Max: - + Y Tick Count: - + Curve Management - + Curves: - + Add Curve - + Remove - + Selected Curve Properties - + Curve Name: - + Enter curve name... - + Curve Color: - + Select Color - + background-color: rgb(255, 0, 0); border: 1px solid black; - + Data Start: - + Data Stop: - + X Value: - + Y Value: - + Add File - + Cancel @@ -350,6 +351,11 @@ X axis tick count must be at least 2. + + + Data Files (*.txt *.csv *.dat);;All Files (*.*) + + @@ -397,6 +403,7 @@ AddLightFileDlg + Add Light Data File @@ -406,166 +413,191 @@ - + File Path: - + Select light data file... - + ... - + File Name: - - - + + + - - + File Size: - + + Chart Properties + + + + + Chart Names: + + + + Color Properties - + Open Color: - - + + Select Color - + background-color: rgb(0, 255, 0); border: 1px solid black; - + Close Color: - + background-color: rgb(255, 0, 0); border: 1px solid black; - + Light Management - + Lights: - + Add Light Row - + Remove - + Selected Light Properties - + Light Names: - + Enter light names (comma separated)... - - Light Data: + + Light Datas: - + Enter data values (comma separated integers)... - + Edit Data - + Row Index: - + Add File - + Cancel - - + + Light Data Files (*.txt *.csv *.dat);;All Files (*.*) + + + + + Warning + + + + + Please enter a Chart name. + + + + + Error - + Unable to get current workspace - + Curve file count has reached the limit (9 files) - + File already exists - + File copy failed - + Invalid file - + Failed to add file @@ -656,6 +688,361 @@ + + AddPolarDlg + + + Add Polar + + + + + File Selection + + + + + File Path: + + + + + Select curve data file... + + + + + ... + + + + + File Name: + + + + + + - + + + + + File Size: + + + + + Angular Axis + + + + + + Title: + + + + + + Enter axis title... + + + + + + Min: + + + + + + Max: + + + + + + Count: + + + + + + Unit: + + + + + + Enter axis Unit... + + + + + Radial Axis + + + + + Curve Management + + + + + Curves: + + + + + Add + + + + + Remove + + + + + Selected Curve Properties + + + + + Name: + + + + + Enter curve name... + + + + + Color: + + + + + Select Color + + + + + background-color: rgb(255, 0, 0); border: 1px solid black; + + + + + Angular: + + + + + Radial: + + + + + X Value: + + + + + Y Value: + + + + + Add File + + + + + Cancel + + + + + Chart Properties + + + + + Time: + + + + + Chart Name: + + + + + Chart 1 + + + + + Enter chart name... + + + + + AddPolarFileDlg + + + Data Files (*.txt *.csv *.dat);;All Files (*.*) + + + + + Add Polar + + + + + + + + + + + + + + + + + + + Validation Error + + + + + Please select a data file. + + + + + Selected file does not exist. + + + + + Selected file is not readable. Please check file permissions. + + + + + File is too large (over 100MB). Please select a smaller file. + + + + + At least one curve must be defined. + + + + + Curve %1 name cannot be empty. + + + + + Curve name '%1' is duplicated. Please use different names. + + + + + Curve name '%1' is too long. Please limit to 50 characters. + + + + + Curve '%1' X value is out of range. Please ensure it is between -1000000 and 1000000. + + + + + Curve '%1' Y value is out of range. Please ensure it is between -1000000 and 1000000. + + + + + Chart name cannot be empty. + + + + + Chart name is too long. Please limit to 100 characters. + + + + + Angular axis minimum value must be less than maximum value. + + + + + Radial axis minimum value must be less than maximum value. + + + + + Time parameter cannot be negative. + + + + + Curve %1 + + + + + + + Error + + + + + Failed to create file entry + + + + + Unable to get current workspace + + + + + Curve file count has reached the limit (9 files) + + + + + File already exists + + + + + File copy failed + + + + + Invalid file + + + + + Failed to add file + + + AddSurfaceFileDlg @@ -669,237 +1056,280 @@ - + Select surface data file... - + Browse... - + Chart Properties - + X Axis Title: - + Y Axis Title: - + Z Axis Title: - + Time Parameter: - + X Range: - - - + + + to - + X Count: - + Y Range: - + Y Count: - + Z Range: - + Z Count: - - Surface Management - - - - - Add Surface - - - - - Remove - - - - - Surface Properties - - - - + + Name: - + + Surface Management + + + + + Add Surface + + + + + Remove + + + + + Surface Properties + + + + Color: - + Select Color - + Start Point: - + End Point: - + + X-Map: + + + + + + + x + + + + + + + y + + + + + + + z + + + + + Y-Map: + + + + + Z-Map: + + + + Data Format Parameters - + X Column: - + Y Column: - + Z Column: - + Separator: - + , - + X Grid Size: - + Y Grid Size: - + Has Header Row - + Surface Data Files (*.txt *.dat *.csv);;All Files (*.*) - - Select Surface Data File + + Add Surface Dialog - - + + + Warning - + Please add at least one surface. - + Please fill in all axis titles. - + Select Surface Color - - - + + Please enter a Surface name. + + + + + + Error - + Failed to create surface file entry. - + Unable to get current workspace - + Surface file count has reached the limit (9 files) - + File already exists - + File copy failed - + Invalid file - + Failed to add file @@ -908,6 +1338,7 @@ AddTableFileDlg + Add Table Data File @@ -917,276 +1348,275 @@ - + File Path: - + Select table data file... - + ... - + File Name: - - + + - - + File Size: - + Basic Information - + Enter table name... - + Table Name: - + Time Parameter: - + Table Headers Configuration - + File has header row - + Headers (comma-separated): - + e.g., Time, Value1, Value2, Value3... - + Tip: Headers will be auto-detected if file has header row - + Parsing Parameters - + Skip Rows: - + Auto-detect parameters - + Encoding: - + UTF-8 - + GBK - + ASCII - + ISO-8859-1 - + Curves Configuration - + Add Curve - + Remove Curve - + Curve Properties - + Name: - + Enter curve name... - + Color: - + Select Color - + Data: - + Enter data values (comma-separated)... - + Data values must match the number of headers - + Add File - + Cancel - - - - + + - + + Warning - + Please configure table headers first. - + Select Curve Color - + Please configure table headers. - - Please add at least one curve. - - - - + Curve %1 name cannot be empty. - + Curve '%1' data cannot be empty. - + Curve '%1' data count (%2) doesn't match headers count (%3). - + + Table Files (*.txt *.csv *.tsv *.dat);;All Files (*.*) + + + + Please enter a table name. - - - + + + Error - + Failed to create table file entry. - + Unable to get current workspace - + Table file count has reached the limit - + File already exists - + File copy failed - + Invalid file - + Failed to add file @@ -1505,6 +1935,11 @@ new light file + + + new polar file + + FitCurveChartView @@ -1892,127 +2327,70 @@ - + Open Workspace - - + + Dyt Files (*.dyt) - - - - - - - - - - - - - - - - - - - - - + + + + + + prompt - - - - - + + + + + + please create workspace first - + Save Workspace - - - - - Error - - - - - - - - Failed to create file entry - - - - - - - - up to 9 files allowed for this type - - - - - - - - file already added for this type - - - - - - - - copy file failed - - - - - - - - invalid file - - - - - + + Curve[%1] - - + + Surface[%1] - - + + Table[%1] - - + + Light[%1] + + + Polar[%1] + + QtBoolEdit @@ -2085,48 +2463,48 @@ QtConeWaveComponentManager - - + + ConeWaveComponent - + Height - + Radius - + waveCount - + waveSpeed - + baseColor - + waveColor - + ringBrightAlpha - + ringDarkAlpha @@ -2232,28 +2610,28 @@ QtDashedLineComponentManager - - + + DashedLineComponent - + Start - + End - + Radius - + Color @@ -2269,17 +2647,17 @@ QtEntityPropertyManager - + Name - + Visible - + Transform @@ -2361,13 +2739,13 @@ QtMeshComponetManager - - + + MeshComponent - + Mesh @@ -2416,13 +2794,13 @@ QtPathComponentManager - - + + PathComponent - + Path @@ -2672,95 +3050,100 @@ QtWorkspacePropertyManager - + Name - + Description - + Timestep - + SimMatlab - + MatlabParam - + WavePath - + ReportPath - + RDPath - + CommondPath - + Count - + Curve[%1] - + Surface[%1] - + Table[%1] - + Light[%1] - + Curves - + Surfaces - + Tables - + Lights + + + Polars + + SignalIndicatorLampUI @@ -2773,22 +3156,22 @@ SimuRunMenu - + no workspace - + no commands - + Commands - + unnamed @@ -2874,53 +3257,53 @@ - + Name - + input workspace name - + Path - + select workspace save path - - + + ... - + commond Path - + select commond file path - + describe - + Sure - + Cancel diff --git a/src/ui/WorkSpace/AddCurveFileDlg.cpp b/src/ui/WorkSpace/AddCurveFileDlg.cpp index 9fb1cc78..7ea24b7b 100644 --- a/src/ui/WorkSpace/AddCurveFileDlg.cpp +++ b/src/ui/WorkSpace/AddCurveFileDlg.cpp @@ -590,11 +590,11 @@ bool AddCurveFileDlg::validateSpecificParams() { } QString AddCurveFileDlg::getFileFilter() const { - return "Data Files (*.txt *.csv *.dat);;All Files (*.*)"; + return tr("Data Files (*.txt *.csv *.dat);;All Files (*.*)"); } QString AddCurveFileDlg::getDialogTitle() const { - return "Add Curve Data File"; + return tr("Add Curve Data File"); } void AddCurveFileDlg::onSure() { diff --git a/src/ui/WorkSpace/AddCurveFileDlg.ui b/src/ui/WorkSpace/AddCurveFileDlg.ui index 58a6b54b..ff42ec12 100644 --- a/src/ui/WorkSpace/AddCurveFileDlg.ui +++ b/src/ui/WorkSpace/AddCurveFileDlg.ui @@ -777,7 +777,7 @@ 100 - 30 + 0 @@ -793,7 +793,7 @@ 100 - 30 + 0 diff --git a/src/ui/WorkSpace/AddLightFileDlg.cpp b/src/ui/WorkSpace/AddLightFileDlg.cpp index 85b4fb16..a5986229 100644 --- a/src/ui/WorkSpace/AddLightFileDlg.cpp +++ b/src/ui/WorkSpace/AddLightFileDlg.cpp @@ -338,11 +338,11 @@ bool AddLightFileDlg::validateSpecificParams() { } QString AddLightFileDlg::getFileFilter() const { - return "Light Data Files (*.txt *.csv *.dat);;All Files (*.*)"; + return tr("Light Data Files (*.txt *.csv *.dat);;All Files (*.*)"); } QString AddLightFileDlg::getDialogTitle() const { - return "Add Light Data File"; + return tr("Add Light Data File"); } void AddLightFileDlg::onSure() { diff --git a/src/ui/WorkSpace/AddLightFileDlg.ui b/src/ui/WorkSpace/AddLightFileDlg.ui index 22a35667..c5b7db95 100644 --- a/src/ui/WorkSpace/AddLightFileDlg.ui +++ b/src/ui/WorkSpace/AddLightFileDlg.ui @@ -455,7 +455,7 @@ 100 - 30 + 0 @@ -468,7 +468,7 @@ 100 - 30 + 0 diff --git a/src/ui/WorkSpace/AddPolarDlg.ui b/src/ui/WorkSpace/AddPolarDlg.ui index ce040d40..6f865f4a 100644 --- a/src/ui/WorkSpace/AddPolarDlg.ui +++ b/src/ui/WorkSpace/AddPolarDlg.ui @@ -754,7 +754,7 @@ 100 - 30 + 0 @@ -770,7 +770,7 @@ 100 - 30 + 0 diff --git a/src/ui/WorkSpace/AddPolarFileDlg.cpp b/src/ui/WorkSpace/AddPolarFileDlg.cpp index 8eb15c3b..15d355a1 100644 --- a/src/ui/WorkSpace/AddPolarFileDlg.cpp +++ b/src/ui/WorkSpace/AddPolarFileDlg.cpp @@ -30,12 +30,12 @@ AddPolarFileDlg::~AddPolarFileDlg() { QString AddPolarFileDlg::getFileFilter() const { - return "Data Files (*.txt *.csv *.dat);;All Files (*.*)"; + return tr("Data Files (*.txt *.csv *.dat);;All Files (*.*)"); } QString AddPolarFileDlg::getDialogTitle() const { - return "Add Polar"; + return tr("Add Polar"); } bool AddPolarFileDlg::validateSpecificParams() diff --git a/src/ui/WorkSpace/AddSurfaceFileDlg.ui b/src/ui/WorkSpace/AddSurfaceFileDlg.ui index 4ed7c18d..09666768 100644 --- a/src/ui/WorkSpace/AddSurfaceFileDlg.ui +++ b/src/ui/WorkSpace/AddSurfaceFileDlg.ui @@ -573,7 +573,7 @@ 100 - 30 + 0 diff --git a/src/ui/WorkSpace/AddTableFileDlg.cpp b/src/ui/WorkSpace/AddTableFileDlg.cpp index 571ec371..f189bde2 100644 --- a/src/ui/WorkSpace/AddTableFileDlg.cpp +++ b/src/ui/WorkSpace/AddTableFileDlg.cpp @@ -339,11 +339,11 @@ bool AddTableFileDlg::validateSpecificParams() { } QString AddTableFileDlg::getFileFilter() const { - return QStringLiteral("Table Files (*.txt *.csv *.tsv *.dat);;All Files (*.*)"); + return tr("Table Files (*.txt *.csv *.tsv *.dat);;All Files (*.*)"); } QString AddTableFileDlg::getDialogTitle() const { - return QStringLiteral("Add Table Data File"); + return tr("Add Table Data File"); } QString AddTableFileDlg::getSelectedFilePath() const { diff --git a/src/ui/WorkSpace/AddTableFileDlg.ui b/src/ui/WorkSpace/AddTableFileDlg.ui index 5b8fa377..02595e47 100644 --- a/src/ui/WorkSpace/AddTableFileDlg.ui +++ b/src/ui/WorkSpace/AddTableFileDlg.ui @@ -512,7 +512,7 @@ 100 - 30 + 0 @@ -528,7 +528,7 @@ 100 - 30 + 0 diff --git a/src/ui/chartPlot/DYTChart.cpp b/src/ui/chartPlot/DYTChart.cpp index 904f77f0..12832027 100644 --- a/src/ui/chartPlot/DYTChart.cpp +++ b/src/ui/chartPlot/DYTChart.cpp @@ -1,4 +1,4 @@ -#include "DYTChart.h" +#include "DYTChart.h" #include "FitCurveDialog.h" #include "SurfaceDialog.h" @@ -267,7 +267,7 @@ void DYTChart::ParseAntennaPatternFile(const QString& strFile, std::vector>& { if (strFile.isEmpty()) { - QMessageBox::information(nullptr, QString::fromLocal8Bit("��ʾ"), QString::fromLocal8Bit("��������RD�ļ�·����")); + //QMessageBox::information(nullptr, QString::fromLocal8Bit("��ʾ"), QString::fromLocal8Bit("��������RD�ļ�·����")); return; } @@ -366,7 +366,7 @@ void DYTChart::ParseWave(const QString& strFile, std::vector> { if (strFile.isEmpty()) { - QMessageBox::information(nullptr, QString::fromLocal8Bit("��ʾ"), QString::fromLocal8Bit("��������Wave�ļ�·����")); + //QMessageBox::information(nullptr, QString::fromLocal8Bit("��ʾ"), QString::fromLocal8Bit("��������Wave�ļ�·����")); return; } @@ -1240,7 +1240,7 @@ void DYTChart::slotUpdate() } else { - QMessageBox::information(nullptr, QString::fromLocal8Bit("��ʾ"), QString::fromLocal8Bit("X�������ļ�����ʧ�ܣ������ļ��Ƿ�������")); + //QMessageBox::information(nullptr, QString::fromLocal8Bit("��ʾ"), QString::fromLocal8Bit("X�������ļ�����ʧ�ܣ������ļ��Ƿ�������")); return; } } diff --git a/src/viewer/OsgWidget.cpp b/src/viewer/OsgWidget.cpp index 9d90214a..748e2420 100644 --- a/src/viewer/OsgWidget.cpp +++ b/src/viewer/OsgWidget.cpp @@ -1,4 +1,4 @@ -#include "viewer/OsgWidget.h" +#include "viewer/OsgWidget.h" #include diff --git a/src/workspace/FileEntry.cpp b/src/workspace/FileEntry.cpp index fdcd7578..9a827d69 100644 --- a/src/workspace/FileEntry.cpp +++ b/src/workspace/FileEntry.cpp @@ -1,4 +1,4 @@ -#include "workspace/FileEntry.h" +#include "workspace/FileEntry.h" #include