ViewManager/ViewManager.py

changeset 6297
85e20e9b4d55
parent 6247
5c677a7f7d51
child 6319
df201b9fbad4
child 6421
ef33cbc7cc8c
equal deleted inserted replaced
6296:db9b3a419845 6297:85e20e9b4d55
5899 aw = self.activeWindow() 5899 aw = self.activeWindow()
5900 lines = aw.lines() 5900 lines = aw.lines()
5901 curLine = aw.getCursorPosition()[0] + 1 5901 curLine = aw.getCursorPosition()[0] + 1
5902 dlg = GotoDialog(lines, curLine, self.ui, None, True) 5902 dlg = GotoDialog(lines, curLine, self.ui, None, True)
5903 if dlg.exec_() == QDialog.Accepted: 5903 if dlg.exec_() == QDialog.Accepted:
5904 aw.gotoLine(dlg.getLinenumber()) 5904 aw.gotoLine(dlg.getLinenumber(), expand=True)
5905 5905
5906 def __gotoBrace(self): 5906 def __gotoBrace(self):
5907 """ 5907 """
5908 Private method to handle the goto brace action. 5908 Private method to handle the goto brace action.
5909 """ 5909 """
6073 """ 6073 """
6074 Private method to handle the toggle current fold action. 6074 Private method to handle the toggle current fold action.
6075 """ 6075 """
6076 aw = self.activeWindow() 6076 aw = self.activeWindow()
6077 if aw: 6077 if aw:
6078 line, index = aw.getCursorPosition() 6078 aw.toggleCurrentFold()
6079 aw.foldLine(line)
6080 6079
6081 def __newDocumentView(self): 6080 def __newDocumentView(self):
6082 """ 6081 """
6083 Private method to open a new view of the current editor. 6082 Private method to open a new view of the current editor.
6084 """ 6083 """

eric ide

mercurial