Package schrodinger :: Package application :: Package matsci :: Module builderwidgets :: Class TemplateManager
[hide private]
[frames] | no frames]

Class TemplateManager

PyQt4.QtGui.QDialog --+
                      |
                     TemplateManager

A dialog that manages the user templates - currently only allows deletion

Instance Methods [hide private]
 
__init__(self, parent, templates, custom_path)
Create a TemplateManager object
 
deleteTemplate(self)
Delete the selected template
 
changeTemplateDirectory(self)
Change the directory the custom templates are read from/saved to
 
useDefaultTemplateDirectory(self)
Switch the custom template directory back to the default directory
Class Variables [hide private]
  customDirChanged = QtCore.pyqtSignal(str)
Method Details [hide private]

__init__(self, parent, templates, custom_path)
(Constructor)

 

Create a TemplateManager object

Parameters:
  • parent (QWidget) - The window to display this dialog over
  • templates (list) - list of template names in the self.parent.custom_path directory
  • custom_path (str) - The directory where the custom templates are stored