src/eric7/WebBrowser/Sync/SyncEncryptionPage.py

branch
eric7
changeset 10436
f6881d10e995
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10435:c712d09cc839 10436:f6881d10e995
23 23
24 def __init__(self, parent=None): 24 def __init__(self, parent=None):
25 """ 25 """
26 Constructor 26 Constructor
27 27
28 @param parent reference to the parent widget (QWidget) 28 @param parent reference to the parent widget
29 @type QWidget
29 """ 30 """
30 super().__init__(parent) 31 super().__init__(parent)
31 self.setupUi(self) 32 self.setupUi(self)
32 33
33 self.keySizeComboBox.addItem(self.tr("128 Bits"), 16) 34 self.keySizeComboBox.addItem(self.tr("128 Bits"), 16)
50 51
51 def nextId(self): 52 def nextId(self):
52 """ 53 """
53 Public method returning the ID of the next wizard page. 54 Public method returning the ID of the next wizard page.
54 55
55 @return next wizard page ID (integer) 56 @return next wizard page ID
57 @rtype int
56 """ 58 """
57 Preferences.setWebBrowser( 59 Preferences.setWebBrowser(
58 "SyncEncryptData", self.encryptionGroupBox.isChecked() 60 "SyncEncryptData", self.encryptionGroupBox.isChecked()
59 ) 61 )
60 Preferences.setWebBrowser("SyncEncryptionKey", self.encryptionKeyEdit.text()) 62 Preferences.setWebBrowser("SyncEncryptionKey", self.encryptionKeyEdit.text())
70 72
71 def isComplete(self): 73 def isComplete(self):
72 """ 74 """
73 Public method to check the completeness of the page. 75 Public method to check the completeness of the page.
74 76
75 @return flag indicating completeness (boolean) 77 @return flag indicating completeness
78 @rtype bool
76 """ 79 """
77 if self.encryptionGroupBox.isChecked(): 80 if self.encryptionGroupBox.isChecked():
78 if self.encryptionKeyEdit.text() == "": 81 if self.encryptionKeyEdit.text() == "":
79 complete = False 82 complete = False
80 else: 83 else:
117 @pyqtSlot(str) 120 @pyqtSlot(str)
118 def on_encryptionKeyEdit_textChanged(self, txt): 121 def on_encryptionKeyEdit_textChanged(self, txt):
119 """ 122 """
120 Private slot to handle changes of the encryption key. 123 Private slot to handle changes of the encryption key.
121 124
122 @param txt content of the edit widget (string) 125 @param txt content of the edit widget
126 @type str
123 """ 127 """
124 self.passwordMeter.checkPasswordStrength(txt) 128 self.passwordMeter.checkPasswordStrength(txt)
125 self.__updateUI() 129 self.__updateUI()
126 130
127 @pyqtSlot(str) 131 @pyqtSlot(str)
128 def on_encryptionKeyAgainEdit_textChanged(self, txt): 132 def on_encryptionKeyAgainEdit_textChanged(self, txt):
129 """ 133 """
130 Private slot to handle changes of the encryption key repetition. 134 Private slot to handle changes of the encryption key repetition.
131 135
132 @param txt content of the edit widget (string) 136 @param txt content of the edit widget
137 @type str
133 """ 138 """
134 self.__updateUI() 139 self.__updateUI()
135 140
136 @pyqtSlot(bool) 141 @pyqtSlot(bool)
137 def on_encryptionGroupBox_toggled(self, on): 142 def on_encryptionGroupBox_toggled(self, on):
138 """ 143 """
139 Private slot to handle changes of the encryption selection. 144 Private slot to handle changes of the encryption selection.
140 145
141 @param on state of the group box (boolean) 146 @param on state of the group box
147 @type bool
142 """ 148 """
143 self.__updateUI() 149 self.__updateUI()
144 150
145 @pyqtSlot(bool) 151 @pyqtSlot(bool)
146 def on_reencryptCheckBox_toggled(self, on): 152 def on_reencryptCheckBox_toggled(self, on):
147 """ 153 """
148 Private slot to handle changes of the re-encryption selection. 154 Private slot to handle changes of the re-encryption selection.
149 155
150 @param on state of the check box (boolean) 156 @param on state of the check box
157 @type bool
151 """ 158 """
152 self.__updateUI() 159 self.__updateUI()

eric ide

mercurial