more howto documentation updates

This commit is contained in:
Axel Kohlmeyer
2023-08-13 17:13:19 -04:00
parent d650bc61c5
commit a07f02c135
8 changed files with 33 additions and 0 deletions

View File

@ -44,6 +44,31 @@ when starting again. The name of the current file in the buffer is
shown in the window title and the text `*modified*` is added in case
the buffer has modifications that are not yet saved to a file.
Editor Functions
^^^^^^^^^^^^^^^^
The editor has the usual functionality that similar programs have: text
selection via mouse or with cursor moves while holding the Shift key,
Cut, Copy, Paste, Undo, Redo. All of these editing functions are available
via hotkeys. When trying to exit the editor with a modified buffer, a
dialog will pop up asking whether to cancel the quit, or don't save or
save the buffer's contents to a file.
Context Specific Help
^^^^^^^^^^^^^^^^^^^^^
.. image:: JPG/lammps-gui-popup-help.png
:align: center
:scale: 50%
A unique feature of the LAMMPS GUI is the option to look up the
documentation for the command in the current line. This can be achieved
by either clicking the right mouse button or by using the `Ctrl-?`
hotkey. When clicking the mouse there are additional entries in the
context menu that will open the corresponding documentation page in the
online LAMMPS documentation. When using the hotkey, the first of those
entries will be chosen directly.
Menu
----

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

View File

@ -207,6 +207,11 @@ void CodeEditor::contextMenuEvent(QContextMenuEvent *event)
connect(action2, &QAction::triggered, this, &CodeEditor::open_help);
}
}
auto action3 = menu->addAction(QString("LAMMPS Manual"));
action3->setIcon(QIcon(":/help-browser.png"));
action3->setData(QString());
connect(action3, &QAction::triggered, this, &CodeEditor::open_help);
menu->exec(event->globalPos());
delete menu;
}

View File

@ -8,6 +8,9 @@
<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>