include more icons link to Howto doc

This commit is contained in:
Axel Kohlmeyer
2023-08-13 17:37:30 -04:00
parent a07f02c135
commit f53991c107
11 changed files with 55 additions and 37 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

View File

@ -156,6 +156,7 @@ LammpsGui::LammpsGui(QWidget *parent, const char *filename) :
connect(ui->actionImage, &QAction::triggered, this, &LammpsGui::render_image);
connect(ui->actionAbout_LAMMPS_GUI, &QAction::triggered, this, &LammpsGui::about);
connect(ui->action_Help, &QAction::triggered, this, &LammpsGui::help);
connect(ui->actionLAMMPS_GUI_Howto, &QAction::triggered, this, &LammpsGui::howto);
connect(ui->actionLAMMPS_Manual, &QAction::triggered, this, &LammpsGui::manual);
connect(ui->actionPreferences, &QAction::triggered, this, &LammpsGui::preferences);
connect(ui->actionDefaults, &QAction::triggered, this, &LammpsGui::defaults);
@ -895,6 +896,11 @@ void LammpsGui::manual()
QDesktopServices::openUrl(QUrl("https://docs.lammps.org/"));
}
void LammpsGui::howto()
{
QDesktopServices::openUrl(QUrl("https://docs.lammps.org/Howto_lammps_gui.html"));
}
void LammpsGui::defaults()
{
QSettings settings;

View File

@ -85,6 +85,7 @@ private slots:
void about();
void help();
void manual();
void howto();
void logupdate();
void modified();
void preferences();

View File

@ -1,38 +1,20 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource prefix="/">
<RCC>
<qresource prefix="/">
<file>lammps-icon-128x128.png</file>
</qresource>
<qresource prefix="/">
<file>help_index.table</file>
</qresource>
<qresource prefix="/">
<file>system-help.png</file>
</qresource>
<qresource prefix="/">
<file>help-browser.png</file>
</qresource>
<qresource prefix="/">
<file>gtk-zoom-in.png</file>
</qresource>
<qresource prefix="/">
<file>gtk-zoom-out.png</file>
</qresource>
<qresource prefix="/">
<file>gtk-zoom-fit.png</file>
</qresource>
<qresource prefix="/">
<file>edit-delete.png</file>
</qresource>
<qresource prefix="/">
<file>object-rotate-right.png</file>
</qresource>
<qresource prefix="/">
<file>object-rotate-left.png</file>
</qresource>
<qresource prefix="/">
<file>gtk-go-up.png</file>
</qresource>
<qresource prefix="/">
<file>gtk-go-down.png</file>
</qresource>
<file>document-save-as.png</file>
<file>document-open-recent.png</file>
<file>document-open.png</file>
<file>document-new.png</file>
</qresource>
</RCC>

View File

@ -80,6 +80,7 @@
</property>
<addaction name="actionAbout_LAMMPS_GUI"/>
<addaction name="action_Help"/>
<addaction name="actionLAMMPS_GUI_Howto"/>
<addaction name="actionLAMMPS_Manual"/>
</widget>
<widget class="QMenu" name="menu_View">
@ -395,26 +396,42 @@
</property>
</action>
<action name="action_1">
<property name="icon">
<iconset theme=":/document-open-recent.png"/>
</property>
<property name="text">
<string>&amp;1.</string>
</property>
</action>
<action name="action_2">
<property name="icon">
<iconset theme=":/document-open-recent.png"/>
</property>
<property name="text">
<string>&amp;2.</string>
</property>
</action>
<action name="action_3">
<property name="icon">
<iconset theme=":/document-open-recent.png"/>
</property>
<property name="text">
<string>&amp;3.</string>
</property>
</action>
<action name="action_4">
<property name="icon">
<iconset theme=":/document-open-recent.png"/>
</property>
<property name="text">
<string>&amp;4.</string>
</property>
</action>
<action name="action_5">
<property name="icon">
<iconset>
<normaloff>:/document-open-recent.png</normaloff>:/document-open-recent.png</iconset>
</property>
<property name="text">
<string>&amp;5.</string>
</property>
@ -443,6 +460,18 @@
<string>Ctrl+Shift+V</string>
</property>
</action>
<action name="actionLAMMPS_GUI_Howto">
<property name="icon">
<iconset>
<normaloff>:/system-help.png</normaloff>:/system-help.png</iconset>
</property>
<property name="text">
<string>LAMMPS GUI Howto</string>
</property>
<property name="shortcut">
<string>Ctrl+Shift+G</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>