compatible with old compiler settings

This commit is contained in:
royqh1979 2021-09-02 21:01:23 +08:00
parent 9fa098960b
commit 3ff0bdd579
7 changed files with 235 additions and 192 deletions

Binary file not shown.

View File

@ -251,17 +251,17 @@
<translation></translation>
</message>
<message>
<location filename="settingsdialog/compilersetoptionwidget.ui" line="111"/>
<location filename="settingsdialog/compilersetoptionwidget.ui" line="118"/>
<source>Add the following arguments when calling the compiler</source>
<translation></translation>
</message>
<message>
<location filename="settingsdialog/compilersetoptionwidget.ui" line="121"/>
<location filename="settingsdialog/compilersetoptionwidget.ui" line="128"/>
<source>Add the following arguments when calling the linker</source>
<translation></translation>
</message>
<message>
<location filename="settingsdialog/compilersetoptionwidget.ui" line="131"/>
<location filename="settingsdialog/compilersetoptionwidget.ui" line="111"/>
<source>Add Charset arguments when calling the compiler</source>
<translation></translation>
</message>
@ -1908,7 +1908,7 @@ Are you really want to continue?</source>
</message>
<message>
<location filename="mainwindow.ui" line="267"/>
<location filename="mainwindow.cpp" line="1328"/>
<location filename="mainwindow.cpp" line="1345"/>
<source>Issues</source>
<translation></translation>
</message>
@ -1928,8 +1928,8 @@ Are you really want to continue?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1046"/>
<location filename="mainwindow.ui" line="1049"/>
<location filename="mainwindow.ui" line="1048"/>
<location filename="mainwindow.ui" line="1051"/>
<source>Run</source>
<translation></translation>
</message>
@ -1965,8 +1965,8 @@ Are you really want to continue?</source>
</message>
<message>
<location filename="mainwindow.ui" line="366"/>
<location filename="mainwindow.ui" line="1245"/>
<location filename="mainwindow.ui" line="1248"/>
<location filename="mainwindow.ui" line="1247"/>
<location filename="mainwindow.ui" line="1250"/>
<source>Debug</source>
<translation></translation>
</message>
@ -2023,7 +2023,7 @@ Are you really want to continue?</source>
</message>
<message>
<location filename="mainwindow.ui" line="740"/>
<location filename="mainwindow.ui" line="1445"/>
<location filename="mainwindow.ui" line="1447"/>
<source>Close</source>
<translation></translation>
</message>
@ -2043,420 +2043,430 @@ Are you really want to continue?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="856"/>
<location filename="mainwindow.ui" line="894"/>
<location filename="mainwindow.ui" line="915"/>
<location filename="mainwindow.ui" line="940"/>
<location filename="mainwindow.ui" line="858"/>
<location filename="mainwindow.ui" line="896"/>
<location filename="mainwindow.ui" line="917"/>
<location filename="mainwindow.ui" line="942"/>
<source>toolBar</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="877"/>
<location filename="mainwindow.ui" line="879"/>
<source>toolBar_2</source>
<translation>2</translation>
</message>
<message>
<location filename="mainwindow.ui" line="960"/>
<location filename="mainwindow.ui" line="962"/>
<source>New</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="963"/>
<location filename="mainwindow.ui" line="965"/>
<source>Ctrl+N</source>
<translation>Ctrl+N</translation>
</message>
<message>
<location filename="mainwindow.ui" line="973"/>
<location filename="mainwindow.ui" line="975"/>
<source>Open...</source>
<translation>...</translation>
</message>
<message>
<location filename="mainwindow.ui" line="976"/>
<location filename="mainwindow.ui" line="978"/>
<source>Ctrl+O</source>
<translation>Ctrl+O</translation>
</message>
<message>
<location filename="mainwindow.ui" line="986"/>
<location filename="mainwindow.ui" line="988"/>
<source>Save</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="989"/>
<location filename="mainwindow.ui" line="991"/>
<source>Ctrl+S</source>
<translation>Ctrl+S</translation>
</message>
<message>
<location filename="mainwindow.ui" line="999"/>
<location filename="mainwindow.ui" line="1001"/>
<source>Save As...</source>
<translation>...</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1002"/>
<location filename="mainwindow.ui" line="1004"/>
<source>Save As</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1012"/>
<location filename="mainwindow.ui" line="1014"/>
<source>Save All</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1015"/>
<location filename="mainwindow.ui" line="1017"/>
<source>Ctrl+Shift+S</source>
<translation>Ctrl+Shift+S</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1020"/>
<location filename="mainwindow.ui" line="1022"/>
<source>Options</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1030"/>
<location filename="mainwindow.ui" line="1033"/>
<location filename="mainwindow.cpp" line="836"/>
<location filename="mainwindow.cpp" line="847"/>
<location filename="mainwindow.cpp" line="1118"/>
<location filename="mainwindow.cpp" line="1129"/>
<location filename="mainwindow.ui" line="1032"/>
<location filename="mainwindow.ui" line="1035"/>
<location filename="mainwindow.cpp" line="842"/>
<location filename="mainwindow.cpp" line="853"/>
<location filename="mainwindow.cpp" line="1135"/>
<location filename="mainwindow.cpp" line="1146"/>
<source>Compile</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1036"/>
<location filename="mainwindow.ui" line="1038"/>
<source>F9</source>
<translation>F9</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1052"/>
<location filename="mainwindow.ui" line="1054"/>
<source>F10</source>
<translation>F10</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1062"/>
<location filename="mainwindow.ui" line="1064"/>
<source>Undo</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1065"/>
<location filename="mainwindow.ui" line="1067"/>
<source>Ctrl+Z</source>
<translation>Ctrl+Z</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1075"/>
<location filename="mainwindow.ui" line="1077"/>
<source>Redo</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1078"/>
<location filename="mainwindow.ui" line="1080"/>
<source>Ctrl+Y</source>
<translation>Ctrl+Y</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1088"/>
<location filename="mainwindow.ui" line="1090"/>
<source>Cut</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1091"/>
<location filename="mainwindow.ui" line="1093"/>
<source>Ctrl+X</source>
<translation>Ctrl+X</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1101"/>
<location filename="mainwindow.ui" line="1103"/>
<source>Copy</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1104"/>
<location filename="mainwindow.ui" line="1106"/>
<source>Ctrl+C</source>
<translation>Ctrl+C</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1114"/>
<location filename="mainwindow.ui" line="1116"/>
<source>Paste</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1117"/>
<location filename="mainwindow.ui" line="1119"/>
<source>Ctrl+V</source>
<translation>Ctrl+V</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1122"/>
<location filename="mainwindow.ui" line="1124"/>
<source>Select All</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1125"/>
<location filename="mainwindow.ui" line="1127"/>
<source>Ctrl+A</source>
<translation>Ctrl+A</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1135"/>
<location filename="mainwindow.ui" line="1137"/>
<source>Indent</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1145"/>
<location filename="mainwindow.ui" line="1147"/>
<source>UnIndent</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1150"/>
<location filename="mainwindow.ui" line="1152"/>
<source>Toggle Comment</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1153"/>
<location filename="mainwindow.ui" line="1155"/>
<source>Ctrl+/</source>
<translation>Ctrl+/</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1161"/>
<location filename="mainwindow.ui" line="1163"/>
<source>Collapse All</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1166"/>
<location filename="mainwindow.ui" line="1168"/>
<source>Uncollapse All</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1171"/>
<location filename="mainwindow.ui" line="1173"/>
<source>Encode in ANSI</source>
<translation>使ANSI编码</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1176"/>
<location filename="mainwindow.ui" line="1178"/>
<source>Encode in UTF-8</source>
<translation>使UTF-8</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1181"/>
<location filename="mainwindow.ui" line="1183"/>
<source>Auto Detect</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1186"/>
<location filename="mainwindow.ui" line="1188"/>
<source>Convert to ANSI</source>
<translation>ANSI编码</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1191"/>
<location filename="mainwindow.ui" line="1193"/>
<source>Convert to UTF-8</source>
<translation>UTF-8</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1201"/>
<location filename="mainwindow.ui" line="1204"/>
<location filename="mainwindow.ui" line="1203"/>
<location filename="mainwindow.ui" line="1206"/>
<source>Compile &amp; Run</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1207"/>
<location filename="mainwindow.ui" line="1209"/>
<source>F11</source>
<translation>F11</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1217"/>
<location filename="mainwindow.ui" line="1220"/>
<location filename="mainwindow.ui" line="1219"/>
<location filename="mainwindow.ui" line="1222"/>
<source>Rebuild All</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1223"/>
<location filename="mainwindow.ui" line="1225"/>
<source>F12</source>
<translation>F12</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1233"/>
<location filename="mainwindow.ui" line="1235"/>
<source>Stop Execution</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1236"/>
<location filename="mainwindow.ui" line="1238"/>
<source>F6</source>
<translation>F6</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1251"/>
<location filename="mainwindow.ui" line="1253"/>
<source>F5</source>
<translation>F5</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1261"/>
<location filename="mainwindow.ui" line="1263"/>
<source>Step Over</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1264"/>
<location filename="mainwindow.ui" line="1266"/>
<source>F7</source>
<translation>F7</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1274"/>
<location filename="mainwindow.ui" line="1276"/>
<source>Step Into</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1277"/>
<location filename="mainwindow.ui" line="1279"/>
<source>F8</source>
<translation>F8</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1287"/>
<location filename="mainwindow.ui" line="1289"/>
<source>Step Out</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1290"/>
<location filename="mainwindow.ui" line="1292"/>
<source>Ctrl+F8</source>
<translation>Ctrl+F8</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1295"/>
<location filename="mainwindow.ui" line="1297"/>
<source>Run To Cursor</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1298"/>
<location filename="mainwindow.ui" line="1300"/>
<source>Ctrl+F5</source>
<translation>Ctrl+F5</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1308"/>
<location filename="mainwindow.ui" line="1310"/>
<source>Continue</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1311"/>
<location filename="mainwindow.ui" line="1313"/>
<source>F4</source>
<translation>F4</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1321"/>
<location filename="mainwindow.ui" line="1323"/>
<source>Add Watch...</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1326"/>
<location filename="mainwindow.ui" line="1328"/>
<source>View CPU Window...</source>
<translation>CPU信息窗口...</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1331"/>
<location filename="mainwindow.ui" line="1333"/>
<source>Exit</source>
<translation>退</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1341"/>
<location filename="mainwindow.ui" line="1343"/>
<source>Find...</source>
<translation>...</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1344"/>
<location filename="mainwindow.ui" line="1346"/>
<source>Ctrl+F</source>
<translation>Ctrl+F</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1349"/>
<location filename="mainwindow.ui" line="1351"/>
<source>Find in Files...</source>
<translation>...</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1352"/>
<location filename="mainwindow.ui" line="1354"/>
<source>Ctrl+Shift+F</source>
<translation>Ctrl+Shift+F</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1362"/>
<location filename="mainwindow.ui" line="1364"/>
<source>Replace...</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1365"/>
<location filename="mainwindow.ui" line="1367"/>
<source>Ctrl+R</source>
<translation>Ctrl+R</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1370"/>
<location filename="mainwindow.ui" line="1372"/>
<source>Find Next</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1373"/>
<location filename="mainwindow.ui" line="1375"/>
<source>F3</source>
<translation>F3</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1378"/>
<location filename="mainwindow.ui" line="1380"/>
<source>Find Previous</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1381"/>
<location filename="mainwindow.ui" line="1383"/>
<source>Shift+F3</source>
<translation>Shift+F3</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1386"/>
<location filename="mainwindow.ui" line="1388"/>
<source>Remove Watch</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1391"/>
<location filename="mainwindow.ui" line="1393"/>
<source>Remove All</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1396"/>
<location filename="mainwindow.ui" line="1398"/>
<source>Modify Watch...</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1406"/>
<location filename="mainwindow.ui" line="1408"/>
<source>Reformat Code</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1409"/>
<location filename="mainwindow.ui" line="1411"/>
<source>Ctrl+Shift+A</source>
<translation>Ctrl+Shift+A</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1419"/>
<location filename="mainwindow.ui" line="1421"/>
<source>Go back</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1422"/>
<location filename="mainwindow.ui" line="1424"/>
<source>Ctrl+Alt+Left</source>
<translation>Ctrl+Alt+Left</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1432"/>
<location filename="mainwindow.ui" line="1434"/>
<source>Forward</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1435"/>
<location filename="mainwindow.ui" line="1437"/>
<source>Ctrl+Alt+Right</source>
<translation>Ctrl+Alt+Right</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1448"/>
<location filename="mainwindow.ui" line="1450"/>
<source>Ctrl+W</source>
<translation>Ctrl+W</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1458"/>
<location filename="mainwindow.ui" line="1460"/>
<source>Close All</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1461"/>
<location filename="mainwindow.ui" line="1463"/>
<source>Ctrl+Shift+W</source>
<translation>Ctrl+Shift+W</translation>
</message>
<message>
<location filename="mainwindow.ui" line="1473"/>
<source>Maximize Editor</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.ui" line="1476"/>
<source>Ctrl+F11</source>
<translation>Ctrl+F11</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="83"/>
<source>File Encoding</source>
@ -2468,20 +2478,20 @@ Are you really want to continue?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="357"/>
<location filename="mainwindow.cpp" line="359"/>
<location filename="mainwindow.cpp" line="363"/>
<location filename="mainwindow.cpp" line="365"/>
<source>Debugging</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="362"/>
<location filename="mainwindow.cpp" line="364"/>
<location filename="mainwindow.cpp" line="368"/>
<location filename="mainwindow.cpp" line="370"/>
<source>Running</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="367"/>
<location filename="mainwindow.cpp" line="369"/>
<location filename="mainwindow.cpp" line="373"/>
<location filename="mainwindow.cpp" line="375"/>
<source>Compiling</source>
<translation></translation>
</message>
@ -2490,172 +2500,172 @@ Are you really want to continue?</source>
<translation type="vanished">:%1 :%2 :%3 :%4 :%5</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="495"/>
<location filename="mainwindow.cpp" line="501"/>
<source>Line:%1 Col:%2 Selected:%3 Lines:%4 Length:%5</source>
<translation>:%1 :%2 :%3 :%4 :%5</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="513"/>
<location filename="mainwindow.cpp" line="519"/>
<source>Read Only</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="515"/>
<location filename="mainwindow.cpp" line="521"/>
<source>Insert</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="517"/>
<location filename="mainwindow.cpp" line="523"/>
<source>Overwrite</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="646"/>
<location filename="mainwindow.cpp" line="661"/>
<location filename="mainwindow.cpp" line="652"/>
<location filename="mainwindow.cpp" line="667"/>
<source>Confirm</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="647"/>
<location filename="mainwindow.cpp" line="655"/>
<location filename="mainwindow.cpp" line="837"/>
<location filename="mainwindow.cpp" line="653"/>
<location filename="mainwindow.cpp" line="661"/>
<location filename="mainwindow.cpp" line="843"/>
<source>Source file is not compiled.</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="648"/>
<location filename="mainwindow.cpp" line="837"/>
<location filename="mainwindow.cpp" line="654"/>
<location filename="mainwindow.cpp" line="843"/>
<source>Compile now?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="662"/>
<location filename="mainwindow.cpp" line="848"/>
<location filename="mainwindow.cpp" line="668"/>
<location filename="mainwindow.cpp" line="854"/>
<source>Source file is more recent than executable.</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="663"/>
<location filename="mainwindow.cpp" line="669"/>
<source>Recompile now?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="715"/>
<location filename="mainwindow.cpp" line="721"/>
<source>No compiler set</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="716"/>
<location filename="mainwindow.cpp" line="722"/>
<source>No compiler set is configured.</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="716"/>
<location filename="mainwindow.cpp" line="722"/>
<source>Can&apos;t start debugging.</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="805"/>
<location filename="mainwindow.cpp" line="811"/>
<source>Enable debugging</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="806"/>
<location filename="mainwindow.cpp" line="812"/>
<source>You have not enabled debugging info (-g3) and/or stripped it from the executable (-s) in Compiler Options.&lt;BR /&gt;&lt;BR /&gt;Do you want to correct this now?</source>
<translation>(-g3)(-s)&lt;br /&gt;&lt;br/&gt;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="848"/>
<location filename="mainwindow.cpp" line="854"/>
<source>Recompile?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1109"/>
<location filename="mainwindow.cpp" line="1126"/>
<source>%1 files autosaved</source>
<translation>%1</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="555"/>
<location filename="mainwindow.cpp" line="1125"/>
<location filename="mainwindow.cpp" line="1185"/>
<location filename="mainwindow.cpp" line="1209"/>
<location filename="mainwindow.cpp" line="1263"/>
<location filename="mainwindow.cpp" line="1275"/>
<location filename="mainwindow.cpp" line="1570"/>
<location filename="mainwindow.cpp" line="1582"/>
<location filename="mainwindow.cpp" line="561"/>
<location filename="mainwindow.cpp" line="1142"/>
<location filename="mainwindow.cpp" line="1202"/>
<location filename="mainwindow.cpp" line="1226"/>
<location filename="mainwindow.cpp" line="1280"/>
<location filename="mainwindow.cpp" line="1292"/>
<location filename="mainwindow.cpp" line="1587"/>
<location filename="mainwindow.cpp" line="1599"/>
<source>Error</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1119"/>
<location filename="mainwindow.cpp" line="1136"/>
<source>File &apos;%1&apos; was changed.</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1119"/>
<location filename="mainwindow.cpp" line="1136"/>
<source>Reload its content from disk?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1130"/>
<location filename="mainwindow.cpp" line="1147"/>
<source>File &apos;%1&apos; was removed.</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1130"/>
<location filename="mainwindow.cpp" line="1147"/>
<source>Keep it open?</source>
<translation>C++</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1205"/>
<location filename="mainwindow.cpp" line="1222"/>
<source>Open</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1418"/>
<location filename="mainwindow.cpp" line="1435"/>
<source>Compile Failed</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1423"/>
<location filename="mainwindow.cpp" line="1440"/>
<source>Run Failed</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1599"/>
<location filename="mainwindow.cpp" line="1613"/>
<location filename="mainwindow.cpp" line="1616"/>
<location filename="mainwindow.cpp" line="1630"/>
<source>Confirm Convertion</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1600"/>
<location filename="mainwindow.cpp" line="1614"/>
<location filename="mainwindow.cpp" line="1617"/>
<location filename="mainwindow.cpp" line="1631"/>
<source>The editing file will be saved using %1 encoding. &lt;br /&gt;This operation can&apos;t be reverted. &lt;br /&gt;Are you sure to continue?</source>
<translation>使%1&lt;br /&gt;&lt;br /&gt;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1789"/>
<location filename="mainwindow.cpp" line="1806"/>
<source>New Watch Expression</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1790"/>
<location filename="mainwindow.cpp" line="1807"/>
<source>Enter Watch Expression (it is recommended to use &apos;this-&gt;&apos; for class members):</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1836"/>
<location filename="mainwindow.cpp" line="1853"/>
<source>Parsing file %1 of %2: &quot;%3&quot;</source>
<translation>%1/%2&quot;%3&quot;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1858"/>
<location filename="mainwindow.cpp" line="1864"/>
<location filename="mainwindow.cpp" line="1875"/>
<location filename="mainwindow.cpp" line="1881"/>
<source>Done parsing %1 files in %2 seconds</source>
<translation>%1,%2</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1861"/>
<location filename="mainwindow.cpp" line="1878"/>
<source>(%1 files per second)</source>
<translation>(%1</translation>
</message>
@ -2820,123 +2830,127 @@ Are you really want to continue?</source>
<translation>(-std)</translation>
</message>
<message>
<location filename="settings.cpp" line="1858"/>
<location filename="settings.cpp" line="1870"/>
<source>Profile</source>
<translation></translation>
</message>
<message>
<location filename="settings.cpp" line="1879"/>
<source>Generate debugging information (-g3)</source>
<translation>(-g3)</translation>
</message>
<message>
<location filename="settings.cpp" line="1859"/>
<location filename="settings.cpp" line="1871"/>
<source>Generate profiling info for analysis (-pg)</source>
<translation>(-pg)</translation>
</message>
<message>
<location filename="settings.cpp" line="1862"/>
<location filename="settings.cpp" line="1860"/>
<source>Warnings</source>
<translation></translation>
</message>
<message>
<location filename="settings.cpp" line="1863"/>
<location filename="settings.cpp" line="1861"/>
<source>Inhibit all warning messages (-w)</source>
<translation>(-w)</translation>
</message>
<message>
<location filename="settings.cpp" line="1864"/>
<location filename="settings.cpp" line="1862"/>
<source>Show most warnings (-Wall)</source>
<translation>(-Wall)</translation>
</message>
<message>
<location filename="settings.cpp" line="1865"/>
<location filename="settings.cpp" line="1863"/>
<source>Show some more warnings (-Wextra)</source>
<translation>(-Wextra)</translation>
</message>
<message>
<location filename="settings.cpp" line="1866"/>
<location filename="settings.cpp" line="1864"/>
<source>Check ISO C/C++/C++0x conformance (-pedantic)</source>
<translation>ISO C/C++/C++0x(-pedantic)</translation>
</message>
<message>
<location filename="settings.cpp" line="1867"/>
<location filename="settings.cpp" line="1865"/>
<source>Only check the code for syntax errors (-fsyntax-only)</source>
<translation>(-fsyntax-only)</translation>
</message>
<message>
<location filename="settings.cpp" line="1868"/>
<location filename="settings.cpp" line="1866"/>
<source>Make all warnings into errors (-Werror)</source>
<translation>(-Werror)</translation>
</message>
<message>
<location filename="settings.cpp" line="1869"/>
<location filename="settings.cpp" line="1867"/>
<source>Abort compilation on first error (-Wfatal-errors)</source>
<translation>(-Wfatal-errors)</translation>
</message>
<message>
<location filename="settings.cpp" line="1872"/>
<location filename="settings.cpp" line="1874"/>
<source>Linker</source>
<translation></translation>
</message>
<message>
<location filename="settings.cpp" line="1873"/>
<location filename="settings.cpp" line="1875"/>
<source>Link an Objective C program (-lobjc)</source>
<translation></translation>
<translation>Objective-C程序 (-lobjc)</translation>
</message>
<message>
<location filename="settings.cpp" line="1874"/>
<location filename="settings.cpp" line="1876"/>
<source>Do not use standard system libraries (-nostdlib)</source>
<translation>使(-nostdlib)</translation>
</message>
<message>
<location filename="settings.cpp" line="1875"/>
<location filename="settings.cpp" line="1877"/>
<source>Do not create a console window (-mwindows)</source>
<translation>(-mwindows)</translation>
</message>
<message>
<location filename="settings.cpp" line="1876"/>
<location filename="settings.cpp" line="1878"/>
<source>Strip executable (-s)</source>
<translation>(-s)</translation>
</message>
<message>
<location filename="settings.cpp" line="1877"/>
<source>Link libraries statically (-static)</source>
<translation>Ojbective C程序(-lobjc)</translation>
<translation type="vanished">Ojbective C程序(-lobjc)</translation>
</message>
<message>
<location filename="settings.cpp" line="1880"/>
<location filename="settings.cpp" line="1882"/>
<source>Output</source>
<translation></translation>
</message>
<message>
<location filename="settings.cpp" line="1881"/>
<location filename="settings.cpp" line="1883"/>
<source>Put comments in generated assembly code (-fverbose-asm)</source>
<translation>(-fverbose-asm)</translation>
</message>
<message>
<location filename="settings.cpp" line="1882"/>
<location filename="settings.cpp" line="1885"/>
<source>Use pipes instead of temporary files during compilation (-pipe)</source>
<translation>使(-pipe)</translation>
</message>
<message>
<location filename="settings.cpp" line="1883"/>
<location filename="settings.cpp" line="1884"/>
<source>Do not assemble, compile and generate the assemble code (-S)</source>
<translation>(-S)</translation>
</message>
<message>
<location filename="settings.cpp" line="2076"/>
<location filename="settings.cpp" line="2101"/>
<location filename="settings.cpp" line="2078"/>
<location filename="settings.cpp" line="2103"/>
<source>Confirm</source>
<translation></translation>
</message>
<message>
<location filename="settings.cpp" line="2077"/>
<location filename="settings.cpp" line="2079"/>
<source>The following problems were found during validation of compiler set &quot;%1&quot;:</source>
<translation>&quot;%1&quot;</translation>
</message>
<message>
<location filename="settings.cpp" line="2102"/>
<location filename="settings.cpp" line="2104"/>
<source>Compiler set not configuared.</source>
<translation></translation>
</message>
<message>
<location filename="settings.cpp" line="2104"/>
<location filename="settings.cpp" line="2106"/>
<source>Would you like Red Panda C++ to search for compilers in the following locations: &lt;BR /&gt;&apos;%1&apos;&lt;BR /&gt;&apos;%2&apos;? </source>
<translation>C++&lt;br /&gt;%1&lt;br /&gt;%2</translation>
</message>

View File

@ -353,6 +353,10 @@ QString Compiler::getLibraryArguments()
}
}
}
if (compilerSet()->staticLink()) {
result += " -static";
}
return result;
}

View File

@ -1855,8 +1855,6 @@ void Settings::CompilerSet::setOptions()
sl.append("GNU C++17=gnu++17");
sl.append("GNU C++20=gnu++20");
addOption(QObject::tr("Language standard (-std)"), groupName, true, true, false, 0, "-std=", sl);
addOption(QObject::tr("Generate debugging information (-g3)"), groupName, true, true, false, 0, "-g3");
addOption(QObject::tr("Generate profiling info for analysis (-pg)"), groupName, true, true, true, 0, "-pg");
// Warnings
groupName = QObject::tr("Warnings");
@ -1868,19 +1866,23 @@ void Settings::CompilerSet::setOptions()
addOption(QObject::tr("Make all warnings into errors (-Werror)"), groupName, true, true, false, 0, "-Werror");
addOption(QObject::tr("Abort compilation on first error (-Wfatal-errors)"), groupName, true, true, false, 0, "-Wfatal-errors");
// Profile
groupName = QObject::tr("Profile");
addOption(QObject::tr("Generate profiling info for analysis (-pg)"), groupName, true, true, true, 0, "-pg");
// Linker
groupName = QObject::tr("Linker");
addOption(QObject::tr("Link an Objective C program (-lobjc)"), groupName, false, false, true, 0, "-lobjc");
addOption(QObject::tr("Do not use standard system libraries (-nostdlib)"), groupName, false, false, true, 0, "-nostdlib");
addOption(QObject::tr("Do not create a console window (-mwindows)"), groupName,false, false, true, 0, "-mwindows");
addOption(QObject::tr("Strip executable (-s)"), groupName, false, false, true, 0, "-s");
addOption(QObject::tr("Link libraries statically (-static)"), groupName, false, false, true, 0, "-static");
addOption(QObject::tr("Generate debugging information (-g3)"), groupName, true, true, false, 0, "-g3");
// Output
groupName = QObject::tr("Output");
addOption(QObject::tr("Put comments in generated assembly code (-fverbose-asm)"), groupName, true, true, false, 0, "-fverbose-asm");
addOption(QObject::tr("Use pipes instead of temporary files during compilation (-pipe)"), groupName, true, true, false, 0, "-pipe");
addOption(QObject::tr("Do not assemble, compile and generate the assemble code (-S)"), groupName, true, true, false, 0, "-S");
addOption(QObject::tr("Use pipes instead of temporary files during compilation (-pipe)"), groupName, true, true, false, 0, "-pipe");
}
QString Settings::CompilerSet::findProgramInBinDirs(const QString name)
@ -1921,6 +1923,16 @@ QByteArray Settings::CompilerSet::getCompilerOutput(const QString &binDir, const
return result.trimmed();
}
bool CompilerSet::staticLink() const
{
return mStaticLink;
}
void CompilerSet::setStaticLink(bool newStaticLink)
{
mStaticLink = newStaticLink;
}
bool Settings::CompilerSet::useCustomCompileParams() const
{
return mUseCustomCompileParams;
@ -2223,6 +2235,7 @@ void Settings::CompilerSets::saveSet(int index)
mSettings->mSettings.setValue("useCustomLinkParams", pSet->useCustomLinkParams());
mSettings->mSettings.setValue("customLinkParams", pSet->customLinkParams());
mSettings->mSettings.setValue("AddCharset", pSet->autoAddCharsetParams());
mSettings->mSettings.setValue("StaticLink", pSet->staticLink());
// Misc. properties
mSettings->mSettings.setValue("DumpMachine", pSet->dumpMachine());
@ -2284,6 +2297,7 @@ Settings::PCompilerSet Settings::CompilerSets::loadSet(int index)
pSet->setUseCustomLinkParams(mSettings->mSettings.value("useCustomLinkParams").toBool());
pSet->setCustomLinkParams(mSettings->mSettings.value("customLinkParams").toString());
pSet->setAutoAddCharsetParams(mSettings->mSettings.value("AddCharset").toBool());
pSet->setStaticLink(mSettings->mSettings.value("StaticLink").toBool());
pSet->setDumpMachine(mSettings->mSettings.value("DumpMachine").toString());
pSet->setVersion(mSettings->mSettings.value("Version").toString());
@ -2291,7 +2305,6 @@ Settings::PCompilerSet Settings::CompilerSets::loadSet(int index)
pSet->setName(mSettings->mSettings.value("Name").toString());
pSet->setTarget(mSettings->mSettings.value("Target").toString());
// Paths
loadPathList("Bins",pSet->binDirs());
loadPathList("C",pSet->CIncludeDirs());

View File

@ -835,6 +835,9 @@ public:
//load hard defines
void setDefines();
bool staticLink() const;
void setStaticLink(bool newStaticLink);
private:
int charToValue(char valueChar);
@ -877,6 +880,7 @@ public:
QString mCustomCompileParams;
QString mCustomLinkParams;
bool mAutoAddCharsetParams;
bool mStaticLink;
// Options
CompilerOptionList mOptions;

View File

@ -97,7 +97,7 @@ static void loadCompilerSetSettings(Settings::PCompilerSet pSet, Ui::CompilerSet
ui->txtCustomLinkParams->setPlainText(pSet->customLinkParams());
ui->txtCustomLinkParams->setEnabled(pSet->useCustomLinkParams());
ui->chkAutoAddCharset->setChecked(pSet->autoAddCharsetParams());
ui->chkStaticLink->setChecked(pSet->staticLink());
//rest tabs in the options widget
resetOptionTabs(pSet,ui->optionTabs);
@ -174,6 +174,7 @@ void CompilerSetOptionWidget::saveCurrentCompilerSet()
pSet->setUseCustomLinkParams(ui->chkUseCustomLinkParams->isChecked());
pSet->setCustomLinkParams(ui->txtCustomLinkParams->toPlainText().trimmed());
pSet->setAutoAddCharsetParams(ui->chkAutoAddCharset->isChecked());
pSet->setStaticLink(ui->chkStaticLink->isChecked());
pSet->setCCompiler(ui->txtCCompiler->text().trimmed());
pSet->setCppCompiler(ui->txtCppCompiler->text().trimmed());

View File

@ -105,6 +105,20 @@
<string>General</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QCheckBox" name="chkAutoAddCharset">
<property name="text">
<string>Add Charset arguments when calling the compiler</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chkStaticLink">
<property name="text">
<string>Statically link libraries</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chkUseCustomCompilerParams">
<property name="text">
@ -125,13 +139,6 @@
<item>
<widget class="QPlainTextEdit" name="txtCustomLinkParams"/>
</item>
<item>
<widget class="QCheckBox" name="chkAutoAddCharset">
<property name="text">
<string>Add Charset arguments when calling the compiler</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tabSettings">