Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Utilities/GuiUtils.py

    r3b3b40b r63319b0  
    213213    plotRequestedSignal = QtCore.pyqtSignal(list) 
    214214 
    215     # Plot from file names 
    216     plotFromFilenameSignal = QtCore.pyqtSignal(str) 
    217  
    218215    # Plot update requested from a perspective 
    219216    plotUpdateSignal = QtCore.pyqtSignal(list) 
     
    239236    # Send result of Data Operation Utility panel to Data Explorer 
    240237    updateModelFromDataOperationPanelSignal = QtCore.pyqtSignal(QtGui.QStandardItem, dict) 
    241  
    242     # Notify about a new custom plugin being written/deleted/modified 
    243     customModelDirectoryChanged = QtCore.pyqtSignal() 
    244238 
    245239def updateModelItemWithPlot(item, update_data, name=""): 
     
    878872        raise TypeError 
    879873 
    880 def findNextFilename(filename, directory): 
    881     """ 
    882     Finds the next available (non-existing) name for 'filename' in 'directory'. 
    883     plugin.py -> plugin (n).py  - for first 'n' for which the file doesn't exist 
    884     """ 
    885     basename, ext = os.path.splitext(filename) 
    886     # limit the number of copies 
    887     MAX_FILENAMES = 1000 
    888     # Start with (1) 
    889     number_ext = 1 
    890     proposed_filename = "" 
    891     found_filename = False 
    892     # Find the next available filename or exit if too many copies 
    893     while not found_filename or number_ext > MAX_FILENAMES: 
    894         proposed_filename = basename + " ("+str(number_ext)+")" + ext 
    895         if os.path.exists(os.path.join(directory, proposed_filename)): 
    896             number_ext += 1 
    897         else: 
    898             found_filename = True 
    899  
    900     return proposed_filename 
    901  
    902  
    903874class DoubleValidator(QtGui.QDoubleValidator): 
    904875    """ 
Note: See TracChangeset for help on using the changeset viewer.