Salome HOME
updated copyright message
[modules/gui.git] / tools / PyEditor / src / PyEditor_Editor.h
index d37c1a86056da70e36382c2ea4b9278727ff4b44..6317857c2c94baef9bbf3f13c2edba7a95b359cf 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2015-2016  OPEN CASCADE
+// Copyright (C) 2015-2023  OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -31,6 +31,7 @@
 class PyEditor_Keywords;
 class PyEditor_Completer;
 class PyEditor_PyHighlighter;
+class QMenu;
 
 class PYEDITOR_EXPORT PyEditor_Editor : public QPlainTextEdit
 {
@@ -45,6 +46,7 @@ public:
   
   void    setSettings( const PyEditor_Settings& );
   const PyEditor_Settings& settings() const;
+
   QString text() const;
 
   QStringList keywords() const;
@@ -58,11 +60,13 @@ public Q_SLOTS:
   void deleteSelected();
   void append( const QString& );  
   void setText( const QString& text );
+  void setCurrentLine( int );
 
 protected:
   virtual void keyPressEvent( QKeyEvent* );
   virtual void resizeEvent( QResizeEvent* );
   virtual void paintEvent( QPaintEvent* );
+  virtual void contextMenuEvent( QContextMenuEvent* );
 
   PyEditor_Keywords* userKeywords() const;
   PyEditor_Keywords* standardKeywords() const;
@@ -74,6 +78,9 @@ private Q_SLOTS:
   void updateLineNumberAreaWidth( int );
   void updateLineNumberArea( const QRect&, int );
   
+Q_SIGNALS:
+  void customizeMenu( QMenu* );
+
 private:
   bool matchLeftParenthesis( const QTextBlock&, int, int );
   bool matchRightParenthesis( const QTextBlock&, int, int );