.. link: .. description: .. tags: .. date: 2013/08/18 00:00:00 .. title: NINJA-IDE .. slug: status_bar .. class:: alert alert-info pull-top .. contents:: *Module:* `status_bar.py `_ API ============================================================================= No description. *Imports:* ------------ - `re `_ - `ninja_ide.gui.ide.IDE `_ - `ninja_ide.tools.logger.NinjaLogger `_ - `PyQt4.QtGui.QCheckBox `_ - `PyQt4.QtGui.QCompleter `_ - `PyQt4.QtGui.QFileSystemModel `_ - `PyQt4.QtGui.QHBoxLayout `_ - `PyQt4.QtGui.QIcon `_ - `PyQt4.QtGui.QKeySequence `_ - `PyQt4.QtGui.QLabel `_ - `PyQt4.QtGui.QLineEdit `_ - `PyQt4.QtGui.QPushButton `_ - `PyQt4.QtGui.QShortcut `_ - `PyQt4.QtGui.QStatusBar `_ - `PyQt4.QtGui.QStyle `_ - `PyQt4.QtGui.QTextCursor `_ - `PyQt4.QtGui.QTextDocument `_ - `PyQt4.QtGui.QVBoxLayout `_ - `PyQt4.QtGui.QWidget `_ - `PyQt4.QtCore.Qt `_ - `PyQt4.QtCore.SIGNAL `_ - `__future__.absolute_import `_ - `ninja_ide.gui.actions `_ - `ninja_ide.tools.locator `_ - `ninja_ide.gui.main_panel.main_container `_ - `ninja_ide.resources `_ - `ninja_ide.core.settings `_ - `ninja_ide.tools.ui_tools `_ *Global Attributes:* ---------------------- - `DEBUG [at ln:51] `_ - `logger [at ln:50] `_ - `status [at ln:490] `_ ---- *Class:* `ReplaceWidget(QWidget) `_ ---------------------------------------------------------------------------------------------------------------------- .. code:: python class ReplaceWidget(QWidget): No description. *Attributes* ~~~~~~~~~~~~~~ - `_btnCloseReplace [at ln:416] `_ - `_btnReplace [at ln:418] `_ - `_btnReplaceAll [at ln:419] `_ - `_btnReplaceSelection [at ln:420] `_ - `_lineReplace [at ln:414] `_ *Function:* `__init__(parent) [at ln:410] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def __init__(parent): No description. ---- *Class:* `FileSystemOpener(QWidget) `_ ------------------------------------------------------------------------------------------------------------------------- .. code:: python class FileSystemOpener(QWidget): No description. *Attributes* ~~~~~~~~~~~~~~ - `btnClose [at ln:459] `_ - `btnOpen [at ln:467] `_ - `completer [at ln:461] `_ - `pathLine [at ln:462] `_ *Function:* `__init__() [at ln:455] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def __init__(): No description. ---- *Function:* `_open_file() [at ln:479] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def _open_file(): No description. ---- *Function:* `showEvent(event) [at ln:484] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def showEvent(event): No description. ---- *Class:* `_StatusBar(QStatusBar) `_ --------------------------------------------------------------------------------------------------------------------- .. code:: python class _StatusBar(QStatusBar): No description. *Attributes* ~~~~~~~~~~~~~~ - `_codeLocator [at ln:71] `_ - `_fileSystemOpener [at ln:75] `_ - `_replaceWidget [at ln:67] `_ - `_searchWidget [at ln:64] `_ - `_widgetStatus [at ln:59] `_ *Function:* `__init__() [at ln:56] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def __init__(): No description. ---- *Function:* `_notify_editor_changed() [at ln:142] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def _notify_editor_changed(): | Lets search widget know that the editor contents changed and find | needs to be re-run ---- *Function:* `explore_code() [at ln:151] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def explore_code(): No description. ---- *Function:* `explore_file_code(path) [at ln:154] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def explore_file_code(path): No description. ---- *Function:* `find() [at ln:246] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def find(): No description. ---- *Function:* `find_next() [at ln:256] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def find_next(): No description. ---- *Function:* `find_next_result() [at ln:122] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def find_next_result(): No description. ---- *Function:* `find_previous() [at ln:266] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def find_previous(): No description. ---- *Function:* `find_previous_result() [at ln:125] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def find_previous_result(): No description. ---- *Function:* `handle_tab_changed(new_tab) [at ln:128] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def handle_tab_changed(new_tab): | Re-run search if tab changed, we use the find of search widget because | we want the widget to be updated. ---- *Function:* `hide_status() [at ln:206] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def hide_status(): No description. ---- *Function:* `install() [at ln:115] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def install(): No description. ---- *Function:* `message_end(message) [at ln:283] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def message_end(message): No description. ---- *Function:* `replace() [at ln:218] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def replace(): No description. ---- *Function:* `replace_all(selected=False) [at ln:234] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def replace_all(selected=False): No description. ---- *Function:* `replace_selected() [at ln:231] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def replace_selected(): No description. ---- *Function:* `show() [at ln:157] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def show(): No description. ---- *Function:* `showMessage(message, timeout) [at ln:276] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def showMessage(message, timeout): No description. ---- *Function:* `show_file_opener() [at ln:199] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def show_file_opener(): No description. ---- *Function:* `show_locator() [at ln:190] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def show_locator(): No description. ---- *Function:* `show_replace() [at ln:169] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def show_replace(): No description. ---- *Function:* `show_with_word() [at ln:179] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def show_with_word(): No description. ---- *Class:* `TextLine(QLineEdit) `_ ------------------------------------------------------------------------------------------------------------------- .. code:: python class TextLine(QLineEdit): No description. *Attributes* ~~~~~~~~~~~~~~ - `_parent [at ln:433] `_ - `counter [at ln:434] `_ *Function:* `__init__(parent) [at ln:431] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def __init__(parent): No description. ---- *Function:* `keyPressEvent(event) [at ln:436] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def keyPressEvent(event): No description. ---- *Class:* `SearchWidget(QWidget) `_ --------------------------------------------------------------------------------------------------------------------- .. code:: python class SearchWidget(QWidget): No description. *Attributes* ~~~~~~~~~~~~~~ - `_btnClose [at ln:301] `_ - `_btnFind [at ln:303] `_ - `_checkSensitive [at ln:297] `_ - `_checkWholeWord [at ln:298] `_ - `_line [at ln:299] `_ - `_parent [at ln:294] `_ - `btnNext [at ln:309] `_ - `btnPrevious [at ln:304] `_ - `index [at ln:323] `_ - `totalMatches [at ln:322] `_ *Function:* `__init__(parent) [at ln:292] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def __init__(parent): No description. ---- *Function:* `_checks_state_changed() [at ln:339] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def _checks_state_changed(): No description. ---- *Function:* `contents_changed(editor) [at ln:344] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def contents_changed(editor): No description. ---- *Function:* `find_matches(editor, in_place=False) [at ln:370] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def find_matches(editor, in_place=False): No description. ---- *Function:* `find_next() [at ln:351] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def find_next(): No description. ---- *Function:* `find_previous() [at ln:359] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def find_previous(): No description.