Salome HOME
Add setCurrentLine to PyEditor API.
[modules/gui.git] / tools / PyEditor / src / PyEditor_Widget.cxx
index 58d4c285c6ab3df391fa3651c479e4fdacf4a649..bc2701959ab80b0f6dc1bdd6943c3a5860196d2d 100644 (file)
@@ -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 );
+}