- enhancement: add new tool button for "compiler options"

This commit is contained in:
Roy Qu 2022-05-06 15:48:17 +08:00
parent a3c8e1ed21
commit 7e6d900049
6 changed files with 26 additions and 0 deletions

View File

@ -6,6 +6,7 @@ Red Panda C++ Version 1.0.7
- fix: When generating project's makefile for clang, don't add -fexec-charset / -finput-charset command line options - fix: When generating project's makefile for clang, don't add -fexec-charset / -finput-charset command line options
- fix: index of the longest line not correctly updated when inputting with auto completion open - fix: index of the longest line not correctly updated when inputting with auto completion open
- enhancement: support UTF-8 BOM files - enhancement: support UTF-8 BOM files
- enhancement: add new tool button for "compiler options"
Red Panda C++ Version 1.0.6 Red Panda C++ Version 1.0.6
- fix: gcc compiler set name is not correct in Linux - fix: gcc compiler set name is not correct in Linux

View File

@ -154,6 +154,7 @@ void IconsManager::updateActionIcons(const QString& iconSet, int size)
mIconPixmaps.insert(ACTION_RUN_STEP_OVER_INSTRUCTION, createSVGIcon(iconFolder+"05Run-14StepOverInstruction.svg",size,size)); mIconPixmaps.insert(ACTION_RUN_STEP_OVER_INSTRUCTION, createSVGIcon(iconFolder+"05Run-14StepOverInstruction.svg",size,size));
mIconPixmaps.insert(ACTION_RUN_STEP_INTO_INSTRUCTION, createSVGIcon(iconFolder+"05Run-15StepIntoInstruction.svg",size,size)); mIconPixmaps.insert(ACTION_RUN_STEP_INTO_INSTRUCTION, createSVGIcon(iconFolder+"05Run-15StepIntoInstruction.svg",size,size));
mIconPixmaps.insert(ACTION_RUN_INTERRUPT, createSVGIcon(iconFolder+"05Run-16Interrupt.svg",size,size)); mIconPixmaps.insert(ACTION_RUN_INTERRUPT, createSVGIcon(iconFolder+"05Run-16Interrupt.svg",size,size));
mIconPixmaps.insert(ACTION_RUN_COMPILE_OPTIONS, createSVGIcon(iconFolder+"05Run-17CompilerOptions.svg",size,size));
mIconPixmaps.insert(ACTION_VIEW_MAXIMUM, createSVGIcon(iconFolder+"06View-01Maximum.svg",size,size)); mIconPixmaps.insert(ACTION_VIEW_MAXIMUM, createSVGIcon(iconFolder+"06View-01Maximum.svg",size,size));
mIconPixmaps.insert(ACTION_VIEW_CLASSBROWSER, createSVGIcon(iconFolder+"06View-02ClassBrowser.svg",size,size)); mIconPixmaps.insert(ACTION_VIEW_CLASSBROWSER, createSVGIcon(iconFolder+"06View-02ClassBrowser.svg",size,size));

View File

@ -171,6 +171,7 @@ public:
ACTION_RUN_STEP_OVER_INSTRUCTION, ACTION_RUN_STEP_OVER_INSTRUCTION,
ACTION_RUN_STEP_INTO_INSTRUCTION, ACTION_RUN_STEP_INTO_INSTRUCTION,
ACTION_RUN_INTERRUPT, ACTION_RUN_INTERRUPT,
ACTION_RUN_COMPILE_OPTIONS,
ACTION_VIEW_MAXIMUM, ACTION_VIEW_MAXIMUM,
ACTION_VIEW_CLASSBROWSER, ACTION_VIEW_CLASSBROWSER,

View File

@ -1338,6 +1338,7 @@ void MainWindow::updateActionIcons()
ui->actionAdd_Watch->setIcon(pIconsManager->getIcon(IconsManager::ACTION_RUN_ADD_WATCH)); ui->actionAdd_Watch->setIcon(pIconsManager->getIcon(IconsManager::ACTION_RUN_ADD_WATCH));
ui->actionRemove_Watch->setIcon(pIconsManager->getIcon(IconsManager::ACTION_RUN_REMOVE_WATCH)); ui->actionRemove_Watch->setIcon(pIconsManager->getIcon(IconsManager::ACTION_RUN_REMOVE_WATCH));
ui->actionRemove_All_Watches->setIcon(pIconsManager->getIcon(IconsManager::ACTION_MISC_CLEAN)); ui->actionRemove_All_Watches->setIcon(pIconsManager->getIcon(IconsManager::ACTION_MISC_CLEAN));
ui->actionCompiler_Options->setIcon(pIconsManager->getIcon(IconsManager::ACTION_RUN_COMPILE_OPTIONS));
ui->actionOptions->setIcon(pIconsManager->getIcon(IconsManager::ACTION_MISC_GEAR)); ui->actionOptions->setIcon(pIconsManager->getIcon(IconsManager::ACTION_MISC_GEAR));
@ -7692,3 +7693,12 @@ void MainWindow::on_actionEncode_in_UTF_8_BOM_triggered()
} }
} }
void MainWindow::on_actionCompiler_Options_triggered()
{
changeOptions(
SettingsDialog::tr("Compiler Set"),
SettingsDialog::tr("Compiler")
);
}

View File

@ -672,6 +672,8 @@ private slots:
void on_actionEncode_in_UTF_8_BOM_triggered(); void on_actionEncode_in_UTF_8_BOM_triggered();
void on_actionCompiler_Options_triggered();
private: private:
Ui::MainWindow *ui; Ui::MainWindow *ui;
EditorList *mEditorList; EditorList *mEditorList;

View File

@ -1602,6 +1602,7 @@
<addaction name="actionRebuild"/> <addaction name="actionRebuild"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="actionRun_Parameters"/> <addaction name="actionRun_Parameters"/>
<addaction name="actionCompiler_Options"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="actionDebug"/> <addaction name="actionDebug"/>
<addaction name="actionInterrupt"/> <addaction name="actionInterrupt"/>
@ -1834,6 +1835,7 @@
<addaction name="actionRebuild"/> <addaction name="actionRebuild"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="actionRun_Parameters"/> <addaction name="actionRun_Parameters"/>
<addaction name="actionCompiler_Options"/>
</widget> </widget>
<widget class="QToolBar" name="toolbarDebug"> <widget class="QToolBar" name="toolbarDebug">
<property name="windowTitle"> <property name="windowTitle">
@ -3052,6 +3054,15 @@
<string>Encode in UTF-8 BOM</string> <string>Encode in UTF-8 BOM</string>
</property> </property>
</action> </action>
<action name="actionCompiler_Options">
<property name="icon">
<iconset resource="icons.qrc">
<normaloff>:/icons/images/newlook24/084-tools.png</normaloff>:/icons/images/newlook24/084-tools.png</iconset>
</property>
<property name="text">
<string>Compiler Options...</string>
</property>
</action>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget> <customwidget>