Skip to content

Commit

Permalink
add and update button tooltips in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
zocker-160 committed Dec 2, 2023
1 parent 7eb5743 commit b8f5411
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 8 deletions.
6 changes: 5 additions & 1 deletion src/gui/Ui_keypressWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,14 @@ def retranslateUi(self, KeyPressWidget):
self.shiftMod.setText(_translate("KeyPressWidget", "Shift"))
self.altMod.setText(_translate("KeyPressWidget", "Alt"))
self.altGrMod.setText(_translate("KeyPressWidget", "AltGr"))
self.metaMod.setToolTip(_translate("KeyPressWidget", "<html><head/><body><p>aka the Windows key</p></body></html>"))
self.metaMod.setText(_translate("KeyPressWidget", "Meta/Super"))
self.customMod.setText(_translate("KeyPressWidget", "Custom..."))
self.label_2.setText(_translate("KeyPressWidget", "Custom Modifier: "))
self.rawInputDescr.setText(_translate("KeyPressWidget", "raw:"))
self.rawInputLabel.setText(_translate("KeyPressWidget", "--"))
self.setNullKeyButton.setToolTip(_translate("KeyPressWidget", "set NULLKEY"))
self.setNullKeyButton.setToolTip(_translate("KeyPressWidget", "<html><head/><body><p>set NULL key</p></body></html>"))
self.moveUp.setToolTip(_translate("KeyPressWidget", "<html><head/><body><p>move up</p></body></html>"))
self.moveDown.setToolTip(_translate("KeyPressWidget", "<html><head/><body><p>move down</p></body></html>"))
self.delButton.setToolTip(_translate("KeyPressWidget", "<html><head/><body><p>remove entry</p></body></html>"))
from gui.customwidgets import CKeySequenceEdit
11 changes: 6 additions & 5 deletions src/gui/Ui_mainwindow.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '/home/bene/Programmierkram/GitHub/G910-gui/src/gui/mainwindow.ui'
# Form implementation generated from reading ui file 'gui/mainwindow.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
# Created by: PyQt5 UI code generator 5.15.6
#
# WARNING! All changes made in this file will be lost!
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets
Expand Down Expand Up @@ -259,7 +260,7 @@ def setupUi(self, MainWindow):
self.menubar.addAction(self.menuAbout.menuAction())

self.retranslateUi(MainWindow)
self.gameMode.clicked['bool'].connect(self.gameModeTime.setEnabled)
self.gameMode.clicked['bool'].connect(self.gameModeTime.setEnabled) # type: ignore
QtCore.QMetaObject.connectSlotsByName(MainWindow)

def retranslateUi(self, MainWindow):
Expand All @@ -278,6 +279,7 @@ def retranslateUi(self, MainWindow):
self.addKey.setText(_translate("MainWindow", "Add Key"))
self.addDelay.setText(_translate("MainWindow", "Add Delay"))
self.addCommand.setText(_translate("MainWindow", "Add Command"))
self.clearAllButton.setToolTip(_translate("MainWindow", "<html><head/><body><p>delete profile</p></body></html>"))
self.resetButton.setText(_translate("MainWindow", "Reset"))
self.disableNotifications.setToolTip(_translate("MainWindow", "disables notifications when switching memory profiles"))
self.disableNotifications.setText(_translate("MainWindow", "disable profile notification"))
Expand All @@ -298,4 +300,3 @@ def retranslateUi(self, MainWindow):
self.actionRestartService.setToolTip(_translate("MainWindow", "check status of the background service"))
self.actionOpenLogfile.setText(_translate("MainWindow", "Open log file"))
from gui.customwidgets import CListWidgetContent
from . import ressources_rc
14 changes: 13 additions & 1 deletion src/gui/keypressWidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;aka the Windows key&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Meta/Super</string>
</property>
Expand Down Expand Up @@ -334,7 +337,7 @@
<enum>Qt::NoFocus</enum>
</property>
<property name="toolTip">
<string>set NULLKEY</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;set NULL key&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string/>
Expand Down Expand Up @@ -371,6 +374,9 @@
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;move up&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="icon">
<iconset theme="go-up">
<normaloff>../../../../../.designer/backup</normaloff>../../../../../.designer/backup</iconset>
Expand All @@ -382,6 +388,9 @@
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;move down&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="icon">
<iconset theme="go-down">
<normaloff>../../../../../.designer/backup</normaloff>../../../../../.designer/backup</iconset>
Expand All @@ -400,6 +409,9 @@
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;remove entry&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="icon">
<iconset theme="list-remove">
<normaloff>../../../../../.designer/backup</normaloff>../../../../../.designer/backup</iconset>
Expand Down
6 changes: 5 additions & 1 deletion src/gui/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ QLabel#asd:pressed {
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;delete profile&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string/>
</property>
Expand Down Expand Up @@ -485,7 +488,8 @@ QLabel#asd:pressed {
</action>
<action name="actionRestartService">
<property name="icon">
<iconset theme="view-refresh"/>
<iconset theme="view-refresh">
<normaloff>.</normaloff>.</iconset>
</property>
<property name="text">
<string>Force restart driver</string>
Expand Down

0 comments on commit b8f5411

Please sign in to comment.