QScintilla/MarkupProviders/ImageMarkupDialog.py

changeset 5412
db5a520f69d3
parent 5407
f833f89571b8
child 6048
82ad8ec9548c
equal deleted inserted replaced
5411:a163fbbf2bea 5412:db5a520f69d3
28 28
29 def __init__(self, mode, parent=None): 29 def __init__(self, mode, parent=None):
30 """ 30 """
31 Constructor 31 Constructor
32 32
33 @param mode mode of the dialog
34 @type int
33 @param parent reference to the parent widget 35 @param parent reference to the parent widget
34 @type QWidget 36 @type QWidget
35 """ 37 """
36 super(ImageMarkupDialog, self).__init__(parent) 38 super(ImageMarkupDialog, self).__init__(parent)
37 self.setupUi(self) 39 self.setupUi(self)
151 self.__updateOkButton() 153 self.__updateOkButton()
152 154
153 @pyqtSlot(bool) 155 @pyqtSlot(bool)
154 def on_sizeCheckBox_toggled(self, checked): 156 def on_sizeCheckBox_toggled(self, checked):
155 """ 157 """
156 Public slot to reset the width and height spin boxes. 158 Private slot to reset the width and height spin boxes.
157 159
158 @param checked flag indicating the state of the check box 160 @param checked flag indicating the state of the check box
159 @type bool 161 @type bool
160 """ 162 """
161 if checked: 163 if checked:
163 self.heightSpinBox.setValue(self.__originalImageSize.height()) 165 self.heightSpinBox.setValue(self.__originalImageSize.height())
164 166
165 @pyqtSlot(bool) 167 @pyqtSlot(bool)
166 def on_aspectRatioCheckBox_toggled(self, checked): 168 def on_aspectRatioCheckBox_toggled(self, checked):
167 """ 169 """
168 Public slot to adjust the height to match the original aspect ratio. 170 Private slot to adjust the height to match the original aspect ratio.
169 171
170 @param checked flag indicating the state of the check box 172 @param checked flag indicating the state of the check box
171 @type bool 173 @type bool
172 """ 174 """
173 if checked and self.__originalImageSize.isValid(): 175 if checked and self.__originalImageSize.isValid():

eric ide

mercurial