<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>KeywordsDialogBase</class>
 <widget class="QDialog" name="KeywordsDialogBase">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>718</width>
    <height>553</height>
   </rect>
  </property>
  <property name="sizePolicy">
   <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
    <horstretch>0</horstretch>
    <verstretch>0</verstretch>
   </sizepolicy>
  </property>
  <property name="windowTitle">
   <string>InaSAFE - Keyword Editor</string>
  </property>
  <property name="windowIcon">
   <iconset>
    <normaloff>:/plugins/inasafe/icon.png</normaloff>:/plugins/inasafe/icon.png</iconset>
  </property>
  <layout class="QGridLayout" name="gridLayout">
   <item row="0" column="0">
    <widget class="QLabel" name="lblLayerName">
     <property name="sizePolicy">
      <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
     </property>
     <property name="font">
      <font>
       <weight>75</weight>
       <bold>true</bold>
      </font>
     </property>
     <property name="text">
      <string/>
     </property>
     <property name="wordWrap">
      <bool>true</bool>
     </property>
    </widget>
   </item>
   <item row="1" column="0">
    <widget class="QTabWidget" name="tab_widget">
     <property name="currentIndex">
      <number>0</number>
     </property>
     <widget class="QWidget" name="core_fields_tab">
      <attribute name="title">
       <string>Core fields</string>
      </attribute>
      <layout class="QFormLayout" name="formLayout">
       <item row="0" column="0">
        <widget class="QLabel" name="lblTitle">
         <property name="text">
          <string>Title</string>
         </property>
         <property name="buddy">
          <cstring>leTitle</cstring>
         </property>
        </widget>
       </item>
       <item row="0" column="1">
        <widget class="QLineEdit" name="leTitle"/>
       </item>
       <item row="1" column="0">
        <widget class="QLabel" name="lblCategory">
         <property name="text">
          <string>Category</string>
         </property>
         <property name="buddy">
          <cstring>radHazard</cstring>
         </property>
        </widget>
       </item>
       <item row="1" column="1">
        <layout class="QHBoxLayout" name="horizontalLayout_3">
         <item>
          <widget class="QRadioButton" name="radHazard">
           <property name="toolTip">
            <string>A hazard is a situation that poses a level of threat to life, health, property, or environment. (Wikipedia)</string>
           </property>
           <property name="text">
            <string>Hazard</string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QRadioButton" name="radExposure">
           <property name="toolTip">
            <string>Where people and property are situated.</string>
           </property>
           <property name="text">
            <string>Exposure</string>
           </property>
           <property name="checked">
            <bool>true</bool>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QRadioButton" name="radPostprocessing">
           <property name="text">
            <string>Postprocessing</string>
           </property>
          </widget>
         </item>
        </layout>
       </item>
       <item row="2" column="0">
        <widget class="QLabel" name="lblSubcategory">
         <property name="text">
          <string>Subcategory</string>
         </property>
         <property name="buddy">
          <cstring>cboSubcategory</cstring>
         </property>
        </widget>
       </item>
       <item row="2" column="1">
        <widget class="QComboBox" name="cboSubcategory">
         <property name="sizePolicy">
          <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
           <horstretch>0</horstretch>
           <verstretch>0</verstretch>
          </sizepolicy>
         </property>
         <property name="toolTip">
          <string>A subcategory represents the type of hazard.</string>
         </property>
        </widget>
       </item>
       <item row="3" column="0">
        <widget class="QLabel" name="lblSource">
         <property name="text">
          <string>&amp;Source</string>
         </property>
         <property name="buddy">
          <cstring>leSource</cstring>
         </property>
        </widget>
       </item>
       <item row="3" column="1">
        <widget class="QLineEdit" name="leSource">
         <property name="dragEnabled">
          <bool>true</bool>
         </property>
        </widget>
       </item>
       <item row="4" column="0">
        <spacer name="verticalSpacer_2">
         <property name="orientation">
          <enum>Qt::Vertical</enum>
         </property>
         <property name="sizeHint" stdset="0">
          <size>
           <width>20</width>
           <height>40</height>
          </size>
         </property>
        </spacer>
       </item>
       <item row="4" column="1">
        <spacer name="verticalSpacer">
         <property name="orientation">
          <enum>Qt::Vertical</enum>
         </property>
         <property name="sizeHint" stdset="0">
          <size>
           <width>583</width>
           <height>40</height>
          </size>
         </property>
        </spacer>
       </item>
      </layout>
     </widget>
     <widget class="QWidget" name="aggregation_tab">
      <attribute name="title">
       <string>Aggregation</string>
      </attribute>
      <layout class="QGridLayout" name="gridLayout_3">
       <item row="0" column="0">
        <widget class="QScrollArea" name="scrollArea_2">
         <property name="frameShape">
          <enum>QFrame::NoFrame</enum>
         </property>
         <property name="lineWidth">
          <number>0</number>
         </property>
         <property name="widgetResizable">
          <bool>true</bool>
         </property>
         <widget class="QWidget" name="scrollAreaWidgetContents_2">
          <property name="geometry">
           <rect>
            <x>0</x>
            <y>0</y>
            <width>253</width>
            <height>439</height>
           </rect>
          </property>
          <layout class="QVBoxLayout" name="verticalLayout">
           <item>
            <widget class="QGroupBox" name="groupBox_3">
             <property name="title">
              <string>Report labels</string>
             </property>
             <layout class="QFormLayout" name="formLayout_4">
              <item row="0" column="0">
               <widget class="QLabel" name="lblAggregationAttribute">
                <property name="enabled">
                 <bool>true</bool>
                </property>
                <property name="text">
                 <string>Aggregation attribute</string>
                </property>
                <property name="buddy">
                 <cstring>cboAggregationAttribute</cstring>
                </property>
               </widget>
              </item>
              <item row="0" column="1">
               <widget class="QComboBox" name="cboAggregationAttribute"/>
              </item>
             </layout>
            </widget>
           </item>
           <item>
            <widget class="QGroupBox" name="groupBox_2">
             <property name="title">
              <string>Gender Ratio</string>
             </property>
             <layout class="QFormLayout" name="formLayout_3">
              <item row="0" column="0">
               <widget class="QLabel" name="lblFemaleRatioAttribute">
                <property name="text">
                 <string>Female ratio attribute</string>
                </property>
                <property name="buddy">
                 <cstring>cboFemaleRatioAttribute</cstring>
                </property>
               </widget>
              </item>
              <item row="0" column="1">
               <widget class="QComboBox" name="cboFemaleRatioAttribute"/>
              </item>
              <item row="1" column="0">
               <widget class="QLabel" name="lblFemaleRatioDefault">
                <property name="text">
                 <string>Female ratio default</string>
                </property>
                <property name="buddy">
                 <cstring>dsbFemaleRatioDefault</cstring>
                </property>
               </widget>
              </item>
              <item row="1" column="1">
               <widget class="QDoubleSpinBox" name="dsbFemaleRatioDefault">
                <property name="accelerated">
                 <bool>true</bool>
                </property>
                <property name="maximum">
                 <double>1.000000000000000</double>
                </property>
                <property name="singleStep">
                 <double>0.010000000000000</double>
                </property>
                <property name="value">
                 <double>0.000000000000000</double>
                </property>
               </widget>
              </item>
             </layout>
            </widget>
           </item>
           <item>
            <widget class="QGroupBox" name="groupBox">
             <property name="title">
              <string>Age Ratios</string>
             </property>
             <layout class="QFormLayout" name="formLayout_2">
              <item row="0" column="0">
               <widget class="QLabel" name="lblYouthRatioAttribute">
                <property name="text">
                 <string>Youth ratio attribute</string>
                </property>
                <property name="buddy">
                 <cstring>cboYouthRatioAttribute</cstring>
                </property>
               </widget>
              </item>
              <item row="0" column="1">
               <widget class="QComboBox" name="cboYouthRatioAttribute"/>
              </item>
              <item row="1" column="0">
               <widget class="QLabel" name="lblYouthRatioDefault">
                <property name="text">
                 <string>Youth ratio default</string>
                </property>
                <property name="buddy">
                 <cstring>dsbYouthRatioDefault</cstring>
                </property>
               </widget>
              </item>
              <item row="1" column="1">
               <widget class="QDoubleSpinBox" name="dsbYouthRatioDefault">
                <property name="maximum">
                 <double>1.000000000000000</double>
                </property>
                <property name="singleStep">
                 <double>0.010000000000000</double>
                </property>
               </widget>
              </item>
              <item row="2" column="0">
               <widget class="QLabel" name="lblAdultRatioAttribute">
                <property name="text">
                 <string>Adult ratio attribute</string>
                </property>
                <property name="buddy">
                 <cstring>cboAdultRatioAttribute</cstring>
                </property>
               </widget>
              </item>
              <item row="2" column="1">
               <widget class="QComboBox" name="cboAdultRatioAttribute"/>
              </item>
              <item row="3" column="0">
               <widget class="QLabel" name="lblAdultRatioDefault">
                <property name="text">
                 <string>Adult ratio default</string>
                </property>
                <property name="buddy">
                 <cstring>dsbAdultRatioDefault</cstring>
                </property>
               </widget>
              </item>
              <item row="3" column="1">
               <widget class="QDoubleSpinBox" name="dsbAdultRatioDefault">
                <property name="maximum">
                 <double>1.000000000000000</double>
                </property>
                <property name="singleStep">
                 <double>0.010000000000000</double>
                </property>
               </widget>
              </item>
              <item row="4" column="0">
               <widget class="QLabel" name="lblElderlyRatioAttribute">
                <property name="text">
                 <string>Elderly ratio attribute</string>
                </property>
                <property name="buddy">
                 <cstring>cboElderlyRatioAttribute</cstring>
                </property>
               </widget>
              </item>
              <item row="4" column="1">
               <widget class="QComboBox" name="cboElderlyRatioAttribute"/>
              </item>
              <item row="5" column="0">
               <widget class="QLabel" name="lblElderlyRatioDefault">
                <property name="text">
                 <string>Elderly ratio default</string>
                </property>
                <property name="buddy">
                 <cstring>dsbElderlyRatioDefault</cstring>
                </property>
               </widget>
              </item>
              <item row="5" column="1">
               <widget class="QDoubleSpinBox" name="dsbElderlyRatioDefault">
                <property name="maximum">
                 <double>1.000000000000000</double>
                </property>
                <property name="singleStep">
                 <double>0.010000000000000</double>
                </property>
               </widget>
              </item>
             </layout>
            </widget>
           </item>
           <item>
            <spacer name="verticalSpacer_3">
             <property name="orientation">
              <enum>Qt::Vertical</enum>
             </property>
             <property name="sizeHint" stdset="0">
              <size>
               <width>20</width>
               <height>40</height>
              </size>
             </property>
            </spacer>
           </item>
          </layout>
         </widget>
        </widget>
       </item>
      </layout>
     </widget>
     <widget class="QWidget" name="advanced_tab">
      <attribute name="title">
       <string>Advanced</string>
      </attribute>
      <layout class="QGridLayout" name="gridLayout_4">
       <item row="3" column="0">
        <widget class="QLabel" name="label_8">
         <property name="text">
          <string>Current keywords</string>
         </property>
         <property name="buddy">
          <cstring>lstKeywords</cstring>
         </property>
        </widget>
       </item>
       <item row="0" column="0">
        <layout class="QHBoxLayout" name="horizontalLayout_4">
         <item>
          <widget class="QRadioButton" name="radPredefined">
           <property name="text">
            <string>Predefined</string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QRadioButton" name="radUserDefined">
           <property name="text">
            <string>User defined</string>
           </property>
          </widget>
         </item>
        </layout>
       </item>
       <item row="2" column="0">
        <widget class="QFrame" name="frameUserDefined">
         <property name="frameShape">
          <enum>QFrame::StyledPanel</enum>
         </property>
         <property name="frameShadow">
          <enum>QFrame::Raised</enum>
         </property>
         <layout class="QHBoxLayout" name="horizontalLayout_2">
          <item>
           <widget class="QLabel" name="label_6">
            <property name="text">
             <string>Key</string>
            </property>
            <property name="buddy">
             <cstring>leKey</cstring>
            </property>
           </widget>
          </item>
          <item>
           <widget class="QLineEdit" name="leKey"/>
          </item>
          <item>
           <widget class="QLabel" name="label_7">
            <property name="text">
             <string>Value</string>
            </property>
            <property name="buddy">
             <cstring>leValue</cstring>
            </property>
           </widget>
          </item>
          <item>
           <widget class="QLineEdit" name="leValue"/>
          </item>
          <item>
           <widget class="QPushButton" name="pbnAddToList2">
            <property name="text">
             <string>Add to list</string>
            </property>
           </widget>
          </item>
         </layout>
        </widget>
       </item>
       <item row="6" column="0">
        <widget class="QPushButton" name="pbnRemove">
         <property name="text">
          <string>Remove selected</string>
         </property>
        </widget>
       </item>
       <item row="1" column="0">
        <widget class="QFrame" name="framePredefined">
         <property name="frameShape">
          <enum>QFrame::StyledPanel</enum>
         </property>
         <property name="frameShadow">
          <enum>QFrame::Raised</enum>
         </property>
         <layout class="QHBoxLayout" name="horizontalLayout">
          <item>
           <widget class="QLabel" name="label_4">
            <property name="text">
             <string>Keyword</string>
            </property>
            <property name="buddy">
             <cstring>cboKeyword</cstring>
            </property>
           </widget>
          </item>
          <item>
           <widget class="QComboBox" name="cboKeyword">
            <item>
             <property name="text">
              <string notr="true">subcategory</string>
             </property>
            </item>
            <item>
             <property name="text">
              <string notr="true">unit</string>
             </property>
            </item>
            <item>
             <property name="text">
              <string notr="true">datatype</string>
             </property>
            </item>
            <item>
             <property name="text">
              <string notr="true">key_attribute</string>
             </property>
            </item>
           </widget>
          </item>
          <item>
           <widget class="QLabel" name="label_5">
            <property name="text">
             <string>Value</string>
            </property>
           </widget>
          </item>
          <item>
           <widget class="QLineEdit" name="lePredefinedValue"/>
          </item>
          <item>
           <widget class="QPushButton" name="pbnAddToList1">
            <property name="text">
             <string>Add to list</string>
            </property>
           </widget>
          </item>
         </layout>
        </widget>
       </item>
       <item row="4" column="0">
        <widget class="QListWidget" name="lstKeywords">
         <property name="alternatingRowColors">
          <bool>true</bool>
         </property>
         <property name="selectionMode">
          <enum>QAbstractItemView::ExtendedSelection</enum>
         </property>
        </widget>
       </item>
       <item row="5" column="0">
        <widget class="QLabel" name="lblMessage">
         <property name="text">
          <string/>
         </property>
        </widget>
       </item>
      </layout>
     </widget>
    </widget>
   </item>
   <item row="2" column="0">
    <widget class="QDialogButtonBox" name="buttonBox">
     <property name="sizePolicy">
      <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
     </property>
     <property name="orientation">
      <enum>Qt::Horizontal</enum>
     </property>
     <property name="standardButtons">
      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok</set>
     </property>
     <property name="centerButtons">
      <bool>false</bool>
     </property>
    </widget>
   </item>
  </layout>
 </widget>
 <tabstops>
  <tabstop>leTitle</tabstop>
  <tabstop>radHazard</tabstop>
  <tabstop>radExposure</tabstop>
  <tabstop>radPostprocessing</tabstop>
  <tabstop>cboSubcategory</tabstop>
  <tabstop>leSource</tabstop>
  <tabstop>cboAggregationAttribute</tabstop>
  <tabstop>cboFemaleRatioAttribute</tabstop>
  <tabstop>dsbFemaleRatioDefault</tabstop>
  <tabstop>cboYouthRatioAttribute</tabstop>
  <tabstop>dsbYouthRatioDefault</tabstop>
  <tabstop>cboAdultRatioAttribute</tabstop>
  <tabstop>dsbAdultRatioDefault</tabstop>
  <tabstop>cboElderlyRatioAttribute</tabstop>
  <tabstop>dsbElderlyRatioDefault</tabstop>
  <tabstop>radPredefined</tabstop>
  <tabstop>radUserDefined</tabstop>
  <tabstop>cboKeyword</tabstop>
  <tabstop>lePredefinedValue</tabstop>
  <tabstop>pbnAddToList1</tabstop>
  <tabstop>leKey</tabstop>
  <tabstop>leValue</tabstop>
  <tabstop>pbnAddToList2</tabstop>
  <tabstop>lstKeywords</tabstop>
  <tabstop>pbnRemove</tabstop>
  <tabstop>buttonBox</tabstop>
  <tabstop>tab_widget</tabstop>
  <tabstop>scrollArea_2</tabstop>
 </tabstops>
 <resources>
  <include location="../resources/resources.qrc"/>
 </resources>
 <connections>
  <connection>
   <sender>radPredefined</sender>
   <signal>toggled(bool)</signal>
   <receiver>frameUserDefined</receiver>
   <slot>setHidden(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>174</x>
     <y>94</y>
    </hint>
    <hint type="destinationlabel">
     <x>147</x>
     <y>201</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>radUserDefined</sender>
   <signal>toggled(bool)</signal>
   <receiver>framePredefined</receiver>
   <slot>setHidden(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>654</x>
     <y>94</y>
    </hint>
    <hint type="destinationlabel">
     <x>102</x>
     <y>148</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>radPredefined</sender>
   <signal>toggled(bool)</signal>
   <receiver>framePredefined</receiver>
   <slot>setVisible(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>143</x>
     <y>94</y>
    </hint>
    <hint type="destinationlabel">
     <x>122</x>
     <y>148</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>radUserDefined</sender>
   <signal>toggled(bool)</signal>
   <receiver>frameUserDefined</receiver>
   <slot>setVisible(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>654</x>
     <y>94</y>
    </hint>
    <hint type="destinationlabel">
     <x>186</x>
     <y>201</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>buttonBox</sender>
   <signal>rejected()</signal>
   <receiver>KeywordsDialogBase</receiver>
   <slot>reject()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>361</x>
     <y>436</y>
    </hint>
    <hint type="destinationlabel">
     <x>286</x>
     <y>274</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>buttonBox</sender>
   <signal>accepted()</signal>
   <receiver>KeywordsDialogBase</receiver>
   <slot>accept()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>293</x>
     <y>436</y>
    </hint>
    <hint type="destinationlabel">
     <x>157</x>
     <y>274</y>
    </hint>
   </hints>
  </connection>
 </connections>
</ui>
