view Settings.ui @ 4:e30f00f760d3 default tip

Cleanup OSTC label and removed url The computer type will now show OSTC 4/5 instead of only 4. The url has been removed because it is no longer maintained. The ui header have been deleted because they are generated files shich should not be under version controll. Delete locally if you want to force an update of the dialog layout.
author Ideenmodellierer
date Sun, 30 Nov 2025 18:37:32 +0100
parents 0b3630a29ad8
children
line wrap: on
line source

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>Settings</class>
 <widget class="QDialog" name="Settings">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>341</width>
    <height>293</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>OSTC Companion settings</string>
  </property>
  <layout class="QGridLayout" name="gridLayout">
   <item row="10" column="0" colspan="3">
    <widget class="Line" name="line_3">
     <property name="orientation">
      <enum>Qt::Horizontal</enum>
     </property>
    </widget>
   </item>
   <item row="6" column="0" colspan="2">
    <widget class="QCheckBox" name="forceFirmwareUpdate">
     <property name="text">
      <string>Force Firmware update</string>
     </property>
    </widget>
   </item>
   <item row="2" column="1">
    <widget class="QComboBox" name="portMenu">
     <property name="editable">
      <bool>true</bool>
     </property>
    </widget>
   </item>
   <item row="11" column="0" colspan="3">
    <widget class="QCheckBox" name="autoSetDateTimeCB">
     <property name="toolTip">
      <string>If checked, any configuration upload will also setup date and time.</string>
     </property>
     <property name="text">
      <string>Auto setup of date &amp;&amp; time</string>
     </property>
    </widget>
   </item>
   <item row="8" column="0" colspan="2">
    <widget class="QCheckBox" name="forceFontlibUpdate">
     <property name="text">
      <string>Force FontLib update</string>
     </property>
    </widget>
   </item>
   <item row="4" column="0" colspan="3">
    <widget class="QLabel" name="noPortLabel">
     <property name="sizePolicy">
      <sizepolicy hsizetype="Ignored" vsizetype="Preferred">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
     </property>
     <property name="textFormat">
      <enum>Qt::RichText</enum>
     </property>
     <property name="alignment">
      <set>Qt::AlignCenter</set>
     </property>
     <property name="openExternalLinks">
      <bool>true</bool>
     </property>
    </widget>
   </item>
   <item row="0" column="1">
    <widget class="QComboBox" name="languageMenu">
     <property name="currentIndex">
      <number>0</number>
     </property>
     <property name="insertPolicy">
      <enum>QComboBox::NoInsert</enum>
     </property>
     <item>
      <property name="text">
       <string notr="true">Deutsch</string>
      </property>
      <property name="icon">
       <iconset>
        <normaloff>:/icons/Icons/german.png</normaloff>:/icons/Icons/german.png</iconset>
      </property>
     </item>
     <item>
      <property name="text">
       <string notr="true">English</string>
      </property>
      <property name="icon">
       <iconset>
        <normaloff>:/icons/Icons/english.png</normaloff>:/icons/Icons/english.png</iconset>
      </property>
     </item>
     <item>
      <property name="text">
       <string notr="true">Español</string>
      </property>
      <property name="icon">
       <iconset>
        <normaloff>:/icons/Icons/spanish.png</normaloff>:/icons/Icons/spanish.png</iconset>
      </property>
     </item>
     <item>
      <property name="text">
       <string notr="true">Français</string>
      </property>
      <property name="icon">
       <iconset>
        <normaloff>:/icons/Icons/french.png</normaloff>:/icons/Icons/french.png</iconset>
      </property>
     </item>
     <item>
      <property name="text">
       <string notr="true">Italiano</string>
      </property>
      <property name="icon">
       <iconset>
        <normaloff>:/icons/Icons/italian.png</normaloff>:/icons/Icons/italian.png</iconset>
      </property>
     </item>
     <item>
      <property name="text">
       <string notr="true">Русский</string>
      </property>
      <property name="icon">
       <iconset>
        <normaloff>:/icons/Icons/russian.png</normaloff>:/icons/Icons/russian.png</iconset>
      </property>
     </item>
    </widget>
   </item>
   <item row="2" column="2">
    <widget class="QToolButton" name="updatePorts">
     <property name="toolTip">
      <string>Update port list with currently connected USB or Bluetooth devices.</string>
     </property>
     <property name="text">
      <string notr="true">...</string>
     </property>
    </widget>
   </item>
   <item row="15" column="0" colspan="3">
    <layout class="QHBoxLayout" name="horizontalLayout">
     <property name="spacing">
      <number>0</number>
     </property>
     <item>
      <widget class="QPushButton" name="resetB">
       <property name="text">
        <string>Restore Defaults</string>
       </property>
      </widget>
     </item>
     <item>
      <spacer name="horizontalSpacer_2">
       <property name="orientation">
        <enum>Qt::Horizontal</enum>
       </property>
       <property name="sizeHint" stdset="0">
        <size>
         <width>40</width>
         <height>20</height>
        </size>
       </property>
      </spacer>
     </item>
     <item>
      <widget class="QPushButton" name="okB">
       <property name="text">
        <string>OK</string>
       </property>
       <property name="shortcut">
        <string>Return</string>
       </property>
       <property name="autoDefault">
        <bool>false</bool>
       </property>
       <property name="default">
        <bool>true</bool>
       </property>
      </widget>
     </item>
     <item>
      <widget class="QPushButton" name="cancelB">
       <property name="text">
        <string>Cancel</string>
       </property>
       <property name="shortcut">
        <string>Ctrl+W</string>
       </property>
      </widget>
     </item>
    </layout>
   </item>
   <item row="0" column="0">
    <widget class="QLabel" name="label">
     <property name="text">
      <string>Language:</string>
     </property>
     <property name="alignment">
      <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
     </property>
    </widget>
   </item>
   <item row="7" column="0" colspan="2">
    <widget class="QCheckBox" name="forceRTEUpdate">
     <property name="text">
      <string>Force RTE update</string>
     </property>
    </widget>
   </item>
   <item row="5" column="0" colspan="3">
    <widget class="Line" name="line_4">
     <property name="orientation">
      <enum>Qt::Horizontal</enum>
     </property>
    </widget>
   </item>
   <item row="2" column="0">
    <widget class="QLabel" name="label_2">
     <property name="sizePolicy">
      <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
     </property>
     <property name="text">
      <string>Communication port:</string>
     </property>
     <property name="alignment">
      <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
     </property>
    </widget>
   </item>
   <item row="0" column="2">
    <spacer name="horizontalSpacer">
     <property name="orientation">
      <enum>Qt::Horizontal</enum>
     </property>
     <property name="sizeType">
      <enum>QSizePolicy::Expanding</enum>
     </property>
     <property name="sizeHint" stdset="0">
      <size>
       <width>0</width>
       <height>20</height>
      </size>
     </property>
    </spacer>
   </item>
   <item row="14" column="0" colspan="3">
    <widget class="Line" name="line">
     <property name="orientation">
      <enum>Qt::Horizontal</enum>
     </property>
    </widget>
   </item>
   <item row="13" column="0" colspan="3">
    <widget class="QCheckBox" name="useFastMode">
     <property name="text">
      <string>Enable fast mode if supported</string>
     </property>
    </widget>
   </item>
  </layout>
 </widget>
 <resources/>
 <connections>
  <connection>
   <sender>okB</sender>
   <signal>clicked()</signal>
   <receiver>Settings</receiver>
   <slot>accept()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>212</x>
     <y>144</y>
    </hint>
    <hint type="destinationlabel">
     <x>373</x>
     <y>100</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>cancelB</sender>
   <signal>clicked()</signal>
   <receiver>Settings</receiver>
   <slot>reject()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>293</x>
     <y>144</y>
    </hint>
    <hint type="destinationlabel">
     <x>231</x>
     <y>98</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>languageMenu</sender>
   <signal>activated(int)</signal>
   <receiver>Settings</receiver>
   <slot>languageSlot(int)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>172</x>
     <y>25</y>
    </hint>
    <hint type="destinationlabel">
     <x>235</x>
     <y>26</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>updatePorts</sender>
   <signal>clicked()</signal>
   <receiver>Settings</receiver>
   <slot>updatePortsSlot()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>295</x>
     <y>52</y>
    </hint>
    <hint type="destinationlabel">
     <x>170</x>
     <y>97</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>resetB</sender>
   <signal>clicked()</signal>
   <receiver>Settings</receiver>
   <slot>resetSettingsSlot()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>54</x>
     <y>135</y>
    </hint>
    <hint type="destinationlabel">
     <x>170</x>
     <y>78</y>
    </hint>
   </hints>
  </connection>
 </connections>
 <slots>
  <slot>languageSlot(int)</slot>
  <slot>resetSettingsSlot()</slot>
  <slot>updatePortsSlot()</slot>
 </slots>
</ui>