Beispiel #1
0
 def show(self):
     """
     Shows the Property Manager. Overrides PM_Dialog.show.
     """
     PM_Dialog.show(self)
     # self.updateDnaDisplayStyleWidgets()
     self.connect_or_disconnect_signals(isConnect=True)
Beispiel #2
0
 def show(self):
     """
     Shows the Property Manager. Overrides PM_Dialog.show.
     """
     PM_Dialog.show(self)
     self.connect_or_disconnect_signals(isConnect=True)
     return
 def show(self):
     """
     Shows the Property Manager. Overrides PM_Dialog.show.
     """
     self._updateAllWidgets()
     PM_Dialog.show(self)
     self.connect_or_disconnect_signals(isConnect = True)
 def show(self):
     """
     Shows the Property Manager. Overrides PM_Dialog.show.
     """
     PM_Dialog.show(self)
     self.connect_or_disconnect_signals(isConnect=True)
     return
Beispiel #5
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 show(self):
     """
     Shows the Property Manager. Overrides PM_Dialog.show.
     """
     PM_Dialog.show(self)
     # self.updateDnaDisplayStyleWidgets()
     self.connect_or_disconnect_signals(isConnect = True)
    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 show(self):
     """
     Shows the Property Manager. Overrides PM_Dialog.show.
     """
     PM_Dialog.show(self)
     self.connect_or_disconnect_signals(isConnect=True)
     self._updateAllWidgets()
 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 show(self):
     """
     Shows the Property Manager. Overrides PM_Dialog.show)
     """
     if self.isVisible(): # Fixes bug 2680. --Mark 2008-03-19
         return
     PM_Dialog.show(self)
     self.connect_or_disconnect_signals(isConnect = True)
Beispiel #11
0
    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 show(self):
     """
     Shows the Property Manager. Overrides PM_Dialog.show)
     """
     if self.isVisible():  # Fixes bug 2680. --Mark 2008-03-19
         return
     PM_Dialog.show(self)
     self.connect_or_disconnect_signals(isConnect=True)
Beispiel #13
0
    def close(self):
        """
        Closes the Property Manager. Overrides PM_Dialog.close.
        """
        # this is important since these pref keys are used in other command modes
        # as well and we do not want to see the 5' end arrow in Inset DNA mode

        self.connect_or_disconnect_signals(False)
        PM_Dialog.close(self)
    def close(self):
        """
        Closes the Property Manager. Overrides PM_Dialog.close.
        """
        # this is important since these pref keys are used in other command modes
        # as well and we do not want to see the 5' end arrow in Inset DNA mode

        self.connect_or_disconnect_signals(False)
        PM_Dialog.close(self)
 def show(self):
     """
     Shows the Property Manager. Overrides PM_Dialog.show)
     """
     self._update_widgets_in_PM_before_show()
     PM_Dialog.show(self)
     self.connect_or_disconnect_signals(isConnect = True)
     self.enable_or_disable_gui_actions(bool_enable = False)
     self.updateCommandToolbar(bool_entering = True)
    def close(self):
        """
        Closes the Property Manager. Overrides PM_Dialog.close.
        """
        self.connect_or_disconnect_signals(False)
        PM_Dialog.close(self)

        # Restore the original global display style.
        self.o.setGlobalDisplayStyle(self.originalDisplayStyle)
 def close(self):
     """
     Closes the Property Manager. Overrides PM_Dialog.close.
     """   
     #First exit temporary modes (e.g. Pan mode) if any.
     currentCommand = self.win.commandSequencer.currentCommand 
     if not currentCommand.command_has_its_own_gui:
         currentCommand.Done()
     self.connect_or_disconnect_signals(isConnect = False)
     PM_Dialog.close(self) 
Beispiel #18
0
    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 close(self):
     """
     Closes the Property Manager. Overrides PM_Dialog.close.
     """
     #First exit temporary modes (e.g. Pan mode) if any.
     currentCommand = self.win.commandSequencer.currentCommand
     if not currentCommand.command_has_its_own_gui:
         currentCommand.Done()
     self.connect_or_disconnect_signals(isConnect=False)
     PM_Dialog.close(self)
 def close(self):
     """
     Closes the Property Manager. Overrides PM_Dialog.close.
     """
     #First exit temporary modes (e.g. Pan mode) if any.
     currentCommand = self.win.commandSequencer.currentCommand
     if not currentCommand.command_has_its_own_gui:
         currentCommand.Done()
     self.connect_or_disconnect_signals(False)
     self.enable_or_disable_gui_actions(bool_enable = True)
     self.updateCommandToolbar(bool_entering = False)
     PM_Dialog.close(self)
    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()
Beispiel #22
0
 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
Beispiel #23
0
    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, 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
Beispiel #25
0
    def show(self):
        """
        Shows the Property Manager. Overrides PM_Dialog.show.
        """
        self.sequenceEditor = self.win.createProteinSequenceEditorIfNeeded()
        self.sequenceEditor.hide()
        PM_Dialog.show(self)

        # Update all PM widgets, then establish their signal-slot connections.
        # note: It is important to update the widgets *first* since doing
        # it in the reverse order will generate signals when updating
        # the PM widgets (via updateDnaDisplayStyleWidgets()), causing
        # unneccessary repaints of the model view.
        self.connect_or_disconnect_signals(isConnect=True)
    def show(self):
        """
        Shows the Property Manager. Overrides PM_Dialog.show.
        """
        self.sequenceEditor = self.win.createProteinSequenceEditorIfNeeded()
        self.sequenceEditor.hide()
        PM_Dialog.show(self)

        # Update all PM widgets, then establish their signal-slot connections.
        # note: It is important to update the widgets *first* since doing
        # it in the reverse order will generate signals when updating
        # the PM widgets (via updateDnaDisplayStyleWidgets()), causing
        # unneccessary repaints of the model view.
        self.connect_or_disconnect_signals(isConnect = True)
Beispiel #27
0
    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)
Beispiel #29
0
    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 ):
        """
        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
Beispiel #32
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

        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, 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 show(self):
        """
        Shows the Property Manager. Overrides PM_Dialog.show.
        """
        PM_Dialog.show(self)

        # Force the Global Display Style to "DNA Cylinder" so the user
        # can see the display style setting effects on any DNA in the current
        # model. The current global display style will be restored when leaving
        # this command (via self.close()).
        self.originalDisplayStyle = self.o.getGlobalDisplayStyle()
        self.o.setGlobalDisplayStyle(diDNACYLINDER)

        # Update all PM widgets, then establish their signal-slot connections.
        # note: It is important to update the widgets *first* since doing
        # it in the reverse order will generate signals when updating
        # the PM widgets (via updateDnaDisplayStyleWidgets()), causing
        # unneccessary repaints of the model view.
        self.updateDnaDisplayStyleWidgets()
        self.connect_or_disconnect_signals(isConnect = 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
        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)
Beispiel #37
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.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.
        """
Beispiel #38
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

        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                 

        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, 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)
Beispiel #41
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, 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, 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{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)
Beispiel #46
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)
 def close(self):
     """
     Closes the Property Manager. Overrides PM_Dialog.close.
     """
     self.connect_or_disconnect_signals(False)
     PM_Dialog.close(self)
Beispiel #48
0
 def close(self):
     """
     Closes the Property Manager. Overrides PM_Dialog.close.
     """
     self.connect_or_disconnect_signals(False)
     PM_Dialog.close(self)