Skip to content

Commit f828e2b

Browse files
author
zhitm
committed
Refactor
1 parent 9d8c8e6 commit f828e2b

File tree

10 files changed

+48
-30
lines changed

10 files changed

+48
-30
lines changed
-66 Bytes
Binary file not shown.

plugins/robots/generators/generators.pro

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ TEMPLATE = subdirs
1616

1717
SUBDIRS = \
1818
generatorBase \
19-
trikGeneratorBase \
20-
trikQtsGeneratorLibrary \
21-
trikV62QtsGenerator \
22-
trikPythonGeneratorLibrary \
23-
trikV62PythonGenerator \
19+
trikGeneratorBase \
20+
trikQtsGeneratorLibrary \
21+
trikV62QtsGenerator \
22+
trikPythonGeneratorLibrary \
23+
trikV62PythonGenerator \
2424
nxtGeneratorBase \
2525
nxtOsekCGenerator \
26-
ev3GeneratorBase \
27-
ev3RbfGenerator \
28-
pioneerLuaGenerator \
26+
ev3GeneratorBase \
27+
ev3RbfGenerator \
28+
pioneerLuaGenerator \
2929

3030
trikGeneratorBase.subdir = $$PWD/trik/trikGeneratorBase
3131
trikQtsGeneratorLibrary.subdir = $$PWD/trik/trikQtsGeneratorLibrary

plugins/robots/generators/nxt/nxtOsekCGenerator/nxtFlashTool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ void NxtFlashTool::readNxtCompileData()
302302
error(tr("Compilation error occured. Please check your function blocks syntax. "
303303
"If you sure in their validness contact developers"));
304304
} else {
305-
error(tr("Could not upload program. Make sure the robot is connected and ON."));
305+
error(tr("Could not upload program. Make sure the robot is connected and ON"));
306306
if (QOperatingSystemVersion::currentType() == QOperatingSystemVersion::OSType::Unknown) {
307307
error(tr("If you are using GNU/Linux visit "
308308
"https://help.trikset.com/nxt/run-upload-programs to get instructions"));

plugins/robots/interpreters/interpreters.pro

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ SUBDIRS = \
1818
interpreterCore \
1919
nullKitInterpreter \
2020
nxtKitInterpreter \
21-
trikKitInterpreterCommon \
22-
trikV62KitInterpreter \
23-
ev3KitInterpreter \
24-
robotsPlugin \
25-
pioneerKitInterpreter \
21+
trikKitInterpreterCommon \
22+
trikV62KitInterpreter \
23+
ev3KitInterpreter \
24+
robotsPlugin \
25+
pioneerKitInterpreter \
2626

2727
CONFIG(trik_retired_features) {
2828
SUBDIRS += trikV6KitInterpreter

plugins/robots/interpreters/nxtKitInterpreter/src/nxtAdditionalPreferences.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ void NxtAdditionalPreferences::setColorOnGeneratorLabel(QColor color){
4949

5050
void NxtAdditionalPreferences::setTextOnGeneratorLabel(){
5151
if (!mUi->compilerPicker->isSavedDirExist()){
52-
mUi->generatorLabel->setText("WARNING: Current directory doesn't exist. \nOpen link: "
53-
"https://help.trikset.com/nxt/run-upload-programs for instructions");
52+
mUi->generatorLabel->setText(tr("WARNING: Current directory doesn't exist. \nOpen "
53+
"<a href=\"https://help.trikset.com/nxt/run-upload-programs\">link</a> for instructions"));
54+
mUi->generatorLabel->setTextFormat(Qt::RichText);
55+
mUi->generatorLabel->setTextInteractionFlags(Qt::TextBrowserInteraction);
56+
mUi->generatorLabel->setOpenExternalLinks(true);
5457
setColorOnGeneratorLabel(QColor("red"));
5558
}
5659
else {

plugins/robots/thirdparty/thirdparty.pro

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ TEMPLATE = subdirs
1717
SUBDIRS += \
1818
qextserialport \
1919
libusb-1.0 \
20+
<<<<<<< HEAD
2021
<<<<<<< HEAD
2122
trikRuntime \
2223
Box2D \
@@ -26,3 +27,8 @@ SUBDIRS += \
2627
Box2D \
2728
python \
2829
>>>>>>> 4dbe48f3b (lupdate)
30+
=======
31+
trikRuntime \
32+
Box2D \
33+
python \
34+
>>>>>>> c4b5f989c (Refactor)

qrtranslations/fr/plugins/robots/nxtKitInterpreter_fr.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@
6060
<source>Path to arm-none-eabi:</source>
6161
<translation type="unfinished"></translation>
6262
</message>
63+
<message>
64+
<location line="+19"/>
65+
<source>WARNING: Current directory doesn&apos;t exist.
66+
Open &lt;a href=&quot;https://help.trikset.com/nxt/run-upload-programs&quot;&gt;link&lt;/a&gt; for instructions</source>
67+
<translation type="unfinished"></translation>
68+
</message>
6369
</context>
6470
<context>
6571
<name>nxt::NxtKitInterpreterPlugin</name>

qrtranslations/fr/plugins/robots/nxtOsekCGenerator_fr.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,12 @@
7777
<translation>Échec de téléversement. Assurez-vous que le serveur X permet de lancer les applications à l&apos;interface graphique</translation>
7878
</message>
7979
<message>
80+
<location line="+48"/>
8081
<source>Could not upload program. Make sure the robot is connected and ON</source>
81-
<translation type="vanished">Échec de téléversement du programme. Assurez-vous que le robot soit connecté et qu&apos;il ne soit pas éteint</translation>
82+
<translation>Échec de téléversement du programme. Assurez-vous que le robot soit connecté et qu&apos;il ne soit pas éteint</translation>
8283
</message>
8384
<message>
84-
<location line="+91"/>
85+
<location line="+43"/>
8586
<source>Error in reading from firmware file: %1</source>
8687
<translation type="unfinished"></translation>
8788
</message>
@@ -151,12 +152,7 @@
151152
<translation type="unfinished"></translation>
152153
</message>
153154
<message>
154-
<location line="+46"/>
155-
<source>Could not upload program. Make sure the robot is connected and ON.</source>
156-
<translation type="unfinished"></translation>
157-
</message>
158-
<message>
159-
<location line="+2"/>
155+
<location line="+48"/>
160156
<source>If you are using GNU/Linux visit https://help.trikset.com/nxt/run-upload-programs to get instructions</source>
161157
<translation type="unfinished"></translation>
162158
</message>

qrtranslations/ru/plugins/robots/nxtKitInterpreter_ru.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,14 @@
7777
<message>
7878
<location line="+1"/>
7979
<source>Path to arm-none-eabi:</source>
80-
<translation type="unfinished"></translation>
80+
<translation>Путь к кросс-компилятору</translation>
81+
</message>
82+
<message>
83+
<location line="+19"/>
84+
<source>WARNING: Current directory doesn&apos;t exist.
85+
Open &lt;a href=&quot;https://help.trikset.com/nxt/run-upload-programs&quot;&gt;link&lt;/a&gt; for instructions</source>
86+
<translation>ВНИМАНИЕ: Выбранная директория не существует.
87+
Откройте &lt;a href=&quot;https://help.trikset.com/nxt/run-upload-programs&quot;&gt;ссылку&lt;/a&gt; для дальнейших инструкций</translation>
8188
</message>
8289
</context>
8390
<context>

qrtranslations/ru/plugins/robots/nxtOsekCGenerator_ru.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,12 @@
7777
<translation>Не удалось загрузить программу в робота. Убедитесь, что TRIKStusio запущена с нужными правами</translation>
7878
</message>
7979
<message>
80+
<location line="+48"/>
8081
<source>Could not upload program. Make sure the robot is connected and ON</source>
81-
<translation type="vanished">Не удалось загрузить программу в робота. Убедитесь, что робот включен и подсоединен к компьютеру</translation>
82+
<translation>Не удалось загрузить программу в робота. Убедитесь, что робот включен и подсоединен к компьютеру</translation>
8283
</message>
8384
<message>
84-
<location line="+91"/>
85+
<location line="+43"/>
8586
<source>Error in reading from firmware file: %1</source>
8687
<translation>Ошибка чтения из файла с прошивкой %1</translation>
8788
</message>
@@ -151,12 +152,11 @@
151152
<translation>Загрузка программы не удалась. Возможно, стоит попробовать перезапустить среду с правами суперпользователя</translation>
152153
</message>
153154
<message>
154-
<location line="+46"/>
155155
<source>Could not upload program. Make sure the robot is connected and ON.</source>
156-
<translation>Не удалось загрузить программу. Убедитесь, что робот подключен и включен.</translation>
156+
<translation type="vanished">Не удалось загрузить программу. Убедитесь, что робот подключен и включен.</translation>
157157
</message>
158158
<message>
159-
<location line="+2"/>
159+
<location line="+48"/>
160160
<source>If you are using GNU/Linux visit https://help.trikset.com/nxt/run-upload-programs to get instructions</source>
161161
<translation>Если вы пользователь ОС GNU/Linux, перейдите по ссылке https://help.trikset.com/nxt/run-upload-programs для получения инструкций.</translation>
162162
</message>

0 commit comments

Comments
 (0)