Salome HOME
Add setCurrentLine to PyEditor API.
[modules/gui.git] / tools / PyEditor / src / PyEditor_Window.cxx
index 125a27b818a4e8f119166ea39adeabdc8fe4bde6..33d6219476b8a970ca416b02b51f99b444f94011 100644 (file)
@@ -197,7 +197,7 @@ PyEditor_Window::PyEditor_Window( QWidget* parent ) :
                         tr( "ACT_REPLACE" ), this );
   action->setToolTip( tr( "TTP_REPLACE" ) );
   action->setStatusTip( tr( "DSC_REPLACE" ) );
-  action->setShortcut( QKeySequence::Replace );
+  action->setShortcuts( QList<QKeySequence>() << QKeySequence( "Ctrl+H" ) << QKeySequence( QKeySequence::Replace ) );
   action->setShortcutContext( Qt::WidgetShortcut );
   connect( action, SIGNAL( triggered( bool ) ), myEditor, SLOT( replace() ) );
   myActions[ ReplaceId ] = action;
@@ -471,6 +471,16 @@ bool PyEditor_Window::saveFile( const QString& filePath, bool verbose )
   return true;
 }
 
+
+/*!
+  Get editor.
+  \return Editor widget.
+*/
+PyEditor_Widget* PyEditor_Window::editor()
+{
+  return myEditor;
+}
+
 /*!
   Slot, called when user clicks "Help" button in "Preferences" dialog box.
 */