Exemplo n.º 1
0
 def __init__(self, plugin):
     """
     Constructor
     
     @param plugin reference to the plugin object
     @type RefactoringRopePlugin
     """
     ConfigurationPageBase.__init__(self)
     self.setupUi(self)
     self.setObjectName("MouseClickHandlerJediPage")
     
     self.__plugin = plugin
     
     # set initial values
     self.__modifiers = {
         "goto": (
             self.__plugin.getPreferences("MouseClickGotoModifiers"),
             self.__plugin.getPreferences("MouseClickGotoButton")
         )
     }
     
     self.jediClickHandlerCheckBox.setChecked(
         self.__plugin.getPreferences("MouseClickEnabled"))
     self.gotoClickEdit.setText(MouseUtilities.MouseButtonModifier2String(
         *self.__modifiers["goto"]))
Exemplo n.º 2
0
    def __init__(self, plugin):
        """
        Constructor
        
        @param plugin reference to the plugin object
        """
        ConfigurationPageBase.__init__(self)
        self.setupUi(self)
        self.setObjectName("CallTipsJediPage")

        self.__plugin = plugin

        # set initial values
        self.jediCalltipsCheckBox.setChecked(
            self.__plugin.getPreferences("JediCalltipsEnabled"))
 def __init__(self, plugin):
     """
     Constructor
     
     @param plugin reference to the plugin object
     """
     ConfigurationPageBase.__init__(self)
     self.setupUi(self)
     self.setObjectName("SubversionPage")
     
     self.__plugin = plugin
     
     # set initial values
     self.logSpinBox.setValue(self.__plugin.getPreferences("LogLimit"))
     self.commitSpinBox.setValue(self.__plugin.getPreferences("CommitMessages"))
Exemplo n.º 4
0
    def __init__(self, plugin):
        """
        Constructor
        
        @param plugin reference to the plugin object
        """
        ConfigurationPageBase.__init__(self)
        self.setupUi(self)
        self.setObjectName("MicroPythonPage")

        self.__plugin = plugin

        # set initial values
        self.txt_device.setText(self.__plugin.getPreferences("address"))
        self.txt_user.setText(self.__plugin.getPreferences("username"))
        self.txt_password.setText(self.__plugin.getPreferences("password"))
Exemplo n.º 5
0
    def __init__(self):
        """
        Constructor
        
        @param plugin reference to the plugin object
        """
        ConfigurationPageBase.__init__(self)
        self.setupUi(self)
        self.setObjectName("ProjectPage")

        self.workspaceButton.setIcon(UI.PixmapCache.getIcon("open.png"))

        # set initial values
        self.workspaceEdit.setText(
            Utilities.toNativeSeparators(
                Preferences.getMultiProject("Workspace")
                or Utilities.getHomeDir()))
Exemplo n.º 6
0
    def __init__(self, plugin):
        """
        Constructor
        
        @param plugin reference to the plugin object
        """
        ConfigurationPageBase.__init__(self)
        self.setupUi(self)
        self.setObjectName("PycomDevicePage")

        self.__plugin = plugin

        # current address
        current_address = self.__plugin.getPreferences("address")

        self.softResetConnectState = self.__plugin.getPreferences(
            "softResetConnect")
        self.softResetScriptsState = self.__plugin.getPreferences(
            "softResetScripts")

        if self.softResetConnectState == None:
            self.softResetConnectState = Qt.Unchecked
            self.softResetScriptsState = Qt.Unchecked

        # set initial values
        self.txt_device.addItem(current_address)
        self.txt_device.lineEdit().setPlaceholderText(
            "Set the device IP address or com port")
        self.txt_user.setText(self.__plugin.getPreferences("username"))
        self.txt_user.setPlaceholderText("Default: micro")
        self.txt_password.setText(self.__plugin.getPreferences("password"))
        self.txt_password.setPlaceholderText("Default: python")

        self.label_4.setOpenExternalLinks(True)

        self.softResetConnect.setCheckState(int(self.softResetConnectState))
        self.softResetScripts.setCheckState(int(self.softResetScriptsState))

        # load the rest of the list
        self.loadSerialPortsList(current_address)
Exemplo n.º 7
0
    def __init__(self, plugin):
        """
        Constructor
        
        @param plugin reference to the plugin object
        """
        ConfigurationPageBase.__init__(self)
        self.setupUi(self)
        self.setObjectName("AutoCompletionJediPage")

        self.__plugin = plugin

        # set initial values
        self.jediAutocompletionCheckBox.setChecked(
            self.__plugin.getPreferences("JediCompletionsEnabled"))
        self.jediCompletionsTimeoutSpinBox.setValue(
            self.__plugin.getPreferences("JediCompletionsTimeout"))
        self.qscintillaCheckBox.setChecked(
            self.__plugin.getPreferences("ShowQScintillaCompletions"))
        if e5App().getObject("UserInterface").versionIsNewer(
                "6.0.99", "20150530"):
            self.qscintillaCheckBox.setVisible(False)
Exemplo n.º 8
0
    def __init__(self, plugin):
        """
        Constructor
        
        @param plugin reference to the plugin object
        """
        ConfigurationPageBase.__init__(self)
        self.setupUi(self)
        self.setObjectName("PycomDevicePage")

        self.__plugin = plugin

        # current address
        current_address = self.__plugin.getPreferences("address")

        # set initial values
        self.txt_device.addItem(current_address)
        self.txt_user.setText(self.__plugin.getPreferences("username"))
        self.txt_password.setText(self.__plugin.getPreferences("password"))

        # load the rest of the list
        self.loadSerialPortsList(current_address)