mirror of
https://github.com/naruxde/revpicommander.git
synced 2025-11-08 16:43:53 +01:00
Change most button pressed event to clicked and add global shortcuts
Most events of the buttons was on pressed, which should not be used. Now the debugcontrol buttons has a repeating pressed event, if you hold the button, it will read the IOs every 200 ms. The shortcuts F4, F5, F6 to read/write IOs are now application wide.
This commit is contained in:
@@ -53,26 +53,42 @@
|
||||
<item>
|
||||
<widget class="QPushButton" name="btn_read_io">
|
||||
<property name="toolTip">
|
||||
<string>Read all IO values and discard local changes (F4)</string>
|
||||
<string>Read all IO values and discard local changes (F4)
|
||||
|
||||
Hold this button pressed and it will refresh the IOs every 200 ms.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Read &all IO values</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">F4</string>
|
||||
<property name="autoRepeat">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="autoRepeatDelay">
|
||||
<number>100</number>
|
||||
</property>
|
||||
<property name="autoRepeatInterval">
|
||||
<number>200</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="btn_refresh_io">
|
||||
<property name="toolTip">
|
||||
<string>Refresh all IO values which are locally not changed (F5)</string>
|
||||
<string>Refresh all IO values which are locally not changed (F5)
|
||||
|
||||
Hold this button pressed and it will refresh the IOs every 200 ms.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Refresh unchanged IOs</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">F5</string>
|
||||
<property name="autoRepeat">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="autoRepeatDelay">
|
||||
<number>100</number>
|
||||
</property>
|
||||
<property name="autoRepeatInterval">
|
||||
<number>200</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -84,9 +100,6 @@
|
||||
<property name="text">
|
||||
<string>&Write changed outputs</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">F6</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
||||
Reference in New Issue
Block a user