UI/Browser.py

changeset 4186
e2bf1c32272b
parent 4183
856ba07de877
child 4528
63154a5e18d0
equal deleted inserted replaced
4184:6dbd901a8b1a 4186:e2bf1c32272b
38 is displayed by a right click the user can select various actions on 38 is displayed by a right click the user can select various actions on
39 the selected file. 39 the selected file.
40 40
41 @signal sourceFile(str, int = 0, str = "") emitted to open a Python file 41 @signal sourceFile(str, int = 0, str = "") emitted to open a Python file
42 at a line 42 at a line
43 @signal sourceFile(str, list) emitted to open a Python file giving a list
44 of lines
43 @signal designerFile(str) emitted to open a Qt-Designer file 45 @signal designerFile(str) emitted to open a Qt-Designer file
44 @signal linguistFile(str) emitted to open a Qt-Linguist (*.ts) file 46 @signal linguistFile(str) emitted to open a Qt-Linguist (*.ts) file
45 @signal trpreview(list of str, bool = False) emitted to preview a 47 @signal trpreview(list of str, bool = False) emitted to preview a
46 Qt-Linguist (*.qm) file 48 Qt-Linguist (*.qm) file
47 @signal projectFile(str) emitted to open an eric4/5 project file 49 @signal projectFile(str) emitted to open an eric4/5 project file
49 @signal pixmapFile(str) emitted to open a pixmap file 51 @signal pixmapFile(str) emitted to open a pixmap file
50 @signal pixmapEditFile(str) emitted to edit a pixmap file 52 @signal pixmapEditFile(str) emitted to edit a pixmap file
51 @signal svgFile(str) emitted to open a SVG file 53 @signal svgFile(str) emitted to open a SVG file
52 @signal unittestOpen(str) emitted to open a Python file for a unittest 54 @signal unittestOpen(str) emitted to open a Python file for a unittest
53 """ 55 """
54 sourceFile = pyqtSignal((str, ), (str, int), (str, int, str)) 56 sourceFile = pyqtSignal((str, ), (str, int), (str, list), (str, int, str))
55 designerFile = pyqtSignal(str) 57 designerFile = pyqtSignal(str)
56 linguistFile = pyqtSignal(str) 58 linguistFile = pyqtSignal(str)
57 trpreview = pyqtSignal((list, ), (list, bool)) 59 trpreview = pyqtSignal((list, ), (list, bool))
58 projectFile = pyqtSignal(str) 60 projectFile = pyqtSignal(str)
59 multiProjectFile = pyqtSignal(str) 61 multiProjectFile = pyqtSignal(str)
448 itm.fileName(), itm.functionObject().lineno) 450 itm.fileName(), itm.functionObject().lineno)
449 elif isinstance(itm, BrowserClassAttributeItem): 451 elif isinstance(itm, BrowserClassAttributeItem):
450 self.sourceFile[str, int].emit( 452 self.sourceFile[str, int].emit(
451 itm.fileName(), itm.attributeObject().lineno) 453 itm.fileName(), itm.attributeObject().lineno)
452 elif isinstance(itm, BrowserImportItem): 454 elif isinstance(itm, BrowserImportItem):
453 self.sourceFile[str, int].emit( 455 self.sourceFile[str, list].emit(
454 itm.fileName(), itm.lineno()) 456 itm.fileName(), itm.linenos())
455 self._activating = False 457 self._activating = False
456 458
457 def __showMimeType(self): 459 def __showMimeType(self):
458 """ 460 """
459 Private slot to show the mime type of the selected entry. 461 Private slot to show the mime type of the selected entry.

eric ide

mercurial