itom  3.0.0
ito::AbstractPyScintillaWidget Class Reference
Inheritance diagram for ito::AbstractPyScintillaWidget:
ito::ConsoleWidget

Public Slots

void selectionChanged ()
 
void reloadSettings ()
 

Signals

void userSelectionChanged (int lineFrom, int indexFrom, int lineTo, int indexTo)
 

Public Member Functions

 AbstractPyScintillaWidget (QWidget *parent=NULL)
 
QString getWordAtPosition (const int &line, const int &index)
 

Protected Types

enum  tUserSelectionState { selNo, selRange }
 

Protected Member Functions

void init ()
 
virtual void loadSettings ()
 
void checkUserSelectionState ()
 
QString formatPythonCodePart (const QString &text, int &lineCount)
 
QString formatConsoleCodePart (const QString &text)
 
QPixmap loadMarker (const QString &name, int sizeAt96dpi)
 

Protected Attributes

tUserSelectionState m_userSelectionState
 

Private Member Functions

int getSpaceTabCount (const QString &s)
 counts the numbers of leading tabs or spaces of a string More...
 
bool haveToIndention (QString s)
 checks if text line contains a colon sign as last valid character (only comments or spaces are allowed after the colon) More...
 

Private Attributes

QsciLexerPython * qSciLex
 
QsciApiManagerm_pApiManager
 
QStringList m_installedApiFiles
 
bool m_textIndicatorActive
 
int m_textIndicatorNr
 

Member Function Documentation

int ito::AbstractPyScintillaWidget::getSpaceTabCount ( const QString &  s)
private

counts the numbers of leading tabs or spaces of a string

Returns
number of leading tabs or spaces
bool ito::AbstractPyScintillaWidget::haveToIndention ( QString  s)
private

checks if text line contains a colon sign as last valid character (only comments or spaces are allowed after the colon)

This method is necessary in order to verify if the following text lines must be indented with respect to this line in Python syntax.

Returns
true if colon is last valid sign, else false
void ito::AbstractPyScintillaWidget::loadSettings ( )
protectedvirtual

< add commands to autoCompletion:


The documentation for this class was generated from the following files: