A text editor based on QScintilla2.  
 More...
#include <qgscodeeditor.h>
A text editor based on QScintilla2. 
- Note
 - may not be available in Python bindings, depending on platform support 
 
- Since
 - QGIS 2.6 
 
Definition at line 38 of file qgscodeeditor.h.
 
      
        
          | QgsCodeEditor::QgsCodeEditor  | 
          ( | 
          QWidget *  | 
          parent = nullptr,  | 
        
        
           | 
           | 
          const QString &  | 
          title = QString(),  | 
        
        
           | 
           | 
          bool  | 
          folding = false,  | 
        
        
           | 
           | 
          bool  | 
          margin = false  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Construct a new code editor. 
- Parameters
 - 
  
    | parent | The parent QWidget  | 
    | title | The title to show in the code editor dialog  | 
    | folding | false: Enable folding for code editor  | 
    | margin | false: Enable margin for code editor  | 
  
   
- Since
 - QGIS 2.6 
 
Definition at line 27 of file qgscodeeditor.cpp.
 
 
  
  
      
        
          | void QgsCodeEditor::focusOutEvent  | 
          ( | 
          QFocusEvent *  | 
          event | ) | 
           | 
         
       
   | 
  
overrideprotected   | 
  
 
 
  
  
      
        
          | bool QgsCodeEditor::foldingVisible  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | QFont QgsCodeEditor::getMonospaceFont  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
      
        
          | void QgsCodeEditor::insertText  | 
          ( | 
          const QString &  | 
          text | ) | 
           | 
        
      
 
Insert text at cursor position, or replace any selected text if user has made a selection. 
- Parameters
 - 
  
    | text | The text to be inserted  | 
  
   
Definition at line 172 of file qgscodeeditor.cpp.
 
 
  
  
      
        
          | bool QgsCodeEditor::isFixedPitch  | 
          ( | 
          const QFont &  | 
          font | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | void QgsCodeEditor::keyPressEvent  | 
          ( | 
          QKeyEvent *  | 
          event | ) | 
           | 
         
       
   | 
  
overrideprotected   | 
  
 
 
  
  
      
        
          | bool QgsCodeEditor::marginVisible  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
      
        
          | void QgsCodeEditor::setFoldingVisible  | 
          ( | 
          bool  | 
          folding | ) | 
           | 
        
      
 
Set folding visible state. 
- Parameters
 - 
  
    | folding | Set folding in the editor  | 
  
   
Definition at line 159 of file qgscodeeditor.cpp.
 
 
      
        
          | void QgsCodeEditor::setMarginVisible  | 
          ( | 
          bool  | 
          margin | ) | 
           | 
        
      
 
Set margin visible state. 
- Parameters
 - 
  
    | margin | Set margin in the editor  | 
  
   
Definition at line 141 of file qgscodeeditor.cpp.
 
 
      
        
          | void QgsCodeEditor::setTitle  | 
          ( | 
          const QString &  | 
          title | ) | 
           | 
        
      
 
 
The documentation for this class was generated from the following files: