add dummy help menu button

This commit is contained in:
Axel Kohlmeyer
2023-07-27 11:53:23 -04:00
parent f170d8a56d
commit 034b7458bc
3 changed files with 36 additions and 6 deletions

View File

@ -69,6 +69,7 @@ LammpsGui::LammpsGui(QWidget *parent, const char *filename) :
connect(ui->actionRun_Buffer, &QAction::triggered, this, &LammpsGui::run_buffer);
connect(ui->actionStop_LAMMPS, &QAction::triggered, this, &LammpsGui::stop_run);
connect(ui->actionAbout_LAMMPS_GUI, &QAction::triggered, this, &LammpsGui::about);
connect(ui->action_Help, &QAction::triggered, this, &LammpsGui::help);
#if !QT_CONFIG(clipboard)
ui->actionCut->setEnabled(false);
@ -425,6 +426,12 @@ void LammpsGui::about()
msg.exec();
}
void LammpsGui::help()
{
QString helpmsg = "This is LAMMPS-GUI version " LAMMPS_GUI_VERSION;
QMessageBox::information(this, "LAMMPS-GUI Help", helpmsg);
}
void LammpsGui::start_lammps()
{
char *args[] = {(char *)"LAMMPS GUI", (char *)"-log", (char *)"none"};