forked from M-Labs/thermostat
Add about thermostat menu item
Meant to display hardware rev stuff, does nothing right now
This commit is contained in:
parent
9364c9b187
commit
1be874f6a7
|
@ -317,6 +317,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||||
|
|
||||||
self.menu.addAction(self.actionEnter_DFU_Mode)
|
self.menu.addAction(self.actionEnter_DFU_Mode)
|
||||||
self.menu.addAction(self.actionNetwork_Settings)
|
self.menu.addAction(self.actionNetwork_Settings)
|
||||||
|
self.menu.addAction(self.actionAbout_Thermostat)
|
||||||
|
|
||||||
self.thermostat_settings.setMenu(self.menu)
|
self.thermostat_settings.setMenu(self.menu)
|
||||||
|
|
||||||
|
|
|
@ -482,6 +482,17 @@
|
||||||
<enum>QAction::NoRole</enum>
|
<enum>QAction::NoRole</enum>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionAbout_Thermostat">
|
||||||
|
<property name="text">
|
||||||
|
<string>About Thermostat</string>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Show Thermostat hardware revision, and settings related to i</string>
|
||||||
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::NoRole</enum>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
|
@ -204,6 +204,9 @@ class Ui_MainWindow(object):
|
||||||
self.actionNetwork_Settings = QtGui.QAction(parent=MainWindow)
|
self.actionNetwork_Settings = QtGui.QAction(parent=MainWindow)
|
||||||
self.actionNetwork_Settings.setMenuRole(QtGui.QAction.MenuRole.NoRole)
|
self.actionNetwork_Settings.setMenuRole(QtGui.QAction.MenuRole.NoRole)
|
||||||
self.actionNetwork_Settings.setObjectName("actionNetwork_Settings")
|
self.actionNetwork_Settings.setObjectName("actionNetwork_Settings")
|
||||||
|
self.actionAbout_Thermostat = QtGui.QAction(parent=MainWindow)
|
||||||
|
self.actionAbout_Thermostat.setMenuRole(QtGui.QAction.MenuRole.NoRole)
|
||||||
|
self.actionAbout_Thermostat.setObjectName("actionAbout_Thermostat")
|
||||||
|
|
||||||
self.retranslateUi(MainWindow)
|
self.retranslateUi(MainWindow)
|
||||||
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
||||||
|
@ -228,6 +231,8 @@ class Ui_MainWindow(object):
|
||||||
self.actionEnter_DFU_Mode.setToolTip(_translate("MainWindow", "Reset thermostat and enter USB device firmware update (DFU) mode"))
|
self.actionEnter_DFU_Mode.setToolTip(_translate("MainWindow", "Reset thermostat and enter USB device firmware update (DFU) mode"))
|
||||||
self.actionNetwork_Settings.setText(_translate("MainWindow", "Network Settings"))
|
self.actionNetwork_Settings.setText(_translate("MainWindow", "Network Settings"))
|
||||||
self.actionNetwork_Settings.setToolTip(_translate("MainWindow", "Configure IPv4 address, netmask length, and optional default gateway"))
|
self.actionNetwork_Settings.setToolTip(_translate("MainWindow", "Configure IPv4 address, netmask length, and optional default gateway"))
|
||||||
|
self.actionAbout_Thermostat.setText(_translate("MainWindow", "About Thermostat"))
|
||||||
|
self.actionAbout_Thermostat.setToolTip(_translate("MainWindow", "Show Thermostat hardware revision, and settings related to i"))
|
||||||
from pglive.sources.live_plot_widget import LivePlotWidget
|
from pglive.sources.live_plot_widget import LivePlotWidget
|
||||||
from pyqtgraph.parametertree import ParameterTree
|
from pyqtgraph.parametertree import ParameterTree
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue