ui/MainWindow.ui

Fri, 29 Jul 2022 13:12:26 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 29 Jul 2022 13:12:26 +0200
changeset 373
b02aca4e926c
parent 310
bdaac24b86ed
child 386
2e30c9c20d22
permissions
-rw-r--r--

First load of changes for hops. In EditHop load the dropdown buttons from the global table. Use named query fields. Added database utilisation and bu_factor fields for hop extracts. Added edit fields for these new fields. Added post boil SG, utilisation and bu_factor parameters to the toIBU function. Added hops form parameter to the hopFlavourContribution and hopAromaContribution display bars. In the hops inventory list dispay volumes instead of weight for hop extracts. Modified the TinsethIBU function to use utilisation and bu_factor parameters. Add calculations for co2 and iso hop extracts, this is work in progress. The toIBU function makes use of the preSG and postSG values to use the correct SG to caall the TinsethIBU function. This results in a bit lower IBU values mostly affecting the late additions. Added use hop at bottling for iso hop extracts like Tetra hops using the formula from BarthHaas.

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>MainWindow</class>
 <widget class="QMainWindow" name="MainWindow">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>1280</width>
    <height>640</height>
   </rect>
  </property>
  <property name="sizePolicy">
   <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
    <horstretch>0</horstretch>
    <verstretch>0</verstretch>
   </sizepolicy>
  </property>
  <widget class="QWidget" name="centralWidget">
   <layout class="QVBoxLayout" name="verticalLayout_2">
    <item>
     <layout class="QVBoxLayout" name="verticalLayout">
      <item>
       <widget class="QStackedWidget" name="mainStack">
        <property name="focusPolicy">
         <enum>Qt::NoFocus</enum>
        </property>
       </widget>
      </item>
     </layout>
    </item>
   </layout>
  </widget>
  <widget class="QMenuBar" name="menuBar">
   <property name="geometry">
    <rect>
     <x>0</x>
     <y>0</y>
     <width>1280</width>
     <height>20</height>
    </rect>
   </property>
   <property name="autoFillBackground">
    <bool>false</bool>
   </property>
   <widget class="QMenu" name="menuFile">
    <property name="title">
     <string>File</string>
    </property>
    <addaction name="actionImport_XML"/>
    <addaction name="actionExit"/>
   </widget>
   <widget class="QMenu" name="menuHelp">
    <property name="title">
     <string>Help</string>
    </property>
    <addaction name="actionAbout"/>
   </widget>
   <widget class="QMenu" name="menuSettings">
    <property name="title">
     <string>Settings</string>
    </property>
    <addaction name="actionWater_profiles"/>
    <addaction name="actionMash_profiles"/>
    <addaction name="actionStyles_profiles"/>
    <addaction name="actionFerments_profiles"/>
    <addaction name="separator"/>
    <addaction name="actionSetup"/>
   </widget>
   <widget class="QMenu" name="menuInventory">
    <property name="title">
     <string>Inventory</string>
    </property>
    <addaction name="actionFermentables"/>
    <addaction name="actionHops"/>
    <addaction name="actionYeasts"/>
    <addaction name="actionMiscs"/>
    <addaction name="actionWaters"/>
    <addaction name="separator"/>
    <addaction name="actionSuppliers"/>
    <addaction name="actionEquipments"/>
    <addaction name="separator"/>
    <addaction name="actionSupplies_list"/>
    <addaction name="actionYeast_bank"/>
   </widget>
   <widget class="QMenu" name="menuMonitor">
    <property name="title">
     <string>Monitor</string>
    </property>
    <addaction name="separator"/>
    <addaction name="actionMon_Nodes"/>
    <addaction name="separator"/>
    <addaction name="actionMon_Fermenters"/>
    <addaction name="actionMon_CO2meters"/>
    <addaction name="actionMon_iSpindels"/>
   </widget>
   <widget class="QMenu" name="menuProducts">
    <property name="title">
     <string>Products</string>
    </property>
    <widget class="QMenu" name="menuArchive">
     <property name="title">
      <string>Archive</string>
     </property>
     <property name="icon">
      <iconset resource="../resources/icons.qrc">
       <normaloff>:/icons/silk/folder_database.png</normaloff>:/icons/silk/folder_database.png</iconset>
     </property>
     <addaction name="actionOn_Name"/>
     <addaction name="actionOn_Code"/>
     <addaction name="actionOn_Date"/>
     <addaction name="actionOn_Tree"/>
    </widget>
    <addaction name="actionProd_inprod"/>
    <addaction name="menuArchive"/>
   </widget>
   <widget class="QMenu" name="menuRecipes">
    <property name="title">
     <string>Recipes</string>
    </property>
    <addaction name="actionRecipes"/>
   </widget>
   <addaction name="menuFile"/>
   <addaction name="menuMonitor"/>
   <addaction name="menuProducts"/>
   <addaction name="menuRecipes"/>
   <addaction name="menuInventory"/>
   <addaction name="menuSettings"/>
   <addaction name="menuHelp"/>
  </widget>
  <widget class="QStatusBar" name="statusBar">
   <property name="sizeGripEnabled">
    <bool>false</bool>
   </property>
  </widget>
  <action name="actionExit">
   <property name="icon">
    <iconset>
     <normaloff>:icons/silk/cross.png</normaloff>:icons/silk/cross.png</iconset>
   </property>
   <property name="text">
    <string>Exit</string>
   </property>
  </action>
  <action name="actionAbout">
   <property name="icon">
    <iconset>
     <normaloff>:icons/silk/information.png</normaloff>:icons/silk/information.png</iconset>
   </property>
   <property name="text">
    <string>About</string>
   </property>
  </action>
  <action name="actionSuppliers">
   <property name="icon">
    <iconset>
     <normaloff>:icons/silk/user.png</normaloff>:icons/silk/user.png</iconset>
   </property>
   <property name="text">
    <string>Suppliers</string>
   </property>
  </action>
  <action name="actionFermentables">
   <property name="enabled">
    <bool>true</bool>
   </property>
   <property name="icon">
    <iconset>
     <normaloff>:icons/bms/graan.png</normaloff>:icons/bms/graan.png</iconset>
   </property>
   <property name="text">
    <string>Fermentables</string>
   </property>
  </action>
  <action name="actionHops">
   <property name="enabled">
    <bool>true</bool>
   </property>
   <property name="icon">
    <iconset>
     <normaloff>:icons/bms/hop.png</normaloff>:icons/bms/hop.png</iconset>
   </property>
   <property name="text">
    <string>Hops</string>
   </property>
  </action>
  <action name="actionYeasts">
   <property name="enabled">
    <bool>true</bool>
   </property>
   <property name="icon">
    <iconset>
     <normaloff>:icons/bms/erlenmeyer.png</normaloff>:icons/bms/erlenmeyer.png</iconset>
   </property>
   <property name="text">
    <string>Yeasts</string>
   </property>
  </action>
  <action name="actionMiscs">
   <property name="enabled">
    <bool>true</bool>
   </property>
   <property name="icon">
    <iconset>
     <normaloff>:icons/bms/peper.png</normaloff>:icons/bms/peper.png</iconset>
   </property>
   <property name="text">
    <string>Miscs</string>
   </property>
  </action>
  <action name="actionWaters">
   <property name="enabled">
    <bool>true</bool>
   </property>
   <property name="icon">
    <iconset>
     <normaloff>:icons/bms/water.png</normaloff>:icons/bms/water.png</iconset>
   </property>
   <property name="text">
    <string>Waters</string>
   </property>
  </action>
  <action name="actionEquipments">
   <property name="enabled">
    <bool>true</bool>
   </property>
   <property name="icon">
    <iconset>
     <normaloff>:icons/bms/mash.png</normaloff>:icons/bms/mash.png</iconset>
   </property>
   <property name="text">
    <string>Equipments</string>
   </property>
  </action>
  <action name="actionSupplies_list">
   <property name="enabled">
    <bool>true</bool>
   </property>
   <property name="icon">
    <iconset>
     <normaloff>:icons/silk/database.png</normaloff>:icons/silk/database.png</iconset>
   </property>
   <property name="text">
    <string>Supplies list</string>
   </property>
  </action>
  <action name="actionYeast_bank">
   <property name="enabled">
    <bool>true</bool>
   </property>
   <property name="icon">
    <iconset>
     <normaloff>:icons/bms/science.png</normaloff>:icons/bms/science.png</iconset>
   </property>
   <property name="text">
    <string>Yeast bank</string>
   </property>
  </action>
  <action name="actionWater_profiles">
   <property name="enabled">
    <bool>true</bool>
   </property>
   <property name="icon">
    <iconset>
     <normaloff>:icons/bms/water.png</normaloff>:icons/bms/water.png</iconset>
   </property>
   <property name="text">
    <string>Water profiles</string>
   </property>
  </action>
  <action name="actionMash_profiles">
   <property name="enabled">
    <bool>true</bool>
   </property>
   <property name="icon">
    <iconset>
     <normaloff>:icons/bms/mash.png</normaloff>:icons/bms/mash.png</iconset>
   </property>
   <property name="text">
    <string>Mash schedules</string>
   </property>
  </action>
  <action name="actionStyles_profiles">
   <property name="enabled">
    <bool>true</bool>
   </property>
   <property name="icon">
    <iconset>
     <normaloff>:icons/bms/beerstyles.png</normaloff>:icons/bms/beerstyles.png</iconset>
   </property>
   <property name="text">
    <string>Beer styles</string>
   </property>
  </action>
  <action name="actionFerments_profiles">
   <property name="enabled">
    <bool>true</bool>
   </property>
   <property name="icon">
    <iconset>
     <normaloff>:icons/bms/fermenter.png</normaloff>:icons/bms/fermenter.png</iconset>
   </property>
   <property name="text">
    <string>Fermentation schedules</string>
   </property>
  </action>
  <action name="actionSetup">
   <property name="icon">
    <iconset>
     <normaloff>:icons/silk/wrench.png</normaloff>:icons/silk/wrench.png</iconset>
   </property>
   <property name="text">
    <string>Global settings</string>
   </property>
  </action>
  <action name="actionRecipes">
   <property name="icon">
    <iconset resource="../resources/icons.qrc">
     <normaloff>:/icons/bms/beerstyles.png</normaloff>:/icons/bms/beerstyles.png</iconset>
   </property>
   <property name="text">
    <string>Recipes</string>
   </property>
  </action>
  <action name="actionImport_beerxml">
   <property name="icon">
    <iconset resource="../resources/icons.qrc">
     <normaloff>:/icons/silk/application_get.png</normaloff>:/icons/silk/application_get.png</iconset>
   </property>
   <property name="text">
    <string>Import beerxml</string>
   </property>
  </action>
  <action name="actionProd_inprod">
   <property name="icon">
    <iconset resource="../resources/icons.qrc">
     <normaloff>:/icons/bms/beerstyles.png</normaloff>:/icons/bms/beerstyles.png</iconset>
   </property>
   <property name="text">
    <string>In Production</string>
   </property>
  </action>
  <action name="actionArchive">
   <property name="icon">
    <iconset resource="../resources/icons.qrc">
     <normaloff>:/icons/silk/folder_database.png</normaloff>:/icons/silk/folder_database.png</iconset>
   </property>
   <property name="text">
    <string>Archive</string>
   </property>
  </action>
  <action name="actionOn_Name">
   <property name="icon">
    <iconset resource="../resources/icons.qrc">
     <normaloff>:/icons/bms/beerstyles.png</normaloff>:/icons/bms/beerstyles.png</iconset>
   </property>
   <property name="text">
    <string>On Name</string>
   </property>
  </action>
  <action name="actionOn_Code">
   <property name="icon">
    <iconset resource="../resources/icons.qrc">
     <normaloff>:/icons/bms/beerstyles.png</normaloff>:/icons/bms/beerstyles.png</iconset>
   </property>
   <property name="text">
    <string>On Code</string>
   </property>
  </action>
  <action name="actionOn_Date">
   <property name="icon">
    <iconset resource="../resources/icons.qrc">
     <normaloff>:/icons/bms/beerstyles.png</normaloff>:/icons/bms/beerstyles.png</iconset>
   </property>
   <property name="text">
    <string>On Date</string>
   </property>
  </action>
  <action name="actionOn_Tree">
   <property name="icon">
    <iconset resource="../resources/icons.qrc">
     <normaloff>:/icons/bms/beerstyles.png</normaloff>:/icons/bms/beerstyles.png</iconset>
   </property>
   <property name="text">
    <string>On Beerstyle</string>
   </property>
  </action>
  <action name="actionImport_XML">
   <property name="icon">
    <iconset resource="../resources/icons.qrc">
     <normaloff>:/icons/silk/application_get.png</normaloff>:/icons/silk/application_get.png</iconset>
   </property>
   <property name="text">
    <string>Import beerXML</string>
   </property>
  </action>
  <action name="actiondummy">
   <property name="text">
    <string>dummy</string>
   </property>
  </action>
  <action name="actionhh">
   <property name="text">
    <string>hh</string>
   </property>
  </action>
  <action name="actionhj">
   <property name="text">
    <string>hj</string>
   </property>
  </action>
  <action name="actionll">
   <property name="text">
    <string>ll</string>
   </property>
  </action>
  <action name="actionNodes">
   <property name="text">
    <string>Nodes</string>
   </property>
  </action>
  <action name="actionMon_Nodes">
   <property name="icon">
    <iconset resource="../resources/icons.qrc">
     <normaloff>:/icons/bms/network-idle.png</normaloff>:/icons/bms/network-idle.png</iconset>
   </property>
   <property name="text">
    <string>Nodes</string>
   </property>
  </action>
  <action name="actionMon_Fermenters">
   <property name="icon">
    <iconset resource="../resources/icons.qrc">
     <normaloff>:/icons/bms/fridge.png</normaloff>:/icons/bms/fridge.png</iconset>
   </property>
   <property name="text">
    <string>Fermenters</string>
   </property>
  </action>
  <action name="actionMon_CO2meters">
   <property name="icon">
    <iconset resource="../resources/icons.qrc">
     <normaloff>:/icons/bms/beerbottle.png</normaloff>:/icons/bms/beerbottle.png</iconset>
   </property>
   <property name="text">
    <string>Carbonation</string>
   </property>
  </action>
  <action name="actionMon_iSpindels">
   <property name="icon">
    <iconset resource="../resources/icons.qrc">
     <normaloff>:/icons/bms/fermenter.png</normaloff>:/icons/bms/fermenter.png</iconset>
   </property>
   <property name="text">
    <string>iSpindels</string>
   </property>
  </action>
 </widget>
 <layoutdefault spacing="6" margin="11"/>
 <resources>
  <include location="../resources/icons.qrc"/>
 </resources>
 <connections/>
</ui>

mercurial