- fix: Icons for buttons in the cpu info dialog is not correctly set.

- enhancement: Add cfi directives for asm syntaxer in linux.
This commit is contained in:
Roy Qu 2023-03-01 19:39:09 +08:00
parent c637ca3e4b
commit c96209cc42
9 changed files with 1009 additions and 998 deletions

View File

@ -3,6 +3,8 @@ Red Panda C++ Version 2.16
- fix: Project files that not in the project folder is not correctly handled in makefile.
- enhancement: Improve support for function pointer typedefs.
- fix: Can't debug project when project is saved after it's compiled.
- fix: Icons for buttons in the cpu info dialog is not correctly set.
- enhancement: Add cfi directives for asm syntaxer in linux.
Red Panda C++ Version 2.15

View File

@ -5675,7 +5675,7 @@ void MainWindow::onCompileFinished(QString filename, bool isCheckSyntax)
int startLine = 1;
QString s = "# "+e->filename()+":";
for(int i=0;i<editor->document()->count();i++) {
QString t=editor->document()->getLine(i);
QString t=editor->document()->getLine(i).trimmed();
if (t.startsWith(s,PATH_SENSITIVITY)) {
t=t.mid(s.length());
int pos = t.indexOf(":");

View File

@ -7,9 +7,7 @@ LanguageAsmGenerationWidget::LanguageAsmGenerationWidget(const QString &name, co
ui(new Ui::LanguageAsmGenerationWidget)
{
ui->setupUi(this);
#ifndef Q_OS_WIN
ui->chkNoSEHDirectives->setVisible(false);
#endif
ui->chkNoSEHDirectives->setText(tr("Don't generate cli directives."));
#if !defined(ARCH_X86_64) && !defined(ARCH_X86)
ui->grpX86Syntax->setVisible(false);
#endif
@ -23,9 +21,7 @@ LanguageAsmGenerationWidget::~LanguageAsmGenerationWidget()
void LanguageAsmGenerationWidget::doLoad()
{
ui->chkNoDebugDirectives->setChecked(pSettings->languages().noDebugDirectivesWhenGenerateASM());
#ifdef Q_OS_WIN
ui->chkNoSEHDirectives->setChecked(pSettings->languages().noSEHDirectivesWhenGenerateASM());
#endif
#if defined(ARCH_X86_64) || defined(ARCH_X86)
switch(pSettings->languages().x86DialectOfASMGenerated()) {
case Settings::Languages::X86ASMDialect::ATT:
@ -41,9 +37,7 @@ void LanguageAsmGenerationWidget::doLoad()
void LanguageAsmGenerationWidget::doSave()
{
pSettings->languages().setNoDebugDirectivesWhenGenerateASM(ui->chkNoDebugDirectives->isChecked());
#ifdef Q_OS_WIN
pSettings->languages().setNoSEHDirectivesWhenGenerateASM(ui->chkNoSEHDirectives->isChecked());
#endif
#if defined(ARCH_X86_64) || defined(ARCH_X86)
if (ui->rbATT->isChecked()) {
pSettings->languages().setX86DialectOfASMGenerated(Settings::Languages::X86ASMDialect::ATT);

View File

@ -3077,6 +3077,10 @@
<source>Instruction syntax:</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Don&apos;t generate cli directives.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MacroInfoModel</name>

View File

@ -4135,6 +4135,11 @@ Are you really want to continue?</oldsource>
<source>Intel</source>
<translation>Intel</translation>
</message>
<message>
<location filename="../settingsdialog/languageasmgenerationwidget.cpp" line="10"/>
<source>Don&apos;t generate cli directives.</source>
<translation type="unfinished">cli指令</translation>
</message>
</context>
<context>
<name>MacroInfoModel</name>
@ -4244,7 +4249,7 @@ Are you really want to continue?</oldsource>
<location filename="../mainwindow.cpp" line="5604"/>
<location filename="../mainwindow.cpp" line="5608"/>
<location filename="../mainwindow.cpp" line="5611"/>
<location filename="../mainwindow.cpp" line="7797"/>
<location filename="../mainwindow.cpp" line="7803"/>
<source>Issues</source>
<translation></translation>
</message>
@ -4677,7 +4682,7 @@ Are you really want to continue?</oldsource>
<location filename="../mainwindow.ui" line="781"/>
<location filename="../mainwindow.ui" line="784"/>
<location filename="../mainwindow.cpp" line="2492"/>
<location filename="../mainwindow.cpp" line="8241"/>
<location filename="../mainwindow.cpp" line="8247"/>
<source>New Problem Set</source>
<translation></translation>
</message>
@ -4699,7 +4704,7 @@ Are you really want to continue?</oldsource>
<location filename="../mainwindow.ui" line="823"/>
<location filename="../mainwindow.ui" line="826"/>
<location filename="../mainwindow.cpp" line="2506"/>
<location filename="../mainwindow.cpp" line="8302"/>
<location filename="../mainwindow.cpp" line="8308"/>
<source>Save Problem Set</source>
<translation></translation>
</message>
@ -4707,7 +4712,7 @@ Are you really want to continue?</oldsource>
<location filename="../mainwindow.ui" line="837"/>
<location filename="../mainwindow.ui" line="840"/>
<location filename="../mainwindow.cpp" line="2513"/>
<location filename="../mainwindow.cpp" line="8338"/>
<location filename="../mainwindow.cpp" line="8344"/>
<source>Load Problem Set</source>
<translation></translation>
</message>
@ -4838,14 +4843,14 @@ Are you really want to continue?</oldsource>
<message>
<location filename="../mainwindow.ui" line="851"/>
<location filename="../mainwindow.cpp" line="2519"/>
<location filename="../mainwindow.cpp" line="9466"/>
<location filename="../mainwindow.cpp" line="9472"/>
<source>Import FPS Problem Set</source>
<translation>FPS试题集</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="862"/>
<location filename="../mainwindow.cpp" line="2525"/>
<location filename="../mainwindow.cpp" line="9497"/>
<location filename="../mainwindow.cpp" line="9503"/>
<source>Export FPS Problem Set</source>
<translation>FPS试题集</translation>
</message>
@ -5092,7 +5097,7 @@ Are you really want to continue?</oldsource>
</message>
<message>
<location filename="../mainwindow.ui" line="2621"/>
<location filename="../mainwindow.cpp" line="6564"/>
<location filename="../mainwindow.cpp" line="6570"/>
<source>Clear all breakpoints</source>
<translation></translation>
</message>
@ -5373,7 +5378,7 @@ Are you really want to continue?</oldsource>
</message>
<message>
<location filename="../mainwindow.ui" line="2784"/>
<location filename="../mainwindow.cpp" line="7740"/>
<location filename="../mainwindow.cpp" line="7746"/>
<source>Rename Symbol</source>
<translation></translation>
</message>
@ -5394,13 +5399,13 @@ Are you really want to continue?</oldsource>
</message>
<message>
<location filename="../mainwindow.ui" line="2804"/>
<location filename="../mainwindow.cpp" line="8007"/>
<location filename="../mainwindow.cpp" line="8013"/>
<source>Export As RTF</source>
<translation>RTF</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="2809"/>
<location filename="../mainwindow.cpp" line="8029"/>
<location filename="../mainwindow.cpp" line="8035"/>
<source>Export As HTML</source>
<translation>HTML</translation>
</message>
@ -5899,22 +5904,22 @@ Are you really want to continue?</oldsource>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9365"/>
<location filename="../mainwindow.cpp" line="9371"/>
<source>Go to Line</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9365"/>
<location filename="../mainwindow.cpp" line="9371"/>
<source>Line</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9387"/>
<location filename="../mainwindow.cpp" line="9393"/>
<source>Template Exists</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9388"/>
<location filename="../mainwindow.cpp" line="9394"/>
<source>Template %1 already exists. Do you want to overwrite?</source>
<translation>%1</translation>
</message>
@ -5940,7 +5945,7 @@ Are you really want to continue?</oldsource>
</message>
<message>
<location filename="../mainwindow.cpp" line="328"/>
<location filename="../mainwindow.cpp" line="8250"/>
<location filename="../mainwindow.cpp" line="8256"/>
<source>Problem Set %1</source>
<translation>%1</translation>
</message>
@ -6010,15 +6015,15 @@ Are you really want to continue?</oldsource>
</message>
<message>
<location filename="../mainwindow.cpp" line="4451"/>
<location filename="../mainwindow.cpp" line="8099"/>
<location filename="../mainwindow.cpp" line="8141"/>
<location filename="../mainwindow.cpp" line="8105"/>
<location filename="../mainwindow.cpp" line="8147"/>
<source>Bookmark Description</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="4452"/>
<location filename="../mainwindow.cpp" line="8100"/>
<location filename="../mainwindow.cpp" line="8142"/>
<location filename="../mainwindow.cpp" line="8106"/>
<location filename="../mainwindow.cpp" line="8148"/>
<source>Description:</source>
<translation></translation>
</message>
@ -6243,7 +6248,7 @@ Are you really want to continue?</oldsource>
<location filename="../mainwindow.cpp" line="2830"/>
<location filename="../mainwindow.cpp" line="4332"/>
<location filename="../mainwindow.cpp" line="4338"/>
<location filename="../mainwindow.cpp" line="7308"/>
<location filename="../mainwindow.cpp" line="7314"/>
<source>Delete</source>
<translation></translation>
</message>
@ -6307,17 +6312,17 @@ Are you really want to continue?</oldsource>
<translation type="vanished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9468"/>
<location filename="../mainwindow.cpp" line="9474"/>
<source>FPS Problem Set Files (*.fps;*.xml)</source>
<translation>FPS试题集文件(*.fps;*.xml)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9499"/>
<location filename="../mainwindow.cpp" line="9505"/>
<source>FPS Problem Set Files (*.fps)</source>
<translation>FPS试题集文件(*.fps)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9504"/>
<location filename="../mainwindow.cpp" line="9510"/>
<source>Export Error</source>
<translation></translation>
</message>
@ -6361,7 +6366,7 @@ Are you really want to continue?</oldsource>
</message>
<message>
<location filename="../mainwindow.cpp" line="5060"/>
<location filename="../mainwindow.cpp" line="8244"/>
<location filename="../mainwindow.cpp" line="8250"/>
<source>Do you want to save it?</source>
<translation></translation>
</message>
@ -6373,13 +6378,13 @@ Are you really want to continue?</oldsource>
</message>
<message>
<location filename="../mainwindow.cpp" line="5247"/>
<location filename="../mainwindow.cpp" line="9543"/>
<location filename="../mainwindow.cpp" line="9549"/>
<source>New Project File?</source>
<translation>?</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="5248"/>
<location filename="../mainwindow.cpp" line="9544"/>
<location filename="../mainwindow.cpp" line="9550"/>
<source>Do you want to add the new file to the project?</source>
<translation>?</translation>
</message>
@ -6387,7 +6392,7 @@ Are you really want to continue?</oldsource>
<location filename="../mainwindow.cpp" line="5338"/>
<location filename="../mainwindow.cpp" line="5349"/>
<location filename="../mainwindow.cpp" line="5359"/>
<location filename="../mainwindow.cpp" line="8327"/>
<location filename="../mainwindow.cpp" line="8333"/>
<source>Save Error</source>
<translation></translation>
</message>
@ -6426,78 +6431,78 @@ Are you really want to continue?</oldsource>
<translation type="vanished">%1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6432"/>
<location filename="../mainwindow.cpp" line="6438"/>
<source>Modify Watch</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6433"/>
<location filename="../mainwindow.cpp" line="6439"/>
<source>Watch Expression</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6565"/>
<location filename="../mainwindow.cpp" line="6571"/>
<source>Do you really want to clear all breakpoints in this file?</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6766"/>
<location filename="../mainwindow.cpp" line="6772"/>
<source>New project</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6767"/>
<location filename="../mainwindow.cpp" line="6773"/>
<source>Close %1 and start new project?</source>
<translation>&apos;%1&apos;?</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6780"/>
<location filename="../mainwindow.cpp" line="6786"/>
<source>Folder not exist</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6781"/>
<location filename="../mainwindow.cpp" line="6787"/>
<source>Folder &apos;%1&apos; doesn&apos;t exist. Create it now?</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6788"/>
<location filename="../mainwindow.cpp" line="6794"/>
<source>Can&apos;t create folder</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6789"/>
<location filename="../mainwindow.cpp" line="6795"/>
<source>Failed to create folder &apos;%1&apos;.</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6804"/>
<location filename="../mainwindow.cpp" line="6810"/>
<source>Save new project as</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7309"/>
<location filename="../mainwindow.cpp" line="7315"/>
<source>Folder %1 is not empty.</source>
<translation>%1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7310"/>
<location filename="../mainwindow.cpp" line="7316"/>
<source>Do you really want to delete it?</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8164"/>
<location filename="../mainwindow.cpp" line="8170"/>
<source>Change working folder</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8165"/>
<location filename="../mainwindow.cpp" line="8171"/>
<source>File &apos;%1&apos; is not in the current working folder.</source>
<oldsource>File &apos;%1&apos; is not in the current working folder</oldsource>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8168"/>
<location filename="../mainwindow.cpp" line="8174"/>
<source>Do you want to change working folder to &apos;%1&apos;?</source>
<translation>&apos;%1&apos;?</translation>
</message>
@ -6506,28 +6511,28 @@ Are you really want to continue?</oldsource>
<translation type="vanished">...</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8887"/>
<location filename="../mainwindow.cpp" line="8893"/>
<source>Can&apos;t Commit</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8888"/>
<location filename="../mainwindow.cpp" line="8894"/>
<source>Git needs user info to commit.</source>
<translation>Git需要用信息进行提交</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9156"/>
<location filename="../mainwindow.cpp" line="9162"/>
<source>Choose Input Data File</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9158"/>
<location filename="../mainwindow.cpp" line="9213"/>
<location filename="../mainwindow.cpp" line="9164"/>
<location filename="../mainwindow.cpp" line="9219"/>
<source>All files (*.*)</source>
<translation> (*.*)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9211"/>
<location filename="../mainwindow.cpp" line="9217"/>
<source>Choose Expected Output Data File</source>
<oldsource>Choose Expected Input Data File</oldsource>
<translation></translation>
@ -6539,59 +6544,59 @@ Are you really want to continue?</oldsource>
<message>
<location filename="../mainwindow.ui" line="2874"/>
<location filename="../mainwindow.ui" line="2877"/>
<location filename="../mainwindow.cpp" line="8220"/>
<location filename="../mainwindow.cpp" line="8226"/>
<source>Choose Working Folder</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8656"/>
<location filename="../mainwindow.cpp" line="8705"/>
<location filename="../mainwindow.cpp" line="8662"/>
<location filename="../mainwindow.cpp" line="8711"/>
<source>Header Exists</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8657"/>
<location filename="../mainwindow.cpp" line="8706"/>
<location filename="../mainwindow.cpp" line="8663"/>
<location filename="../mainwindow.cpp" line="8712"/>
<source>Header file &quot;%1&quot; already exists!</source>
<translation>&quot;%1&quot;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8711"/>
<location filename="../mainwindow.cpp" line="8717"/>
<source>Source Exists</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8712"/>
<location filename="../mainwindow.cpp" line="8718"/>
<source>Source file &quot;%1&quot; already exists!</source>
<translation>&quot;%1&quot;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8866"/>
<location filename="../mainwindow.cpp" line="8872"/>
<source>Can&apos;t commit!</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8867"/>
<location filename="../mainwindow.cpp" line="8873"/>
<source>The following files are in conflicting:</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8872"/>
<location filename="../mainwindow.cpp" line="8878"/>
<source>Commit Message</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8872"/>
<location filename="../mainwindow.cpp" line="8878"/>
<source>Commit Message:</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8875"/>
<location filename="../mainwindow.cpp" line="8881"/>
<source>Commit Failed</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8876"/>
<location filename="../mainwindow.cpp" line="8882"/>
<source>Commit message shouldn&apos;t be empty!</source>
<translation></translation>
</message>
@ -6600,22 +6605,22 @@ Are you really want to continue?</oldsource>
<translation type="vanished">Dev-C++ (*.dev)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6818"/>
<location filename="../mainwindow.cpp" line="6824"/>
<source>New project fail</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6819"/>
<location filename="../mainwindow.cpp" line="6825"/>
<source>Can&apos;t assign project template</source>
<translation>使</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6922"/>
<location filename="../mainwindow.cpp" line="6928"/>
<source>Remove file</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6923"/>
<location filename="../mainwindow.cpp" line="6929"/>
<source>Remove the file from disk?</source>
<translation></translation>
</message>
@ -6624,27 +6629,27 @@ Are you really want to continue?</oldsource>
<translation type="vanished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7232"/>
<location filename="../mainwindow.cpp" line="7238"/>
<source>New Project File Name</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7233"/>
<location filename="../mainwindow.cpp" line="7239"/>
<source>File Name:</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7241"/>
<location filename="../mainwindow.cpp" line="7247"/>
<source>File Already Exists!</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7242"/>
<location filename="../mainwindow.cpp" line="7248"/>
<source>File &apos;%1&apos; already exists!</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6876"/>
<location filename="../mainwindow.cpp" line="6882"/>
<source>Add to project</source>
<translation></translation>
</message>
@ -6712,78 +6717,78 @@ Are you really want to continue?</oldsource>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6806"/>
<location filename="../mainwindow.cpp" line="6812"/>
<source>Red Panda C++ project file (*.dev)</source>
<translation>C++(*.dev)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7713"/>
<location filename="../mainwindow.cpp" line="7719"/>
<source>Rename Error</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7714"/>
<location filename="../mainwindow.cpp" line="7720"/>
<source>Symbol &apos;%1&apos; is defined in system header.</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7741"/>
<location filename="../mainwindow.cpp" line="7747"/>
<source>New Name</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7912"/>
<location filename="../mainwindow.cpp" line="7935"/>
<location filename="../mainwindow.cpp" line="7946"/>
<location filename="../mainwindow.cpp" line="7967"/>
<location filename="../mainwindow.cpp" line="7918"/>
<location filename="../mainwindow.cpp" line="7941"/>
<location filename="../mainwindow.cpp" line="7952"/>
<location filename="../mainwindow.cpp" line="7973"/>
<source>Replace Error</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7913"/>
<location filename="../mainwindow.cpp" line="7919"/>
<source>Can&apos;t open file &apos;%1&apos; for replace!</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7947"/>
<location filename="../mainwindow.cpp" line="7953"/>
<source>Contents has changed since last search!</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8009"/>
<location filename="../mainwindow.cpp" line="8015"/>
<source>Rich Text Format Files (*.rtf)</source>
<translation>RTF格式文件 (*.rtf)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8031"/>
<location filename="../mainwindow.cpp" line="8037"/>
<source>HTML Files (*.html)</source>
<translation>HTML文件 (*.html)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8242"/>
<location filename="../mainwindow.cpp" line="8248"/>
<source>The current problem set is not empty.</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8261"/>
<location filename="../mainwindow.cpp" line="8267"/>
<source>Problem %1</source>
<translation>%1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8309"/>
<location filename="../mainwindow.cpp" line="8340"/>
<location filename="../mainwindow.cpp" line="8315"/>
<location filename="../mainwindow.cpp" line="8346"/>
<source>Problem Set Files (*.pbs)</source>
<translation> (*.pbs)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8354"/>
<location filename="../mainwindow.cpp" line="9476"/>
<location filename="../mainwindow.cpp" line="8360"/>
<location filename="../mainwindow.cpp" line="9482"/>
<source>Load Error</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="4140"/>
<location filename="../mainwindow.cpp" line="8368"/>
<location filename="../mainwindow.cpp" line="8374"/>
<source>Problem Case %1</source>
<translation>%1</translation>
</message>
@ -6801,7 +6806,7 @@ Are you really want to continue?</oldsource>
<location filename="../mainwindow.cpp" line="5290"/>
<location filename="../mainwindow.cpp" line="5996"/>
<location filename="../mainwindow.cpp" line="6008"/>
<location filename="../mainwindow.cpp" line="9296"/>
<location filename="../mainwindow.cpp" line="9302"/>
<source>Error</source>
<translation></translation>
</message>
@ -6877,7 +6882,7 @@ Are you really want to continue?</oldsource>
<location filename="../mainwindow.cpp" line="3408"/>
<location filename="../mainwindow.cpp" line="6025"/>
<location filename="../mainwindow.cpp" line="6039"/>
<location filename="../mainwindow.cpp" line="9279"/>
<location filename="../mainwindow.cpp" line="9285"/>
<source>Confirm Convertion</source>
<translation></translation>
</message>
@ -6885,7 +6890,7 @@ Are you really want to continue?</oldsource>
<location filename="../mainwindow.cpp" line="3409"/>
<location filename="../mainwindow.cpp" line="6026"/>
<location filename="../mainwindow.cpp" line="6040"/>
<location filename="../mainwindow.cpp" line="9280"/>
<location filename="../mainwindow.cpp" line="9286"/>
<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>
@ -9371,32 +9376,32 @@ Are you really want to continue?</oldsource>
<translation></translation>
</message>
<message>
<location filename="../widgets/searchdialog.ui" line="106"/>
<location filename="../widgets/searchdialog.ui" line="116"/>
<source>Replace with:</source>
<translation></translation>
</message>
<message>
<location filename="../widgets/searchdialog.ui" line="204"/>
<location filename="../widgets/searchdialog.ui" line="214"/>
<source>Options:</source>
<translation></translation>
</message>
<message>
<location filename="../widgets/searchdialog.ui" line="265"/>
<location filename="../widgets/searchdialog.ui" line="275"/>
<source>Case Sensitive</source>
<translation></translation>
</message>
<message>
<location filename="../widgets/searchdialog.ui" line="258"/>
<location filename="../widgets/searchdialog.ui" line="268"/>
<source>Whole words only</source>
<translation></translation>
</message>
<message>
<location filename="../widgets/searchdialog.ui" line="272"/>
<location filename="../widgets/searchdialog.ui" line="282"/>
<source>Wrap Around</source>
<translation></translation>
</message>
<message>
<location filename="../widgets/searchdialog.ui" line="244"/>
<location filename="../widgets/searchdialog.ui" line="254"/>
<source>Regular Expression</source>
<translation></translation>
</message>
@ -9405,57 +9410,57 @@ Are you really want to continue?</oldsource>
<translation type="vanished"></translation>
</message>
<message>
<location filename="../widgets/searchdialog.ui" line="131"/>
<location filename="../widgets/searchdialog.ui" line="141"/>
<source>Scope:</source>
<translation></translation>
</message>
<message>
<location filename="../widgets/searchdialog.ui" line="149"/>
<location filename="../widgets/searchdialog.ui" line="159"/>
<source>Global</source>
<translation></translation>
</message>
<message>
<location filename="../widgets/searchdialog.ui" line="156"/>
<location filename="../widgets/searchdialog.ui" line="166"/>
<source>Selection</source>
<translation></translation>
</message>
<message>
<location filename="../widgets/searchdialog.ui" line="166"/>
<location filename="../widgets/searchdialog.ui" line="176"/>
<source>Origin:</source>
<translation></translation>
</message>
<message>
<location filename="../widgets/searchdialog.ui" line="184"/>
<location filename="../widgets/searchdialog.ui" line="194"/>
<source>From cursor</source>
<translation></translation>
</message>
<message>
<location filename="../widgets/searchdialog.ui" line="194"/>
<location filename="../widgets/searchdialog.ui" line="204"/>
<source>Entire scope</source>
<translation></translation>
</message>
<message>
<location filename="../widgets/searchdialog.ui" line="251"/>
<location filename="../widgets/searchdialog.ui" line="261"/>
<source>Close after search</source>
<translation></translation>
</message>
<message>
<location filename="../widgets/searchdialog.ui" line="332"/>
<location filename="../widgets/searchdialog.ui" line="342"/>
<source>Find Previous</source>
<translation></translation>
</message>
<message>
<location filename="../widgets/searchdialog.ui" line="339"/>
<location filename="../widgets/searchdialog.ui" line="349"/>
<source>Find Next</source>
<translation></translation>
</message>
<message>
<location filename="../widgets/searchdialog.ui" line="356"/>
<location filename="../widgets/searchdialog.ui" line="366"/>
<source>Replace All</source>
<translation></translation>
</message>
<message>
<location filename="../widgets/searchdialog.ui" line="379"/>
<location filename="../widgets/searchdialog.ui" line="389"/>
<source>Close</source>
<translation></translation>
</message>
@ -9501,8 +9506,8 @@ Are you really want to continue?</oldsource>
<translation type="vanished"></translation>
</message>
<message>
<location filename="../widgets/searchdialog.ui" line="349"/>
<location filename="../widgets/searchdialog.cpp" line="21"/>
<location filename="../widgets/searchdialog.ui" line="359"/>
<location filename="../widgets/searchdialog.cpp" line="23"/>
<source>Replace</source>
<translation></translation>
</message>
@ -9511,37 +9516,37 @@ Are you really want to continue?</oldsource>
<translation type="vanished"></translation>
</message>
<message>
<location filename="../widgets/searchdialog.cpp" line="110"/>
<location filename="../widgets/searchdialog.cpp" line="164"/>
<location filename="../widgets/searchdialog.cpp" line="113"/>
<location filename="../widgets/searchdialog.cpp" line="157"/>
<source>Continue Search</source>
<oldsource>Search Around</oldsource>
<translation></translation>
</message>
<message>
<location filename="../widgets/searchdialog.cpp" line="100"/>
<location filename="../widgets/searchdialog.cpp" line="155"/>
<location filename="../widgets/searchdialog.cpp" line="103"/>
<location filename="../widgets/searchdialog.cpp" line="148"/>
<source>End of file has been reached. </source>
<oldsource>End of file has been reached.</oldsource>
<translation></translation>
</message>
<message>
<location filename="../widgets/searchdialog.cpp" line="20"/>
<location filename="../widgets/searchdialog.cpp" line="22"/>
<source>Search</source>
<translation></translation>
</message>
<message>
<location filename="../widgets/searchdialog.cpp" line="97"/>
<location filename="../widgets/searchdialog.cpp" line="100"/>
<source>Beginning of file has been reached. </source>
<translation></translation>
</message>
<message>
<location filename="../widgets/searchdialog.cpp" line="98"/>
<location filename="../widgets/searchdialog.cpp" line="101"/>
<source>Do you want to continue from file&apos;s end?</source>
<translation></translation>
</message>
<message>
<location filename="../widgets/searchdialog.cpp" line="101"/>
<location filename="../widgets/searchdialog.cpp" line="156"/>
<location filename="../widgets/searchdialog.cpp" line="104"/>
<location filename="../widgets/searchdialog.cpp" line="149"/>
<source>Do you want to continue from file&apos;s beginning?</source>
<oldsource>Do you want to start from beginning?</oldsource>
<translation></translation>
@ -9910,7 +9915,7 @@ Are you really want to continue?</oldsource>
<message>
<location filename="../mainwindow.cpp" line="2149"/>
<location filename="../mainwindow.cpp" line="2256"/>
<location filename="../mainwindow.cpp" line="9304"/>
<location filename="../mainwindow.cpp" line="9310"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="168"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="254"/>
<source>Compiler Set</source>
@ -9919,7 +9924,7 @@ Are you really want to continue?</oldsource>
<message>
<location filename="../mainwindow.cpp" line="2150"/>
<location filename="../mainwindow.cpp" line="2257"/>
<location filename="../mainwindow.cpp" line="9305"/>
<location filename="../mainwindow.cpp" line="9311"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="168"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="171"/>
<source>Compiler</source>
@ -9931,7 +9936,7 @@ Are you really want to continue?</oldsource>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8231"/>
<location filename="../mainwindow.cpp" line="8237"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="174"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="213"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="219"/>
@ -10007,15 +10012,15 @@ Are you really want to continue?</oldsource>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8232"/>
<location filename="../mainwindow.cpp" line="8603"/>
<location filename="../mainwindow.cpp" line="8238"/>
<location filename="../mainwindow.cpp" line="8609"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="213"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="216"/>
<source>Program Runner</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8602"/>
<location filename="../mainwindow.cpp" line="8608"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="216"/>
<source>Problem Set</source>
<translation></translation>

View File

@ -2914,6 +2914,10 @@
<source>Instruction syntax:</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Don&apos;t generate cli directives.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MacroInfoModel</name>

View File

@ -67,6 +67,7 @@ CPUDialog::CPUDialog(QWidget *parent) :
ui->chkBlendMode->setChecked(pSettings->debugger().blendMode());
resize(pSettings->ui().CPUDialogWidth(),pSettings->ui().CPUDialogHeight());
onUpdateIcons();
connect(pIconsManager,&IconsManager::actionIconsUpdated,
this, &CPUDialog::onUpdateIcons);
}
@ -106,6 +107,7 @@ void CPUDialog::updateDPI(float dpi)
p->setFont(font);
}
resetEditorFont(dpi);
onUpdateIcons();
}
void CPUDialog::setDisassembly(const QString& file, const QString& funcName,const QStringList& lines)

File diff suppressed because it is too large Load Diff