<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>TilerForm</class>
 <widget class="QWidget" name="TilerForm">
  <property name="windowTitle">
   <string>VirtuGhan Tiler</string>
  </property>
  <property name="styleSheet">
    <string>QLineEdit, QComboBox, QDateEdit, QSpinBox, QListWidget { padding-left: 2px; padding-right: 2px; padding-top: 4px; padding-bottom: 4px; }</string>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout_root">
    <property name="spacing">
        <number>0</number>
    </property>
    <property name="leftMargin">
     <number>0</number>
    </property>
    <property name="topMargin">
     <number>0</number>
    </property>
    <property name="rightMargin">
     <number>0</number>
    </property>
    <property name="bottomMargin">
     <number>0</number>
    </property>
    <item>
     <layout class="QHBoxLayout" name="headerLayout">
        <property name="spacing">
         <number>2</number>
        </property>
      <item>
        <widget class="QLabel" name="titleLabel">
         <property name="text">
          <string>&lt;b&gt;VirtuGhan Tiler (Create Basemap Tiles)&lt;/b&gt;</string>
         </property>
        </widget>
      </item>
      <item>
        <spacer name="headerSpacer">
         <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="helpBtn">
         <property name="text">
          <string>Help</string>
         </property>
        </widget>
      </item>
     </layout>
    </item>
    <item>
     <widget class="QLabel" name="requiredHintLabel">
      <property name="text">
        <string>&lt;i&gt;* Required fields&lt;/i&gt;</string>
      </property>
            <property name="margin">
             <number>0</number>
            </property>
                        <property name="maximumHeight">
                         <number>14</number>
                        </property>
     </widget>
    </item>
   <item>
    <widget class="QGroupBox" name="groupBoxConn">
     <property name="title">
      <string>Connection</string>
     </property>
     <property name="sizePolicy">
      <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
     </property>
     <property name="maximumHeight">
      <number>80</number>
     </property>
     <layout class="QGridLayout" name="gridConn">
        <property name="horizontalSpacing">
         <number>2</number>
        </property>
        <property name="verticalSpacing">
       <number>2</number>
        </property>
        <property name="leftMargin">
         <number>2</number>
        </property>
        <property name="topMargin">
         <number>0</number>
        </property>
        <property name="rightMargin">
         <number>2</number>
        </property>
        <property name="bottomMargin">
         <number>0</number>
        </property>
        <rowstretch>0</rowstretch>
        <rowstretch>0</rowstretch>
      <item row="0" column="0">
       <widget class="QLabel" name="labelBackend">
        <property name="text">
                 <string>Backend URL *</string>
        </property>
       </widget>
      </item>
      <item row="0" column="1">
       <widget class="QLineEdit" name="backendUrlLine">
        <property name="placeholderText">
         <string>http://127.0.0.1:8002</string>
        </property>
       </widget>
      </item>
      <item row="1" column="0">
       <widget class="QLabel" name="labelLayerName">
        <property name="text">
                 <string>Layer Name *</string>
        </property>
       </widget>
      </item>
      <item row="1" column="1">
       <widget class="QLineEdit" name="layerNameLine">
        <property name="placeholderText">
         <string>VirtuGhan Tiler</string>
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>

   <item>
    <widget class="QGroupBox" name="groupBoxParams">
     <property name="title">
      <string>Parameters</string>
     </property>
     <property name="sizePolicy">
      <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
     </property>
     <layout class="QGridLayout" name="gridParams">
      <property name="horizontalSpacing">
       <number>2</number>
      </property>
      <property name="verticalSpacing">
       <number>2</number>
      </property>
      <property name="leftMargin">
       <number>2</number>
      </property>
      <property name="topMargin">
       <number>0</number>
      </property>
      <property name="rightMargin">
       <number>2</number>
      </property>
      <property name="bottomMargin">
       <number>0</number>
      </property>
      <rowstretch>0</rowstretch>
      <rowstretch>0</rowstretch>
      <rowstretch>0</rowstretch>
      <rowstretch>0</rowstretch>
      <rowstretch>0</rowstretch>
      <rowstretch>0</rowstretch>
      <rowstretch>0</rowstretch>
      <rowstretch>0</rowstretch>
      <rowstretch>0</rowstretch>
      <rowstretch>0</rowstretch>
      <rowstretch>0</rowstretch>
      <columnstretch>0</columnstretch>
      <columnstretch>1</columnstretch>
      <item row="0" column="0">
       <widget class="QLabel" name="labelStart">
        <property name="text">
                 <string>Start Date *</string>
        </property>
       </widget>
      </item>
      <item row="0" column="1">
       <widget class="QDateEdit" name="startDateEdit">
        <property name="calendarPopup">
         <bool>true</bool>
        </property>
        <property name="displayFormat">
         <string>yyyy-MM-dd</string>
        </property>
       </widget>
      </item>

      <item row="1" column="0">
       <widget class="QLabel" name="labelEnd">
        <property name="text">
                 <string>End Date *</string>
        </property>
       </widget>
      </item>
      <item row="1" column="1">
       <widget class="QDateEdit" name="endDateEdit">
        <property name="calendarPopup">
         <bool>true</bool>
        </property>
        <property name="displayFormat">
         <string>yyyy-MM-dd</string>
        </property>
       </widget>
      </item>

      <item row="2" column="0">
       <widget class="QLabel" name="labelCloud">
        <property name="text">
                 <string>Cloud cover (%) *</string>
        </property>
       </widget>
      </item>
      <item row="2" column="1">
       <widget class="QSpinBox" name="cloudSpin">
        <property name="minimum">
         <number>0</number>
        </property>
        <property name="maximum">
         <number>100</number>
        </property>
        <property name="value">
         <number>30</number>
        </property>
       </widget>
      </item>

      <item row="3" column="0">
       <widget class="QLabel" name="labelMode">
        <property name="text">
         <string>Mode</string>
        </property>
       </widget>
      </item>
      <item row="3" column="1">
       <layout class="QHBoxLayout" name="modeLayout">
        <property name="spacing"><number>8</number></property>
        <item>
         <widget class="QRadioButton" name="simpleModeRadio">
          <property name="text"><string>Simple (Presets)</string></property>
          <property name="checked"><bool>true</bool></property>
         </widget>
        </item>
        <item>
         <widget class="QRadioButton" name="advancedModeRadio">
          <property name="text"><string>Advanced (Manual)</string></property>
         </widget>
        </item>
        <item>
         <spacer name="modeSpacer">
          <property name="orientation"><enum>Qt::Horizontal</enum></property>
          <property name="sizeHint" stdset="0">
           <size><width>40</width><height>20</height></size>
          </property>
         </spacer>
        </item>
       </layout>
      </item>

      <item row="4" column="0">
       <widget class="QLabel" name="labelIndex">
        <property name="text">
         <string>Index</string>
        </property>
        <property name="margin"><number>6</number></property>
       </widget>
      </item>
      <item row="4" column="1" colspan="2">
       <widget class="QComboBox" name="indexCombo">
        <property name="toolTip"><string>Select a preset spectral index</string></property>
       </widget>
      </item>

      <item row="5" column="0">
       <widget class="QLabel" name="labelFormulaRef">
        <property name="text">
         <string>Formula</string>
        </property>
        <property name="margin"><number>6</number></property>
       </widget>
      </item>
      <item row="5" column="1" colspan="2">
       <widget class="QLabel" name="formulaReferenceLabel">
        <property name="text"><string>(formula will display here)</string></property>
        <property name="wordWrap"><bool>true</bool></property>
        <property name="toolTip"><string>Read-only formula reference for selected preset</string></property>
        <property name="sizePolicy">
         <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
        </property>
       </widget>
      </item>

      <item row="6" column="0">
       <widget class="QLabel" name="labelBand1">
        <property name="text">
                 <string>Band 1 *</string>
        </property>
        <property name="margin"><number>6</number></property>
       </widget>
      </item>
      <item row="6" column="1" colspan="2">
       <widget class="QComboBox" name="band1Combo"/>
      </item>
      <item row="7" column="0">
       <widget class="QLabel" name="labelBand2">
        <property name="text">
         <string>Band 2</string>
        </property>
        <property name="margin"><number>6</number></property>
       </widget>
      </item>
      <item row="7" column="1" colspan="2">
       <widget class="QComboBox" name="band2Combo"/>
      </item>
      <item row="8" column="0">
       <widget class="QLabel" name="labelFormula">
        <property name="text">
                 <string>Formula *</string>
        </property>
       </widget>
      </item>
      <item row="8" column="1" colspan="2">
       <widget class="QLineEdit" name="formulaLine">
        <property name="placeholderText">
         <string>(band2 - band1) / (band2 + band1)</string>
        </property>
        <property name="visible"><bool>false</bool></property>
       </widget>
      </item>

      <item row="9" column="0" colspan="3">
       <widget class="QLabel" name="tilerTipLabel">
        <property name="text"><string>&lt;i&gt;Tip: If Band 1 and Band 2 resolutions differ, the system resamples; you''ll see a warning.&lt;/i&gt;</string></property>
        <property name="visible"><bool>true</bool></property>
       </widget>
      </item>

      <item row="10" column="0">
       <widget class="QLabel" name="labelTimeseries">
        <property name="text">
         <string>Time series (aggregate)</string>
        </property>
        <property name="visible"><bool>false</bool></property>
       </widget>
      </item>
      <item row="10" column="1" colspan="2">
       <widget class="QCheckBox" name="timeseriesCheck">
        <property name="text">
         <string/>
        </property>
        <property name="checked">
         <bool>false</bool>
        </property>
        <property name="visible"><bool>false</bool></property>
       </widget>
      </item>

      <item row="11" column="0">
       <widget class="QLabel" name="labelOp">
        <property name="text">
         <string>Aggregation</string>
        </property>
        <property name="visible">
         <bool>false</bool>
        </property>
       </widget>
      </item>
      <item row="11" column="1" colspan="2">
       <widget class="QComboBox" name="operationCombo">
        <property name="visible">
         <bool>false</bool>
        </property>
       </widget>
      </item>

      <item row="12" column="0" colspan="3">
       <spacer name="paramsStretch">
        <property name="orientation"><enum>Qt::Vertical</enum></property>
        <property name="sizeHint" stdset="0">
         <size><width>0</width><height>0</height></size>
        </property>
        <property name="sizePolicy">
         <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
        </property>
       </spacer>
      </item>

     </layout>
    </widget>
   </item>

    <item>
     <layout class="QHBoxLayout" name="buttonRow">
      <item>
        <spacer name="buttonSpacer">
         <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="resetBtn">
         <property name="text">
          <string>Reset</string>
         </property>
        </widget>
      </item>
      <item>
        <widget class="QPushButton" name="addLayerBtn">
         <property name="text">
          <string>Add XYZ Layer</string>
         </property>
         <property name="minimumHeight">
          <number>30</number>
         </property>
        </widget>
      </item>
     </layout>
    </item>

   <item>
    <layout class="QHBoxLayout" name="advancedToggleLayout">
     <item>
      <widget class="QPushButton" name="advancedToggleBtn">
       <property name="text">
        <string>Advanced Options ▼</string>
       </property>
       <property name="flat">
        <bool>true</bool>
       </property>
       <property name="styleSheet">
        <string>text-align: left; padding: 4px;</string>
       </property>
      </widget>
     </item>
     <item>
      <spacer name="advancedSpacer">
       <property name="orientation">
        <enum>Qt::Horizontal</enum>
       </property>
       <property name="sizeHint" stdset="0">
        <size>
         <width>40</width>
         <height>20</height>
        </size>
       </property>
      </spacer>
     </item>
    </layout>
   </item>

   <item>
    <widget class="QGroupBox" name="groupBoxLocal">
        <property name="title">
        <string>Local Server</string>
        </property>
        <property name="visible">
         <bool>false</bool>
        </property>
        <property name="sizePolicy">
         <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
        </property>
        <property name="maximumHeight">
         <number>200</number>
        </property>
        <layout class="QGridLayout" name="gridLocal">
        <property name="horizontalSpacing">
         <number>2</number>
        </property>
        <property name="verticalSpacing">
         <number>2</number>
        </property>
        <property name="leftMargin">
         <number>2</number>
        </property>
        <property name="topMargin">
         <number>0</number>
        </property>
        <property name="rightMargin">
         <number>2</number>
        </property>
        <property name="bottomMargin">
         <number>0</number>
        </property>
        <rowstretch>0</rowstretch>
        <rowstretch>0</rowstretch>
        <rowstretch>0</rowstretch>
        <rowstretch>0</rowstretch>
        <rowstretch>0</rowstretch>
        <rowstretch>0</rowstretch>
        <item row="0" column="0">
            <widget class="QLabel" name="labelRunLocal">
            <property name="text">
                <string>Run locally</string>
            </property>
            </widget>
        </item>
        <item row="0" column="1">
            <widget class="QCheckBox" name="runLocalCheck">
            <property name="checked"><bool>true</bool></property>
            <property name="text"><string/></property>
            </widget>
        </item>

        <item row="1" column="0">
            <widget class="QLabel" name="labelAppPath">
            <property name="text">
                <string>App Path (module:function)</string>
            </property>
            </widget>
        </item>
        <item row="1" column="1">
            <widget class="QLineEdit" name="appPathLine">
            <property name="placeholderText">
                <string>vcube.api:app</string>
            </property>
            </widget>
        </item>

        <item row="2" column="0">
            <widget class="QLabel" name="labelHost">
            <property name="text"><string>Host</string></property>
            </widget>
        </item>
        <item row="2" column="1">
            <widget class="QLineEdit" name="hostLine">
            <property name="placeholderText"><string>127.0.0.1</string></property>
            </widget>
        </item>

        <item row="3" column="0">
            <widget class="QLabel" name="labelPort">
            <property name="text"><string>Port</string></property>
            </widget>
        </item>
        <item row="3" column="1">
            <widget class="QSpinBox" name="portSpin">
            <property name="minimum"><number>1</number></property>
            <property name="maximum"><number>65535</number></property>
            <property name="value"><number>8002</number></property>
            </widget>
        </item>

        <item row="4" column="0">
            <widget class="QLabel" name="labelWorkers">
            <property name="text"><string>Workers</string></property>
            </widget>
        </item>
        <item row="4" column="1">
            <widget class="QSpinBox" name="workersSpin">
            <property name="minimum"><number>1</number></property>
            <property name="maximum"><number>64</number></property>
            <property name="value"><number>1</number></property>
            </widget>
        </item>

        <item row="5" column="0">
            <widget class="QPushButton" name="startServerBtn">
            <property name="text"><string>Start server</string></property>
            </widget>
        </item>
        <item row="5" column="1">
            <widget class="QPushButton" name="stopServerBtn">
            <property name="text"><string>Stop server</string></property>
            </widget>
        </item>
        </layout>
    </widget>
    </item>

   <item>
    <spacer name="bottomSpacer">
     <property name="orientation">
      <enum>Qt::Vertical</enum>
     </property>
     <property name="sizeHint" stdset="0">
      <size>
       <width>20</width>
       <height>1</height>
      </size>
     </property>
    </spacer>
   </item>

  </layout>
 </widget>
 <resources/>
 <connections/>
</ui>
