diff clients/editor/scripts/gui/filemanager.py @ 325:54de5aebf732

* ObjectSelector will now select and scroll to selected object automatically * ObjectSelector will now update after importing new objects * New event signal: onObjectsImported
author cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 21 Aug 2009 20:34:26 +0000
parents 0adf9423062e
children 8e71629c4c43
line wrap: on
line diff
--- a/clients/editor/scripts/gui/filemanager.py	Fri Aug 21 14:39:54 2009 +0000
+++ b/clients/editor/scripts/gui/filemanager.py	Fri Aug 21 20:34:26 2009 +0000
@@ -8,6 +8,7 @@
 from action import Action, ActionGroup
 from input import InputDialog
 from selection import SelectionDialog, ClickSelectionDialog
+from scripts.events import events
 
 class FileManager(object):
 	def __init__(self):
@@ -176,6 +177,8 @@
 			errormsg += u"Error: "+unicode(sys.exc_info()[1])
 			ErrorDialog(errormsg)
 			return None
+		
+		events.onObjectsImported.send(sender=self)
 			
 	def importDir(self, path, filename=""):
 		if os.path.isdir(os.path.join(path, filename)):
@@ -199,6 +202,8 @@
 			errormsg += u"Error: "+unicode(sys.exc_info()[1])
 			ErrorDialog(errormsg)
 			return None
+			
+		events.onObjectsImported.send(sender=self)
 
 class CameraEditor(object):
 	"""