src/eric7/QScintilla/MarkupProviders/RestructuredTextProvider.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9221
bf71ee032bb4
child 9494
0b38ab887b0d
equal deleted inserted replaced
9481:0b936ff1bbb9 9482:a2bc06a54d9d
200 Public method to generate hyperlink text. 200 Public method to generate hyperlink text.
201 201
202 @param editor reference to the editor to work on 202 @param editor reference to the editor to work on
203 @type Editor 203 @type Editor
204 """ 204 """
205 if editor is None:
206 return
207
208 from .HyperlinkMarkupDialog import HyperlinkMarkupDialog 205 from .HyperlinkMarkupDialog import HyperlinkMarkupDialog
206
207 if editor is None:
208 return
209 209
210 dlg = HyperlinkMarkupDialog(False, True, noTitle=True) 210 dlg = HyperlinkMarkupDialog(False, True, noTitle=True)
211 if dlg.exec() == QDialog.DialogCode.Accepted: 211 if dlg.exec() == QDialog.DialogCode.Accepted:
212 text, target, _ = dlg.getData() 212 text, target, _ = dlg.getData()
213 213
317 Public method to generate image text. 317 Public method to generate image text.
318 318
319 @param editor reference to the editor to work on 319 @param editor reference to the editor to work on
320 @type Editor 320 @type Editor
321 """ 321 """
322 if editor is None:
323 return
324
325 from .ImageMarkupDialog import ImageMarkupDialog 322 from .ImageMarkupDialog import ImageMarkupDialog
323
324 if editor is None:
325 return
326 326
327 dlg = ImageMarkupDialog(ImageMarkupDialog.RestMode) 327 dlg = ImageMarkupDialog(ImageMarkupDialog.RestMode)
328 if dlg.exec() == QDialog.DialogCode.Accepted: 328 if dlg.exec() == QDialog.DialogCode.Accepted:
329 address, altText, title, originalSize, width, height = dlg.getData() 329 address, altText, title, originalSize, width, height = dlg.getData()
330 330

eric ide

mercurial