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()) |
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() |