PERFORCE change 123534 for review

Andrew Turner andrew at FreeBSD.org
Sun Jul 15 12:06:36 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=123534

Change 123534 by andrew at andrew_hermies on 2007/07/15 12:05:35

	Add a model for the update view and allow one to be set in the main window

Affected files ...

.. //depot/projects/soc2007/andrew-update/frontend/facund/gui/__init__.py#4 edit
.. //depot/projects/soc2007/andrew-update/frontend/facund/gui/main_window.py#6 edit
.. //depot/projects/soc2007/andrew-update/frontend/facund/gui/update_model.py#1 add

Differences ...

==== //depot/projects/soc2007/andrew-update/frontend/facund/gui/__init__.py#4 (text+ko) ====

@@ -26,3 +26,4 @@
 
 from computer_model import ComputerTreeModel
 from main_window import MainWindow
+from update_model import UpdateListModel

==== //depot/projects/soc2007/andrew-update/frontend/facund/gui/main_window.py#6 (text+ko) ====

@@ -42,6 +42,15 @@
 	def setController(self, controller):
 		self.__controller = controller
 
+	def setUpdateViewModel(self, model):
+		'''Sets the model to use to for the computer tree'''
+		self.__updateViewModel = model
+		treeView = self.__xml.get_widget('updateView')
+		treeView.set_model(model)
+		cell = gtk.CellRendererText()
+		column = gtk.TreeViewColumn("Update", cell, text=0)
+		treeView.append_column(column)
+
 	def setComputerTreeModel(self, model):
 		'''Sets the model to use to for the computer tree'''
 		self.__computerTreeModel = model


More information about the p4-projects mailing list