Exemple #1
0
 def __init__(self):
     """Construct the Graphene Property Manager.
     """
     PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)
     #@self.addGroupBoxes()
     #@self.add_whats_this_text()
     self.updateMessageGroupBox()
    def __init__(self, win, editCommand = None):
        """
        Constructor for the EditCommand_PM
        """
        # pw = part window.
        # Its subclasses will create their partwindow objects
        # (and destroy them after Done) -- @@ not be a good idea if we have
        # multiple partwindow support? (i.e. when win object is replaced(?) by
        # partwindow object for each partwindow).  But this works fine.
        # ..same guess -- because opening multiple windows is not supported
        # When we begin supporting that, lots of things will change and this
        # might be one of them .--- ninad 20070613

        self.editCommand = editCommand
        if editCommand:
            self.struct = self.editCommand.struct
        else:
            self.struct = None

        self.win      =  win
        self.w = win
        self.pw       =  None
        self.modePropertyManager = None


        PM_Dialog.__init__(self,
                           self.pmName,
                           self.iconPath,
                           self.title
                       )

        self._createFlyoutActions()
 def __init__(self):
     PM_Dialog.__init__( self, self.pmName, self.iconPath, self.title )
            
     msg = "Example command created at %s" % time.asctime()
     
     # This causes the "Message" box to be displayed as well.
     self.MessageGroupBox.insertHtmlMessage( msg, setAsDefault = False )
     return
    def __init__(self, parentMode):        
        self.parentMode = parentMode
        self.w = self.parentMode.w
        self.win = self.parentMode.w
        self.o = self.parentMode.o
        self.pw = self.parentMode.pw

        
        PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)        
        self.showTopRowButtons(PM_DONE_BUTTON | PM_WHATS_THIS_BUTTON)
    def __init__(self, win, commandrun=None):

        self.win = win

        PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)
        GeneratorBaseClass.__init__(self, win)

        msg = "This Property Manager (PM) is used to display and/or test new \
               PM widgets avaiable in NanoEngineer-1's PM module."

        # This causes the "Message" box to be displayed as well.
        self.MessageGroupBox.insertHtmlMessage(msg, setAsDefault=False)
        return
    def __init__(self):
        """Construct the Peptide Property Manager.
        """
        PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)

        # phi psi angles will define the secondary structure of the peptide chain
        self.phi = -57.0
        self.psi = -47.0
        self.chirality = 1
        self.ss_idx = 1
        self.peptide_cache = []

        self.updateMessageGroupBox()
    def __init__(self):
        """
        Construct the Atom Property Manager.
        """
        PM_Dialog.__init__( self, self.pmName, self.iconPath, self.title )
        self.addGroupBoxes()
        self.add_whats_this_text()

        msg = "Edit the Atom parameters and select <b>Preview</b> to \
        preview the structure. Click <b>Done</b> to insert the atom \
        into the model."

        # This causes the "Message" box to be displayed as well.
        self.MessageGroupBox.insertHtmlMessage( msg, setAsDefault = False )
 def __init__(self):
     """
     Construct the "Build Graphene" Property Manager.
     """
     PM_Dialog.__init__( self, self.pmName, self.iconPath, self.title )
     #@self._addGroupBoxes() 
     #@self.add_whats_this_text()
     
     msg = "Edit the Graphene sheet parameters and select <b>Preview</b> to \
     preview the structure. Click <b>Done</b> to insert it into the model."
     
     # This causes the "Message" box to be displayed as well.
     # setAsDefault=True causes this message to be reset whenever
     # this PropMgr is (re)displayed via show(). Mark 2007-06-01.
     self.MessageGroupBox.insertHtmlMessage(msg, setAsDefault=True)
    def __init__( self ):
        """
        Constructor for the DNA Generator property manager.
        """
        PM_Dialog.__init__( self, self.pmName, self.iconPath, self.title )
        DebugMenuMixin._init1( self )


        msg = "Edit the DNA parameters and select <b>Preview</b> to \
        preview the structure. Click <b>Done</b> to insert it into \
        the model."

        # This causes the "Message" box to be displayed as well.
        # setAsDefault=True causes this message to be reset whenever
        # this PM is (re)displayed via show(). Mark 2007-06-01.
        self.MessageGroupBox.insertHtmlMessage( msg, setAsDefault  =  True )
    def __init__(self, parentCommand):
        """
        Constructor for the property manager.
        """

        self.parentMode = parentCommand
        self.w = self.parentMode.w
        self.win = self.parentMode.w
        self.pw = self.parentMode.pw
        self.o = self.win.glpane

        PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)

        DebugMenuMixin._init1(self)

        self.showTopRowButtons(PM_DONE_BUTTON | PM_WHATS_THIS_BUTTON)
        return
 def __init__(self, win):
     """
     Construct the QuteMolX Property Manager.
     
     @param win: The main window.
     @type  win: QMainWindow
     """
     self.win = win
     self.pw  = None
     
     PM_Dialog.__init__( self, self.pmName, self.iconPath, self.title )
     
     msg = "Select a QuteMolX rendering style and click the \
     <b>Launch QuteMolX</b> button when ready."
     
     # This causes the "Message" box to be displayed as well.
     self.updateMessage(msg)
     
     # Hide Preview and Restore defaults button for Alpha9.
     self.hideTopRowButtons(PM_RESTORE_DEFAULTS_BUTTON | PM_PREVIEW_BUTTON)
    def __init__( self, parentCommand ):
        """
        Constructor for the property manager.
        """

        self.parentMode = parentCommand
        self.w = self.parentMode.w
        self.win = self.parentMode.w
        self.pw = self.parentMode.pw        
        self.o = self.win.glpane
        self.assy = self.win.assy
                    
        PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)
        
        DebugMenuMixin._init1( self )

        self.showTopRowButtons( PM_DONE_BUTTON | \
                                PM_WHATS_THIS_BUTTON)
        
        self.update_includeStrands() # Updates the message box.
        """
    def __init__( self, parentCommand ):
        """
        Constructor for the property manager.
        """

        self.parentMode = parentCommand
        self.w = self.parentMode.w
        self.win = self.parentMode.w
        self.pw = self.parentMode.pw        
        self.o = self.win.glpane                 

        PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)

        DebugMenuMixin._init1( self )

        self.showTopRowButtons( PM_DONE_BUTTON | \
                                PM_WHATS_THIS_BUTTON)

        msg = "Modify the Stereo View settings below."

        self.updateMessage(msg)
    def __init__( self, parentCommand ):
        """
        Constructor for the property manager.
        """

        self.parentMode = parentCommand
        self.w = self.parentMode.w
        self.win = self.parentMode.w
        self.pw = self.parentMode.pw
        self.o = self.win.glpane
        self.currentWorkingDirectory = env.prefs[workingDirectory_prefs_key]

        PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)

        DebugMenuMixin._init1( self )

        self.showTopRowButtons( PM_DONE_BUTTON | \
                                PM_WHATS_THIS_BUTTON)

        msg = "Modify the DNA display settings below."
        self.updateMessage(msg)
Exemple #15
0
    def __init__(self, parentCommand):
        """
        Constructor for the property manager.
        """

        self.parentMode = parentCommand
        self.w = self.parentMode.w
        self.win = self.parentMode.w
        self.pw = self.parentMode.pw
        self.o = self.win.glpane
        self.currentWorkingDirectory = env.prefs[workingDirectory_prefs_key]

        PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)

        DebugMenuMixin._init1(self)

        self.showTopRowButtons( PM_DONE_BUTTON | \
                                PM_WHATS_THIS_BUTTON)

        msg = "Edit the color scheme for NE1, including the background color, "\
            "hover highlighting and selection colors, etc."
        self.updateMessage(msg)
    def __init__(self, parentMode):
        """
        Constructor for the B{Crystal} property manager class that defines 
        its UI.
        
        @param parentMode: The parent mode where this Property Manager is used
        @type  parentMode: L{cookieMode}  
        """
        self.parentMode = parentMode
        self.w = self.parentMode.w
        self.win = self.parentMode.w
        self.pw = self.parentMode.pw
        self.o = self.parentMode.o

        PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)

        self.showTopRowButtons( PM_DONE_BUTTON | \
                                PM_CANCEL_BUTTON | \
                                PM_WHATS_THIS_BUTTON)

        msg = ''
        self.MessageGroupBox.insertHtmlMessage(msg, setAsDefault=False)
    def __init__( self, parentCommand ):
        """
        Constructor for the property manager.
        """

        self.parentMode = parentCommand
        self.w = self.parentMode.w
        self.win = self.parentMode.w
        self.pw = self.parentMode.pw
        self.o = self.win.glpane
        self.currentWorkingDirectory = env.prefs[workingDirectory_prefs_key]

        PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)

        DebugMenuMixin._init1( self )

        self.showTopRowButtons( PM_DONE_BUTTON | \
                                PM_WHATS_THIS_BUTTON)

        msg = "Edit the color scheme for NE1, including the background color, "\
            "hover highlighting and selection colors, etc."
        self.updateMessage(msg)
    def __init__(self, parentCommand):
        """
        Constructor for the property manager.
        """

        self.parentMode = parentCommand
        self.w = self.parentMode.w
        self.win = self.parentMode.w
        self.pw = self.parentMode.pw
        self.o = self.win.glpane

        PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)

        DebugMenuMixin._init1(self)

        self.showTopRowButtons( PM_DONE_BUTTON | \
                                PM_WHATS_THIS_BUTTON)

        msg = "Edit the lighting scheme for NE1. Includes turning lights on and off, "\
            "changing light colors, changing the position of lights as well as,"\
            "changing the ambient, diffuse, and specular properites."
        self.updateMessage(msg)
 def __init__(self, parentMode):
     """
     Constructor for the B{Movie} property manager class that defines 
     its UI.
     
     @param parentMode: The parent mode where this Property Manager is used
     @type  parentMode: L{movieMode}        
     """
     self.parentMode = parentMode
     self.w = self.parentMode.w
     self.win = self.parentMode.w
     self.o = self.win.glpane
     self.pw = self.parentMode.pw
     
     PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)
     
     self.showTopRowButtons( PM_DONE_BUTTON | \
                             PM_CANCEL_BUTTON | \
                             PM_WHATS_THIS_BUTTON)
     
     
     msg = ''
     self.MessageGroupBox.insertHtmlMessage(msg, setAsDefault=False)
    def __init__( self, parentCommand ):
        """
        Constructor for the property manager.
        """

        self.parentMode = parentCommand
        self.w = self.parentMode.w
        self.win = self.parentMode.w
        self.pw = self.parentMode.pw        
        self.o = self.win.glpane
        
                    
        PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)
        
        DebugMenuMixin._init1( self )

        self.showTopRowButtons( PM_DONE_BUTTON | \
                                PM_WHATS_THIS_BUTTON)
        
        msg = "Edit the lighting scheme for NE1. Includes turning lights on and off, "\
            "changing light colors, changing the position of lights as well as,"\
            "changing the ambient, diffuse, and specular properites."
        self.updateMessage(msg)
Exemple #21
0
 def __init__(self, parentMode):
     """
     Constructor for the B{Build Atoms} property manager class that defines 
     its UI.
     
     @param parentMode: The parent mode where this Property Manager is used
     @type  parentMode: L{depositMode}        
     """
     self.parentMode = parentMode
     self.w = self.parentMode.w
     self.win = self.parentMode.w
     self.pw = self.parentMode.pw        
     self.o = self.win.glpane 
     
     
     self.previewGroupBox = None
     self.regularElementChooser = None
     self.PAM5Chooser = None
     self.PAM3Chooser = None
     self.elementChooser = None
     self.advancedOptionsGroupBox = None
     self.bondToolsGroupBox = None
     
     self.selectionFilterCheckBox = None
     self.filterlistLE = None
     self.selectedAtomInfoLabel = None
     
     #Initialize the following to None. (subclasses may not define this)
     #Make sure you initialize it before adding groupboxes!
     self.selectedAtomPosGroupBox = None
     self.showSelectedAtomInfoCheckBox = None
     
     PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)
     
     self.showTopRowButtons(PM_DONE_BUTTON | PM_WHATS_THIS_BUTTON)        
     msg = ''
     self.MessageGroupBox.insertHtmlMessage(msg, setAsDefault=False)