No description.
class Editor(QPlainTextEdit, itab_item.ITabItem):
modificationChanged(bool)
fileSaved(QPlainTextEdit)
locateFunction(QString, QString, bool) [functionName, filePath, isVariable]
openDropFile(QString)
addBackItemNavigation()
checksFound(QPlainTextEdit, PyQt_PyObject)
cleanDocument(QPlainTextEdit)
findOcurrences(QString)
cursorPositionChange(int, int) #row, col
migrationAnalyzed()
def __auto_indent(event):
No description.
def __backspace(event):
No description.
def __brace_completion(event):
Indicate if this symbol is part of a given pair and needs to be
completed.
def __complete_braces(event):
Complete () [] and {} using a mild inteligence to see if corresponds
and also do some more magic such as complete in classes and functions.
def __complete_quotes(event):
Completion for single and double quotes, which since are simmetrical
symbols used for different things can not be balanced as easily as
braces or equivalent.
def __fancyMoveCursor(operation, repeat=int, moveMode=QTextCursor.MoveAnchor):
Move the cursor a given number of times (with or without
anchoring), just a helper given the less than practical way qt
has for such a common operation
def __get_abs_position_on_text(text, position):
tokens give us position of char in a given line, we need
such position relative to the beginning of the text, also we need
to add the number of lines, since our split removes the newlines
which are counted as a character in the editor
def __get_encoding():
Get the current encoding of 'utf-8' otherwise.
def __home_pressed(event):
No description.
def __ignore_extended_line(event):
No description.
def __init__(neditable):
No description.
def __insert_indentation(event):
No description.
def __quot_completion(event):
Indicate if this is some sort of quote that needs to be completed
This is a very simple boolean table, given that quotes are a
simmetrical symbol, is a little more cumbersome guessing the completion
table.
def __retreat_to_keywords(event):
Unindent some kind of blocks if needed.
def __reverse_select_text_portion_from_offset(begin, end):
Backwards select text, go from current+begin to current - end
possition, returns text
def __set_encoding(encoding):
Set the current encoding.
def __set_selection_from_pair(begin, end):
Set the current editor cursor with a selection from a given pair of
positions
def __tokenize_text(text):
No description.
def _file_saved(undoAvailable=False):
No description.
def _find_occurrences():
No description.
def _match_braces(position, brace, forward):
Return the position to hilight of the matching brace
def _show_tab_icon_notification():
No description.
def _text_under_cursor():
No description.
def _unfold_blocks_for_jump(lineno):
Unfold the blocks previous to the lineno.
def _update_margin_line(font=None):
No description.
def additional_builtins():
No description.
Decorators:
def apply_editor_style():
No description.
def async_highlight():
No description.
def complete_declaration():
No description.
def cursor_inside_string():
No description.
def display_name():
No description.
Decorators:
def dropEvent(event):
No description.
def find_match(word, flags, findNext=False):
No description.
def focusInEvent(event):
No description.
def focusOutEvent(event):
Hide Popup on focus lost.
def get_cursor_position():
No description.
def get_lines_count():
Returns the count of lines in the editor
def get_parent_project():
No description.
def get_selection(posStart, posEnd):
No description.
def get_text():
Returns all the plain text of the editor
def go_to_definition(cursor=None):
No description.
def highlight_current_line():
No description.
def highlight_selected_word(word_find=None):
No description.
def indent_less():
No description.
def indent_more():
No description.
def insert_new_line():
No description.
def jump_to_line(lineno=None):
Jump to a specific line number or ask to the user for the line
def keyPressEvent(event):
No description.
def load_project_config():
No description.
def mouseMoveEvent(event):
No description.
def mousePressEvent(event):
No description.
def mouseReleaseEvent(event):
No description.
def paintEvent(event):
No description.
def project():
No description.
Decorators:
def register_syntax(lang=str, syntax=None):
No description.
def replace_match(wordOld, wordNew, flags, allwords=False, selection=False):
Find if searched text exists and replace it with new one.
If there is a selection just do it inside it and exit.
def resizeEvent(event):
No description.
def restyle(syntaxLang=None):
No description.
def set_cursor_position(pos):
No description.
def set_flags():
Set some configuration flags for the Editor.
def set_font(family=settings.FONT_FAMILY, size=settings.FONT_SIZE):
No description.
def set_id(id_):
No description.
def set_tab_usage():
Update tab stop width and margin line.
def to_lower():
No description.
def to_title():
No description.
def to_upper():
No description.
def wheelEvent(event, forward=True):
No description.
def zoom_in():
No description.
def zoom_out():
No description.