Salome HOME
projects
/
modules
/
gui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add setCurrentLine to PyEditor API.
[modules/gui.git]
/
tools
/
PyEditor
/
src
/
PyEditor_Widget.cxx
diff --git
a/tools/PyEditor/src/PyEditor_Widget.cxx
b/tools/PyEditor/src/PyEditor_Widget.cxx
index 58d4c285c6ab3df391fa3651c479e4fdacf4a649..bc2701959ab80b0f6dc1bdd6943c3a5860196d2d 100644
(file)
--- a/
tools/PyEditor/src/PyEditor_Widget.cxx
+++ b/
tools/PyEditor/src/PyEditor_Widget.cxx
@@
-267,3
+267,13
@@
const PyEditor_Settings& PyEditor_Widget::settings() const
{
return myEditor->settings();
}
+
+/*!
+ \brief Move editor's cursor to the given line.
+ \note Line count starts from 1.
+ \param line Line number.
+*/
+void PyEditor_Widget::setCurrentLine( int line )
+{
+ myEditor->setCurrentLine( line );
+}