Added a selection view tab, placed next to the "Log" tab. The tab currently

only displays the current selection.
This commit is contained in:
2006-08-07 14:14:42 +00:00
parent 57cb203316
commit b769288b3b
6 changed files with 140 additions and 11 deletions

View File

@@ -12,7 +12,7 @@ import gnome
import gnome.ui
import scipy
import pango
from system import project, workflow, dataset, logger, plots, navigator, dialogs
from system import project, workflow, dataset, logger, plots, navigator, dialogs, selections
PROGRAM_NAME = 'fluents'
@@ -31,6 +31,7 @@ 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'])
def init_gui(self):
self['appwindow'].set_size_request(800, 600)
@@ -69,6 +70,7 @@ 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)
def set_workflow(self, workflow):
self.workflow = workflow
@@ -130,6 +132,16 @@ class FluentApp:
self.navigator_view.show()
return self.navigator_view
def create_selection_tree(self, str1, str2, int1, int2):
self.selection_tree = selections.SelectionTree()
self.selection_tree.show()
return self.selection_tree
def create_identifier_list(self, str1, str2, int1, int2):
self.identifier_list = selections.IdentifierList()
self.identifier_list.show()
return self.identifier_list
# Event handlers.
# These methods are called by the gtk framework in response to events and
# should not be called directly.