125 editor's language |
125 editor's language |
126 @signal editorTextChanged(Editor) emitted to signal a change of an |
126 @signal editorTextChanged(Editor) emitted to signal a change of an |
127 editor's text |
127 editor's text |
128 @signal editorLineChanged(str,int) emitted to signal a change of an |
128 @signal editorLineChanged(str,int) emitted to signal a change of an |
129 editor's current line (line is given one based) |
129 editor's current line (line is given one based) |
|
130 @signal editorLineChangedEd(Editor,int) emitted to signal a change of an |
|
131 editor's current line (line is given one based) |
130 @signal editorDoubleClickedEd(Editor, position, buttons) emitted to signal |
132 @signal editorDoubleClickedEd(Editor, position, buttons) emitted to signal |
131 a mouse double click in an editor |
133 a mouse double click in an editor |
132 """ |
134 """ |
133 changeCaption = pyqtSignal(str) |
135 changeCaption = pyqtSignal(str) |
134 editorChanged = pyqtSignal(str) |
136 editorChanged = pyqtSignal(str) |
151 astViewerStateChanged = pyqtSignal(bool) |
153 astViewerStateChanged = pyqtSignal(bool) |
152 disViewerStateChanged = pyqtSignal(bool) |
154 disViewerStateChanged = pyqtSignal(bool) |
153 editorLanguageChanged = pyqtSignal(Editor) |
155 editorLanguageChanged = pyqtSignal(Editor) |
154 editorTextChanged = pyqtSignal(Editor) |
156 editorTextChanged = pyqtSignal(Editor) |
155 editorLineChanged = pyqtSignal(str, int) |
157 editorLineChanged = pyqtSignal(str, int) |
|
158 editorLineChangedEd = pyqtSignal(Editor, int) |
156 editorDoubleClickedEd = pyqtSignal(Editor, QPoint, int) |
159 editorDoubleClickedEd = pyqtSignal(Editor, QPoint, int) |
157 |
160 |
158 def __init__(self): |
161 def __init__(self): |
159 """ |
162 """ |
160 Constructor |
163 Constructor |
3786 self.astViewerAct.setChecked(False) |
3789 self.astViewerAct.setChecked(False) |
3787 self.astViewerAct.toggled[bool].connect(self.__astViewer) |
3790 self.astViewerAct.toggled[bool].connect(self.__astViewer) |
3788 self.viewActions.append(self.astViewerAct) |
3791 self.viewActions.append(self.astViewerAct) |
3789 |
3792 |
3790 self.disViewerAct = E5Action( |
3793 self.disViewerAct = E5Action( |
3791 QCoreApplication.translate('ViewManager', 'Python DIS Viewer'), |
3794 QCoreApplication.translate( |
|
3795 'ViewManager', 'Python Disassembly Viewer'), |
3792 UI.PixmapCache.getIcon("disassembly"), |
3796 UI.PixmapCache.getIcon("disassembly"), |
3793 QCoreApplication.translate('ViewManager', 'Python DIS Viewer'), |
3797 QCoreApplication.translate( |
|
3798 'ViewManager', 'Python Disassembly Viewer'), |
3794 0, 0, self, 'vm_python_dis_viewer', True) |
3799 0, 0, self, 'vm_python_dis_viewer', True) |
3795 self.disViewerAct.setStatusTip(QCoreApplication.translate( |
3800 self.disViewerAct.setStatusTip(QCoreApplication.translate( |
3796 'ViewManager', 'Show the Disassembly for the current Python file')) |
3801 'ViewManager', 'Show the Disassembly for the current Python file')) |
3797 self.disViewerAct.setWhatsThis(QCoreApplication.translate( |
3802 self.disViewerAct.setWhatsThis(QCoreApplication.translate( |
3798 'ViewManager', |
3803 'ViewManager', |
3799 """<b>Python DIS Viewer</b>""" |
3804 """<b>Python Disassembly Viewer</b>""" |
3800 """<p>This opens the a tree view of the Disassembly of the""" |
3805 """<p>This opens the a tree view of the Disassembly of the""" |
3801 """ current Python source file.</p>""" |
3806 """ current Python source file.</p>""" |
3802 )) |
3807 )) |
3803 self.disViewerAct.setChecked(False) |
3808 self.disViewerAct.setChecked(False) |
3804 self.disViewerAct.toggled[bool].connect(self.__disViewer) |
3809 self.disViewerAct.toggled[bool].connect(self.__disViewer) |