14 |
14 |
15 class AuthenticationDialog(QDialog, Ui_AuthenticationDialog): |
15 class AuthenticationDialog(QDialog, Ui_AuthenticationDialog): |
16 """ |
16 """ |
17 Class implementing the authentication dialog for the help browser. |
17 Class implementing the authentication dialog for the help browser. |
18 """ |
18 """ |
19 def __init__(self, info, username, showSave=False, saveIt=False, parent=None): |
19 def __init__(self, info, username, showSave=False, saveIt=False, |
|
20 parent=None): |
20 """ |
21 """ |
21 Constructor |
22 Constructor |
22 |
23 |
23 @param info information to be shown (string) |
24 @param info information to be shown (string) |
24 @param username username as supplied by subversion (string) |
25 @param username username as supplied by subversion (string) |
25 @param showSave flag to indicate to show the save checkbox (boolean) |
26 @param showSave flag to indicate to show the save checkbox (boolean) |
26 @param saveIt flag indicating the value for the save checkbox (boolean) |
27 @param saveIt flag indicating the value for the save checkbox (boolean) |
|
28 @param parent reference to the parent widget (QWidget) |
27 """ |
29 """ |
28 super().__init__(parent) |
30 super().__init__(parent) |
29 self.setupUi(self) |
31 self.setupUi(self) |
30 |
32 |
31 self.infoLabel.setText(info) |
33 self.infoLabel.setText(info) |
33 self.saveCheckBox.setVisible(showSave) |
35 self.saveCheckBox.setVisible(showSave) |
34 self.saveCheckBox.setChecked(saveIt) |
36 self.saveCheckBox.setChecked(saveIt) |
35 |
37 |
36 self.iconLabel.setText("") |
38 self.iconLabel.setText("") |
37 self.iconLabel.setPixmap( |
39 self.iconLabel.setPixmap( |
38 self.style().standardIcon(QStyle.SP_MessageBoxQuestion).pixmap(32, 32)) |
40 self.style().standardIcon(QStyle.SP_MessageBoxQuestion).pixmap( |
|
41 32, 32)) |
39 |
42 |
40 def setData(self, username, password): |
43 def setData(self, username, password): |
41 """ |
44 """ |
42 Public method to set the login data. |
45 Public method to set the login data. |
43 |
46 |