ui/ImportXML.ui

Fri, 20 Jan 2023 16:44:08 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 20 Jan 2023 16:44:08 +0100
changeset 467
c5f6f3f1b714
parent 275
f472f9773782
permissions
-rw-r--r--

Added more buttons to the images tab. Load images from the database and display thumbnails added. Added support for jpeg files. Rename pictures in the database to .png. Added temporary images_list, images_count and images_current variables to the product record.

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>ImportXML</class>
 <widget class="QDialog" name="ImportXML">
  <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="fileLabel">
      <property name="geometry">
       <rect>
        <x>200</x>
        <y>20</y>
        <width>91</width>
        <height>20</height>
       </rect>
      </property>
      <property name="text">
       <string>XML file:</string>
      </property>
      <property name="alignment">
       <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
      </property>
     </widget>
     <widget class="QLineEdit" name="fileEdit">
      <property name="geometry">
       <rect>
        <x>310</x>
        <y>20</y>
        <width>661</width>
        <height>23</height>
       </rect>
      </property>
      <property name="maxLength">
       <number>128</number>
      </property>
     </widget>
     <widget class="QPushButton" name="quitButton">
      <property name="geometry">
       <rect>
        <x>600</x>
        <y>540</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="openButton">
      <property name="enabled">
       <bool>true</bool>
      </property>
      <property name="geometry">
       <rect>
        <x>1000</x>
        <y>20</y>
        <width>80</width>
        <height>23</height>
       </rect>
      </property>
      <property name="text">
       <string>Open</string>
      </property>
      <property name="icon">
       <iconset resource="../../../../../../home/mbroek/MyProjects/bmsapp/resources/icons.qrc">
        <normaloff>:/icons/silk/application_form_add.png</normaloff>:/icons/silk/application_form_add.png</iconset>
      </property>
     </widget>
     <widget class="QGroupBox" name="groupBox">
      <property name="geometry">
       <rect>
        <x>200</x>
        <y>80</y>
        <width>881</width>
        <height>431</height>
       </rect>
      </property>
      <property name="title">
       <string>Results</string>
      </property>
      <widget class="QPlainTextEdit" name="logEdit">
       <property name="geometry">
        <rect>
         <x>30</x>
         <y>90</y>
         <width>821</width>
         <height>311</height>
        </rect>
       </property>
       <property name="font">
        <font>
         <family>Courier 10 Pitch</family>
        </font>
       </property>
      </widget>
      <widget class="QProgressBar" name="progressBar">
       <property name="geometry">
        <rect>
         <x>30</x>
         <y>40</y>
         <width>821</width>
         <height>23</height>
        </rect>
       </property>
       <property name="value">
        <number>24</number>
       </property>
      </widget>
     </widget>
    </widget>
   </item>
  </layout>
 </widget>
 <tabstops>
  <tabstop>fileEdit</tabstop>
  <tabstop>quitButton</tabstop>
  <tabstop>openButton</tabstop>
 </tabstops>
 <resources>
  <include location="../../../../../../home/mbroek/MyProjects/bmsapp/resources/icons.qrc"/>
 </resources>
 <connections/>
</ui>

mercurial