.. link: .. description: .. tags: .. date: 2013/08/18 00:00:00 .. title: NINJA-IDE .. slug: sidebar_widget .. class:: alert alert-info pull-top .. contents:: *Module:* `sidebar_widget.py `_ API ============================================================================================ No description. *Imports:* ------------ - `math `_ - `re `_ - `PyQt4.QtGui.QBrush `_ - `PyQt4.QtGui.QColor `_ - `PyQt4.QtGui.QFontMetrics `_ - `PyQt4.QtGui.QLinearGradient `_ - `PyQt4.QtGui.QPainter `_ - `PyQt4.QtGui.QPixmap `_ - `PyQt4.QtCore.QPointF `_ - `PyQt4.QtGui.QPolygonF `_ - `PyQt4.QtGui.QWidget `_ - `PyQt4.QtCore.Qt `_ - `__future__.absolute_import `_ - `ninja_ide.gui.editor.helpers `_ - `ninja_ide.resources `_ - `ninja_ide.core.settings `_ *Class:* `SidebarWidget(QWidget) `_ ------------------------------------------------------------------------------------------------------------------------------------------ .. code:: python class SidebarWidget(QWidget): No description. *Attributes* ~~~~~~~~~~~~~~ - `_endDocstringBlocks [at ln:373] `_ - `_neditable [at ln:47] `_ - `bookmarks [at ln:61] `_ - `breakpoints [at ln:60] `_ - `downArrowIcon [at ln:51] `_ - `edit [at ln:46] `_ - `foldArea [at ln:49] `_ - `foldedBlocks [at ln:59] `_ - `highest_line [at ln:277] `_ - `pat [at ln:52] `_ - `patComment [at ln:57] `_ - `patNotPython [at ln:56] `_ - `rightArrowIcon [at ln:50] `_ *Function:* `__init__(editor, neditable) [at ln:44] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def __init__(editor, neditable): No description. ---- *Function:* `_find_fold_closing(block) [at ln:146] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def _find_fold_closing(block): No description. ---- *Function:* `_find_fold_closing_brace(block) [at ln:191] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def _find_fold_closing_brace(block): No description. ---- *Function:* `_find_fold_closing_docstring(block) [at ln:183] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def _find_fold_closing_docstring(block): No description. ---- *Function:* `_find_fold_closing_label(block) [at ln:172] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def _find_fold_closing_label(block): No description. ---- *Function:* `_fold(lineNumber) [at ln:107] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def _fold(lineNumber): No description. ---- *Function:* `_is_folded(line) [at ln:140] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def _is_folded(line): No description. ---- *Function:* `_save_breakpoints_bookmarks() [at ln:426] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def _save_breakpoints_bookmarks(): No description. ---- *Function:* `_unfold(lineNumber) [at ln:121] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def _unfold(lineNumber): No description. ---- *Function:* `calculate_docstring_block_fold() [at ln:372] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def calculate_docstring_block_fold(): No description. ---- *Function:* `code_folding_event(lineNumber) [at ln:98] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def code_folding_event(lineNumber): No description. ---- *Function:* `mousePressEvent(event) [at ln:387] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def mousePressEvent(event): No description. ---- *Function:* `paintEvent(event) [at ln:204] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def paintEvent(event): No description. ---- *Function:* `set_bookmark(lineno) [at ln:444] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def set_bookmark(lineno): No description. ---- *Function:* `set_breakpoint(lineno) [at ln:436] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def set_breakpoint(lineno): No description. ---- *Function:* `update(*args) [at ln:78] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def update(*args): No description. ---- *Function:* `update_area() [at ln:68] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def update_area(): No description. ---- *Function:* `update_sidebar_marks(blockNumber, diference) [at ln:81] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def update_sidebar_marks(blockNumber, diference): No description.