Changeset 3351

Show
Ignore:
Timestamp:
05/14/08 22:05:25 (2 months ago)
Author:
aaronr
Message:

More cleanup of marking models dirty. As of this checkin there is still an issue in that the result manager is inserting nodes into Simulation_runs, which is not editable by default, on config load. This will have to be addressed.

Location:
trunk/opus_gui
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/opus_gui/config/resultsmanager/opusxmlaction_results.py

    r3328 r3351  
    149149        else: 
    150150            print "No valid node was found..." 
    151  
    152         self.currentIndex.model().markAsDirty() 
    153151        model.emit(SIGNAL("layoutChanged()")) 
    154152 
     
    169167                self.currentIndex, 
    170168                newNode) 
    171  
    172         self.currentIndex.model().markAsDirty() 
    173169        model.emit(SIGNAL("layoutChanged()")) 
    174170 
     
    241237        else: 
    242238            print "No valid node was found..." 
    243              
    244         self.currentIndex.model().markAsDirty()         
    245239        model.emit(SIGNAL("layoutChanged()")) 
    246240 
     
    335329        self.currentIndex.model().removeRow(self.currentIndex.internalPointer().row(), 
    336330                                            self.currentIndex.model().parent(self.currentIndex)) 
    337         self.currentIndex.model().markAsDirty() 
    338331        self.currentIndex.model().emit(SIGNAL("layoutChanged()")) 
    339332 
     
    353346        # Now up the tree, only hitting parent nodes and not sibblings 
    354347        self.currentIndex.model().stripAttributeUp('inherited',thisNode) 
    355         self.currentIndex.model().markAsDirty() 
    356348        # Finally we refresh the tree to indicate that there has been a change 
    357349        self.currentIndex.model().emit(SIGNAL("layoutChanged()")) 
  • trunk/opus_gui/config/toolboxbase.py

    r3215 r3351  
    145145                self.generalManagerTree = OpusXMLTree(self,"general", 
    146146                                                      self.parent.generalmanager_page.layout()) 
    147                 self.resultsManagerTree = OpusXMLTree(self,"results_manager", 
    148                                                       self.parent.resultsmanager_page.layout()) 
    149147                self.modelManagerTree = OpusXMLTree(self,"model_manager", 
    150148                                                    self.parent.modelmanager_page.layout()) 
     
    157155                self.dataManagerDBSTree = OpusXMLTree(self, "data_manager_dbstree", 
    158156                                                      self.parent.datamanager_dbsconnections.layout()) 
     157                self.resultsManagerTree = OpusXMLTree(self,"results_manager", 
     158                                                      self.parent.resultsmanager_page.layout()) 
    159159            else: 
    160160                print "Error reading the %s configuration file" % (xml_file) 
  • trunk/opus_gui/config/xmlmodelview/opusdatamodel.py

    r3350 r3351  
    324324        parentItem.childItems.insert(row,item) 
    325325        self.endInsertRows() 
    326         #print "debug" 
    327326        self.markAsDirty() 
    328327        return returnval 
     
    449448        if choices is not None: 
    450449            newNode.setAttribute(QString('choices'), QString(choices)) 
    451         self.markAsDirty() 
    452450        return newNode 
    453451 
  • trunk/opus_gui/main/opusgui.py

    r3185 r3351  
    183183        if config: 
    184184            self.toolboxStuff.openXMLTree(config) 
     185            # Add the project file's path to the title bar 
     186            self.setWindowTitle(self.application_title + " - " + QFileInfo(self.toolboxStuff.runManagerTree.parentTool.xml_file).filePath()) 
    185187        else: 
    186188            import os 
     
    203205            # Open the file and add to the Run tab... 
    204206            self.toolboxStuff.openXMLTree(fileName) 
     207            # Add the project file's path to the title bar 
     208            self.setWindowTitle(self.application_title + " - " + QFileInfo(self.toolboxStuff.runManagerTree.parentTool.xml_file).filePath()) 
    205209            self.resultManagerStuff.scan_for_runs() 
    206  
    207  
    208         # Add the project file's path to the title bar 
    209         self.setWindowTitle(self.application_title + " - " + QFileInfo(self.toolboxStuff.runManagerTree.parentTool.xml_file).filePath()) 
    210210 
    211211    def saveConfig(self):