Skip to content

Commit 5fdfbc6

Browse files
committed
Changes for MAC "Menu->Program" Keys
1 parent 363e5ed commit 5fdfbc6

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

propside/mainspinwindow.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7038,10 +7038,31 @@ void MainSpinWindow::setupFileMenu()
70387038
QMenu *programMenu = new QMenu(tr("&Program"), this);
70397039
menuBar()->addMenu(programMenu);
70407040

7041+
#ifdef CHANGE_ALL_MAC_PROGRAM_KEYS
7042+
#if Q_WS_MAC
7043+
programMenu->addAction(QIcon(":/images/RunConsole2.png"), tr("Run with Terminal"), this, SLOT(programDebug()), Qt::ALT+Qt::Key_F8);
7044+
programMenu->addAction(QIcon(":/images/build3.png"), tr("Build Project"), this, SLOT(programBuild()), Qt::ALT+Qt::Key_F9);
7045+
programMenu->addAction(QIcon(":/images/run.png"), tr("Load RAM && Run"), this, SLOT(programRun()), Qt::ALT+Qt::Key_F10);
7046+
programMenu->addAction(QIcon(":/images/burnee.png"), tr("Load EEPROM && Run"), this, SLOT(programBurnEE()), Qt::ALT+Qt::Key_F11);
7047+
#else
70417048
programMenu->addAction(QIcon(":/images/RunConsole2.png"), tr("Run with Terminal"), this, SLOT(programDebug()), Qt::Key_F8);
70427049
programMenu->addAction(QIcon(":/images/build3.png"), tr("Build Project"), this, SLOT(programBuild()), Qt::Key_F9);
70437050
programMenu->addAction(QIcon(":/images/run.png"), tr("Load RAM && Run"), this, SLOT(programRun()), Qt::Key_F10);
70447051
programMenu->addAction(QIcon(":/images/burnee.png"), tr("Load EEPROM && Run"), this, SLOT(programBurnEE()), Qt::Key_F11);
7052+
#endif
7053+
#else
7054+
/* Don't CHANGE_ALL_MAC_PROGRAM_KEYS */
7055+
programMenu->addAction(QIcon(":/images/RunConsole2.png"), tr("Run with Terminal"), this, SLOT(programDebug()), Qt::Key_F8);
7056+
programMenu->addAction(QIcon(":/images/build3.png"), tr("Build Project"), this, SLOT(programBuild()), Qt::Key_F9);
7057+
programMenu->addAction(QIcon(":/images/run.png"), tr("Load RAM && Run"), this, SLOT(programRun()), Qt::Key_F10);
7058+
#if Q_WS_MAC
7059+
programMenu->addAction(QIcon(":/images/burnee.png"), tr("Load EEPROM && Run"), this, SLOT(programBurnEE()), Qt::ALT+Qt::Key_F11);
7060+
#else
7061+
programMenu->addAction(QIcon(":/images/burnee.png"), tr("Load EEPROM && Run"), this, SLOT(programBurnEE()), Qt::Key_F11);
7062+
#endif
7063+
#endif
7064+
/* CHANGE_ALL_MAC_PROGRAM_KEYS */
7065+
70457066
programMenu->addAction(QIcon(":/images/Abort.png"), tr("Stop Build or Loader"), this, SLOT(programStopBuild()));
70467067
programMenu->addSeparator();
70477068
programMenu->addAction(QIcon(":/images/SaveToSD.png"), tr(FileToSDCard), this, SLOT(downloadSdCard()));

0 commit comments

Comments
 (0)