Salome HOME
updated copyright message
[modules/gui.git] / tools / PyEditor / src / PyEditor_Settings.h
index 2f1c9be6c00206b18cc9e09acbe18efc058dd747..f80df9b15f2cdea8469e239186c90f79e65b7326 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,21 +31,23 @@ class PYEDITOR_EXPORT PyEditor_Settings
 {
 protected:
   enum Option { snEditor, 
-               snHighlightCurrentLine,
-               snTextWrapping,
-               snCenterCursorOnScroll,
-               snLineNumberArea,
-               snVerticalEdge,
-               snNumberColumns,
-               snTabSpaceVisible,
-               snTabSize,
-               snFont };
+                snHighlightCurrentLine,
+                snTextWrapping,
+                snCenterCursorOnScroll,
+                snLineNumberArea,
+                snVerticalEdge,
+                snNumberColumns,
+                snTabSpaceVisible,
+                snTabSize,
+                snFont,
+                snCompletionPolicy };
 
 public:
   static PyEditor_Settings* settings();
   static void setSettings( PyEditor_Settings* );
   
   PyEditor_Settings();
+  virtual ~PyEditor_Settings() {}
 
   void setHighlightCurrentLine( bool );
   bool highlightCurrentLine() const;
@@ -74,6 +76,9 @@ public:
   void setFont( const QFont& );
   QFont font() const;
 
+  void setCompletionPolicy( int );
+  int completionPolicy() const;
+
   virtual void load();
   virtual void save();
 
@@ -100,6 +105,9 @@ private:
   // Font settings
   QFont myFont;
 
+  // Completion settings
+  int myCompletionPolicy;
+
   static PyEditor_Settings* myGlobalSettings;
 };