Sat, 19 Mar 2022 19:22:58 +0100
First step in loading the Inventory Suppliers database on the mainscreen. But, it is loaded at program start en not removed when done. Weird programming to get this working.
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>Setup</class> <widget class="QDialog" name="Setup"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>1280</width> <height>640</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="breweryLabel"> <property name="geometry"> <rect> <x>60</x> <y>20</y> <width>131</width> <height>20</height> </rect> </property> <property name="text"> <string>Brewery name:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLineEdit" name="breweryEdit"> <property name="geometry"> <rect> <x>212</x> <y>20</y> <width>941</width> <height>23</height> </rect> </property> <property name="toolTip"> <string>The name for this brewery.</string> </property> </widget> <widget class="Line" name="line"> <property name="geometry"> <rect> <x>0</x> <y>60</y> <width>1251</width> <height>20</height> </rect> </property> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> </widget> <widget class="QLabel" name="fwhLabel"> <property name="geometry"> <rect> <x>60</x> <y>120</y> <width>131</width> <height>20</height> </rect> </property> <property name="text"> <string>First Wort Hop factor:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="mashhopLabel"> <property name="geometry"> <rect> <x>60</x> <y>150</y> <width>131</width> <height>20</height> </rect> </property> <property name="text"> <string>Mash Hop factor:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="pelletLabel"> <property name="geometry"> <rect> <x>60</x> <y>180</y> <width>131</width> <height>20</height> </rect> </property> <property name="text"> <string>Pellet Hop factor:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="hopplugLabel"> <property name="geometry"> <rect> <x>60</x> <y>210</y> <width>131</width> <height>20</height> </rect> </property> <property name="text"> <string>Hop Plugs factor:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="wethopLabel"> <property name="geometry"> <rect> <x>60</x> <y>240</y> <width>131</width> <height>20</height> </rect> </property> <property name="text"> <string>Wet Hop factor:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="cryohopLabel"> <property name="geometry"> <rect> <x>60</x> <y>270</y> <width>131</width> <height>20</height> </rect> </property> <property name="text"> <string>Cryo HopĀ® factor:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QSpinBox" name="fwhEdit"> <property name="geometry"> <rect> <x>210</x> <y>120</y> <width>81</width> <height>24</height> </rect> </property> <property name="toolTip"> <string>The efficiency for First Wort Hopping.</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="accelerated"> <bool>true</bool> </property> <property name="suffix"> <string>%</string> </property> <property name="minimum"> <number>-50</number> </property> <property name="maximum"> <number>50</number> </property> </widget> <widget class="QSpinBox" name="mashhopEdit"> <property name="geometry"> <rect> <x>210</x> <y>150</y> <width>81</width> <height>24</height> </rect> </property> <property name="toolTip"> <string>The efficiency for Mash hopping.</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="accelerated"> <bool>true</bool> </property> <property name="suffix"> <string>%</string> </property> <property name="minimum"> <number>-50</number> </property> <property name="maximum"> <number>50</number> </property> </widget> <widget class="QSpinBox" name="pelletEdit"> <property name="geometry"> <rect> <x>210</x> <y>180</y> <width>81</width> <height>24</height> </rect> </property> <property name="toolTip"> <string>The efficiency for hop pellets.</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="accelerated"> <bool>true</bool> </property> <property name="suffix"> <string>%</string> </property> <property name="minimum"> <number>0</number> </property> <property name="maximum"> <number>20</number> </property> </widget> <widget class="QSpinBox" name="hopplugEdit"> <property name="geometry"> <rect> <x>210</x> <y>210</y> <width>81</width> <height>24</height> </rect> </property> <property name="toolTip"> <string>The efficiency for hop plugs.</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="accelerated"> <bool>true</bool> </property> <property name="suffix"> <string>%</string> </property> <property name="maximum"> <number>20</number> </property> </widget> <widget class="QSpinBox" name="wethopEdit"> <property name="geometry"> <rect> <x>210</x> <y>240</y> <width>81</width> <height>24</height> </rect> </property> <property name="toolTip"> <string>The efficiency for fresh hops.</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="accelerated"> <bool>true</bool> </property> <property name="suffix"> <string>%</string> </property> <property name="minimum"> <number>-98</number> </property> <property name="maximum"> <number>-20</number> </property> </widget> <widget class="QSpinBox" name="cryohopEdit"> <property name="geometry"> <rect> <x>210</x> <y>270</y> <width>81</width> <height>24</height> </rect> </property> <property name="toolTip"> <string>The efficiency for using Cryo HopĀ®.</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="accelerated"> <bool>true</bool> </property> <property name="suffix"> <string>%</string> </property> <property name="minimum"> <number>-20</number> </property> <property name="maximum"> <number>150</number> </property> </widget> <widget class="QLabel" name="grainLabel"> <property name="geometry"> <rect> <x>400</x> <y>120</y> <width>161</width> <height>20</height> </rect> </property> <property name="text"> <string>Grain Absorbtion:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="brixLabel"> <property name="geometry"> <rect> <x>400</x> <y>150</y> <width>161</width> <height>20</height> </rect> </property> <property name="text"> <string>Brix Correction factor:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="titleLabel"> <property name="geometry"> <rect> <x>5</x> <y>80</y> <width>1251</width> <height>20</height> </rect> </property> <property name="font"> <font> <family>DejaVu Sans</family> <pointsize>12</pointsize> <weight>75</weight> <bold>true</bold> </font> </property> <property name="text"> <string>Brew settings.</string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> </property> </widget> <widget class="QLabel" name="colorLabel"> <property name="geometry"> <rect> <x>800</x> <y>120</y> <width>121</width> <height>16</height> </rect> </property> <property name="text"> <string>Color Calculation:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="ibuLabel"> <property name="geometry"> <rect> <x>800</x> <y>150</y> <width>121</width> <height>16</height> </rect> </property> <property name="text"> <string>IBU Calculation:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="waterLabel"> <property name="geometry"> <rect> <x>800</x> <y>180</y> <width>121</width> <height>16</height> </rect> </property> <property name="text"> <string>Default Water:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QLabel" name="yeastLabel"> <property name="geometry"> <rect> <x>800</x> <y>210</y> <width>121</width> <height>16</height> </rect> </property> <property name="text"> <string>Private Yeast bank:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> <widget class="QDoubleSpinBox" name="grainEdit"> <property name="geometry"> <rect> <x>580</x> <y>120</y> <width>101</width> <height>24</height> </rect> </property> <property name="toolTip"> <string>Absorbtion with water by the grain (L/Kg)</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="accelerated"> <bool>true</bool> </property> <property name="suffix"> <string> L/Kg</string> </property> <property name="minimum"> <double>0.500000000000000</double> </property> <property name="maximum"> <double>1.100000000000000</double> </property> <property name="singleStep"> <double>0.010000000000000</double> </property> <property name="stepType"> <enum>QAbstractSpinBox::DefaultStepType</enum> </property> <property name="value"> <double>1.000000000000000</double> </property> </widget> <widget class="QDoubleSpinBox" name="brixEdit"> <property name="geometry"> <rect> <x>580</x> <y>150</y> <width>101</width> <height>24</height> </rect> </property> <property name="toolTip"> <string>Plato to Brix conversion factor.</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="accelerated"> <bool>true</bool> </property> <property name="minimum"> <double>1.000000000000000</double> </property> <property name="maximum"> <double>1.090000000000000</double> </property> <property name="singleStep"> <double>0.010000000000000</double> </property> <property name="stepType"> <enum>QAbstractSpinBox::DefaultStepType</enum> </property> <property name="value"> <double>1.000000000000000</double> </property> </widget> <widget class="QComboBox" name="colorEdit"> <property name="geometry"> <rect> <x>940</x> <y>120</y> <width>161</width> <height>23</height> </rect> </property> <property name="currentText"> <string/> </property> <property name="minimumContentsLength"> <number>4</number> </property> <property name="iconSize"> <size> <width>0</width> <height>0</height> </size> </property> <property name="placeholderText"> <string>Choose color</string> </property> </widget> <widget class="QComboBox" name="ibuEdit"> <property name="geometry"> <rect> <x>940</x> <y>150</y> <width>161</width> <height>23</height> </rect> </property> <property name="currentText"> <string/> </property> <property name="minimumContentsLength"> <number>4</number> </property> <property name="iconSize"> <size> <width>0</width> <height>0</height> </size> </property> <property name="placeholderText"> <string>Choose color</string> </property> </widget> <widget class="QComboBox" name="waterEdit"> <property name="geometry"> <rect> <x>940</x> <y>180</y> <width>211</width> <height>23</height> </rect> </property> <property name="currentText"> <string/> </property> <property name="minimumContentsLength"> <number>4</number> </property> <property name="iconSize"> <size> <width>0</width> <height>0</height> </size> </property> <property name="placeholderText"> <string>Choose color</string> </property> </widget> <widget class="QComboBox" name="yeastEdit"> <property name="geometry"> <rect> <x>940</x> <y>210</y> <width>211</width> <height>23</height> </rect> </property> <property name="currentText"> <string/> </property> <property name="minimumContentsLength"> <number>4</number> </property> <property name="iconSize"> <size> <width>0</width> <height>0</height> </size> </property> <property name="placeholderText"> <string>Choose color</string> </property> </widget> <widget class="QLabel" name="logoLabel"> <property name="geometry"> <rect> <x>940</x> <y>260</y> <width>211</width> <height>211</height> </rect> </property> <property name="text"> <string>Logo here</string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> </property> </widget> <widget class="QPushButton" name="quitButton"> <property name="geometry"> <rect> <x>50</x> <y>590</y> <width>80</width> <height>23</height> </rect> </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="geometry"> <rect> <x>1130</x> <y>590</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="openButton"> <property name="geometry"> <rect> <x>810</x> <y>260</y> <width>111</width> <height>23</height> </rect> </property> <property name="text"> <string>Load logo</string> </property> <property name="icon"> <iconset resource="../../../../../../home/mbroek/MyProjects/bmsapp/resources/icons.qrc"> <normaloff>:/icons/silk/folder_picture.png</normaloff>:/icons/silk/folder_picture.png</iconset> </property> </widget> </widget> </item> </layout> </widget> <resources> <include location="../../../../../../home/mbroek/MyProjects/bmsapp/resources/icons.qrc"/> </resources> <connections/> </ui>