Sarah Mount avatar Sarah Mount committed ff09c40 Merge

Merge with remote repo

Comments (0)

Files changed (13)

open-ihm/gui/designs/importfromaccessdb.ui

+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>ImportFromAccessDB</class>
+ <widget class="QDialog" name="ImportFromAccessDB">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>511</width>
+    <height>409</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Import Projects from Access Database</string>
+  </property>
+  <layout class="QVBoxLayout" name="verticalLayout">
+   <item>
+    <widget class="QFrame" name="frame">
+     <property name="frameShape">
+      <enum>QFrame::StyledPanel</enum>
+     </property>
+     <property name="frameShadow">
+      <enum>QFrame::Raised</enum>
+     </property>
+     <layout class="QGridLayout" name="gridLayout">
+      <item row="0" column="0">
+       <widget class="QLabel" name="label">
+        <property name="font">
+         <font>
+          <pointsize>10</pointsize>
+         </font>
+        </property>
+        <property name="text">
+         <string>Database File:</string>
+        </property>
+       </widget>
+      </item>
+      <item row="0" column="1">
+       <widget class="QLineEdit" name="txtFilename">
+        <property name="enabled">
+         <bool>false</bool>
+        </property>
+       </widget>
+      </item>
+      <item row="0" column="2">
+       <widget class="QPushButton" name="cmdGetDB">
+        <property name="toolTip">
+         <string>Select Database</string>
+        </property>
+        <property name="text">
+         <string/>
+        </property>
+        <property name="icon">
+         <iconset>
+          <normaloff>C:/Users/Brown/.designer/resources/images/addreport.png</normaloff>C:/Users/Brown/.designer/resources/images/addreport.png</iconset>
+        </property>
+        <property name="iconSize">
+         <size>
+          <width>32</width>
+          <height>32</height>
+         </size>
+        </property>
+        <property name="flat">
+         <bool>true</bool>
+        </property>
+       </widget>
+      </item>
+     </layout>
+    </widget>
+   </item>
+   <item>
+    <widget class="QFrame" name="frame_2">
+     <property name="frameShape">
+      <enum>QFrame::StyledPanel</enum>
+     </property>
+     <property name="frameShadow">
+      <enum>QFrame::Raised</enum>
+     </property>
+     <layout class="QGridLayout" name="gridLayout_2">
+      <item row="0" column="0">
+       <widget class="QLabel" name="label_2">
+        <property name="font">
+         <font>
+          <pointsize>10</pointsize>
+         </font>
+        </property>
+        <property name="text">
+         <string>Available Projects</string>
+        </property>
+       </widget>
+      </item>
+      <item row="1" column="0">
+       <widget class="QTableView" name="tblProjects"/>
+      </item>
+     </layout>
+    </widget>
+   </item>
+   <item>
+    <widget class="QFrame" name="frame_3">
+     <property name="frameShape">
+      <enum>QFrame::StyledPanel</enum>
+     </property>
+     <property name="frameShadow">
+      <enum>QFrame::Raised</enum>
+     </property>
+     <layout class="QGridLayout" name="gridLayout_3">
+      <item row="0" column="0">
+       <widget class="QPushButton" name="cmdImportAll">
+        <property name="minimumSize">
+         <size>
+          <width>90</width>
+          <height>41</height>
+         </size>
+        </property>
+        <property name="text">
+         <string>Import All</string>
+        </property>
+       </widget>
+      </item>
+      <item row="0" column="1">
+       <widget class="QPushButton" name="cmdImportSelected">
+        <property name="minimumSize">
+         <size>
+          <width>90</width>
+          <height>41</height>
+         </size>
+        </property>
+        <property name="text">
+         <string>Import Selected</string>
+        </property>
+       </widget>
+      </item>
+      <item row="0" column="3">
+       <widget class="QPushButton" name="cmdClose">
+        <property name="minimumSize">
+         <size>
+          <width>90</width>
+          <height>41</height>
+         </size>
+        </property>
+        <property name="text">
+         <string>Close</string>
+        </property>
+       </widget>
+      </item>
+      <item row="0" column="2">
+       <spacer name="horizontalSpacer">
+        <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>
+    </widget>
+   </item>
+  </layout>
+ </widget>
+ <resources/>
+ <connections>
+  <connection>
+   <sender>cmdGetDB</sender>
+   <signal>clicked()</signal>
+   <receiver>ImportFromAccessDB</receiver>
+   <slot>getDB()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>462</x>
+     <y>39</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>510</x>
+     <y>65</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>cmdImportAll</sender>
+   <signal>clicked()</signal>
+   <receiver>ImportFromAccessDB</receiver>
+   <slot>importAll()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>59</x>
+     <y>368</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>88</x>
+     <y>407</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>cmdImportSelected</sender>
+   <signal>clicked()</signal>
+   <receiver>ImportFromAccessDB</receiver>
+   <slot>importSelected()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>158</x>
+     <y>365</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>223</x>
+     <y>407</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>cmdClose</sender>
+   <signal>clicked()</signal>
+   <receiver>ImportFromAccessDB</receiver>
+   <slot>closeForm()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>423</x>
+     <y>371</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>432</x>
+     <y>407</y>
+    </hint>
+   </hints>
+  </connection>
+ </connections>
+ <slots>
+  <slot>getDB()</slot>
+  <slot>importAll()</slot>
+  <slot>importSelected()</slot>
+  <slot>closeForm()</slot>
+ </slots>
+</ui>

open-ihm/gui/designs/ui_mainwindow.py

 
 # Form implementation generated from reading ui file 'ui_mainwindow.ui'
 #
-# Created: Sun Jun 19 10:58:49 2011
+# Created: Tue Jul 26 13:15:28 2011
 #      by: PyQt4 UI code generator 4.7
 #
 # WARNING! All changes made in this file will be lost!
         self.actionUpdate_open_ihm.setObjectName("actionUpdate_open_ihm")
         self.actionHousehold_Budget = QtGui.QAction(MainWindow)
         self.actionHousehold_Budget.setObjectName("actionHousehold_Budget")
+        self.actionImport_Projects_from_Access_DB = QtGui.QAction(MainWindow)
+        self.actionImport_Projects_from_Access_DB.setObjectName("actionImport_Projects_from_Access_DB")
         self.menuProject.addAction(self.actionCreate_Project)
         self.menuProject.addAction(self.actionOpen_Project)
         self.menuProject.addAction(self.actionFind_Project)
         self.menuProject.addAction(self.actionClose_Project)
+        self.menuProject.addAction(self.actionImport_Projects_from_Access_DB)
         self.menuProject.addSeparator()
         self.menuProject.addAction(self.actionEdit_Project)
         self.menuProject.addAction(self.actionConfigure_Project)
         QtCore.QObject.connect(self.actionContents, QtCore.SIGNAL("triggered()"), MainWindow.openHelpContents)
         QtCore.QObject.connect(self.actionUpdate_open_ihm, QtCore.SIGNAL("triggered()"), MainWindow.updateOpenIhm)
         QtCore.QObject.connect(self.actionHousehold_Budget, QtCore.SIGNAL("triggered()"), MainWindow.reportHouseholdbudget)
+        QtCore.QObject.connect(self.actionImport_Projects_from_Access_DB, QtCore.SIGNAL("triggered()"), MainWindow.importFromAccessDB)
         QtCore.QMetaObject.connectSlotsByName(MainWindow)
 
     def retranslateUi(self, MainWindow):
         self.actionUpdate_open_ihm.setIconText(QtGui.QApplication.translate("MainWindow", "Update open-ihm", None, QtGui.QApplication.UnicodeUTF8))
         self.actionUpdate_open_ihm.setToolTip(QtGui.QApplication.translate("MainWindow", "Automatically update the open-ihm software", None, QtGui.QApplication.UnicodeUTF8))
         self.actionHousehold_Budget.setText(QtGui.QApplication.translate("MainWindow", "Household Budget", None, QtGui.QApplication.UnicodeUTF8))
+        self.actionImport_Projects_from_Access_DB.setText(QtGui.QApplication.translate("MainWindow", "Import Projects from Access DB", None, QtGui.QApplication.UnicodeUTF8))
 
 import images_rc

open-ihm/gui/designs/ui_mainwindow.ui

     <addaction name="actionOpen_Project"/>
     <addaction name="actionFind_Project"/>
     <addaction name="actionClose_Project"/>
+    <addaction name="actionImport_Projects_from_Access_DB"/>
     <addaction name="separator"/>
     <addaction name="actionEdit_Project"/>
     <addaction name="actionConfigure_Project"/>
     <string>Household Budget</string>
    </property>
   </action>
+  <action name="actionImport_Projects_from_Access_DB">
+   <property name="text">
+    <string>Import Projects from Access DB</string>
+   </property>
+  </action>
  </widget>
  <resources>
   <include location="images.qrc"/>
     </hint>
    </hints>
   </connection>
+  <connection>
+   <sender>actionImport_Projects_from_Access_DB</sender>
+   <signal>triggered()</signal>
+   <receiver>MainWindow</receiver>
+   <slot>importFromAccessDB()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>399</x>
+     <y>299</y>
+    </hint>
+   </hints>
+  </connection>
  </connections>
  <slots>
   <slot>newProject()</slot>
   <slot>openHelpContents()</slot>
   <slot>updateOpenIhm()</slot>
   <slot>reportHouseholdbudget()</slot>
+  <slot>importFromAccessDB()</slot>
  </slots>
 </ui>

open-ihm/gui/designs/ui_manageassets.ui

   <property name="windowTitle">
    <string>Manage Asset Details</string>
   </property>
-  <widget class="QTabWidget" name="tabWidget">
-   <property name="geometry">
-    <rect>
-     <x>0</x>
-     <y>0</y>
-     <width>571</width>
-     <height>341</height>
-    </rect>
-   </property>
-   <property name="minimumSize">
-    <size>
-     <width>0</width>
-     <height>0</height>
-    </size>
-   </property>
-   <property name="currentIndex">
-    <number>3</number>
-   </property>
-   <widget class="QWidget" name="tabCashSavings">
-    <attribute name="title">
-     <string>Cash Savings</string>
-    </attribute>
-    <widget class="QLabel" name="label_23">
-     <property name="geometry">
-      <rect>
-       <x>260</x>
-       <y>60</y>
-       <width>121</width>
-       <height>18</height>
-      </rect>
+  <layout class="QVBoxLayout" name="verticalLayout">
+   <item>
+    <widget class="QTabWidget" name="tabWidget">
+     <property name="minimumSize">
+      <size>
+       <width>0</width>
+       <height>0</height>
+      </size>
      </property>
+     <property name="currentIndex">
+      <number>2</number>
+     </property>
+     <widget class="QWidget" name="tabCashSavings">
+      <attribute name="title">
+       <string>Cash Savings</string>
+      </attribute>
+      <widget class="QWidget" name="">
+       <property name="geometry">
+        <rect>
+         <x>0</x>
+         <y>0</y>
+         <width>541</width>
+         <height>331</height>
+        </rect>
+       </property>
+       <layout class="QHBoxLayout" name="horizontalLayout">
+        <item>
+         <widget class="QGroupBox" name="groupBox">
+          <property name="title">
+           <string>Select Cash Saving Type</string>
+          </property>
+          <layout class="QVBoxLayout" name="verticalLayout_2">
+           <item>
+            <widget class="QListView" name="savingsListView">
+             <property name="alternatingRowColors">
+              <bool>true</bool>
+             </property>
+            </widget>
+           </item>
+          </layout>
+         </widget>
+        </item>
+        <item>
+         <widget class="QGroupBox" name="groupBox_2">
+          <property name="title">
+           <string>Add / Edit Cash Saving Details</string>
+          </property>
+          <layout class="QFormLayout" name="formLayout">
+           <property name="fieldGrowthPolicy">
+            <enum>QFormLayout::AllNonFixedFieldsGrow</enum>
+           </property>
+           <item row="0" column="0">
+            <widget class="QLabel" name="label_23">
+             <property name="text">
+              <string>Cash Saving Type</string>
+             </property>
+             <property name="buddy">
+              <cstring>txtSavingCategories</cstring>
+             </property>
+            </widget>
+           </item>
+           <item row="0" column="1">
+            <widget class="QLineEdit" name="txtSavingCategories"/>
+           </item>
+           <item row="1" column="0">
+            <widget class="QPushButton" name="btnCashSave">
+             <property name="text">
+              <string>Save</string>
+             </property>
+            </widget>
+           </item>
+           <item row="2" column="0">
+            <widget class="QPushButton" name="btnCashDelete">
+             <property name="text">
+              <string>Delete</string>
+             </property>
+            </widget>
+           </item>
+          </layout>
+         </widget>
+        </item>
+       </layout>
+      </widget>
+     </widget>
+     <widget class="QWidget" name="tabFoodStock">
+      <attribute name="title">
+       <string>Food Stock</string>
+      </attribute>
+      <widget class="QWidget" name="">
+       <property name="geometry">
+        <rect>
+         <x>0</x>
+         <y>0</y>
+         <width>551</width>
+         <height>341</height>
+        </rect>
+       </property>
+       <layout class="QHBoxLayout" name="horizontalLayout_2">
+        <item>
+         <widget class="QGroupBox" name="groupBox_3">
+          <property name="title">
+           <string>Select Food Stock Type</string>
+          </property>
+          <layout class="QVBoxLayout" name="verticalLayout_3">
+           <item>
+            <widget class="QListView" name="foodListView">
+             <property name="alternatingRowColors">
+              <bool>true</bool>
+             </property>
+            </widget>
+           </item>
+          </layout>
+         </widget>
+        </item>
+        <item>
+         <widget class="QGroupBox" name="groupBox_4">
+          <property name="title">
+           <string>Add/Edit Food Stock Details</string>
+          </property>
+          <layout class="QFormLayout" name="formLayout_2">
+           <item row="0" column="0">
+            <widget class="QLabel" name="label_3">
+             <property name="text">
+              <string>Type</string>
+             </property>
+             <property name="buddy">
+              <cstring>txtFoodStockType</cstring>
+             </property>
+            </widget>
+           </item>
+           <item row="0" column="1">
+            <widget class="QLineEdit" name="txtFoodStockType"/>
+           </item>
+           <item row="1" column="0">
+            <widget class="QLabel" name="label_5">
+             <property name="text">
+              <string>KCalories</string>
+             </property>
+             <property name="buddy">
+              <cstring>txtEnergyValue</cstring>
+             </property>
+            </widget>
+           </item>
+           <item row="1" column="1">
+            <widget class="QLineEdit" name="txtEnergyValue"/>
+           </item>
+           <item row="2" column="0">
+            <widget class="QLabel" name="label_4">
+             <property name="text">
+              <string>Unit of Measure</string>
+             </property>
+             <property name="buddy">
+              <cstring>txtMeasuringUnit</cstring>
+             </property>
+            </widget>
+           </item>
+           <item row="2" column="1">
+            <widget class="QLineEdit" name="txtMeasuringUnit"/>
+           </item>
+           <item row="3" column="1">
+            <widget class="QPushButton" name="btnFoodStockSave">
+             <property name="text">
+              <string>Save</string>
+             </property>
+            </widget>
+           </item>
+           <item row="4" column="1">
+            <widget class="QPushButton" name="btnFoodStockDelete">
+             <property name="text">
+              <string>Delete</string>
+             </property>
+            </widget>
+           </item>
+          </layout>
+         </widget>
+        </item>
+       </layout>
+      </widget>
+     </widget>
+     <widget class="QWidget" name="tabLand">
+      <attribute name="title">
+       <string>Land</string>
+      </attribute>
+      <widget class="QLineEdit" name="txtLandType">
+       <property name="geometry">
+        <rect>
+         <x>352</x>
+         <y>60</y>
+         <width>201</width>
+         <height>28</height>
+        </rect>
+       </property>
+      </widget>
+      <widget class="QPushButton" name="btnLandSave">
+       <property name="geometry">
+        <rect>
+         <x>350</x>
+         <y>240</y>
+         <width>80</width>
+         <height>28</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Save</string>
+       </property>
+      </widget>
+      <widget class="QLabel" name="label_7">
+       <property name="geometry">
+        <rect>
+         <x>260</x>
+         <y>60</y>
+         <width>54</width>
+         <height>18</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Type</string>
+       </property>
+      </widget>
+      <widget class="QLabel" name="label_8">
+       <property name="geometry">
+        <rect>
+         <x>260</x>
+         <y>120</y>
+         <width>91</width>
+         <height>18</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Unit of Measure</string>
+       </property>
+      </widget>
+      <widget class="QLineEdit" name="txtLandMeasuringUnit">
+       <property name="geometry">
+        <rect>
+         <x>350</x>
+         <y>110</y>
+         <width>201</width>
+         <height>28</height>
+        </rect>
+       </property>
+      </widget>
+      <widget class="QLabel" name="label_17">
+       <property name="geometry">
+        <rect>
+         <x>290</x>
+         <y>10</y>
+         <width>241</width>
+         <height>18</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Add/ Edit Land Details</string>
+       </property>
+      </widget>
+      <widget class="QPushButton" name="btnLandDelete">
+       <property name="geometry">
+        <rect>
+         <x>460</x>
+         <y>240</y>
+         <width>80</width>
+         <height>28</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Delete</string>
+       </property>
+      </widget>
+      <widget class="QLabel" name="label_18">
+       <property name="geometry">
+        <rect>
+         <x>0</x>
+         <y>10</y>
+         <width>221</width>
+         <height>18</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Select Land Type</string>
+       </property>
+      </widget>
+      <widget class="QListView" name="landListView">
+       <property name="geometry">
+        <rect>
+         <x>5</x>
+         <y>50</y>
+         <width>241</width>
+         <height>201</height>
+        </rect>
+       </property>
+       <property name="alternatingRowColors">
+        <bool>true</bool>
+       </property>
+      </widget>
+     </widget>
+     <widget class="QWidget" name="tabLivestock">
+      <attribute name="title">
+       <string>Livestock</string>
+      </attribute>
+      <widget class="QLineEdit" name="txtLivestockEnergyValue">
+       <property name="geometry">
+        <rect>
+         <x>350</x>
+         <y>110</y>
+         <width>201</width>
+         <height>28</height>
+        </rect>
+       </property>
+      </widget>
+      <widget class="QLabel" name="label_9">
+       <property name="geometry">
+        <rect>
+         <x>260</x>
+         <y>170</y>
+         <width>81</width>
+         <height>16</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Unit of Measure</string>
+       </property>
+       <property name="buddy">
+        <cstring>txtLivestockUnit</cstring>
+       </property>
+      </widget>
+      <widget class="QLabel" name="label_11">
+       <property name="geometry">
+        <rect>
+         <x>260</x>
+         <y>120</y>
+         <width>54</width>
+         <height>18</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>KCalories</string>
+       </property>
+       <property name="buddy">
+        <cstring>txtLivestockEnergyValue</cstring>
+       </property>
+      </widget>
+      <widget class="QLineEdit" name="txtLivestockUnit">
+       <property name="geometry">
+        <rect>
+         <x>350</x>
+         <y>160</y>
+         <width>201</width>
+         <height>31</height>
+        </rect>
+       </property>
+      </widget>
+      <widget class="QLabel" name="label_24">
+       <property name="geometry">
+        <rect>
+         <x>290</x>
+         <y>10</y>
+         <width>241</width>
+         <height>18</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Add/ Edit Livestocktock Details</string>
+       </property>
+      </widget>
+      <widget class="QPushButton" name="btnLivestockDelete">
+       <property name="geometry">
+        <rect>
+         <x>460</x>
+         <y>240</y>
+         <width>80</width>
+         <height>28</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Delete</string>
+       </property>
+      </widget>
+      <widget class="QListView" name="livestockListView">
+       <property name="geometry">
+        <rect>
+         <x>10</x>
+         <y>50</y>
+         <width>241</width>
+         <height>201</height>
+        </rect>
+       </property>
+       <property name="alternatingRowColors">
+        <bool>true</bool>
+       </property>
+      </widget>
+      <widget class="QLineEdit" name="txtLivestockPType">
+       <property name="geometry">
+        <rect>
+         <x>352</x>
+         <y>60</y>
+         <width>201</width>
+         <height>28</height>
+        </rect>
+       </property>
+      </widget>
+      <widget class="QPushButton" name="btnLivestockSave">
+       <property name="geometry">
+        <rect>
+         <x>350</x>
+         <y>240</y>
+         <width>80</width>
+         <height>28</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Save</string>
+       </property>
+      </widget>
+      <widget class="QLabel" name="label_14">
+       <property name="geometry">
+        <rect>
+         <x>0</x>
+         <y>10</y>
+         <width>221</width>
+         <height>18</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Select Livetock Type</string>
+       </property>
+       <property name="buddy">
+        <cstring>livestockListView</cstring>
+       </property>
+      </widget>
+      <widget class="QLabel" name="label_27">
+       <property name="geometry">
+        <rect>
+         <x>260</x>
+         <y>60</y>
+         <width>54</width>
+         <height>18</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Type</string>
+       </property>
+       <property name="buddy">
+        <cstring>txtLivestockPType</cstring>
+       </property>
+      </widget>
+     </widget>
+     <widget class="QWidget" name="tabTrees">
+      <attribute name="title">
+       <string>Trees</string>
+      </attribute>
+      <widget class="QLabel" name="label_10">
+       <property name="geometry">
+        <rect>
+         <x>260</x>
+         <y>60</y>
+         <width>54</width>
+         <height>18</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Type</string>
+       </property>
+       <property name="buddy">
+        <cstring>txtTreeType</cstring>
+       </property>
+      </widget>
+      <widget class="QPushButton" name="btnTreeDelete">
+       <property name="geometry">
+        <rect>
+         <x>460</x>
+         <y>240</y>
+         <width>80</width>
+         <height>28</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Delete</string>
+       </property>
+      </widget>
+      <widget class="QLineEdit" name="txtTreeType">
+       <property name="geometry">
+        <rect>
+         <x>352</x>
+         <y>60</y>
+         <width>201</width>
+         <height>28</height>
+        </rect>
+       </property>
+      </widget>
+      <widget class="QLabel" name="label_19">
+       <property name="geometry">
+        <rect>
+         <x>290</x>
+         <y>10</y>
+         <width>241</width>
+         <height>18</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Add/ Edit Tree Details</string>
+       </property>
+      </widget>
+      <widget class="QLineEdit" name="txtTreeMeasuringUnit">
+       <property name="geometry">
+        <rect>
+         <x>350</x>
+         <y>110</y>
+         <width>201</width>
+         <height>28</height>
+        </rect>
+       </property>
+      </widget>
+      <widget class="QLabel" name="label_20">
+       <property name="geometry">
+        <rect>
+         <x>0</x>
+         <y>10</y>
+         <width>221</width>
+         <height>18</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Select Tree Type</string>
+       </property>
+       <property name="buddy">
+        <cstring>treeListView</cstring>
+       </property>
+      </widget>
+      <widget class="QLabel" name="label_12">
+       <property name="geometry">
+        <rect>
+         <x>260</x>
+         <y>120</y>
+         <width>91</width>
+         <height>18</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Unit of Measure</string>
+       </property>
+       <property name="buddy">
+        <cstring>txtTreeMeasuringUnit</cstring>
+       </property>
+      </widget>
+      <widget class="QPushButton" name="btnTreeSave">
+       <property name="geometry">
+        <rect>
+         <x>350</x>
+         <y>240</y>
+         <width>80</width>
+         <height>28</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Save</string>
+       </property>
+      </widget>
+      <widget class="QListView" name="treeListView">
+       <property name="geometry">
+        <rect>
+         <x>5</x>
+         <y>50</y>
+         <width>241</width>
+         <height>201</height>
+        </rect>
+       </property>
+       <property name="alternatingRowColors">
+        <bool>true</bool>
+       </property>
+      </widget>
+     </widget>
+     <widget class="QWidget" name="tabOtherTradableGoods">
+      <attribute name="title">
+       <string>Tradable Goods</string>
+      </attribute>
+      <widget class="QLabel" name="label_13">
+       <property name="geometry">
+        <rect>
+         <x>260</x>
+         <y>60</y>
+         <width>54</width>
+         <height>18</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Type</string>
+       </property>
+       <property name="buddy">
+        <cstring>txtTradableGoodType</cstring>
+       </property>
+      </widget>
+      <widget class="QPushButton" name="btnTGoodDelete">
+       <property name="geometry">
+        <rect>
+         <x>460</x>
+         <y>240</y>
+         <width>80</width>
+         <height>28</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Delete</string>
+       </property>
+      </widget>
+      <widget class="QLineEdit" name="txtTradableGoodType">
+       <property name="geometry">
+        <rect>
+         <x>352</x>
+         <y>60</y>
+         <width>201</width>
+         <height>28</height>
+        </rect>
+       </property>
+      </widget>
+      <widget class="QLabel" name="label_21">
+       <property name="geometry">
+        <rect>
+         <x>290</x>
+         <y>10</y>
+         <width>241</width>
+         <height>18</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Add/ Edit Good Details</string>
+       </property>
+      </widget>
+      <widget class="QLineEdit" name="txtTradableGoodMeasuringUnit">
+       <property name="geometry">
+        <rect>
+         <x>350</x>
+         <y>110</y>
+         <width>201</width>
+         <height>28</height>
+        </rect>
+       </property>
+      </widget>
+      <widget class="QLabel" name="label_22">
+       <property name="geometry">
+        <rect>
+         <x>10</x>
+         <y>10</y>
+         <width>221</width>
+         <height>18</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Select Good</string>
+       </property>
+       <property name="buddy">
+        <cstring>tradableGoodsListView</cstring>
+       </property>
+      </widget>
+      <widget class="QLabel" name="label_15">
+       <property name="geometry">
+        <rect>
+         <x>260</x>
+         <y>120</y>
+         <width>91</width>
+         <height>18</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Unit of Measure</string>
+       </property>
+       <property name="buddy">
+        <cstring>txtTradableGoodMeasuringUnit</cstring>
+       </property>
+      </widget>
+      <widget class="QPushButton" name="btnTGoodSave">
+       <property name="geometry">
+        <rect>
+         <x>350</x>
+         <y>240</y>
+         <width>80</width>
+         <height>28</height>
+        </rect>
+       </property>
+       <property name="text">
+        <string>Save</string>
+       </property>
+      </widget>
+      <widget class="QListView" name="tradableGoodsListView">
+       <property name="geometry">
+        <rect>
+         <x>0</x>
+         <y>50</y>
+         <width>251</width>
+         <height>192</height>
+        </rect>
+       </property>
+       <property name="alternatingRowColors">
+        <bool>true</bool>
+       </property>
+      </widget>
+     </widget>
+    </widget>
+   </item>
+   <item>
+    <widget class="QPushButton" name="btnAssetsClose">
      <property name="text">
-      <string>Cash Saving Type</string>
+      <string>Close</string>
      </property>
     </widget>
-    <widget class="QPushButton" name="btnCashDelete">
-     <property name="geometry">
-      <rect>
-       <x>480</x>
-       <y>150</y>
-       <width>80</width>
-       <height>28</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Delete</string>
-     </property>
-    </widget>
-    <widget class="QLineEdit" name="txtSavingCategories">
-     <property name="geometry">
-      <rect>
-       <x>372</x>
-       <y>60</y>
-       <width>181</width>
-       <height>28</height>
-      </rect>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_25">
-     <property name="geometry">
-      <rect>
-       <x>290</x>
-       <y>10</y>
-       <width>241</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Add/ Edit Cash Saving Details</string>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_26">
-     <property name="geometry">
-      <rect>
-       <x>0</x>
-       <y>10</y>
-       <width>221</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Select Cash Saving Type</string>
-     </property>
-    </widget>
-    <widget class="QPushButton" name="btnCashSave">
-     <property name="geometry">
-      <rect>
-       <x>370</x>
-       <y>150</y>
-       <width>80</width>
-       <height>28</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Save</string>
-     </property>
-    </widget>
-    <widget class="QListView" name="savingsListView">
-     <property name="geometry">
-      <rect>
-       <x>5</x>
-       <y>60</y>
-       <width>241</width>
-       <height>201</height>
-      </rect>
-     </property>
-     <property name="alternatingRowColors">
-      <bool>true</bool>
-     </property>
-    </widget>
-   </widget>
-   <widget class="QWidget" name="tabFoodStock">
-    <attribute name="title">
-     <string>Food Stock</string>
-    </attribute>
-    <widget class="QLineEdit" name="txtFoodStockType">
-     <property name="geometry">
-      <rect>
-       <x>352</x>
-       <y>60</y>
-       <width>201</width>
-       <height>28</height>
-      </rect>
-     </property>
-    </widget>
-    <widget class="QLineEdit" name="txtEnergyValue">
-     <property name="geometry">
-      <rect>
-       <x>350</x>
-       <y>110</y>
-       <width>201</width>
-       <height>28</height>
-      </rect>
-     </property>
-    </widget>
-    <widget class="QPushButton" name="btnFoodStockSave">
-     <property name="geometry">
-      <rect>
-       <x>350</x>
-       <y>240</y>
-       <width>80</width>
-       <height>28</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Save</string>
-     </property>
-    </widget>
-    <widget class="QPushButton" name="btnFoodStockDelete">
-     <property name="geometry">
-      <rect>
-       <x>460</x>
-       <y>240</y>
-       <width>80</width>
-       <height>28</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Delete</string>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_3">
-     <property name="geometry">
-      <rect>
-       <x>260</x>
-       <y>60</y>
-       <width>54</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Type</string>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_5">
-     <property name="geometry">
-      <rect>
-       <x>260</x>
-       <y>120</y>
-       <width>54</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>KCalories</string>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_6">
-     <property name="geometry">
-      <rect>
-       <x>0</x>
-       <y>10</y>
-       <width>221</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Select Food Stock Type</string>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_16">
-     <property name="geometry">
-      <rect>
-       <x>290</x>
-       <y>10</y>
-       <width>241</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Add/ Edit Food Stock Details</string>
-     </property>
-    </widget>
-    <widget class="QLineEdit" name="txtMeasuringUnit">
-     <property name="geometry">
-      <rect>
-       <x>350</x>
-       <y>160</y>
-       <width>201</width>
-       <height>31</height>
-      </rect>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_4">
-     <property name="geometry">
-      <rect>
-       <x>260</x>
-       <y>170</y>
-       <width>81</width>
-       <height>16</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Unit of Measure</string>
-     </property>
-    </widget>
-    <widget class="QListView" name="foodListView">
-     <property name="geometry">
-      <rect>
-       <x>10</x>
-       <y>50</y>
-       <width>241</width>
-       <height>201</height>
-      </rect>
-     </property>
-     <property name="alternatingRowColors">
-      <bool>true</bool>
-     </property>
-    </widget>
-   </widget>
-   <widget class="QWidget" name="tabLand">
-    <attribute name="title">
-     <string>Land</string>
-    </attribute>
-    <widget class="QLineEdit" name="txtLandType">
-     <property name="geometry">
-      <rect>
-       <x>352</x>
-       <y>60</y>
-       <width>201</width>
-       <height>28</height>
-      </rect>
-     </property>
-    </widget>
-    <widget class="QPushButton" name="btnLandSave">
-     <property name="geometry">
-      <rect>
-       <x>350</x>
-       <y>240</y>
-       <width>80</width>
-       <height>28</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Save</string>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_7">
-     <property name="geometry">
-      <rect>
-       <x>260</x>
-       <y>60</y>
-       <width>54</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Type</string>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_8">
-     <property name="geometry">
-      <rect>
-       <x>260</x>
-       <y>120</y>
-       <width>91</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Unit of Measure</string>
-     </property>
-    </widget>
-    <widget class="QLineEdit" name="txtLandMeasuringUnit">
-     <property name="geometry">
-      <rect>
-       <x>350</x>
-       <y>110</y>
-       <width>201</width>
-       <height>28</height>
-      </rect>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_17">
-     <property name="geometry">
-      <rect>
-       <x>290</x>
-       <y>10</y>
-       <width>241</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Add/ Edit Land Details</string>
-     </property>
-    </widget>
-    <widget class="QPushButton" name="btnLandDelete">
-     <property name="geometry">
-      <rect>
-       <x>460</x>
-       <y>240</y>
-       <width>80</width>
-       <height>28</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Delete</string>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_18">
-     <property name="geometry">
-      <rect>
-       <x>0</x>
-       <y>10</y>
-       <width>221</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Select Land Type</string>
-     </property>
-    </widget>
-    <widget class="QListView" name="landListView">
-     <property name="geometry">
-      <rect>
-       <x>5</x>
-       <y>50</y>
-       <width>241</width>
-       <height>201</height>
-      </rect>
-     </property>
-     <property name="alternatingRowColors">
-      <bool>true</bool>
-     </property>
-    </widget>
-   </widget>
-   <widget class="QWidget" name="tabLivestock">
-    <attribute name="title">
-     <string>Livestock</string>
-    </attribute>
-    <widget class="QLineEdit" name="txtLivestockEnergyValue">
-     <property name="geometry">
-      <rect>
-       <x>350</x>
-       <y>110</y>
-       <width>201</width>
-       <height>28</height>
-      </rect>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_9">
-     <property name="geometry">
-      <rect>
-       <x>260</x>
-       <y>170</y>
-       <width>81</width>
-       <height>16</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Unit of Measure</string>
-     </property>
-     <property name="buddy">
-      <cstring>txtLivestockUnit</cstring>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_11">
-     <property name="geometry">
-      <rect>
-       <x>260</x>
-       <y>120</y>
-       <width>54</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>KCalories</string>
-     </property>
-     <property name="buddy">
-      <cstring>txtLivestockEnergyValue</cstring>
-     </property>
-    </widget>
-    <widget class="QLineEdit" name="txtLivestockUnit">
-     <property name="geometry">
-      <rect>
-       <x>350</x>
-       <y>160</y>
-       <width>201</width>
-       <height>31</height>
-      </rect>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_24">
-     <property name="geometry">
-      <rect>
-       <x>290</x>
-       <y>10</y>
-       <width>241</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Add/ Edit Livestocktock Details</string>
-     </property>
-    </widget>
-    <widget class="QPushButton" name="btnLivestockDelete">
-     <property name="geometry">
-      <rect>
-       <x>460</x>
-       <y>240</y>
-       <width>80</width>
-       <height>28</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Delete</string>
-     </property>
-    </widget>
-    <widget class="QListView" name="livestockListView">
-     <property name="geometry">
-      <rect>
-       <x>10</x>
-       <y>50</y>
-       <width>241</width>
-       <height>201</height>
-      </rect>
-     </property>
-     <property name="alternatingRowColors">
-      <bool>true</bool>
-     </property>
-    </widget>
-    <widget class="QLineEdit" name="txtLivestockPType">
-     <property name="geometry">
-      <rect>
-       <x>352</x>
-       <y>60</y>
-       <width>201</width>
-       <height>28</height>
-      </rect>
-     </property>
-    </widget>
-    <widget class="QPushButton" name="btnLivestockSave">
-     <property name="geometry">
-      <rect>
-       <x>350</x>
-       <y>240</y>
-       <width>80</width>
-       <height>28</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Save</string>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_14">
-     <property name="geometry">
-      <rect>
-       <x>0</x>
-       <y>10</y>
-       <width>221</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Select Livetock Type</string>
-     </property>
-     <property name="buddy">
-      <cstring>livestockListView</cstring>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_27">
-     <property name="geometry">
-      <rect>
-       <x>260</x>
-       <y>60</y>
-       <width>54</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Type</string>
-     </property>
-     <property name="buddy">
-      <cstring>txtLivestockPType</cstring>
-     </property>
-    </widget>
-   </widget>
-   <widget class="QWidget" name="tabTrees">
-    <attribute name="title">
-     <string>Trees</string>
-    </attribute>
-    <widget class="QLabel" name="label_10">
-     <property name="geometry">
-      <rect>
-       <x>260</x>
-       <y>60</y>
-       <width>54</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Type</string>
-     </property>
-     <property name="buddy">
-      <cstring>txtTreeType</cstring>
-     </property>
-    </widget>
-    <widget class="QPushButton" name="btnTreeDelete">
-     <property name="geometry">
-      <rect>
-       <x>460</x>
-       <y>240</y>
-       <width>80</width>
-       <height>28</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Delete</string>
-     </property>
-    </widget>
-    <widget class="QLineEdit" name="txtTreeType">
-     <property name="geometry">
-      <rect>
-       <x>352</x>
-       <y>60</y>
-       <width>201</width>
-       <height>28</height>
-      </rect>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_19">
-     <property name="geometry">
-      <rect>
-       <x>290</x>
-       <y>10</y>
-       <width>241</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Add/ Edit Tree Details</string>
-     </property>
-    </widget>
-    <widget class="QLineEdit" name="txtTreeMeasuringUnit">
-     <property name="geometry">
-      <rect>
-       <x>350</x>
-       <y>110</y>
-       <width>201</width>
-       <height>28</height>
-      </rect>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_20">
-     <property name="geometry">
-      <rect>
-       <x>0</x>
-       <y>10</y>
-       <width>221</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Select Tree Type</string>
-     </property>
-     <property name="buddy">
-      <cstring>treeListView</cstring>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_12">
-     <property name="geometry">
-      <rect>
-       <x>260</x>
-       <y>120</y>
-       <width>91</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Unit of Measure</string>
-     </property>
-     <property name="buddy">
-      <cstring>txtTreeMeasuringUnit</cstring>
-     </property>
-    </widget>
-    <widget class="QPushButton" name="btnTreeSave">
-     <property name="geometry">
-      <rect>
-       <x>350</x>
-       <y>240</y>
-       <width>80</width>
-       <height>28</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Save</string>
-     </property>
-    </widget>
-    <widget class="QListView" name="treeListView">
-     <property name="geometry">
-      <rect>
-       <x>5</x>
-       <y>50</y>
-       <width>241</width>
-       <height>201</height>
-      </rect>
-     </property>
-     <property name="alternatingRowColors">
-      <bool>true</bool>
-     </property>
-    </widget>
-   </widget>
-   <widget class="QWidget" name="tabOtherTradableGoods">
-    <attribute name="title">
-     <string>Tradable Goods</string>
-    </attribute>
-    <widget class="QLabel" name="label_13">
-     <property name="geometry">
-      <rect>
-       <x>260</x>
-       <y>60</y>
-       <width>54</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Type</string>
-     </property>
-     <property name="buddy">
-      <cstring>txtTradableGoodType</cstring>
-     </property>
-    </widget>
-    <widget class="QPushButton" name="btnTGoodDelete">
-     <property name="geometry">
-      <rect>
-       <x>460</x>
-       <y>240</y>
-       <width>80</width>
-       <height>28</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Delete</string>
-     </property>
-    </widget>
-    <widget class="QLineEdit" name="txtTradableGoodType">
-     <property name="geometry">
-      <rect>
-       <x>352</x>
-       <y>60</y>
-       <width>201</width>
-       <height>28</height>
-      </rect>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_21">
-     <property name="geometry">
-      <rect>
-       <x>290</x>
-       <y>10</y>
-       <width>241</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Add/ Edit Good Details</string>
-     </property>
-    </widget>
-    <widget class="QLineEdit" name="txtTradableGoodMeasuringUnit">
-     <property name="geometry">
-      <rect>
-       <x>350</x>
-       <y>110</y>
-       <width>201</width>
-       <height>28</height>
-      </rect>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_22">
-     <property name="geometry">
-      <rect>
-       <x>10</x>
-       <y>10</y>
-       <width>221</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Select Good</string>
-     </property>
-     <property name="buddy">
-      <cstring>tradableGoodsListView</cstring>
-     </property>
-    </widget>
-    <widget class="QLabel" name="label_15">
-     <property name="geometry">
-      <rect>
-       <x>260</x>
-       <y>120</y>
-       <width>91</width>
-       <height>18</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Unit of Measure</string>
-     </property>
-     <property name="buddy">
-      <cstring>txtTradableGoodMeasuringUnit</cstring>
-     </property>
-    </widget>
-    <widget class="QPushButton" name="btnTGoodSave">
-     <property name="geometry">
-      <rect>
-       <x>350</x>
-       <y>240</y>
-       <width>80</width>
-       <height>28</height>
-      </rect>
-     </property>
-     <property name="text">
-      <string>Save</string>
-     </property>
-    </widget>
-    <widget class="QListView" name="tradableGoodsListView">
-     <property name="geometry">
-      <rect>
-       <x>0</x>
-       <y>50</y>
-       <width>251</width>
-       <height>192</height>
-      </rect>
-     </property>
-     <property name="alternatingRowColors">
-      <bool>true</bool>
-     </property>
-    </widget>
-   </widget>
-  </widget>
-  <widget class="QPushButton" name="btnAssetsClose">
-   <property name="geometry">
-    <rect>
-     <x>490</x>
-     <y>350</y>
-     <width>80</width>
-     <height>28</height>
-    </rect>
-   </property>
-   <property name="text">
-    <string>Close</string>
-   </property>
-  </widget>
+   </item>
+  </layout>
  </widget>
  <tabstops>
-  <tabstop>txtSavingCategories</tabstop>
-  <tabstop>btnCashDelete</tabstop>
   <tabstop>tabWidget</tabstop>
-  <tabstop>savingsListView</tabstop>
-  <tabstop>btnCashSave</tabstop>
   <tabstop>btnAssetsClose</tabstop>
-  <tabstop>txtFoodStockType</tabstop>
-  <tabstop>txtEnergyValue</tabstop>
-  <tabstop>btnFoodStockSave</tabstop>
-  <tabstop>btnFoodStockDelete</tabstop>
-  <tabstop>txtMeasuringUnit</tabstop>
-  <tabstop>foodListView</tabstop>
   <tabstop>txtLandType</tabstop>
   <tabstop>btnLandSave</tabstop>
   <tabstop>txtLandMeasuringUnit</tabstop>
    </hints>
   </connection>
   <connection>
-   <sender>btnCashSave</sender>
-   <signal>clicked()</signal>
-   <receiver>ManageAssetDetails</receiver>
-   <slot>saveSavingsType()</slot>
-   <hints>
-    <hint type="sourcelabel">
-     <x>401</x>
-     <y>201</y>
-    </hint>
-    <hint type="destinationlabel">
-     <x>40</x>
-     <y>352</y>
-    </hint>
-   </hints>
-  </connection>
-  <connection>
-   <sender>btnCashDelete</sender>
-   <signal>clicked()</signal>
-   <receiver>ManageAssetDetails</receiver>
-   <slot>deleteSavingsType()</slot>
-   <hints>
-    <hint type="sourcelabel">
-     <x>505</x>
-     <y>191</y>
-    </hint>
-    <hint type="destinationlabel">
-     <x>65</x>
-     <y>342</y>
-    </hint>
-   </hints>
-  </connection>
-  <connection>
-   <sender>foodListView</sender>
-   <signal>clicked(QModelIndex)</signal>
-   <receiver>ManageAssetDetails</receiver>
-   <slot>pickSelectedFoodItem()</slot>
-   <hints>
-    <hint type="sourcelabel">
-     <x>109</x>
-     <y>96</y>
-    </hint>
-    <hint type="destinationlabel">
-     <x>50</x>
-     <y>361</y>
-    </hint>
-   </hints>
-  </connection>
-  <connection>
-   <sender>btnFoodStockSave</sender>
-   <signal>clicked()</signal>
-   <receiver>ManageAssetDetails</receiver>
-   <slot>saveFoodStockType()</slot>
-   <hints>
-    <hint type="sourcelabel">
-     <x>384</x>
-     <y>293</y>
-    </hint>
-    <hint type="destinationlabel">
-     <x>75</x>
-     <y>367</y>
-    </hint>
-   </hints>
-  </connection>
-  <connection>
-   <sender>btnFoodStockDelete</sender>
-   <signal>clicked()</signal>
-   <receiver>ManageAssetDetails</receiver>
-   <slot>deleteFoodStockType()</slot>
-   <hints>
-    <hint type="sourcelabel">
-     <x>471</x>
-     <y>288</y>
-    </hint>
-    <hint type="destinationlabel">
-     <x>90</x>
-     <y>371</y>
-    </hint>
-   </hints>
-  </connection>
-  <connection>
    <sender>landListView</sender>
    <signal>clicked(QModelIndex)</signal>
    <receiver>ManageAssetDetails</receiver>

open-ihm/gui/designs/ui_report_householdincome.py

-# -*- coding: utf-8 -*-
-
-# Form implementation generated from reading ui file 'ui_report_householdincome.ui'
-#
-# Created: Fri Apr 22 21:52:29 2011
-#      by: PyQt4 UI code generator 4.8.3
-#
-# WARNING! All changes made in this file will be lost!
-
-from PyQt4 import QtCore, QtGui
-
-try:
-    _fromUtf8 = QtCore.QString.fromUtf8
-except AttributeError:
-    _fromUtf8 = lambda s: s
-
-class Ui_HouseholdIncomeReport(object):
-    def setupUi(self, HouseholdIncomeReport):
-        HouseholdIncomeReport.setObjectName(_fromUtf8("HouseholdIncomeReport"))
-        HouseholdIncomeReport.resize(713, 580)
-        HouseholdIncomeReport.setMinimumSize(QtCore.QSize(632, 580))
-        self.formLayout = QtGui.QFormLayout(HouseholdIncomeReport)
-        self.formLayout.setObjectName(_fromUtf8("formLayout"))
-        self.label = QtGui.QLabel(HouseholdIncomeReport)
-        self.label.setObjectName(_fromUtf8("label"))
-        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
-        self.cmbProjects = QtGui.QComboBox(HouseholdIncomeReport)
-        self.cmbProjects.setObjectName(_fromUtf8("cmbProjects"))
-        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.cmbProjects)
-        self.label_2 = QtGui.QLabel(HouseholdIncomeReport)
-        self.label_2.setObjectName(_fromUtf8("label_2"))
-        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_2)
-        self.cmbReportType = QtGui.QComboBox(HouseholdIncomeReport)
-        self.cmbReportType.setObjectName(_fromUtf8("cmbReportType"))
-        self.cmbReportType.addItem(_fromUtf8(""))
-        self.cmbReportType.addItem(_fromUtf8(""))
-        self.cmbReportType.addItem(_fromUtf8(""))
-        self.cmbReportType.addItem(_fromUtf8(""))
-        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.cmbReportType)
-        self.treeViewHouseholds = QtGui.QTreeView(HouseholdIncomeReport)
-        self.treeViewHouseholds.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
-        self.treeViewHouseholds.setAlternatingRowColors(True)
-        self.treeViewHouseholds.setSelectionMode(QtGui.QAbstractItemView.MultiSelection)
-        self.treeViewHouseholds.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
-        self.treeViewHouseholds.setSortingEnabled(True)
-        self.treeViewHouseholds.setObjectName(_fromUtf8("treeViewHouseholds"))
-        self.formLayout.setWidget(2, QtGui.QFormLayout.SpanningRole, self.treeViewHouseholds)
-        self.groupBox_4 = QtGui.QGroupBox(HouseholdIncomeReport)
-        self.groupBox_4.setTitle(_fromUtf8(""))
-        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
-        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.groupBox_4)
-        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
-        self.groupBox_5 = QtGui.QGroupBox(self.groupBox_4)
-        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Preferred)
-        sizePolicy.setHorizontalStretch(0)
-        sizePolicy.setVerticalStretch(0)
-        sizePolicy.setHeightForWidth(self.groupBox_5.sizePolicy().hasHeightForWidth())
-        self.groupBox_5.setSizePolicy(sizePolicy)
-        self.groupBox_5.setTitle(_fromUtf8(""))
-        self.groupBox_5.setObjectName(_fromUtf8("groupBox_5"))
-        self.verticalLayout_3 = QtGui.QVBoxLayout(self.groupBox_5)
-        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
-        self.treeView = QtGui.QTreeView(self.groupBox_5)
-        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Expanding)
-        sizePolicy.setHorizontalStretch(0)
-        sizePolicy.setVerticalStretch(0)
-        sizePolicy.setHeightForWidth(self.treeView.sizePolicy().hasHeightForWidth())
-        self.treeView.setSizePolicy(sizePolicy)
-        self.treeView.setAlternatingRowColors(True)
-        self.treeView.setSelectionMode(QtGui.QAbstractItemView.MultiSelection)
-        self.treeView.setSortingEnabled(False)
-        self.treeView.setObjectName(_fromUtf8("treeView"))
-        self.verticalLayout_3.addWidget(self.treeView)
-        self.horizontalLayout_2.addWidget(self.groupBox_5)
-        self.groupBox_2 = QtGui.QGroupBox(self.groupBox_4)
-        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Preferred)
-        sizePolicy.setHorizontalStretch(0)
-        sizePolicy.setVerticalStretch(0)
-        sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth())
-        self.groupBox_2.setSizePolicy(sizePolicy)
-        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
-        self.verticalLayout = QtGui.QVBoxLayout(self.groupBox_2)
-        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
-        self.listViewHCharacteristics = QtGui.QListView(self.groupBox_2)
-        self.listViewHCharacteristics.setAlternatingRowColors(True)
-        self.listViewHCharacteristics.setSelectionMode(QtGui.QAbstractItemView.MultiSelection)
-        self.listViewHCharacteristics.setObjectName(_fromUtf8("listViewHCharacteristics"))
-        self.verticalLayout.addWidget(self.listViewHCharacteristics)
-        self.horizontalLayout_2.addWidget(self.groupBox_2)
-        self.groupBox_3 = QtGui.QGroupBox(self.groupBox_4)
-        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Preferred)
-        sizePolicy.setHorizontalStretch(0)
-        sizePolicy.setVerticalStretch(0)
-        sizePolicy.setHeightForWidth(self.groupBox_3.sizePolicy().hasHeightForWidth())
-        self.groupBox_3.setSizePolicy(sizePolicy)
-        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
-        self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox_3)
-        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
-        self.listViewPersonalCharacteristics = QtGui.QListView(self.groupBox_3)
-        self.listViewPersonalCharacteristics.setAlternatingRowColors(True)
-        self.listViewPersonalCharacteristics.setSelectionMode(QtGui.QAbstractItemView.MultiSelection)
-        self.listViewPersonalCharacteristics.setObjectName(_fromUtf8("listViewPersonalCharacteristics"))
-        self.verticalLayout_2.addWidget(self.listViewPersonalCharacteristics)
-        self.horizontalLayout_2.addWidget(self.groupBox_3)
-        self.formLayout.setWidget(3, QtGui.QFormLayout.SpanningRole, self.groupBox_4)
-        self.groupBox = QtGui.QGroupBox(HouseholdIncomeReport)
-        self.groupBox.setTitle(_fromUtf8(""))
-        self.groupBox.setObjectName(_fromUtf8("groupBox"))
-        self.horizontalLayout = QtGui.QHBoxLayout(self.groupBox)
-        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
-        self.cmdSaveDataTable = QtGui.QPushButton(self.groupBox)
-        self.cmdSaveDataTable.setObjectName(_fromUtf8("cmdSaveDataTable"))
-        self.horizontalLayout.addWidget(self.cmdSaveDataTable)
-        self.cmdShowReport = QtGui.QPushButton(self.groupBox)
-        self.cmdShowReport.setObjectName(_fromUtf8("cmdShowReport"))
-        self.horizontalLayout.addWidget(self.cmdShowReport)
-        self.cmdClose = QtGui.QPushButton(self.groupBox)
-        self.cmdClose.setObjectName(_fromUtf8("cmdClose"))
-        self.horizontalLayout.addWidget(self.cmdClose)
-        self.formLayout.setWidget(4, QtGui.QFormLayout.SpanningRole, self.groupBox)
-        self.label.setBuddy(self.cmbProjects)
-        self.label_2.setBuddy(self.cmbReportType)
-
-        self.retranslateUi(HouseholdIncomeReport)
-        QtCore.QObject.connect(self.cmbProjects, QtCore.SIGNAL(_fromUtf8("activated(QString)")), HouseholdIncomeReport.updateDialogData)
-        QtCore.QObject.connect(self.cmbProjects, QtCore.SIGNAL(_fromUtf8("currentIndexChanged(int)")), HouseholdIncomeReport.putMainIncomeCategories)
-        QtCore.QObject.connect(self.cmdClose, QtCore.SIGNAL(_fromUtf8("clicked()")), HouseholdIncomeReport.mdiClose)
-        QtCore.QObject.connect(self.cmdShowReport, QtCore.SIGNAL(_fromUtf8("clicked()")), HouseholdIncomeReport.getReportTable)
-        QtCore.QObject.connect(self.cmdSaveDataTable, QtCore.SIGNAL(_fromUtf8("clicked()")), HouseholdIncomeReport.writeTable)
-        QtCore.QMetaObject.connectSlotsByName(HouseholdIncomeReport)
-        HouseholdIncomeReport.setTabOrder(self.cmbProjects, self.cmbReportType)
-        HouseholdIncomeReport.setTabOrder(self.cmbReportType, self.treeViewHouseholds)
-        HouseholdIncomeReport.setTabOrder(self.treeViewHouseholds, self.treeView)
-        HouseholdIncomeReport.setTabOrder(self.treeView, self.listViewHCharacteristics)
-        HouseholdIncomeReport.setTabOrder(self.listViewHCharacteristics, self.listViewPersonalCharacteristics)
-        HouseholdIncomeReport.setTabOrder(self.listViewPersonalCharacteristics, self.cmdSaveDataTable)
-        HouseholdIncomeReport.setTabOrder(self.cmdSaveDataTable, self.cmdShowReport)
-        HouseholdIncomeReport.setTabOrder(self.cmdShowReport, self.cmdClose)
-
-    def retranslateUi(self, HouseholdIncomeReport):
-        HouseholdIncomeReport.setWindowTitle(QtGui.QApplication.translate("HouseholdIncomeReport", "Report: Households by Income Source", None, QtGui.QApplication.UnicodeUTF8))
-        self.label.setText(QtGui.QApplication.translate("HouseholdIncomeReport", "Projects", None, QtGui.QApplication.UnicodeUTF8))
-        self.label_2.setText(QtGui.QApplication.translate("HouseholdIncomeReport", "Report Type", None, QtGui.QApplication.UnicodeUTF8))
-        self.cmbReportType.setItemText(0, QtGui.QApplication.translate("HouseholdIncomeReport", "Cash Income - Raw", None, QtGui.QApplication.UnicodeUTF8))
-        self.cmbReportType.setItemText(1, QtGui.QApplication.translate("HouseholdIncomeReport", "Cash Income - Standardised", None, QtGui.QApplication.UnicodeUTF8))
-        self.cmbReportType.setItemText(2, QtGui.QApplication.translate("HouseholdIncomeReport", "Food Income - Raw", None, QtGui.QApplication.UnicodeUTF8))
-        self.cmbReportType.setItemText(3, QtGui.QApplication.translate("HouseholdIncomeReport", "Food Income - Standardised", None, QtGui.QApplication.UnicodeUTF8))
-        self.groupBox_2.setTitle(QtGui.QApplication.translate("HouseholdIncomeReport", "Household Characteristics", None, QtGui.QApplication.UnicodeUTF8))