#include <mlabTextViewControl.h>
Inherits MLABWidgetControl.
Inherited by MLABGLSLTextViewControl, and MLABPythonTextViewControl.
TextView control. 
This control shows an (editable) TextView.
MDL reference: TextView 
 
◆ appendText
  
  
      
        
          | void MLABTextViewControl::appendText  | 
          ( | 
          const QString & |           text | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Appends the given text to the text view. 
 
 
◆ applyUncommittedChanges()
  
  
      
        
          | void MLABTextViewControl::applyUncommittedChanges  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
overridevirtual   | 
  
 
 
◆ getCursorPosition
  
  
      
        
          | QPoint MLABTextViewControl::getCursorPosition  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Returns the cursor-position (as QPoint). 
 
 
◆ hasUncommittedChanges()
  
  
      
        
          | bool MLABTextViewControl::hasUncommittedChanges  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
overridevirtual   | 
  
 
Returns true if this control has uncommitted changes (currently only applies to TextView control) 
Reimplemented from MLABWidgetControl.
 
 
◆ insert
  
  
      
        
          | void MLABTextViewControl::insert  | 
          ( | 
          const QString & |           text | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Inserts the given text at the current cursor position (replaces the current selection!). 
 
 
◆ revertUncommittedChanges()
  
  
      
        
          | void MLABTextViewControl::revertUncommittedChanges  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
overridevirtual   | 
  
 
Reverts uncommitted changes; this mainly exists to prevent a second request dialog opening on closing if changes were discarded in the shouldCloseCommand. 
Reimplemented from MLABWidgetControl.
 
 
◆ selectedText
  
  
      
        
          | QString MLABTextViewControl::selectedText  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Returns the currently selected text (which may be empty). 
 
 
◆ setCursorPosition
  
  
      
        
          | void MLABTextViewControl::setCursorPosition  | 
          ( | 
          int |           para,  | 
         
        
           | 
           | 
          int |           index ) | 
         
       
   | 
  
slot   | 
  
 
Sets the cursor position. 
 
 
◆ setText
  
  
      
        
          | void MLABTextViewControl::setText  | 
          ( | 
          const QString & |           text | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Sets the text of the text view. 
Set text to the empty string to clear the text view. 
 
 
◆ text
  
  
      
        
          | QString MLABTextViewControl::text  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Returns the text of the text view.