add menu hotkeys and shortcuts

This commit is contained in:
Axel Kohlmeyer
2023-07-25 12:19:10 -04:00
parent 5d1251df27
commit 5da462670f

View File

@ -36,12 +36,12 @@
<x>0</x>
<y>0</y>
<width>800</width>
<height>24</height>
<height>23</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
<property name="title">
<string>File</string>
<string>&amp;File</string>
</property>
<addaction name="actionNew"/>
<addaction name="actionOpen"/>
@ -53,7 +53,7 @@
</widget>
<widget class="QMenu" name="menuEdit">
<property name="title">
<string>Edit</string>
<string>&amp;Edit</string>
</property>
<addaction name="actionUndo"/>
<addaction name="actionRedo"/>
@ -64,7 +64,7 @@
</widget>
<widget class="QMenu" name="menuRun">
<property name="title">
<string>Run</string>
<string>&amp;Run</string>
</property>
<addaction name="actionClear"/>
<addaction name="actionRun_Buffer"/>
@ -77,67 +77,100 @@
<widget class="QStatusBar" name="statusbar"/>
<action name="actionNew">
<property name="text">
<string>New</string>
<string>&amp;New</string>
</property>
<property name="shortcut">
<string>Ctrl+N</string>
</property>
</action>
<action name="actionOpen">
<property name="text">
<string>Open</string>
<string>&amp;Open</string>
</property>
<property name="shortcut">
<string>Ctrl+O</string>
</property>
</action>
<action name="actionSave">
<property name="text">
<string>Save</string>
<string>&amp;Save</string>
</property>
<property name="shortcut">
<string>Ctrl+S</string>
</property>
</action>
<action name="actionSave_As">
<property name="text">
<string>Save As</string>
<string>Save &amp;As</string>
</property>
<property name="shortcut">
<string>Ctrl+Shift+S</string>
</property>
</action>
<action name="actionQuit">
<property name="text">
<string>Quit</string>
<string>&amp;Quit</string>
</property>
<property name="shortcut">
<string>Ctrl+Q</string>
</property>
</action>
<action name="actionCut">
<property name="text">
<string>Cut</string>
<string>C&amp;ut</string>
</property>
<property name="shortcut">
<string>Ctrl+X</string>
</property>
</action>
<action name="actionCopy">
<property name="text">
<string>Copy</string>
<string>&amp;Copy</string>
</property>
<property name="shortcut">
<string>Ctrl+C</string>
</property>
</action>
<action name="actionPaste">
<property name="text">
<string>Paste</string>
<string>&amp;Paste</string>
</property>
<property name="shortcut">
<string>Ctrl+V</string>
</property>
</action>
<action name="actionUndo">
<property name="text">
<string>Undo</string>
<string>&amp;Undo</string>
</property>
<property name="shortcut">
<string>Ctrl+Z</string>
</property>
</action>
<action name="actionRedo">
<property name="text">
<string>Redo</string>
<string>&amp;Redo</string>
</property>
<property name="shortcut">
<string>Ctrl+Shift+Z</string>
</property>
</action>
<action name="actionClear">
<property name="text">
<string>Clear</string>
<string>&amp;Clear</string>
</property>
</action>
<action name="actionRun_Buffer">
<property name="text">
<string>Execute Buffer</string>
<string>&amp;Execute Buffer</string>
</property>
<property name="shortcut">
<string>Ctrl+Return</string>
</property>
</action>
<action name="actionAbout_LAMMPS_GUI">
<property name="text">
<string>About</string>
<string>&amp;About</string>
</property>
</action>
</widget>