修改翻译
This commit is contained in:
+531
-573
File diff suppressed because it is too large
Load Diff
@@ -1586,6 +1586,10 @@ void MainWindow::updateUI()//事件驱动式更新数据
|
||||
//healthui->setState(7,getBit(health,29)?(getBit(health,28)?(HealthUI::state::success):(HealthUI::state::warning)):(HealthUI::state::failure));//空速管加热
|
||||
healthui->setState(7,getBit(health,5)?(getBit(health,11)?(HealthUI::state::success):(HealthUI::state::warning)):(HealthUI::state::failure));//FuelLevel
|
||||
//8,9,10位为空
|
||||
healthui->setState(8,HealthUI::state::inital);
|
||||
healthui->setState(9,HealthUI::state::inital);
|
||||
healthui->setState(10,HealthUI::state::inital);
|
||||
|
||||
|
||||
toolsui->servosystem->setCheckState(6,getBit(health,22)?(HealthUI::state::failure):(HealthUI::state::success));
|
||||
toolsui->servosystem->setCheckState(7,getBit(health,23)?(HealthUI::state::failure):(HealthUI::state::success));
|
||||
|
||||
Binary file not shown.
+11
-11
@@ -4,27 +4,27 @@
|
||||
<context>
|
||||
<name>Cockpit</name>
|
||||
<message>
|
||||
<location filename="Cockpit.cpp" line="1653"/>
|
||||
<source>绝对</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<location filename="Cockpit.cpp" line="1654"/>
|
||||
<source>abs</source>
|
||||
<translation>绝对</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="Cockpit.cpp" line="1657"/>
|
||||
<source>相对</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<location filename="Cockpit.cpp" line="1658"/>
|
||||
<source>rel</source>
|
||||
<translation>相对</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="Cockpit.cpp" line="1661"/>
|
||||
<source>气压</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<location filename="Cockpit.cpp" line="1662"/>
|
||||
<source>prs</source>
|
||||
<translation>气压</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="Cockpit.cpp" line="1779"/>
|
||||
<location filename="Cockpit.cpp" line="1780"/>
|
||||
<source>-</source>
|
||||
<translation>-</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="Cockpit.cpp" line="2419"/>
|
||||
<location filename="Cockpit.cpp" line="2420"/>
|
||||
<source>heart:</source>
|
||||
<translation>心跳:</translation>
|
||||
</message>
|
||||
|
||||
+3
-3
@@ -1651,15 +1651,15 @@ void Cockpit::drawRightScale(QPainter *painter)
|
||||
switch (m_State.AltitudeFlag) {
|
||||
default:
|
||||
case 0: //绝对高度
|
||||
alt_str = tr("绝对");
|
||||
alt_str = tr("abs");
|
||||
ePen.setColor(m_Color.NormalColor);
|
||||
break;
|
||||
case 1: //相对高度
|
||||
alt_str = tr("相对");
|
||||
alt_str = tr("rel");
|
||||
ePen.setColor(m_Color.WarningColor);
|
||||
break;
|
||||
case 2: //气压高度
|
||||
alt_str = tr("气压");
|
||||
alt_str = tr("prs");
|
||||
ePen.setColor(m_Color.NoticeColor);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<context>
|
||||
<name>MavLinkNode</name>
|
||||
<message>
|
||||
<location filename="mavlinknode.cpp" line="1787"/>
|
||||
<location filename="mavlinknode.cpp" line="1848"/>
|
||||
<source>出现新的设备,识别号为 %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
||||
Binary file not shown.
+121
-39
@@ -34,6 +34,88 @@
|
||||
<translation>正在下载图片 %1,总数%2</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>WayPointParamDialog</name>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointparamdialog.ui" line="14"/>
|
||||
<source>Dialog</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointparamdialog.ui" line="35"/>
|
||||
<location filename="mapwidget/waypointparamdialog.ui" line="120"/>
|
||||
<source>°</source>
|
||||
<translation>°</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointparamdialog.ui" line="57"/>
|
||||
<source>方向:</source>
|
||||
<translation>方向:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointparamdialog.ui" line="64"/>
|
||||
<source>半径:</source>
|
||||
<translation>半径:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointparamdialog.ui" line="77"/>
|
||||
<source>高度</source>
|
||||
<translation>高度</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointparamdialog.ui" line="87"/>
|
||||
<source>km</source>
|
||||
<translation>km</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointparamdialog.ui" line="100"/>
|
||||
<source>m</source>
|
||||
<translation>m</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointparamdialog.ui" line="113"/>
|
||||
<source>纬度</source>
|
||||
<translation>纬度:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointparamdialog.ui" line="136"/>
|
||||
<source>经度:</source>
|
||||
<translation>经度:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointparamdialog.ui" line="144"/>
|
||||
<source>右盘旋</source>
|
||||
<translation>右盘旋</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointparamdialog.ui" line="149"/>
|
||||
<source>左盘旋</source>
|
||||
<translation>左盘旋</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointparamdialog.cpp" line="17"/>
|
||||
<source>ok</source>
|
||||
<translation>确定</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointparamdialog.cpp" line="18"/>
|
||||
<source>cancel</source>
|
||||
<translation>取消</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointparamdialog.cpp" line="41"/>
|
||||
<source>delete</source>
|
||||
<translation>删除</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>WayPointParamMenu</name>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointparammenu.ui" line="16"/>
|
||||
<source>Form</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>mapcontrol::AltitudeItem</name>
|
||||
<message>
|
||||
@@ -83,82 +165,82 @@ Please first select the area of the map to rip with <CTRL>+Left mouse clic
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="1607"/>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="1686"/>
|
||||
<source>start rip map</source>
|
||||
<translation>开始缓存地图</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="1613"/>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="1692"/>
|
||||
<source>stop rip map</source>
|
||||
<translation>停止缓存地图</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="2254"/>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="2333"/>
|
||||
<source>Load Geo Fence File :%1</source>
|
||||
<translation>导入围栏文件:%1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="2344"/>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="2426"/>
|
||||
<source>Load Mission File:Group %1,%2</source>
|
||||
<translation>导入航线文件:第%1组航线,%2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="2440"/>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="2523"/>
|
||||
<source>Save Fence File:%1</source>
|
||||
<translation>保存围栏文件:%1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="2515"/>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="2601"/>
|
||||
<source>Save Mission File:Group %1,%2</source>
|
||||
<translation>保存航线文件:第%1组航线,%2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="2721"/>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="2811"/>
|
||||
<source>please load fence first</source>
|
||||
<translation>请先导入围栏</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="2726"/>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="2816"/>
|
||||
<source>start upload fence,total:%1</source>
|
||||
<translation>开始上传围栏,总数%1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="2764"/>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="2854"/>
|
||||
<source>please load mission first</source>
|
||||
<translation>请先导入航线</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="2769"/>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="2863"/>
|
||||
<source>start upload mission %1,total %2</source>
|
||||
<translation>开始上传航线%1,总数%2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="2975"/>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="3098"/>
|
||||
<source>upload Mission</source>
|
||||
<translation type="unfinished">上传航点</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="2982"/>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="3105"/>
|
||||
<source>upload fail %1</source>
|
||||
<translation>上传失败 %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="3010"/>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="3133"/>
|
||||
<source>recieve fence polygon inclusion: %1</source>
|
||||
<translation>接收到多边形安控区 :%1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="3057"/>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="3180"/>
|
||||
<source>recieve fence polygon exclusion: %1</source>
|
||||
<translation>接收到多边形禁飞区 :%1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="3106"/>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="3229"/>
|
||||
<source>recieve fence circle inclusion: %1</source>
|
||||
<translation>接收到圆形安控区 :%1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="3119"/>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="3242"/>
|
||||
<source>recieve fence circle exclusion: %1</source>
|
||||
<translation>接收到圆形禁飞区 :%1</translation>
|
||||
</message>
|
||||
@@ -167,7 +249,7 @@ Please first select the area of the map to rip with <CTRL>+Left mouse clic
|
||||
<translation type="vanished">围栏</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="3137"/>
|
||||
<location filename="mapwidget/opmapwidget.cpp" line="3260"/>
|
||||
<source>recieve way point group:%1 seq:%2</source>
|
||||
<translation>收到航点:第%1组,第%2点</translation>
|
||||
</message>
|
||||
@@ -214,94 +296,94 @@ Ma:%2</source>
|
||||
<translation type="vanished">航点 </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="425"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="456"/>
|
||||
<source>return </source>
|
||||
<translation>返航 </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="428"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="459"/>
|
||||
<source>landing </source>
|
||||
<translation>降落 </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="431"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="462"/>
|
||||
<source>takeoff </source>
|
||||
<translation>起飞 </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="434"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="465"/>
|
||||
<source>unknow </source>
|
||||
<translation>未知类型 </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="442"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="473"/>
|
||||
<source>hold
|
||||
</source>
|
||||
<translation>保持
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="446"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="477"/>
|
||||
<source>cas
|
||||
</source>
|
||||
<translation>表速
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="449"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="460"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="471"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="482"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="493"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="480"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="491"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="502"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="513"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="524"/>
|
||||
<source>Ma: %1</source>
|
||||
<translation>马赫:%1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="457"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="488"/>
|
||||
<source>Vz
|
||||
</source>
|
||||
<translation>快升
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="468"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="499"/>
|
||||
<source>onAB
|
||||
</source>
|
||||
<translation>开加力
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="479"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="510"/>
|
||||
<source>offAB
|
||||
</source>
|
||||
<translation>关加力
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="490"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="521"/>
|
||||
<source>unknow
|
||||
</source>
|
||||
<translation>未知指令
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="504"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="535"/>
|
||||
<source>
|
||||
</source>
|
||||
<translation>
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="453"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="464"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="475"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="486"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="497"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="484"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="495"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="506"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="517"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="528"/>
|
||||
<source>Speed: %1m/s</source>
|
||||
<translation>速度:%1m/s</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="507"/>
|
||||
<location filename="mapwidget/waypointitem.cpp" line="538"/>
|
||||
<source>Height: %1m
|
||||
%2</source>
|
||||
<translation>高度:%1m
|
||||
|
||||
@@ -34,7 +34,7 @@ CirclePointItem::CirclePointItem(mapcontrol::MapGraphicItem *map, QPointF const
|
||||
QPen pen1 = this->pen();
|
||||
pen1.setColor(QColor("#0174DF"));
|
||||
setPen(pen1);
|
||||
setRect(-8, -8, 16, 16);
|
||||
setRect(-10, -10, 20, 20);
|
||||
|
||||
|
||||
|
||||
@@ -176,13 +176,14 @@ void CirclePointItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *o
|
||||
|
||||
painter->save();
|
||||
|
||||
QFont font;
|
||||
QPen myPen;
|
||||
font.setWeight(QFont::ExtraBold);
|
||||
QFont font;
|
||||
font.setWeight(QFont::ExtraLight);
|
||||
font.setFamily("Arial");//非衬线
|
||||
font.setPixelSize(18);
|
||||
font.setPixelSize(12);
|
||||
painter->setFont(font);
|
||||
|
||||
|
||||
myPen.setWidth(1);
|
||||
myPen.setColor(QColor("#FFFFFF"));
|
||||
painter->setPen(myPen);
|
||||
|
||||
@@ -13,6 +13,10 @@ WayPointParamDialog::WayPointParamDialog(QWidget *parent, Qt::WindowFlags f) :
|
||||
setWindowFlag(Qt::SubWindow);
|
||||
|
||||
// connect(ui->buttonBox, &QDialogButtonBox::accepted, this, [=](){ emit ok(); }, Qt::DirectConnection );
|
||||
|
||||
ui->buttonBox->button(QDialogButtonBox::Ok)->setText(tr("ok"));
|
||||
ui->buttonBox->button(QDialogButtonBox::Cancel)->setText(tr("cancel"));
|
||||
|
||||
connect(ui->buttonBox, &QDialogButtonBox::rejected, this, [=](){ isOk = false; emit cancel(); }, Qt::DirectConnection );
|
||||
connect(ui->buttonBox, &QDialogButtonBox::accepted, this, &WayPointParamDialog::acceptedSlot);
|
||||
connect(ui->buttonBox, &QDialogButtonBox::accepted, this, &WayPointParamDialog::setButtonString);
|
||||
@@ -34,7 +38,7 @@ void WayPointParamDialog::setlngLat(double lng, double lat)
|
||||
void WayPointParamDialog::setButtonString()
|
||||
{
|
||||
QPushButton *btn = ui->buttonBox->button(QDialogButtonBox::Cancel);
|
||||
btn->setText("delete");
|
||||
btn->setText(tr("delete"));
|
||||
disconnect(ui->buttonBox, &QDialogButtonBox::accepted, this, &WayPointParamDialog::setButtonString);
|
||||
connect(ui->buttonBox, &QDialogButtonBox::rejected, this, [this](){ emit remove(); } );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user