more howto documentation updates
This commit is contained in:
@ -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
|
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.
|
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
|
Menu
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|||||||
BIN
doc/src/JPG/lammps-gui-chart.png
Normal file
BIN
doc/src/JPG/lammps-gui-chart.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 73 KiB |
BIN
doc/src/JPG/lammps-gui-image.png
Normal file
BIN
doc/src/JPG/lammps-gui-image.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 114 KiB |
BIN
doc/src/JPG/lammps-gui-log.png
Normal file
BIN
doc/src/JPG/lammps-gui-log.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 185 KiB |
BIN
doc/src/JPG/lammps-gui-popup-help.png
Normal file
BIN
doc/src/JPG/lammps-gui-popup-help.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 119 KiB |
BIN
doc/src/JPG/lammps-gui-running.png
Normal file
BIN
doc/src/JPG/lammps-gui-running.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 105 KiB |
@ -207,6 +207,11 @@ void CodeEditor::contextMenuEvent(QContextMenuEvent *event)
|
|||||||
connect(action2, &QAction::triggered, this, &CodeEditor::open_help);
|
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());
|
menu->exec(event->globalPos());
|
||||||
delete menu;
|
delete menu;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,6 +8,9 @@
|
|||||||
<qresource prefix="/">
|
<qresource prefix="/">
|
||||||
<file>system-help.png</file>
|
<file>system-help.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
|
<qresource prefix="/">
|
||||||
|
<file>help-browser.png</file>
|
||||||
|
</qresource>
|
||||||
<qresource prefix="/">
|
<qresource prefix="/">
|
||||||
<file>gtk-zoom-in.png</file>
|
<file>gtk-zoom-in.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
|
|||||||
Reference in New Issue
Block a user