* The New project toolbar button now works. A druid will display the

available workflows and ask you to select one of them. There are still
   a couple of unresolved issues, but it works, so i upload it to ease
   the use of the program.
This commit is contained in:
2006-04-22 21:46:44 +00:00
parent 357cd1a1a6
commit efcdafe843
7 changed files with 253 additions and 58 deletions

View File

@@ -9,10 +9,13 @@ import project
class NavigatorView (gtk.TreeView):
def __init__(self, project, app):
self.project = project
self.data_tree = project.data_tree
self.app = app
if project:
self.data_tree = project.data_tree
else:
self.data_tree = None
gtk.TreeView.__init__(self, self.data_tree)
gtk.TreeView.__init__(self) #, self.data_tree)
self.set_headers_visible(False)
self.connect('cursor_changed', self.cursor_changed_handler)
@@ -24,6 +27,11 @@ class NavigatorView (gtk.TreeView):
logger.log('debug', 'Initializing navigator window.')
def add_project(self, project):
self.project = project
self.data_tree = project.data_tree
self.set_model(project.data_tree)
def cursor_changed_handler(self, widget):
selection = widget.get_selection()
model, tree_iter = selection.get_selected()