ui/MainWindow.ui

Sat, 11 Feb 2023 15:48:02 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 11 Feb 2023 15:48:02 +0100
changeset 493
520306773450
parent 480
94b3def5d778
permissions
-rw-r--r--

Monitor iSpindels: use global variables instead of repeated expensive MySQL calls. Use the yeast temperature ranges for the colors on the thermometer scale. Don't show SVG and ABV if the OG is not yet known. Turn statusfield red if offline. Extra mon_ispindles fields yeast_lo and yeast_hi. Need at least bmsd version 0.3.42. If a websocket message is received that cannot be parsed, show the whole received message.

<?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="actionImport_Brew"/>
    <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="actionYeastPacks"/>
    <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>
    <widget class="QMenu" name="menuReports">
     <property name="title">
      <string>Reports</string>
     </property>
     <property name="icon">
      <iconset resource="../resources/icons.qrc">
       <normaloff>:/icons/silk/printer.png</normaloff>:/icons/silk/printer.png</iconset>
     </property>
     <addaction name="actionRep_Production"/>
     <addaction name="actionRep_Efficiency"/>
     <addaction name="actionRep_Fermentation"/>
    </widget>
    <addaction name="actionProd_inprod"/>
    <addaction name="menuArchive"/>
    <addaction name="menuReports"/>
   </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>
  <action name="actionRep_Production">
   <property name="icon">
    <iconset resource="../resources/icons.qrc">
     <normaloff>:/icons/bms/beerstyles.png</normaloff>:/icons/bms/beerstyles.png</iconset>
   </property>
   <property name="text">
    <string>Total Production</string>
   </property>
  </action>
  <action name="actionRep_Efficiency">
   <property name="icon">
    <iconset resource="../resources/icons.qrc">
     <normaloff>:/icons/silk/report.png</normaloff>:/icons/silk/report.png</iconset>
   </property>
   <property name="text">
    <string>Efficiency</string>
   </property>
  </action>
  <action name="actionRep_Fermentation">
   <property name="icon">
    <iconset resource="../resources/icons.qrc">
     <normaloff>:/icons/bms/fermenter.png</normaloff>:/icons/bms/fermenter.png</iconset>
   </property>
   <property name="text">
    <string>Fermentation</string>
   </property>
  </action>
  <action name="actionImport_Brew">
   <property name="icon">
    <iconset resource="../resources/icons.qrc">
     <normaloff>:/icons/silk/chart_line_add.png</normaloff>:/icons/silk/chart_line_add.png</iconset>
   </property>
   <property name="text">
    <string>Import brew log</string>
   </property>
  </action>
  <action name="actionHelp">
   <property name="icon">
    <iconset resource="../resources/icons.qrc">
     <normaloff>:/icons/silk/book_open.png</normaloff>:/icons/silk/book_open.png</iconset>
   </property>
   <property name="text">
    <string>Manual</string>
   </property>
   <property name="shortcut">
    <string>F1</string>
   </property>
  </action>
  <action name="actionYeastPacks">
   <property name="icon">
    <iconset resource="../resources/icons.qrc">
     <normaloff>:/icons/bms/yeastvial.png</normaloff>:/icons/bms/yeastvial.png</iconset>
   </property>
   <property name="text">
    <string>Yeast Packages</string>
   </property>
  </action>
 </widget>
 <layoutdefault spacing="6" margin="11"/>
 <resources>
  <include location="../resources/icons.qrc"/>
 </resources>
 <connections/>
</ui>

mercurial