codeEditor_QPlainTextEdit.py
Bases: PyQt4.QtGui.QWidget
This class is a QWidget subclass providing a lines numbers widget.
Parameters: |
|
---|
This method is the property for self.__editor attribute.
Returns: | self.__editor. ( QWidget ) |
---|
This method is the property for self.__margin attribute.
Returns: | self.__margin. ( Integer ) |
---|
This method is the property for self.__separatorWidth attribute.
Returns: | self.__separatorWidth. ( Integer ) |
---|
This method is the property for self.__backgroundColor attribute.
Returns: | self.__backgroundColor. ( QColor ) |
---|
This method is the property for self.__color attribute.
Returns: | self.__color. ( QColor ) |
---|
This method is the property for self.__separatorColor attribute.
Returns: | self.__separatorColor. ( QColor ) |
---|
This method reimplements the QWidget.sizeHint() method.
Returns: | Size hint. ( QSize ) |
---|
This method reimplements the QWidget.paintEvent() method.
Parameters: | event – Event. ( QEvent ) |
---|
This method returns the Widget target width.
Returns: | Widget target width. ( Integer ) |
---|
This method sets the editor viewport margins.
Parameters: | newBlocksCount – Updated editor blocks count. ( Integer ) |
---|---|
Returns: | Method success. ( Boolean ) |
Bases: umbra.ui.widgets.basic_QPlainTextEdit.Basic_QPlainTextEdit
This class provides a code editor base class.
Parameters: |
|
---|
This signal is emited by the Editor class when ComponentsManagerUi.language class property language is changed. ( pyqtSignal )
This method is the property for self.__language attribute.
Returns: | self.__language. ( Language ) |
---|
This method is the property for self.__indentMarker attribute.
Returns: | self.__indentMarker. ( String ) |
---|
This method is the property for self.__indentWidth attribute.
Returns: | self.__indentWidth. ( Integer ) |
---|
This method is the property for self.__commentMarker attribute.
Returns: | self.__commentMarker. ( String ) |
---|
This method is the property for self.__marginArea_LinesNumbers_widget attribute.
Returns: | self.__marginArea_LinesNumbers_widget. ( LinesNumbers_QWidget ) |
---|
This method is the property for self.__highlighter attribute.
Returns: | self.__highlighter. ( QSyntaxHighlighter ) |
---|
This method is the property for self.__completer attribute.
Returns: | self.__completer. ( QCompleter ) |
---|
This method is the property for self.__preInputAccelerators attribute.
Returns: | self.__preInputAccelerators. ( Tuple / List ) |
---|
This method is the property for self.__postInputAccelerators attribute.
Returns: | self.__postInputAccelerators. ( Tuple / List ) |
---|
This method is the property for self.__visualAccelerators attribute.
Returns: | self.__visualAccelerators. ( Tuple / List ) |
---|
This method reimplements the Basic_QPlainTextEdit.resizeEvent() method.
Parameters: | event – Event. ( QEvent ) |
---|
This method reimplements the Basic_QPlainTextEdit.keyPressEvent() method.
Parameters: | event – Event. ( QEvent ) |
---|
This method sets the language.
Parameters: | language – Language to set. ( Language ) |
---|---|
Returns: | Method success. ( Boolean ) |
This method sets given highlighter as the current document highlighter.
Parameters: | highlighter – Highlighter. ( QSyntaxHighlighter ) |
---|---|
Returns: | Method success. ( Boolean ) |
This method removes current highlighter.
Returns: | Method success. ( Boolean ) |
---|
This method sets given completer as the current completer.
Parameters: | completer – Completer. ( QCompleter ) |
---|---|
Returns: | Method success. ( Boolean ) |
This method removes current completer.
Returns: | Method success. ( Boolean ) |
---|
This method returns the cursor for matching given symbols pairs.
Parameters: |
|
---|---|
Returns: | Matching cursor. ( QTextCursor ) |
This method indents the document text under cursor.
Returns: | Method success. ( Boolean ) |
---|
This method unindents the document text under cursor.
Returns: | Method success. ( Boolean ) |
---|
This method toggles comments on the document selected lines.
Returns: | Method success. ( Boolean ) |
---|
This method removes document trailing white spaces.
Returns: | Method success. ( Boolean ) |
---|