Sun, 20 Aug 2023 11:08:05 +0200
New battery percentage formula for iSpindel.
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>EditWater</class> <widget class="QDialog" name="EditWater"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>1024</width> <height>560</height> </rect> </property> <property name="windowTitle"> <string>Dialog</string> </property> <layout class="QGridLayout" name="gridLayout"> <item row="0" column="0"> <widget class="QWidget" name="topWidget" native="true"> <widget class="QLabel" name="nameLabel"> <property name="geometry"> <rect> <x>30</x> <y>10</y> <width>121</width> <height>20</height> </rect> </property> <property name="text"> <string>Name:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="notesLabel"> <property name="geometry"> <rect> <x>30</x> <y>40</y> <width>121</width> <height>20</height> </rect> </property> <property name="text"> <string>Notes:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="inventoryLabel"> <property name="geometry"> <rect> <x>10</x> <y>370</y> <width>141</width> <height>20</height> </rect> </property> <property name="text"> <string>Inventory L:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="costLabel"> <property name="geometry"> <rect> <x>320</x> <y>370</y> <width>171</width> <height>20</height> </rect> </property> <property name="text"> <string>Cost per L:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLineEdit" name="nameEdit"> <property name="geometry"> <rect> <x>160</x> <y>10</y> <width>691</width> <height>23</height> </rect> </property> <property name="maxLength"> <number>128</number> </property> <property name="placeholderText"> <string>Name of the brewing water</string> </property> </widget> <widget class="QPlainTextEdit" name="notesEdit"> <property name="geometry"> <rect> <x>160</x> <y>40</y> <width>691</width> <height>81</height> </rect> </property> <property name="placeholderText"> <string>Notes or the source of this water.</string> </property> </widget> <widget class="QDoubleSpinBox" name="inventoryEdit"> <property name="geometry"> <rect> <x>160</x> <y>370</y> <width>121</width> <height>24</height> </rect> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="readOnly"> <bool>false</bool> </property> <property name="buttonSymbols"> <enum>QAbstractSpinBox::UpDownArrows</enum> </property> <property name="accelerated"> <bool>true</bool> </property> <property name="decimals"> <number>1</number> </property> <property name="maximum"> <double>100000.000000000000000</double> </property> <property name="singleStep"> <double>0.500000000000000</double> </property> <property name="stepType"> <enum>QAbstractSpinBox::DefaultStepType</enum> </property> </widget> <widget class="QDoubleSpinBox" name="costEdit"> <property name="geometry"> <rect> <x>510</x> <y>370</y> <width>121</width> <height>24</height> </rect> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="accelerated"> <bool>true</bool> </property> <property name="decimals"> <number>5</number> </property> <property name="maximum"> <double>1000.000000000000000</double> </property> <property name="singleStep"> <double>0.010000000000000</double> </property> <property name="stepType"> <enum>QAbstractSpinBox::DefaultStepType</enum> </property> </widget> <widget class="QPushButton" name="quitButton"> <property name="geometry"> <rect> <x>90</x> <y>510</y> <width>80</width> <height>23</height> </rect> </property> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string>Quit</string> </property> <property name="icon"> <iconset> <normaloff>:icons/silk/door_out.png</normaloff>:icons/silk/door_out.png</iconset> </property> </widget> <widget class="QPushButton" name="saveButton"> <property name="enabled"> <bool>false</bool> </property> <property name="geometry"> <rect> <x>850</x> <y>510</y> <width>80</width> <height>23</height> </rect> </property> <property name="text"> <string>Save</string> </property> <property name="icon"> <iconset> <normaloff>:icons/silk/disk.png</normaloff>:icons/silk/disk.png</iconset> </property> </widget> <widget class="QPushButton" name="deleteButton"> <property name="enabled"> <bool>false</bool> </property> <property name="geometry"> <rect> <x>596</x> <y>510</y> <width>80</width> <height>23</height> </rect> </property> <property name="text"> <string>Delete</string> </property> <property name="icon"> <iconset> <normaloff>:icons/silk/delete.png</normaloff>:icons/silk/delete.png</iconset> </property> </widget> <widget class="QLabel" name="caLabel"> <property name="geometry"> <rect> <x>10</x> <y>150</y> <width>141</width> <height>20</height> </rect> </property> <property name="text"> <string>Calcium (Ca) mg/L:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="mgLabel"> <property name="geometry"> <rect> <x>10</x> <y>180</y> <width>141</width> <height>20</height> </rect> </property> <property name="text"> <string>Magnesium (Mg) mg/L:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="naLabel"> <property name="geometry"> <rect> <x>10</x> <y>210</y> <width>141</width> <height>20</height> </rect> </property> <property name="text"> <string>Sodium (Na) mg/L:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="phLabel"> <property name="geometry"> <rect> <x>10</x> <y>320</y> <width>141</width> <height>20</height> </rect> </property> <property name="text"> <string>pH:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="unlimitedLabel"> <property name="geometry"> <rect> <x>10</x> <y>400</y> <width>141</width> <height>20</height> </rect> </property> <property name="text"> <string>Unlimited stock:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QCheckBox" name="unlimitedEdit"> <property name="geometry"> <rect> <x>160</x> <y>400</y> <width>85</width> <height>21</height> </rect> </property> <property name="text"> <string>Yes</string> </property> </widget> <widget class="QDoubleSpinBox" name="caEdit"> <property name="geometry"> <rect> <x>160</x> <y>150</y> <width>121</width> <height>24</height> </rect> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="accelerated"> <bool>true</bool> </property> <property name="decimals"> <number>1</number> </property> <property name="maximum"> <double>1000.000000000000000</double> </property> <property name="singleStep"> <double>0.100000000000000</double> </property> <property name="stepType"> <enum>QAbstractSpinBox::DefaultStepType</enum> </property> </widget> <widget class="QDoubleSpinBox" name="mgEdit"> <property name="geometry"> <rect> <x>160</x> <y>180</y> <width>121</width> <height>24</height> </rect> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="accelerated"> <bool>true</bool> </property> <property name="decimals"> <number>1</number> </property> <property name="maximum"> <double>1000.000000000000000</double> </property> <property name="singleStep"> <double>0.100000000000000</double> </property> <property name="stepType"> <enum>QAbstractSpinBox::DefaultStepType</enum> </property> </widget> <widget class="QDoubleSpinBox" name="naEdit"> <property name="geometry"> <rect> <x>160</x> <y>210</y> <width>121</width> <height>24</height> </rect> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="accelerated"> <bool>true</bool> </property> <property name="decimals"> <number>1</number> </property> <property name="maximum"> <double>1000.000000000000000</double> </property> <property name="singleStep"> <double>0.100000000000000</double> </property> <property name="stepType"> <enum>QAbstractSpinBox::DefaultStepType</enum> </property> </widget> <widget class="QDoubleSpinBox" name="phEdit"> <property name="geometry"> <rect> <x>160</x> <y>320</y> <width>121</width> <height>24</height> </rect> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="accelerated"> <bool>true</bool> </property> <property name="maximum"> <double>1000.000000000000000</double> </property> <property name="singleStep"> <double>0.010000000000000</double> </property> <property name="stepType"> <enum>QAbstractSpinBox::DefaultStepType</enum> </property> </widget> <widget class="QDoubleSpinBox" name="so4Edit"> <property name="geometry"> <rect> <x>510</x> <y>150</y> <width>121</width> <height>24</height> </rect> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="accelerated"> <bool>true</bool> </property> <property name="decimals"> <number>1</number> </property> <property name="maximum"> <double>1000.000000000000000</double> </property> <property name="singleStep"> <double>0.100000000000000</double> </property> <property name="stepType"> <enum>QAbstractSpinBox::DefaultStepType</enum> </property> </widget> <widget class="QDoubleSpinBox" name="clEdit"> <property name="geometry"> <rect> <x>510</x> <y>180</y> <width>121</width> <height>24</height> </rect> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="accelerated"> <bool>true</bool> </property> <property name="decimals"> <number>1</number> </property> <property name="maximum"> <double>1000.000000000000000</double> </property> <property name="singleStep"> <double>0.100000000000000</double> </property> <property name="stepType"> <enum>QAbstractSpinBox::DefaultStepType</enum> </property> </widget> <widget class="QDoubleSpinBox" name="hcoEdit"> <property name="geometry"> <rect> <x>850</x> <y>210</y> <width>111</width> <height>24</height> </rect> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="readOnly"> <bool>true</bool> </property> <property name="buttonSymbols"> <enum>QAbstractSpinBox::NoButtons</enum> </property> <property name="accelerated"> <bool>false</bool> </property> <property name="decimals"> <number>1</number> </property> <property name="maximum"> <double>1000.000000000000000</double> </property> <property name="stepType"> <enum>QAbstractSpinBox::DefaultStepType</enum> </property> </widget> <widget class="QDoubleSpinBox" name="alkalinityEdit"> <property name="geometry"> <rect> <x>510</x> <y>210</y> <width>121</width> <height>24</height> </rect> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="accelerated"> <bool>true</bool> </property> <property name="decimals"> <number>1</number> </property> <property name="maximum"> <double>1000.000000000000000</double> </property> <property name="singleStep"> <double>0.100000000000000</double> </property> <property name="stepType"> <enum>QAbstractSpinBox::DefaultStepType</enum> </property> </widget> <widget class="QDoubleSpinBox" name="balanceEdit"> <property name="geometry"> <rect> <x>510</x> <y>320</y> <width>111</width> <height>24</height> </rect> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="readOnly"> <bool>true</bool> </property> <property name="buttonSymbols"> <enum>QAbstractSpinBox::NoButtons</enum> </property> <property name="accelerated"> <bool>false</bool> </property> <property name="minimum"> <double>-100.000000000000000</double> </property> <property name="maximum"> <double>1000.000000000000000</double> </property> <property name="singleStep"> <double>0.010000000000000</double> </property> <property name="stepType"> <enum>QAbstractSpinBox::DefaultStepType</enum> </property> </widget> <widget class="QLabel" name="so4Label"> <property name="geometry"> <rect> <x>300</x> <y>150</y> <width>201</width> <height>20</height> </rect> </property> <property name="text"> <string>Sulfate (SO4) mg/L:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="clLabel"> <property name="geometry"> <rect> <x>300</x> <y>180</y> <width>201</width> <height>20</height> </rect> </property> <property name="text"> <string>Chloride (Cl) mg/L:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="hcoLabel"> <property name="geometry"> <rect> <x>650</x> <y>210</y> <width>191</width> <height>20</height> </rect> </property> <property name="text"> <string>Bicarbonate (HCO3) mg/L:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="alkalinityLabel"> <property name="geometry"> <rect> <x>300</x> <y>210</y> <width>201</width> <height>20</height> </rect> </property> <property name="text"> <string>Total Alkalinity (CaCO3) mg/L:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="balanceLabel"> <property name="geometry"> <rect> <x>320</x> <y>320</y> <width>181</width> <height>20</height> </rect> </property> <property name="text"> <string>Ion balance mEq/L:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="balanceIcon"> <property name="geometry"> <rect> <x>630</x> <y>320</y> <width>56</width> <height>20</height> </rect> </property> <property name="pixmap"> <pixmap resource="../../../../../../home/mbroek/MyProjects/bmsapp/resources/icons.qrc">:/icons/silk/tick.png</pixmap> </property> </widget> <widget class="QLabel" name="noLabel"> <property name="geometry"> <rect> <x>300</x> <y>240</y> <width>201</width> <height>20</height> </rect> </property> <property name="text"> <string>Nitrate (NO3) mg/L:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QDoubleSpinBox" name="noEdit"> <property name="geometry"> <rect> <x>510</x> <y>240</y> <width>121</width> <height>24</height> </rect> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="accelerated"> <bool>true</bool> </property> <property name="decimals"> <number>2</number> </property> <property name="maximum"> <double>1000.000000000000000</double> </property> <property name="singleStep"> <double>0.100000000000000</double> </property> <property name="stepType"> <enum>QAbstractSpinBox::DefaultStepType</enum> </property> </widget> <widget class="QLabel" name="co3Label"> <property name="geometry"> <rect> <x>650</x> <y>240</y> <width>191</width> <height>20</height> </rect> </property> <property name="text"> <string>Carbonate (CO3) mg/L:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QDoubleSpinBox" name="co3Edit"> <property name="geometry"> <rect> <x>850</x> <y>240</y> <width>111</width> <height>24</height> </rect> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="readOnly"> <bool>true</bool> </property> <property name="buttonSymbols"> <enum>QAbstractSpinBox::NoButtons</enum> </property> <property name="accelerated"> <bool>false</bool> </property> <property name="decimals"> <number>1</number> </property> <property name="maximum"> <double>1000.000000000000000</double> </property> <property name="singleStep"> <double>0.100000000000000</double> </property> <property name="stepType"> <enum>QAbstractSpinBox::DefaultStepType</enum> </property> </widget> <widget class="QLabel" name="hardnessLabel"> <property name="geometry"> <rect> <x>650</x> <y>150</y> <width>191</width> <height>20</height> </rect> </property> <property name="text"> <string>Hardness as CaCO3:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="raLabel"> <property name="geometry"> <rect> <x>650</x> <y>180</y> <width>191</width> <height>20</height> </rect> </property> <property name="text"> <string>Residual Alkalinity as CaCO3:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QDoubleSpinBox" name="hardnessEdit"> <property name="geometry"> <rect> <x>850</x> <y>150</y> <width>111</width> <height>24</height> </rect> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="readOnly"> <bool>true</bool> </property> <property name="buttonSymbols"> <enum>QAbstractSpinBox::NoButtons</enum> </property> <property name="accelerated"> <bool>false</bool> </property> <property name="decimals"> <number>1</number> </property> <property name="maximum"> <double>1000.000000000000000</double> </property> <property name="singleStep"> <double>0.100000000000000</double> </property> <property name="stepType"> <enum>QAbstractSpinBox::DefaultStepType</enum> </property> </widget> <widget class="QDoubleSpinBox" name="raEdit"> <property name="geometry"> <rect> <x>850</x> <y>180</y> <width>111</width> <height>24</height> </rect> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="readOnly"> <bool>true</bool> </property> <property name="buttonSymbols"> <enum>QAbstractSpinBox::NoButtons</enum> </property> <property name="accelerated"> <bool>false</bool> </property> <property name="decimals"> <number>0</number> </property> <property name="maximum"> <double>1000.000000000000000</double> </property> <property name="singleStep"> <double>0.100000000000000</double> </property> <property name="stepType"> <enum>QAbstractSpinBox::DefaultStepType</enum> </property> </widget> <widget class="QPushButton" name="cloneButton"> <property name="geometry"> <rect> <x>343</x> <y>510</y> <width>80</width> <height>23</height> </rect> </property> <property name="text"> <string>Clone</string> </property> <property name="icon"> <iconset resource="../../../../../../home/mbroek/MyProjects/bmsapp/resources/icons.qrc"> <normaloff>:/icons/silk/disk_multiple.png</normaloff>:/icons/silk/disk_multiple.png</iconset> </property> </widget> </widget> </item> </layout> </widget> <tabstops> <tabstop>nameEdit</tabstop> <tabstop>notesEdit</tabstop> <tabstop>caEdit</tabstop> <tabstop>mgEdit</tabstop> <tabstop>naEdit</tabstop> <tabstop>hcoEdit</tabstop> <tabstop>alkalinityEdit</tabstop> <tabstop>co3Edit</tabstop> <tabstop>so4Edit</tabstop> <tabstop>clEdit</tabstop> <tabstop>noEdit</tabstop> <tabstop>phEdit</tabstop> <tabstop>balanceEdit</tabstop> <tabstop>inventoryEdit</tabstop> <tabstop>costEdit</tabstop> <tabstop>unlimitedEdit</tabstop> <tabstop>quitButton</tabstop> <tabstop>deleteButton</tabstop> <tabstop>saveButton</tabstop> </tabstops> <resources> <include location="../../../../../../home/mbroek/MyProjects/bmsapp/resources/icons.qrc"/> </resources> <connections/> </ui>