<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>Preview_Window</class>
 <widget class="QMainWindow" name="Preview_Window">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>875</width>
    <height>775</height>
   </rect>
  </property>
  <property name="minimumSize">
   <size>
    <width>800</width>
    <height>700</height>
   </size>
  </property>
  <property name="windowTitle">
   <string>OptimaLab35 - Preview</string>
  </property>
  <widget class="QWidget" name="centralwidget">
   <layout class="QHBoxLayout" name="horizontalLayout">
    <item>
     <widget class="QLabel" name="QLabel">
      <property name="minimumSize">
       <size>
        <width>628</width>
        <height>628</height>
       </size>
      </property>
      <property name="frameShape">
       <enum>QFrame::Shape::Box</enum>
      </property>
      <property name="text">
       <string/>
      </property>
      <property name="scaledContents">
       <bool>false</bool>
      </property>
     </widget>
    </item>
    <item>
     <widget class="QWidget" name="widget" native="true">
      <property name="minimumSize">
       <size>
        <width>160</width>
        <height>628</height>
       </size>
      </property>
      <property name="maximumSize">
       <size>
        <width>180</width>
        <height>16777215</height>
       </size>
      </property>
      <layout class="QVBoxLayout" name="verticalLayout_4">
       <item>
        <widget class="QGroupBox" name="groupBox_3">
         <property name="title">
          <string>File</string>
         </property>
         <layout class="QVBoxLayout" name="verticalLayout_3">
          <item>
           <widget class="QLineEdit" name="image_path_lineEdit">
            <property name="enabled">
             <bool>false</bool>
            </property>
            <property name="toolTip">
             <string>Enter the path to the image file or use the 'Select Image' button to browse.</string>
            </property>
            <property name="placeholderText">
             <string>Image Path</string>
            </property>
           </widget>
          </item>
          <item>
           <widget class="QPushButton" name="load_Button">
            <property name="text">
             <string>Select image</string>
            </property>
           </widget>
          </item>
         </layout>
        </widget>
       </item>
       <item>
        <widget class="QGroupBox" name="groupBox_2">
         <property name="title">
          <string>Brightness</string>
         </property>
         <layout class="QVBoxLayout" name="verticalLayout">
          <item>
           <widget class="QSpinBox" name="brightness_spinBox">
            <property name="minimum">
             <number>-100</number>
            </property>
            <property name="maximum">
             <number>100</number>
            </property>
           </widget>
          </item>
          <item>
           <widget class="QSlider" name="brightness_Slider">
            <property name="minimum">
             <number>-100</number>
            </property>
            <property name="maximum">
             <number>100</number>
            </property>
            <property name="orientation">
             <enum>Qt::Orientation::Horizontal</enum>
            </property>
            <property name="tickPosition">
             <enum>QSlider::TickPosition::TicksBothSides</enum>
            </property>
           </widget>
          </item>
          <item>
           <widget class="QPushButton" name="reset_brightness_Button">
            <property name="toolTip">
             <string>Click to reset the brightness to its default value (0).</string>
            </property>
            <property name="text">
             <string>Reset</string>
            </property>
           </widget>
          </item>
         </layout>
        </widget>
       </item>
       <item>
        <widget class="QGroupBox" name="groupBox">
         <property name="title">
          <string>Contrast</string>
         </property>
         <layout class="QVBoxLayout" name="verticalLayout_2">
          <item>
           <widget class="QSpinBox" name="contrast_spinBox">
            <property name="minimum">
             <number>-100</number>
            </property>
            <property name="maximum">
             <number>100</number>
            </property>
           </widget>
          </item>
          <item>
           <widget class="QSlider" name="contrast_Slider">
            <property name="minimum">
             <number>-100</number>
            </property>
            <property name="maximum">
             <number>100</number>
            </property>
            <property name="orientation">
             <enum>Qt::Orientation::Horizontal</enum>
            </property>
            <property name="tickPosition">
             <enum>QSlider::TickPosition::TicksBothSides</enum>
            </property>
           </widget>
          </item>
          <item>
           <widget class="QPushButton" name="reset_contrast_Button">
            <property name="toolTip">
             <string>Click to reset the contrast to its default value (0).</string>
            </property>
            <property name="text">
             <string>Reset</string>
            </property>
           </widget>
          </item>
         </layout>
        </widget>
       </item>
       <item>
        <widget class="QGroupBox" name="groupBox_5">
         <property name="title">
          <string>Grayscale</string>
         </property>
         <layout class="QGridLayout" name="gridLayout">
          <item row="0" column="0">
           <widget class="QCheckBox" name="grayscale_checkBox">
            <property name="toolTip">
             <string>Convert the image to grayscale (black and white).</string>
            </property>
            <property name="text">
             <string>Black and White</string>
            </property>
           </widget>
          </item>
         </layout>
        </widget>
       </item>
       <item>
        <spacer name="verticalSpacer">
         <property name="orientation">
          <enum>Qt::Orientation::Vertical</enum>
         </property>
         <property name="sizeHint" stdset="0">
          <size>
           <width>20</width>
           <height>219</height>
          </size>
         </property>
        </spacer>
       </item>
       <item>
        <widget class="QLabel" name="label">
         <property name="layoutDirection">
          <enum>Qt::LayoutDirection::LeftToRight</enum>
         </property>
         <property name="autoFillBackground">
          <bool>false</bool>
         </property>
         <property name="text">
          <string>Hold button to show original image</string>
         </property>
         <property name="alignment">
          <set>Qt::AlignmentFlag::AlignCenter</set>
         </property>
         <property name="wordWrap">
          <bool>true</bool>
         </property>
        </widget>
       </item>
       <item>
        <widget class="QPushButton" name="show_OG_Button">
         <property name="text">
          <string>Show</string>
         </property>
        </widget>
       </item>
       <item>
        <widget class="QGroupBox" name="groupBox_4">
         <property name="maximumSize">
          <size>
           <width>170</width>
           <height>16777215</height>
          </size>
         </property>
         <property name="title">
          <string>Behavior</string>
         </property>
         <layout class="QGridLayout" name="gridLayout_2">
          <item row="3" column="0" colspan="2">
           <widget class="QCheckBox" name="checkBox">
            <property name="toolTip">
             <string>Enable to copy adjustments to the main window upon closing</string>
            </property>
            <property name="layoutDirection">
             <enum>Qt::LayoutDirection::LeftToRight</enum>
            </property>
            <property name="text">
             <string>Copy Values</string>
            </property>
            <property name="checked">
             <bool>true</bool>
            </property>
           </widget>
          </item>
          <item row="4" column="0" colspan="2">
           <widget class="QPushButton" name="close_Button">
            <property name="toolTip">
             <string/>
            </property>
            <property name="text">
             <string>Close</string>
            </property>
           </widget>
          </item>
          <item row="0" column="0">
           <widget class="QCheckBox" name="live_update">
            <property name="font">
             <font>
              <pointsize>11</pointsize>
             </font>
            </property>
            <property name="toolTip">
             <string>Live update applies changes instantly. If the app becomes unresponsive or lags, disable this option.</string>
            </property>
            <property name="text">
             <string>Live refresh</string>
            </property>
            <property name="checked">
             <bool>true</bool>
            </property>
           </widget>
          </item>
          <item row="1" column="0" colspan="2">
           <widget class="QSlider" name="scale_Slider">
            <property name="toolTip">
             <string>Sets the resize value for the preview image. A high value may cause the application to freeze.</string>
            </property>
            <property name="minimum">
             <number>10</number>
            </property>
            <property name="maximum">
             <number>100</number>
            </property>
            <property name="pageStep">
             <number>10</number>
            </property>
            <property name="value">
             <number>50</number>
            </property>
            <property name="orientation">
             <enum>Qt::Orientation::Horizontal</enum>
            </property>
            <property name="tickPosition">
             <enum>QSlider::TickPosition::TicksBothSides</enum>
            </property>
           </widget>
          </item>
          <item row="2" column="0" colspan="2">
           <widget class="QPushButton" name="update_Button">
            <property name="enabled">
             <bool>false</bool>
            </property>
            <property name="toolTip">
             <string>Apply Changes to Preview</string>
            </property>
            <property name="autoFillBackground">
             <bool>false</bool>
            </property>
            <property name="text">
             <string>Refresh image</string>
            </property>
           </widget>
          </item>
          <item row="0" column="1">
           <widget class="QLabel" name="scale_label">
            <property name="font">
             <font>
              <pointsize>9</pointsize>
             </font>
            </property>
            <property name="toolTip">
             <string>Sets the resize value for the preview image. A high value may cause the application to freeze.</string>
            </property>
            <property name="text">
             <string>50</string>
            </property>
           </widget>
          </item>
         </layout>
        </widget>
       </item>
      </layout>
     </widget>
    </item>
   </layout>
  </widget>
  <widget class="QMenuBar" name="menubar">
   <property name="geometry">
    <rect>
     <x>0</x>
     <y>0</y>
     <width>875</width>
     <height>19</height>
    </rect>
   </property>
  </widget>
 </widget>
 <resources/>
 <connections>
  <connection>
   <sender>brightness_Slider</sender>
   <signal>valueChanged(int)</signal>
   <receiver>brightness_spinBox</receiver>
   <slot>setValue(int)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>720</x>
     <y>311</y>
    </hint>
    <hint type="destinationlabel">
     <x>706</x>
     <y>282</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>brightness_spinBox</sender>
   <signal>valueChanged(int)</signal>
   <receiver>brightness_Slider</receiver>
   <slot>setValue(int)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>706</x>
     <y>282</y>
    </hint>
    <hint type="destinationlabel">
     <x>720</x>
     <y>311</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>contrast_Slider</sender>
   <signal>valueChanged(int)</signal>
   <receiver>contrast_spinBox</receiver>
   <slot>setValue(int)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>720</x>
     <y>454</y>
    </hint>
    <hint type="destinationlabel">
     <x>699</x>
     <y>425</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>contrast_spinBox</sender>
   <signal>valueChanged(int)</signal>
   <receiver>contrast_Slider</receiver>
   <slot>setValue(int)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>699</x>
     <y>425</y>
    </hint>
    <hint type="destinationlabel">
     <x>720</x>
     <y>454</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>live_update</sender>
   <signal>toggled(bool)</signal>
   <receiver>update_Button</receiver>
   <slot>setDisabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>785</x>
     <y>624</y>
    </hint>
    <hint type="destinationlabel">
     <x>785</x>
     <y>659</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>scale_Slider</sender>
   <signal>valueChanged(int)</signal>
   <receiver>scale_label</receiver>
   <slot>setNum(int)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>783</x>
     <y>644</y>
    </hint>
    <hint type="destinationlabel">
     <x>831</x>
     <y>619</y>
    </hint>
   </hints>
  </connection>
 </connections>
</ui>
