custom message box is more readable and wider

This commit is contained in:
Axel Kohlmeyer
2023-07-31 05:09:08 -04:00
parent 68454b3f73
commit 0a0184221c

View File

@ -619,16 +619,16 @@ void LammpsGui::about()
void LammpsGui::help()
{
QMessageBox::information(
this, "LAMMPS-GUI Quick Help",
"<div>This is LAMMPS-GUI version " LAMMPS_GUI_VERSION "</div><br><br>"
"Overview"
QMessageBox msg;
msg.setWindowTitle("LAMMPS-GUI Quick Help");
msg.setText("<div>This is LAMMPS-GUI version " LAMMPS_GUI_VERSION "</div>");
msg.setInformativeText("<b>Overview</b>"
"<div align=\"justify\">LAMMPS GUI is a graphical text editor that is "
"linked to the LAMMPS library and thus can run LAMMPS directly using "
"the contents of the text buffer as input through the LAMMPS C-library "
"interface. This makes it convenient to use for beginners and during "
"tutorials</div><br><br>"
"Features"
"<b>Features</b>"
"<div align=\"justify\">The main window of the LAMMPS GUI is a text "
"editor window with syntax highlighting. The output of a LAMMPS run is "
"captured and displayed in a log window. The log window is updated "
@ -654,6 +654,9 @@ void LammpsGui::help()
"Due to its nature as a graphical application, it is <b>not</b> "
"possible to use the LAMMPS GUI in parallel with MPI, but OpenMP "
"multi-threading is available.</div>");
msg.setIconPixmap(QPixmap(":/lammps-icon-128x128.png").scaled(64, 64));
msg.setStandardButtons(QMessageBox::Close);
msg.exec();
}
void LammpsGui::manual()