- fix: The option "Minimal indent for a continuous conditional beloning to a conditional header:" for formatter is not correct.

This commit is contained in:
Roy Qu 2023-03-18 21:37:11 +08:00
parent 1470f58206
commit 56cd6c4d76
9 changed files with 167 additions and 99 deletions

View File

@ -1,3 +1,8 @@
Red Panda C++ Version 2.19
- fix: Crash when directive line ends with '\' and at the last line.
- fix: The option "Minimal indent for a continuous conditional beloning to a conditional header:" for formatter is not correct.
Red Panda C++ Version 2.18 Red Panda C++ Version 2.18
- fix: macos icon size overgrown (by RigoLigo). - fix: macos icon size overgrown (by RigoLigo).

View File

@ -8,7 +8,7 @@ isEmpty(APP_NAME) {
} }
isEmpty(APP_VERSION) { isEmpty(APP_VERSION) {
APP_VERSION = 2.18 APP_VERSION = 2.19
} }
contains(QMAKE_HOST.arch, x86_64):{ contains(QMAKE_HOST.arch, x86_64):{

View File

@ -29,6 +29,11 @@ FormatterGeneralWidget::FormatterGeneralWidget(const QString& name, const QStrin
ui->editDemo->setReadOnly(true); ui->editDemo->setReadOnly(true);
connect(this, &SettingsWidget::settingsChanged, connect(this, &SettingsWidget::settingsChanged,
this, &FormatterGeneralWidget::updateDemo); this, &FormatterGeneralWidget::updateDemo);
ui->cbMinConditionalIndent->addItem(tr("No minimal indent"),0);
ui->cbMinConditionalIndent->addItem(tr("Indent at least one additional indent"),1);
ui->cbMinConditionalIndent->addItem(tr("Indent at least two additional indents"),2);
ui->cbMinConditionalIndent->addItem(tr("Indent at least one-half an additional indent."),3);
} }
FormatterGeneralWidget::~FormatterGeneralWidget() FormatterGeneralWidget::~FormatterGeneralWidget()
@ -77,7 +82,8 @@ void FormatterGeneralWidget::doLoad()
ui->chkIndentPreprocCond->setChecked(format.indentPreprocCond()); ui->chkIndentPreprocCond->setChecked(format.indentPreprocCond());
ui->chkIndentPreprocDefine->setChecked(format.indentPreprocDefine()); ui->chkIndentPreprocDefine->setChecked(format.indentPreprocDefine());
ui->chkIndentCol1Comments->setChecked(format.indentCol1Comments()); ui->chkIndentCol1Comments->setChecked(format.indentCol1Comments());
ui->spinMinConditionalIndent->setValue(format.minConditionalIndent()); int index=ui->cbMinConditionalIndent->findData(format.minConditionalIndent());
ui->cbMinConditionalIndent->setCurrentIndex(index);
ui->spinMaxContinuationIndent->setValue(format.maxContinuationIndent()); ui->spinMaxContinuationIndent->setValue(format.maxContinuationIndent());
ui->chkBreakBlocks->setChecked(format.breakBlocks()); ui->chkBreakBlocks->setChecked(format.breakBlocks());
ui->chkBreakBlocksAll->setChecked(format.breakBlocksAll()); ui->chkBreakBlocksAll->setChecked(format.breakBlocksAll());
@ -363,7 +369,7 @@ void FormatterGeneralWidget::updateCodeFormatter(Settings::CodeFormatter &format
format.setIndentPreprocCond(ui->chkIndentPreprocCond->isChecked()); format.setIndentPreprocCond(ui->chkIndentPreprocCond->isChecked());
format.setIndentPreprocDefine(ui->chkIndentPreprocDefine->isChecked()); format.setIndentPreprocDefine(ui->chkIndentPreprocDefine->isChecked());
format.setIndentCol1Comments(ui->chkIndentCol1Comments->isChecked()); format.setIndentCol1Comments(ui->chkIndentCol1Comments->isChecked());
format.setMinConditionalIndent(ui->spinMinConditionalIndent->value()); format.setMinConditionalIndent(ui->cbMinConditionalIndent->currentData().toInt());
format.setMaxContinuationIndent(ui->spinMaxContinuationIndent->value()); format.setMaxContinuationIndent(ui->spinMaxContinuationIndent->value());
format.setBreakBlocks(ui->chkBreakBlocks->isChecked()); format.setBreakBlocks(ui->chkBreakBlocks->isChecked());
format.setBreakBlocksAll(ui->chkBreakBlocksAll->isChecked()); format.setBreakBlocksAll(ui->chkBreakBlocksAll->isChecked());

View File

@ -75,6 +75,8 @@ private:
protected: protected:
void doLoad() override; void doLoad() override;
void doSave() override; void doSave() override;
// SettingsWidget interface
}; };
#endif // FORMATTERGENERALWIDGET_H #endif // FORMATTERGENERALWIDGET_H

View File

@ -296,7 +296,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QSpinBox" name="spinMinConditionalIndent"/> <widget class="QComboBox" name="cbMinConditionalIndent"/>
</item> </item>
<item> <item>
<spacer name="horizontalSpacer_4"> <spacer name="horizontalSpacer_4">
@ -341,6 +341,9 @@
<property name="minimum"> <property name="minimum">
<number>40</number> <number>40</number>
</property> </property>
<property name="maximum">
<number>120</number>
</property>
</widget> </widget>
</item> </item>
<item> <item>

View File

@ -2522,6 +2522,22 @@
<source>Don&apos;t break multimple statements residing on one line</source> <source>Don&apos;t break multimple statements residing on one line</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>No minimal indent</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Indent at least one additional indent</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Indent at least two additional indents</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Indent at least one-half an additional indent.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>FormatterPathWidget</name> <name>FormatterPathWidget</name>

View File

@ -3151,150 +3151,150 @@ Are you really want to continue?</oldsource>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="366"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="369"/>
<source>Indentation 2</source> <source>Indentation 2</source>
<translation>2</translation> <translation>2</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="372"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="375"/>
<source>Indent labels</source> <source>Indent labels</source>
<translation>(label)</translation> <translation>(label)</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="379"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="382"/>
<source>Indent class blocks</source> <source>Indent class blocks</source>
<translation>(class)</translation> <translation>(class)</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="386"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="389"/>
<source>Indent namespaces</source> <source>Indent namespaces</source>
<translation>(namespace)</translation> <translation>(namespace)</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="393"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="396"/>
<source>Indent class access modifiers</source> <source>Indent class access modifiers</source>
<translation>访(&apos;public&apos;,&apos;private&apos;...)</translation> <translation>访(&apos;public&apos;,&apos;private&apos;...)</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="400"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="403"/>
<source>Indent after parenthesis &apos;(&apos; or assignment &apos;=&apos;</source> <source>Indent after parenthesis &apos;(&apos; or assignment &apos;=&apos;</source>
<translation>&apos;(&apos;&apos;=&apos;</translation> <translation>&apos;(&apos;&apos;=&apos;</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="407"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="410"/>
<source>Indent preprocessor conditional statements</source> <source>Indent preprocessor conditional statements</source>
<translation>(&apos;#if&apos;,&apos;#else&apos;,...)</translation> <translation>(&apos;#if&apos;,&apos;#else&apos;,...)</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="414"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="417"/>
<source>Indent multi-line preprocessor #define statements</source> <source>Indent multi-line preprocessor #define statements</source>
<translation>#define语句</translation> <translation>#define语句</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="421"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="424"/>
<source>Indent line comments that start in column one</source> <source>Indent line comments that start in column one</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="428"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="431"/>
<source>Indent preprocessor blocks</source> <source>Indent preprocessor blocks</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="435"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="438"/>
<source>Indent switch blocks</source> <source>Indent switch blocks</source>
<translation>switch语句</translation> <translation>switch语句</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="442"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="445"/>
<source>Indent cases</source> <source>Indent cases</source>
<translation>case语句</translation> <translation>case语句</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="450"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="453"/>
<source>Padding 1</source> <source>Padding 1</source>
<translation>1</translation> <translation>1</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="456"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="459"/>
<source>Insert spaces around operators</source> <source>Insert spaces around operators</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="463"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="466"/>
<source>Insert spaces after commas</source> <source>Insert spaces after commas</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="470"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="473"/>
<source>Insert spaces after parenthesis headers (&apos;if&apos;,&apos;for&apos;,...)</source> <source>Insert spaces after parenthesis headers (&apos;if&apos;,&apos;for&apos;,...)</source>
<translation>(&apos;if&apos;,&apos;for&apos;...)</translation> <translation>(&apos;if&apos;,&apos;for&apos;...)</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="477"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="480"/>
<source>Insert spaces around parenthesis on the outside only</source> <source>Insert spaces around parenthesis on the outside only</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="484"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="487"/>
<source>Insert spaces around parenthesis on the inside only</source> <source>Insert spaces around parenthesis on the inside only</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="491"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="494"/>
<source>Insert empty lines arround unrelated blocks</source> <source>Insert empty lines arround unrelated blocks</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="498"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="501"/>
<source>Insert empty lines around all blocks</source> <source>Insert empty lines around all blocks</source>
<oldsource>Insert empy lines around all blocks</oldsource> <oldsource>Insert empy lines around all blocks</oldsource>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="505"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="508"/>
<source>Insert spaces around first parenthesis in a series on the out side only</source> <source>Insert spaces around first parenthesis in a series on the out side only</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="512"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="515"/>
<source>Insert spaces around parenthesis</source> <source>Insert spaces around parenthesis</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="520"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="523"/>
<source>Padding 2</source> <source>Padding 2</source>
<translation>2</translation> <translation>2</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="526"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="529"/>
<source>Remove all empty lines. It will NOT delete lines added by the padding options.</source> <source>Remove all empty lines. It will NOT delete lines added by the padding options.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="533"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="536"/>
<source>Attach a pointer operator to its :</source> <source>Attach a pointer operator to its :</source>
<translation>(&apos;*&apos;)</translation> <translation>(&apos;*&apos;)</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="540"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="543"/>
<source>Remove all consecutive empty lines. It will NOT delete lines added by the padding options.</source> <source>Remove all consecutive empty lines. It will NOT delete lines added by the padding options.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="547"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="550"/>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="557"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="560"/>
<source>type(left)</source> <source>type(left)</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="590"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="593"/>
<source>Fill empty lines with the white space of the previous lines.</source> <source>Fill empty lines with the white space of the previous lines.</source>
<translation>使</translation> <translation>使</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="580"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="583"/>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="607"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="610"/>
<source>middle</source> <source>middle</source>
<translation></translation> <translation></translation>
</message> </message>
@ -3304,127 +3304,147 @@ Are you really want to continue?</oldsource>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation> <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="597"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="600"/>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="617"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="620"/>
<source>name(right)</source> <source>name(right)</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="627"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="630"/>
<source>Remove unnecessary space adding around parenthesis</source> <source>Remove unnecessary space adding around parenthesis</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="634"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="637"/>
<source>Attach a reference operator to its :</source> <source>Attach a reference operator to its :</source>
<translation>(&apos;&amp;&apos;)</translation> <translation>(&apos;&amp;&apos;)</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="641"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="644"/>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="651"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="654"/>
<source>none</source> <source>none</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="662"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="665"/>
<source>Other 1</source> <source>Other 1</source>
<translation>1</translation> <translation>1</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="668"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="671"/>
<source>Break one line headers (&apos;if&apos;,&apos;while&apos;,&apos;else&apos;...) from the statement on the same line</source> <source>Break one line headers (&apos;if&apos;,&apos;while&apos;,&apos;else&apos;...) from the statement on the same line</source>
<translation>(&apos;if&apos;,&apos;while&apos;,&apos;else&apos;)</translation> <translation>(&apos;if&apos;,&apos;while&apos;,&apos;else&apos;)</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="675"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="678"/>
<source>Add one line braces to unbraced one line conditional statements</source> <source>Add one line braces to unbraced one line conditional statements</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="682"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="685"/>
<source>Break braces before close headers (&apos;else&apos;,&apos;catch&quot;...)</source> <source>Break braces before close headers (&apos;else&apos;,&apos;catch&quot;...)</source>
<translation>(&apos;else&apos;,&apos;catch&apos;)</translation> <translation>(&apos;else&apos;,&apos;catch&apos;)</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="689"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="692"/>
<source>Remove braces from a braced one line conditional statements</source> <source>Remove braces from a braced one line conditional statements</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="696"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="699"/>
<source>Break &apos;else if&apos; statements into two lines</source> <source>Break &apos;else if&apos; statements into two lines</source>
<translation>&apos;else if&apos;</translation> <translation>&apos;else if&apos;</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="703"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="706"/>
<source>Add braces to unbraced one line conditional statements</source> <source>Add braces to unbraced one line conditional statements</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="711"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="714"/>
<source>Other 2</source> <source>Other 2</source>
<translation>2</translation> <translation>2</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="752"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="755"/>
<source>Attach return type to the function name in its declaration</source> <source>Attach return type to the function name in its declaration</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="745"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="748"/>
<source>Break return type from the function name in its declaration</source> <source>Break return type from the function name in its declaration</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="717"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="720"/>
<source>Break return type from the function name in its definition</source> <source>Break return type from the function name in its definition</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="731"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="734"/>
<source>Attach return type to the function name in its definition</source> <source>Attach return type to the function name in its definition</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="724"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="727"/>
<source>Don&apos;t break blocks residing completely on one line</source> <source>Don&apos;t break blocks residing completely on one line</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="738"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="741"/>
<source>Don&apos;t break multimple statements residing on one line</source> <source>Don&apos;t break multimple statements residing on one line</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="760"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="763"/>
<source>Other 3</source> <source>Other 3</source>
<translation>3</translation> <translation>3</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="847"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="850"/>
<source>Place the logical conditional to the last on the previous line, when break lines</source> <source>Place the logical conditional to the last on the previous line, when break lines</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="840"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="843"/>
<source>Close ending angle brackets on template definitions</source> <source>Close ending angle brackets on template definitions</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="833"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="836"/>
<source>Remove the leading &apos;*&apos; prefix on multi-line comments and indent the comment text one line indent.</source> <source>Remove the leading &apos;*&apos; prefix on multi-line comments and indent the comment text one line indent.</source>
<translation>&apos;*&apos;</translation> <translation>&apos;*&apos;</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="781"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="784"/>
<source>Break lines exceeds</source> <source>Break lines exceeds</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.ui" line="788"/> <location filename="../settingsdialog/formattergeneralwidget.ui" line="791"/>
<source>characters</source> <source>characters</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="33"/>
<source>No minimal indent</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="34"/>
<source>Indent at least one additional indent</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="35"/>
<source>Indent at least two additional indents</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="36"/>
<source>Indent at least one-half an additional indent.</source>
<translation></translation>
</message>
</context> </context>
<context> <context>
<name>FormatterPathWidget</name> <name>FormatterPathWidget</name>
@ -3453,187 +3473,187 @@ Are you really want to continue?</oldsource>
<context> <context>
<name>FormatterStyleModel</name> <name>FormatterStyleModel</name>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="155"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="161"/>
<source>Default</source> <source>Default</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="156"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="162"/>
<source>The opening braces will not be changed and closing braces will be broken from the preceding line.</source> <source>The opening braces will not be changed and closing braces will be broken from the preceding line.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="161"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="167"/>
<source>Allman</source> <source>Allman</source>
<translation>Allman</translation> <translation>Allman</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="162"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="168"/>
<source>Broken braces.</source> <source>Broken braces.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="167"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="173"/>
<source>Java</source> <source>Java</source>
<translation>Java</translation> <translation>Java</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="168"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="174"/>
<source>Attached braces.</source> <source>Attached braces.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="173"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="179"/>
<source>K&amp;R</source> <source>K&amp;R</source>
<translation>K&amp;R</translation> <translation>K&amp;R</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="174"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="180"/>
<source>Linux braces.</source> <source>Linux braces.</source>
<translation>Linux风格花括号</translation> <translation>Linux风格花括号</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="179"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="185"/>
<source>Stroustrup</source> <source>Stroustrup</source>
<translation>Stroustrup</translation> <translation>Stroustrup</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="180"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="186"/>
<source>Linux braces, with broken closing headers.</source> <source>Linux braces, with broken closing headers.</source>
<translation>Linux风格花括号do-while的while</translation> <translation>Linux风格花括号do-while的while</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="185"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="191"/>
<source>Whitesmith</source> <source>Whitesmith</source>
<translation>Whitesmith</translation> <translation>Whitesmith</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="186"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="192"/>
<source>Broken, indented braces.</source> <source>Broken, indented braces.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="188"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="194"/>
<source>Indented class blocks and switch blocks.</source> <source>Indented class blocks and switch blocks.</source>
<translation>switch代码段缩进</translation> <translation>switch代码段缩进</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="193"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="199"/>
<source>VTK</source> <source>VTK</source>
<translation>VTK</translation> <translation>VTK</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="194"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="200"/>
<source>Broken, indented braces except for the opening braces.</source> <source>Broken, indented braces except for the opening braces.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="199"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="205"/>
<source>Ratliff</source> <source>Ratliff</source>
<translation>Ratliff</translation> <translation>Ratliff</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="200"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="206"/>
<source>Attached, indented braces.</source> <source>Attached, indented braces.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="205"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="211"/>
<source>GNU</source> <source>GNU</source>
<translation>GNU</translation> <translation>GNU</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="206"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="212"/>
<source>Broken braces, indented blocks.</source> <source>Broken braces, indented blocks.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="211"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="217"/>
<source>Linux</source> <source>Linux</source>
<translation>Linux</translation> <translation>Linux</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="212"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="218"/>
<source>Linux braces, minimum conditional indent is one-half indent.</source> <source>Linux braces, minimum conditional indent is one-half indent.</source>
<translation>Linux风格花括号1.5</translation> <translation>Linux风格花括号1.5</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="217"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="223"/>
<source>Horstmann</source> <source>Horstmann</source>
<translation>Horstmann</translation> <translation>Horstmann</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="218"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="224"/>
<source>Run-in braces, indented switches.</source> <source>Run-in braces, indented switches.</source>
<translation>Run-in花括号switch语句缩进</translation> <translation>Run-in花括号switch语句缩进</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="223"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="229"/>
<source>One True Brace</source> <source>One True Brace</source>
<translation>One True Brace</translation> <translation>One True Brace</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="224"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="230"/>
<source>Linux braces, add braces to all conditionals.</source> <source>Linux braces, add braces to all conditionals.</source>
<translation>Linux花括号</translation> <translation>Linux花括号</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="229"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="235"/>
<source>Google</source> <source>Google</source>
<translation>Google</translation> <translation>Google</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="230"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="236"/>
<source>Attached braces, indented class modifiers.</source> <source>Attached braces, indented class modifiers.</source>
<translation>访</translation> <translation>访</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="235"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="241"/>
<source>Mozilla</source> <source>Mozilla</source>
<translation>Mozilla</translation> <translation>Mozilla</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="236"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="242"/>
<source>Linux braces, with broken braces for structs and enums, and attached braces for namespaces.</source> <source>Linux braces, with broken braces for structs and enums, and attached braces for namespaces.</source>
<translation>Linux风格花括号 </translation> <translation>Linux风格花括号 </translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="241"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="247"/>
<source>Webkit</source> <source>Webkit</source>
<translation>Webkit</translation> <translation>Webkit</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="242"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="248"/>
<source>Linux braces, with attached closing headers.</source> <source>Linux braces, with attached closing headers.</source>
<translation>Linux风格花括号 do-while的while)</translation> <translation>Linux风格花括号 do-while的while)</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="247"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="253"/>
<source>Pico</source> <source>Pico</source>
<translation>Pico</translation> <translation>Pico</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="248"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="254"/>
<source>Run-in opening braces and attached closing braces.</source> <source>Run-in opening braces and attached closing braces.</source>
<translation>Run-in左花括号</translation> <translation>Run-in左花括号</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="250"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="256"/>
<source>Uses keep one line blocks and keep one line statements.</source> <source>Uses keep one line blocks and keep one line statements.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="255"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="261"/>
<source>Lisp</source> <source>Lisp</source>
<translation>Lisp</translation> <translation>Lisp</translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="256"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="262"/>
<source>Attached opening braces and attached closing braces.</source> <source>Attached opening braces and attached closing braces.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../settingsdialog/formattergeneralwidget.cpp" line="258"/> <location filename="../settingsdialog/formattergeneralwidget.cpp" line="264"/>
<source>Uses keep one line statements.</source> <source>Uses keep one line statements.</source>
<translation></translation> <translation></translation>
</message> </message>

View File

@ -2347,6 +2347,22 @@
<source>Place the logical conditional to the last on the previous line, when break lines</source> <source>Place the logical conditional to the last on the previous line, when break lines</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>No minimal indent</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Indent at least one additional indent</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Indent at least two additional indents</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Indent at least one-half an additional indent.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>FormatterPathWidget</name> <name>FormatterPathWidget</name>

View File

@ -14,7 +14,7 @@ qsynedit.subdir = libs/qsynedit
APP_NAME = RedPandaCPP APP_NAME = RedPandaCPP
APP_VERSION = 2.18 APP_VERSION = 2.19
# Add the dependencies so that the RedPandaIDE project can add the depended programs # Add the dependencies so that the RedPandaIDE project can add the depended programs
# into the main app bundle # into the main app bundle