codeEditor_QPlainTextEdit.py
Bases: PyQt4.QtGui.QWidget
Defines a QWidget subclass providing a lines numbers widget.
Initializes the class.
Parameters: |
|
---|
Property for self.__separatorWidth attribute.
Returns: | self.__separatorWidth. |
---|---|
Return type: | int |
Property for self.__backgroundColor attribute.
Returns: | self.__backgroundColor. |
---|---|
Return type: | QColor |
Property for self.__separatorColor attribute.
Returns: | self.__separatorColor. |
---|---|
Return type: | QColor |
Reimplements the QWidget.sizeHint() method.
Returns: | Size hint. |
---|---|
Return type: | QSize |
Reimplements the QWidget.paintEvent() method.
Parameters: | event (QEvent) – Event. |
---|
Sets the editor viewport margins.
Parameters: | newBlocksCount (int) – Updated editor blocks count. |
---|---|
Returns: | Method success. |
Return type: | bool |
Bases: umbra.ui.widgets.basic_QPlainTextEdit.Basic_QPlainTextEdit
Defines a code editor base class.
Initializes the class.
Parameters: |
---|
This signal is emited by the Editor class when ComponentsManagerUi.language class property language is changed. ( pyqtSignal )
Property for self.__language attribute.
Returns: | self.__language. |
---|---|
Return type: | Language |
Property for self.__indentMarker attribute.
Returns: | self.__indentMarker. |
---|---|
Return type: | unicode |
Property for self.__indentWidth attribute.
Returns: | self.__indentWidth. |
---|---|
Return type: | int |
Property for self.__commentMarker attribute.
Returns: | self.__commentMarker. |
---|---|
Return type: | unicode |
Property for self.__marginArea_LinesNumbers_widget attribute.
Returns: | self.__marginArea_LinesNumbers_widget. |
---|---|
Return type: | LinesNumbers_QWidget |
Property for self.__highlighter attribute.
Returns: | self.__highlighter. |
---|---|
Return type: | QSyntaxHighlighter |
Property for self.__completer attribute.
Returns: | self.__completer. |
---|---|
Return type: | QCompleter |
Property for self.__preInputAccelerators attribute.
Returns: | self.__preInputAccelerators. |
---|---|
Return type: | tuple or list |
Property for self.__postInputAccelerators attribute.
Returns: | self.__postInputAccelerators. |
---|---|
Return type: | tuple or list |
Property for self.__visualAccelerators attribute.
Returns: | self.__visualAccelerators. |
---|---|
Return type: | tuple or list |
Reimplements the Basic_QPlainTextEdit.resizeEvent() method.
Parameters: | event (QEvent) – Event. |
---|
Reimplements the Basic_QPlainTextEdit.keyPressEvent() method.
Parameters: | event (QEvent) – Event. |
---|
Sets the language.
Parameters: | language (Language) – Language to set. |
---|---|
Returns: | Method success. |
Return type: | bool |
Sets given highlighter as the current document highlighter.
Parameters: | highlighter (QSyntaxHighlighter) – Highlighter. |
---|---|
Returns: | Method success. |
Return type: | bool |
Sets given completer as the current completer.
Parameters: | completer (QCompleter) – Completer. |
---|---|
Returns: | Method success. |
Return type: | bool |
Returns the cursor for matching given symbols pairs.
Parameters: | |
---|---|
Returns: | Matching cursor. |
Return type: | QTextCursor |
Unindents the document text under cursor.
Returns: | Method success. |
---|---|
Return type: | bool |
Toggles comments on the document selected lines.
Returns: | Method success. |
---|---|
Return type: | bool |
Removes document trailing white spaces.
Returns: | Method success. |
---|---|
Return type: | bool |