def showEditDialog(self):
		server = self.applet.servers[self.serversList.currentItem().text()]
		editDialog = ConnectionDialog(self, True)
		editDialog.setCaption(EDIT_DIALOG)
		editDialog.name.setText(server.name)
		editDialog.oldName = server.name
		if not server.port == "":
			editDialog.port.setValue(int(server.port))
		editDialog.login.setText(server.login)
		editDialog.switches.setText(server.switches)
		editDialog.hostIP.setText(server.hostIP)
		if server.authenticationType == AUTH_TYPE_PASSWORD:
			editDialog.passCheckbox.setCheckState(Qt.Checked)
			self.applet.openWallet()
			passwd = self.applet.wallet.readPassword(server.name)
			if passwd[0] == 0:
				server.setPassword(passwd[1])
			editDialog.password.setText(server.password)
		elif server.authenticationType == AUTH_TYPE_PRIVATE_KEY:
			editDialog.keyCheckbox.setCheckState(Qt.Checked)
			editDialog.keyFilePath.setText(server.keyPath)
		editDialog.enableButtonOk(True)
		editDialog.show()
	def showAddDialog(self):
		addDialog = ConnectionDialog(self, False)
		addDialog.setCaption(NEW_DIALOG)
		addDialog.show()