- enhancement: switch header/source

This commit is contained in:
Roy Qu 2022-11-05 19:39:33 +08:00
parent 771d0d1456
commit 4fa490253e
7 changed files with 235 additions and 137 deletions

View File

@ -5,6 +5,7 @@ Red Panda C++ Version 2.2
- fix: Wrong charset name returned when saving file
- fix: 'using =' / 'namespace =' not correctly handled
- fix: Pressing '*' at begin of line will crash app
- enhancement: switch header/source
Red Panda C++ Version 2.1

View File

@ -4416,6 +4416,11 @@ void MainWindow::onEditorContextMenu(const QPoint& pos)
int line;
if (editor->getPositionOfMouse(p)) {
line=p.line;
if (!switchHeaderSourceTarget(editor).isEmpty()) {
menu.addAction(ui->actionSwitchHeaderSource);
menu.addSeparator();
}
//mouse on editing area
menu.addAction(ui->actionCompile_Run);
menu.addAction(ui->actionDebug);
@ -6781,6 +6786,51 @@ void MainWindow::reparseNonProjectEditors()
}
}
QString MainWindow::switchHeaderSourceTarget(Editor *editor)
{
QString filename=editor->filename();
if (getFileType(filename)==FileType::CHeader
|| getFileType(filename)==FileType::CppHeader) {
QStringList lst;
lst.push_back("c");
lst.push_back("cc");
lst.push_back("cpp");
lst.push_back("cxx");
lst.push_back("C");
lst.push_back("CC");
foreach(const QString& suffix,lst) {
QString newFile=changeFileExt(filename,suffix);
if (fileExists(newFile)) {
return newFile;
}
}
} else if (getFileType(filename)==FileType::CSource) {
QStringList lst;
lst.push_back("h");
foreach(const QString& suffix,lst) {
QString newFile=changeFileExt(filename,suffix);
if (fileExists(newFile)) {
return newFile;
}
}
} else if (getFileType(filename)==FileType::CppSource) {
QStringList lst;
lst.push_back("h");
lst.push_back("hpp");
lst.push_back("hxx");
lst.push_back("HH");
lst.push_back("H");
foreach(const QString& suffix,lst) {
QString newFile=changeFileExt(filename,suffix);
if (fileExists(newFile)) {
return newFile;
}
}
}
return QString();
}
void MainWindow::onProjectViewNodeRenamed()
{
updateProjectView();
@ -8642,7 +8692,7 @@ bool MainWindow::isClosingAll() const
void MainWindow::on_actionGoto_block_start_triggered()
{
Editor* editor=mEditorList->getEditor();
Editor *editor=mEditorList->getEditor();
if (editor)
editor->gotoBlockStart();
}
@ -8650,8 +8700,18 @@ void MainWindow::on_actionGoto_block_start_triggered()
void MainWindow::on_actionGoto_block_end_triggered()
{
Editor* editor=mEditorList->getEditor();
Editor *editor=mEditorList->getEditor();
if (editor)
editor->gotoBlockEnd();
}
void MainWindow::on_actionSwitchHeaderSource_triggered()
{
Editor *editor=mEditorList->getEditor();
QString file=switchHeaderSourceTarget(editor);
if (!file.isEmpty()) {
openFile(file);
}
}

View File

@ -290,6 +290,7 @@ private:
void setProjectViewCurrentUnit(std::shared_ptr<ProjectUnit> unit);
void reparseNonProjectEditors();
QString switchHeaderSourceTarget(Editor *editor);
private slots:
void onProjectViewNodeRenamed();
@ -732,6 +733,8 @@ private slots:
void on_actionGoto_block_end_triggered();
void on_actionSwitchHeaderSource_triggered();
private:
Ui::MainWindow *ui;
EditorList *mEditorList;

View File

@ -3255,6 +3255,14 @@
<string>Ctrl+Alt+Down</string>
</property>
</action>
<action name="actionSwitchHeaderSource">
<property name="text">
<string>Switch header/source</string>
</property>
<property name="toolTip">
<string>Switch Header/Source</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>

View File

@ -4716,6 +4716,14 @@
<source>Ctrl+Alt+Down</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Switch header/source</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Switch Header/Source</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>NewClassDialog</name>

View File

@ -127,7 +127,7 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../widgets/aboutdialog.cpp" line="41"/>
<source>Microsoft Visual C++</source>
<translation type="unfinished">Microsoft Visual C++</translation>
<translation>Microsoft Visual C++</translation>
</message>
<message>
<location filename="../widgets/aboutdialog.cpp" line="45"/>
@ -3920,11 +3920,11 @@ Are you really want to continue?</oldsource>
<message>
<location filename="../mainwindow.ui" line="918"/>
<location filename="../mainwindow.ui" line="2932"/>
<location filename="../mainwindow.cpp" line="5119"/>
<location filename="../mainwindow.cpp" line="5122"/>
<location filename="../mainwindow.cpp" line="5126"/>
<location filename="../mainwindow.cpp" line="5129"/>
<location filename="../mainwindow.cpp" line="7126"/>
<location filename="../mainwindow.cpp" line="5124"/>
<location filename="../mainwindow.cpp" line="5127"/>
<location filename="../mainwindow.cpp" line="5131"/>
<location filename="../mainwindow.cpp" line="5134"/>
<location filename="../mainwindow.cpp" line="7176"/>
<source>Issues</source>
<translation></translation>
</message>
@ -4362,7 +4362,7 @@ Are you really want to continue?</oldsource>
<message>
<location filename="../mainwindow.ui" line="773"/>
<location filename="../mainwindow.ui" line="776"/>
<location filename="../mainwindow.cpp" line="7507"/>
<location filename="../mainwindow.cpp" line="7557"/>
<source>New Problem Set</source>
<translation></translation>
</message>
@ -4381,14 +4381,14 @@ Are you really want to continue?</oldsource>
<message>
<location filename="../mainwindow.ui" line="815"/>
<location filename="../mainwindow.ui" line="818"/>
<location filename="../mainwindow.cpp" line="7549"/>
<location filename="../mainwindow.cpp" line="7599"/>
<source>Save Problem Set</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.ui" line="829"/>
<location filename="../mainwindow.ui" line="832"/>
<location filename="../mainwindow.cpp" line="7582"/>
<location filename="../mainwindow.cpp" line="7632"/>
<source>Load Problem Set</source>
<translation></translation>
</message>
@ -4524,7 +4524,6 @@ Are you really want to continue?</oldsource>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.ui" line="2027"/>
<location filename="../mainwindow.ui" line="2030"/>
<source>New Source File</source>
<translation></translation>
@ -4742,7 +4741,7 @@ Are you really want to continue?</oldsource>
</message>
<message>
<location filename="../mainwindow.ui" line="2598"/>
<location filename="../mainwindow.cpp" line="6029"/>
<location filename="../mainwindow.cpp" line="6034"/>
<source>Clear all breakpoints</source>
<translation></translation>
</message>
@ -4922,11 +4921,22 @@ Are you really want to continue?</oldsource>
<source>Ctrl+Alt+Down</source>
<translation>Ctrl+Alt+Down</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="3260"/>
<source>Switch header/source</source>
<translation>/</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="3263"/>
<source>Switch Header/Source</source>
<translation>/</translation>
</message>
<message>
<source>Save As Template...</source>
<translation type="vanished">...</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="2027"/>
<location filename="../mainwindow.cpp" line="2909"/>
<source>New File</source>
<translation></translation>
@ -4968,7 +4978,7 @@ Are you really want to continue?</oldsource>
</message>
<message>
<location filename="../mainwindow.ui" line="2761"/>
<location filename="../mainwindow.cpp" line="7069"/>
<location filename="../mainwindow.cpp" line="7119"/>
<source>Rename Symbol</source>
<translation></translation>
</message>
@ -4989,13 +4999,13 @@ Are you really want to continue?</oldsource>
</message>
<message>
<location filename="../mainwindow.ui" line="2781"/>
<location filename="../mainwindow.cpp" line="7279"/>
<location filename="../mainwindow.cpp" line="7329"/>
<source>Export As RTF</source>
<translation>RTF</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="2786"/>
<location filename="../mainwindow.cpp" line="7301"/>
<location filename="../mainwindow.cpp" line="7351"/>
<source>Export As HTML</source>
<translation>HTML</translation>
</message>
@ -5369,22 +5379,22 @@ Are you really want to continue?</oldsource>
<message>
<location filename="../mainwindow.cpp" line="1927"/>
<location filename="../mainwindow.cpp" line="2101"/>
<location filename="../mainwindow.cpp" line="5163"/>
<location filename="../mainwindow.cpp" line="5170"/>
<location filename="../mainwindow.cpp" line="5168"/>
<location filename="../mainwindow.cpp" line="5175"/>
<source>Wrong Compiler Settings</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1928"/>
<location filename="../mainwindow.cpp" line="2102"/>
<location filename="../mainwindow.cpp" line="5164"/>
<location filename="../mainwindow.cpp" line="5171"/>
<location filename="../mainwindow.cpp" line="5169"/>
<location filename="../mainwindow.cpp" line="5176"/>
<source>Compiler is set not to generate executable.</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1929"/>
<location filename="../mainwindow.cpp" line="5165"/>
<location filename="../mainwindow.cpp" line="5170"/>
<source>We need the executabe to run problem case.</source>
<translation></translation>
</message>
@ -5452,7 +5462,7 @@ Are you really want to continue?</oldsource>
</message>
<message>
<location filename="../mainwindow.cpp" line="2103"/>
<location filename="../mainwindow.cpp" line="5172"/>
<location filename="../mainwindow.cpp" line="5177"/>
<source>Please correct this before start debugging</source>
<translation></translation>
</message>
@ -5510,22 +5520,22 @@ Are you really want to continue?</oldsource>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8583"/>
<location filename="../mainwindow.cpp" line="8633"/>
<source>Go to Line</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8583"/>
<location filename="../mainwindow.cpp" line="8633"/>
<source>Line</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8605"/>
<location filename="../mainwindow.cpp" line="8655"/>
<source>Template Exists</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8606"/>
<location filename="../mainwindow.cpp" line="8656"/>
<source>Template %1 already exists. Do you want to overwrite?</source>
<translation>%1</translation>
</message>
@ -5551,7 +5561,7 @@ Are you really want to continue?</oldsource>
</message>
<message>
<location filename="../mainwindow.cpp" line="318"/>
<location filename="../mainwindow.cpp" line="7516"/>
<location filename="../mainwindow.cpp" line="7566"/>
<source>Problem Set %1</source>
<translation>%1</translation>
</message>
@ -5625,15 +5635,15 @@ Are you really want to continue?</oldsource>
</message>
<message>
<location filename="../mainwindow.cpp" line="4041"/>
<location filename="../mainwindow.cpp" line="7365"/>
<location filename="../mainwindow.cpp" line="7407"/>
<location filename="../mainwindow.cpp" line="7415"/>
<location filename="../mainwindow.cpp" line="7457"/>
<source>Bookmark Description</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="4042"/>
<location filename="../mainwindow.cpp" line="7366"/>
<location filename="../mainwindow.cpp" line="7408"/>
<location filename="../mainwindow.cpp" line="7416"/>
<location filename="../mainwindow.cpp" line="7458"/>
<source>Description:</source>
<translation></translation>
</message>
@ -5779,7 +5789,7 @@ Are you really want to continue?</oldsource>
<location filename="../mainwindow.cpp" line="2921"/>
<location filename="../mainwindow.cpp" line="3937"/>
<location filename="../mainwindow.cpp" line="3943"/>
<location filename="../mainwindow.cpp" line="6754"/>
<location filename="../mainwindow.cpp" line="6759"/>
<source>Delete</source>
<translation></translation>
</message>
@ -5862,57 +5872,57 @@ Are you really want to continue?</oldsource>
<translation>%1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="4613"/>
<location filename="../mainwindow.cpp" line="4618"/>
<source>Save project</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="4614"/>
<location filename="../mainwindow.cpp" line="4619"/>
<source>The project &apos;%1&apos; has modifications.</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="4616"/>
<location filename="../mainwindow.cpp" line="7510"/>
<location filename="../mainwindow.cpp" line="4621"/>
<location filename="../mainwindow.cpp" line="7560"/>
<source>Do you want to save it?</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="4716"/>
<location filename="../mainwindow.cpp" line="4730"/>
<location filename="../mainwindow.cpp" line="4721"/>
<location filename="../mainwindow.cpp" line="4735"/>
<source>File Changed</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="4801"/>
<location filename="../mainwindow.cpp" line="4806"/>
<source>New Project File?</source>
<translation>?</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="4802"/>
<location filename="../mainwindow.cpp" line="4807"/>
<source>Do you want to add the new file to the project?</source>
<translation>?</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="4886"/>
<location filename="../mainwindow.cpp" line="4896"/>
<location filename="../mainwindow.cpp" line="7571"/>
<location filename="../mainwindow.cpp" line="4891"/>
<location filename="../mainwindow.cpp" line="4901"/>
<location filename="../mainwindow.cpp" line="7621"/>
<source>Save Error</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="5038"/>
<location filename="../mainwindow.cpp" line="5043"/>
<source>Change Project Compiler Set</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="5039"/>
<location filename="../mainwindow.cpp" line="5044"/>
<source>Change the project&apos;s compiler set will lose all custom compiler set options.</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="3673"/>
<location filename="../mainwindow.cpp" line="5041"/>
<location filename="../mainwindow.cpp" line="5046"/>
<source>Do you really want to do that?</source>
<translation></translation>
</message>
@ -5935,104 +5945,104 @@ Are you really want to continue?</oldsource>
<translation type="vanished">%1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="5897"/>
<location filename="../mainwindow.cpp" line="5902"/>
<source>Modify Watch</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="5898"/>
<location filename="../mainwindow.cpp" line="5903"/>
<source>Watch Expression</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6030"/>
<location filename="../mainwindow.cpp" line="6035"/>
<source>Do you really want to clear all breakpoints in this file?</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6228"/>
<location filename="../mainwindow.cpp" line="6233"/>
<source>New project</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6229"/>
<location filename="../mainwindow.cpp" line="6234"/>
<source>Close %1 and start new project?</source>
<translation>&apos;%1&apos;?</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6242"/>
<location filename="../mainwindow.cpp" line="6247"/>
<source>Folder not exist</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6243"/>
<location filename="../mainwindow.cpp" line="6248"/>
<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="6250"/>
<location filename="../mainwindow.cpp" line="6255"/>
<source>Can&apos;t create folder</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6251"/>
<location filename="../mainwindow.cpp" line="6256"/>
<source>Failed to create folder &apos;%1&apos;.</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6266"/>
<location filename="../mainwindow.cpp" line="6271"/>
<source>Save new project as</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6755"/>
<location filename="../mainwindow.cpp" line="6760"/>
<source>Folder %1 is not empty.</source>
<translation>%1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6756"/>
<location filename="../mainwindow.cpp" line="6761"/>
<source>Do you really want to delete it?</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7430"/>
<location filename="../mainwindow.cpp" line="7480"/>
<source>Change working folder</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7431"/>
<location filename="../mainwindow.cpp" line="7481"/>
<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="7434"/>
<location filename="../mainwindow.cpp" line="7484"/>
<source>Do you want to change working folder to &apos;%1&apos;?</source>
<translation>&apos;%1&apos;?</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8105"/>
<location filename="../mainwindow.cpp" line="8155"/>
<source>Can&apos;t Commit</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8106"/>
<location filename="../mainwindow.cpp" line="8156"/>
<source>Git needs user info to commit.</source>
<translation>Git需要用信息进行提交</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8374"/>
<location filename="../mainwindow.cpp" line="8424"/>
<source>Choose Input Data File</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8376"/>
<location filename="../mainwindow.cpp" line="8431"/>
<location filename="../mainwindow.cpp" line="8426"/>
<location filename="../mainwindow.cpp" line="8481"/>
<source>All files (*.*)</source>
<translation> (*.*)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8429"/>
<location filename="../mainwindow.cpp" line="8479"/>
<source>Choose Expected Output Data File</source>
<oldsource>Choose Expected Input Data File</oldsource>
<translation></translation>
@ -6044,59 +6054,59 @@ Are you really want to continue?</oldsource>
<message>
<location filename="../mainwindow.ui" line="2851"/>
<location filename="../mainwindow.ui" line="2854"/>
<location filename="../mainwindow.cpp" line="7486"/>
<location filename="../mainwindow.cpp" line="7536"/>
<source>Choose Working Folder</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7880"/>
<location filename="../mainwindow.cpp" line="7929"/>
<location filename="../mainwindow.cpp" line="7930"/>
<location filename="../mainwindow.cpp" line="7979"/>
<source>Header Exists</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7881"/>
<location filename="../mainwindow.cpp" line="7930"/>
<location filename="../mainwindow.cpp" line="7931"/>
<location filename="../mainwindow.cpp" line="7980"/>
<source>Header file &quot;%1&quot; already exists!</source>
<translation>&quot;%1&quot;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7935"/>
<location filename="../mainwindow.cpp" line="7985"/>
<source>Source Exists</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7936"/>
<location filename="../mainwindow.cpp" line="7986"/>
<source>Source file &quot;%1&quot; already exists!</source>
<translation>&quot;%1&quot;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8084"/>
<location filename="../mainwindow.cpp" line="8134"/>
<source>Can&apos;t commit!</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8085"/>
<location filename="../mainwindow.cpp" line="8135"/>
<source>The following files are in conflicting:</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8090"/>
<location filename="../mainwindow.cpp" line="8140"/>
<source>Commit Message</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8090"/>
<location filename="../mainwindow.cpp" line="8140"/>
<source>Commit Message:</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8093"/>
<location filename="../mainwindow.cpp" line="8143"/>
<source>Commit Failed</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8094"/>
<location filename="../mainwindow.cpp" line="8144"/>
<source>Commit message shouldn&apos;t be empty!</source>
<translation></translation>
</message>
@ -6105,22 +6115,22 @@ Are you really want to continue?</oldsource>
<translation type="vanished">Dev-C++ (*.dev)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6280"/>
<location filename="../mainwindow.cpp" line="6285"/>
<source>New project fail</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6281"/>
<location filename="../mainwindow.cpp" line="6286"/>
<source>Can&apos;t assign project template</source>
<translation>使</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6380"/>
<location filename="../mainwindow.cpp" line="6385"/>
<source>Remove file</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6381"/>
<location filename="../mainwindow.cpp" line="6386"/>
<source>Remove the file from disk?</source>
<translation></translation>
</message>
@ -6129,27 +6139,27 @@ Are you really want to continue?</oldsource>
<translation type="vanished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6680"/>
<location filename="../mainwindow.cpp" line="6685"/>
<source>New Project File Name</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6681"/>
<location filename="../mainwindow.cpp" line="6686"/>
<source>File Name:</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6689"/>
<location filename="../mainwindow.cpp" line="6694"/>
<source>File Already Exists!</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6690"/>
<location filename="../mainwindow.cpp" line="6695"/>
<source>File &apos;%1&apos; already exists!</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6334"/>
<location filename="../mainwindow.cpp" line="6339"/>
<source>Add to project</source>
<translation></translation>
</message>
@ -6164,75 +6174,75 @@ Are you really want to continue?</oldsource>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="6268"/>
<location filename="../mainwindow.cpp" line="6273"/>
<source>Red Panda C++ project file (*.dev)</source>
<translation>C++(*.dev)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7042"/>
<location filename="../mainwindow.cpp" line="7092"/>
<source>Rename Error</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7043"/>
<location filename="../mainwindow.cpp" line="7093"/>
<source>Symbol &apos;%1&apos; is defined in system header.</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7070"/>
<location filename="../mainwindow.cpp" line="7120"/>
<source>New Name</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7217"/>
<location filename="../mainwindow.cpp" line="7229"/>
<location filename="../mainwindow.cpp" line="7267"/>
<location filename="../mainwindow.cpp" line="7279"/>
<source>Replace Error</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7218"/>
<location filename="../mainwindow.cpp" line="7268"/>
<source>Can&apos;t open file &apos;%1&apos; for replace!</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7230"/>
<location filename="../mainwindow.cpp" line="7280"/>
<source>Contents has changed since last search!</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7281"/>
<location filename="../mainwindow.cpp" line="7331"/>
<source>Rich Text Format Files (*.rtf)</source>
<translation>RTF格式文件 (*.rtf)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7303"/>
<location filename="../mainwindow.cpp" line="7353"/>
<source>HTML Files (*.html)</source>
<translation>HTML文件 (*.html)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7508"/>
<location filename="../mainwindow.cpp" line="7558"/>
<source>The current problem set is not empty.</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7526"/>
<location filename="../mainwindow.cpp" line="7576"/>
<source>Problem %1</source>
<translation>%1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7556"/>
<location filename="../mainwindow.cpp" line="7584"/>
<location filename="../mainwindow.cpp" line="7606"/>
<location filename="../mainwindow.cpp" line="7634"/>
<source>Problem Set Files (*.pbs)</source>
<translation> (*.pbs)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7590"/>
<location filename="../mainwindow.cpp" line="7640"/>
<source>Load Error</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="3755"/>
<location filename="../mainwindow.cpp" line="7604"/>
<location filename="../mainwindow.cpp" line="7654"/>
<source>Problem Case %1</source>
<translation>%1</translation>
</message>
@ -6245,13 +6255,13 @@ Are you really want to continue?</oldsource>
<location filename="../mainwindow.cpp" line="1359"/>
<location filename="../mainwindow.cpp" line="2576"/>
<location filename="../mainwindow.cpp" line="3025"/>
<location filename="../mainwindow.cpp" line="4723"/>
<location filename="../mainwindow.cpp" line="4841"/>
<location filename="../mainwindow.cpp" line="5005"/>
<location filename="../mainwindow.cpp" line="5017"/>
<location filename="../mainwindow.cpp" line="5459"/>
<location filename="../mainwindow.cpp" line="5471"/>
<location filename="../mainwindow.cpp" line="8514"/>
<location filename="../mainwindow.cpp" line="4728"/>
<location filename="../mainwindow.cpp" line="4846"/>
<location filename="../mainwindow.cpp" line="5010"/>
<location filename="../mainwindow.cpp" line="5022"/>
<location filename="../mainwindow.cpp" line="5464"/>
<location filename="../mainwindow.cpp" line="5476"/>
<location filename="../mainwindow.cpp" line="8564"/>
<source>Error</source>
<translation></translation>
</message>
@ -6278,79 +6288,79 @@ Are you really want to continue?</oldsource>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="4717"/>
<location filename="../mainwindow.cpp" line="4722"/>
<source>File &apos;%1&apos; was changed.</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="4717"/>
<location filename="../mainwindow.cpp" line="4722"/>
<source>Reload its content from disk?</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="4731"/>
<location filename="../mainwindow.cpp" line="4736"/>
<source>File &apos;%1&apos; was removed.</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="4731"/>
<location filename="../mainwindow.cpp" line="4736"/>
<source>Keep it open?</source>
<translation>C++</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="4834"/>
<location filename="../mainwindow.cpp" line="4839"/>
<source>Open</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="5230"/>
<location filename="../mainwindow.cpp" line="5235"/>
<source>Compile Failed</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="5236"/>
<location filename="../mainwindow.cpp" line="5241"/>
<source>Run Failed</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="3056"/>
<location filename="../mainwindow.cpp" line="5488"/>
<location filename="../mainwindow.cpp" line="5502"/>
<location filename="../mainwindow.cpp" line="8497"/>
<location filename="../mainwindow.cpp" line="5493"/>
<location filename="../mainwindow.cpp" line="5507"/>
<location filename="../mainwindow.cpp" line="8547"/>
<source>Confirm Convertion</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="3057"/>
<location filename="../mainwindow.cpp" line="5489"/>
<location filename="../mainwindow.cpp" line="5503"/>
<location filename="../mainwindow.cpp" line="8498"/>
<location filename="../mainwindow.cpp" line="5494"/>
<location filename="../mainwindow.cpp" line="5508"/>
<location filename="../mainwindow.cpp" line="8548"/>
<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="5647"/>
<location filename="../mainwindow.cpp" line="5652"/>
<source>New Watch Expression</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="5648"/>
<location filename="../mainwindow.cpp" line="5653"/>
<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="5705"/>
<location filename="../mainwindow.cpp" line="5710"/>
<source>Parsing file %1 of %2: &quot;%3&quot;</source>
<translation>%1/%2&quot;%3&quot;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="5727"/>
<location filename="../mainwindow.cpp" line="5733"/>
<location filename="../mainwindow.cpp" line="5732"/>
<location filename="../mainwindow.cpp" line="5738"/>
<source>Done parsing %1 files in %2 seconds</source>
<translation>%1,%2</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="5730"/>
<location filename="../mainwindow.cpp" line="5735"/>
<source>(%1 files per second)</source>
<translation>(%1</translation>
</message>
@ -8677,14 +8687,14 @@ Are you really want to continue?</oldsource>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8522"/>
<location filename="../mainwindow.cpp" line="8572"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="166"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="246"/>
<source>Compiler Set</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8523"/>
<location filename="../mainwindow.cpp" line="8573"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="166"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="169"/>
<source>Compiler</source>
@ -8696,7 +8706,7 @@ Are you really want to continue?</oldsource>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7497"/>
<location filename="../mainwindow.cpp" line="7547"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="172"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="205"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="211"/>
@ -8772,15 +8782,15 @@ Are you really want to continue?</oldsource>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7498"/>
<location filename="../mainwindow.cpp" line="7827"/>
<location filename="../mainwindow.cpp" line="7548"/>
<location filename="../mainwindow.cpp" line="7877"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="205"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="208"/>
<source>Program Runner</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7826"/>
<location filename="../mainwindow.cpp" line="7876"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="208"/>
<source>Problem Set</source>
<translation></translation>

View File

@ -4557,6 +4557,14 @@
<source>Ctrl+Alt+Down</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Switch header/source</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Switch Header/Source</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>NewClassDialog</name>