Changed how the selection list works. CategoryDatasets can be dragged down to

the selection list, and will then be converted to Selections.
This commit is contained in:
2006-09-08 18:25:03 +00:00
parent df7f98adec
commit e0ca48d4b3
5 changed files with 480 additions and 64 deletions

View File

@@ -32,7 +32,11 @@ class FluentApp:
gtk.glade.set_custom_handler(self.custom_object_factory)
self.widget_tree = gtk.glade.XML(GLADEFILENAME, 'appwindow')
self.workflow = wf(self)
self['selection_tree'].set_identifier_list(self['identifier_list'])
# self['selection_tree'].set_identifier_list(self['identifier_list'])
self.dimlistcontroller = selections.DimListController(self['dim_list'],
self['selection_tree'],
self['identifier_list'])
# self['dim_list'].set_selection_tree(self['selection_tree'])
def init_gui(self):
self['appwindow'].set_size_request(800, 600)
@@ -71,7 +75,9 @@ class FluentApp:
self.project = project
self.workflow.add_project(self.project)
self.navigator_view.add_project(self.project)
self['selection_tree'].set_project(self.project)
self.dimlistcontroller.set_project(project)
# self['selection_tree'].set_project(self.project)
# self['dim_list'].set_project(self.project)
def set_workflow(self, workflow):
self.workflow = workflow
@@ -143,6 +149,11 @@ class FluentApp:
self.navigator_view.show()
return self.navigator_view
def create_dim_list(self, str1, str2, int1, int2):
self.dim_list = selections.DimList()
self.dim_list.show()
return self.dim_list
def create_selection_tree(self, str1, str2, int1, int2):
self.selection_tree = selections.SelectionTree()
self.selection_tree.show()