6 """ |
6 """ |
7 Module implementing a dialog mixin class providing common callback methods for |
7 Module implementing a dialog mixin class providing common callback methods for |
8 the pysvn client. |
8 the pysvn client. |
9 """ |
9 """ |
10 |
10 |
|
11 from PyQt4.QtCore import Qt |
11 from PyQt4.QtGui import QApplication, QDialog, QWidget, QCursor |
12 from PyQt4.QtGui import QApplication, QDialog, QWidget, QCursor |
12 |
13 |
13 class SvnDialogMixin(object): |
14 class SvnDialogMixin(object): |
14 """ |
15 """ |
15 Class implementing a dialog mixin providing common callback methods for |
16 Class implementing a dialog mixin providing common callback methods for |
108 trust_dict["valid_from"], |
109 trust_dict["valid_from"], |
109 trust_dict["valid_until"], |
110 trust_dict["valid_until"], |
110 trust_dict["issuer_dname"]), |
111 trust_dict["issuer_dname"]), |
111 QMessageBox.StandardButtons(QMessageBox.NoButton), |
112 QMessageBox.StandardButtons(QMessageBox.NoButton), |
112 parent) |
113 parent) |
|
114 if parent is not None: |
|
115 msgBox.setWindowModality(Qt.WindowModal) |
113 permButton = msgBox.addButton(self.trUtf8("&Permanent accept"), |
116 permButton = msgBox.addButton(self.trUtf8("&Permanent accept"), |
114 QMessageBox.AcceptRole) |
117 QMessageBox.AcceptRole) |
115 tempButton = msgBox.addButton(self.trUtf8("&Temporary accept"), |
118 tempButton = msgBox.addButton(self.trUtf8("&Temporary accept"), |
116 QMessageBox.AcceptRole) |
119 QMessageBox.AcceptRole) |
117 msgBox.addButton(self.trUtf8("&Reject"), QMessageBox.RejectRole) |
120 msgBox.addButton(self.trUtf8("&Reject"), QMessageBox.RejectRole) |