From: <keo...@us...> - 2006-12-29 09:51:38
|
Revision: 4670 http://svn.sourceforge.net/translate/?rev=4670&view=rev Author: keosophon Date: 2006-12-29 01:51:37 -0800 (Fri, 29 Dec 2006) Log Message: ----------- 1. activate setOpening after file is Opened. 2. setVisible context menu of finbar after file is Opened. Modified Paths: -------------- src/trunk/editor/modules/MainEditor.py src/trunk/editor/modules/Operator.py Modified: src/trunk/editor/modules/MainEditor.py =================================================================== --- src/trunk/editor/modules/MainEditor.py 2006-12-29 09:43:56 UTC (rev 4669) +++ src/trunk/editor/modules/MainEditor.py 2006-12-29 09:51:37 UTC (rev 4670) @@ -193,8 +193,8 @@ # set file status information to text label of status bar. self.connect(self.operator, QtCore.SIGNAL("currentStatus"), self.statuslabel.setText) - self.connect(self.fileaction, QtCore.SIGNAL("fileOpened"), self.setOpening) self.connect(self.fileaction, QtCore.SIGNAL("fileOpened"), self.operator.getUnits) + self.connect(self.operator, QtCore.SIGNAL("fileIsOK"), self.setOpening) # get the last state of mainwindows's toolbars and dockwidgets state = World.settings.value("MainWindowState") @@ -246,6 +246,7 @@ self.ui.actionFilterFuzzy.setChecked(True) self.ui.actionFilterTranslated.setChecked(True) self.ui.actionFilterUntranslated.setChecked(True) + self.findBar.toggleViewAction().setVisible(True) def startRecentAction(self): action = self.sender() Modified: src/trunk/editor/modules/Operator.py =================================================================== --- src/trunk/editor/modules/Operator.py 2006-12-29 09:43:56 UTC (rev 4669) +++ src/trunk/editor/modules/Operator.py 2006-12-29 09:51:37 UTC (rev 4670) @@ -64,6 +64,7 @@ QtGui.QMessageBox.critical(None, 'Error', 'Error while trying to read file ' + fileName + '\n' + str(e)) return self.setNewStore(store) + self.emit(QtCore.SIGNAL("fileIsOK"), fileName) def setNewStore(self, store): """ setup the oparator with a new storage This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |