1.1 --- a/examples/Common/QtConfigurator/__init__.py Tue Nov 01 18:57:41 2005 +0000
1.2 +++ b/examples/Common/QtConfigurator/__init__.py Tue Nov 01 18:58:12 2005 +0000
1.3 @@ -26,8 +26,10 @@
1.4 "cpu" : "config_cpu.xml",
1.5 "hard-disk" : "config_hard_disk.xml",
1.6 "keyboard" : "config_keyboard.xml",
1.7 + "memory-unit" : "config_memory_unit.xml",
1.8 "mouse" : "config_mouse.xml",
1.9 - "screen" : "config_screen.xml"
1.10 + "screen" : "config_screen.xml",
1.11 + "storage-unit" : "config_storage_unit.xml"
1.12 }
1.13
1.14 # Initialisation.
1.15 @@ -86,10 +88,18 @@
1.16 for hard_disk_value in self.factory.find_widgets(self, "hard_disk_value"):
1.17 self.populate_list(hard_disk_value, valid)
1.18
1.19 + # Find memory units.
1.20 + for memory_unit_value in self.factory.find_widgets(self, "memory_unit_value"):
1.21 + self.populate_list(memory_unit_value, self.get_elements("memory-unit"))
1.22 +
1.23 + # Find storage units.
1.24 + for storage_unit_value in self.factory.find_widgets(self, "storage_unit_value"):
1.25 + self.populate_list(storage_unit_value, self.get_elements("storage-unit"))
1.26 +
1.27 # Slots.
1.28
1.29 def baseSystemChanged(self, current_text):
1.30 - self.form_refresh(current_text)
1.31 + self.request_refresh(current_text)
1.32
1.33 def addHardDisk(self):
1.34 #hard_disks = self.prepare_widget("configuration", "hard-disks")
1.35 @@ -105,7 +115,7 @@
1.36 # Perform the consistency check.
1.37 # NOTE: This is not as efficient as it could be since the general check
1.38 # NOTE: refreshes all fields, not just newly added ones.
1.39 - self.form_refresh()
1.40 + self.request_refresh()
1.41
1.42 def addMemoryUnit(self):
1.43 #memory_units = self.prepare_widget("configuration", "memory-units")
1.44 @@ -121,7 +131,7 @@
1.45 # Perform the consistency check.
1.46 # NOTE: This is not as efficient as it could be since the general check
1.47 # NOTE: refreshes all fields, not just newly added ones.
1.48 - self.form_refresh()
1.49 + self.request_refresh()
1.50
1.51 def addStorageUnit(self):
1.52 #storage_units = self.prepare_widget("configuration", "storage-units")
1.53 @@ -137,7 +147,7 @@
1.54 # Perform the consistency check.
1.55 # NOTE: This is not as efficient as it could be since the general check
1.56 # NOTE: refreshes all fields, not just newly added ones.
1.57 - self.form_refresh()
1.58 + self.request_refresh()
1.59
1.60 def removeHardDisk(self):
1.61 #page = self.hard_disks.currentPage()