.. link: .. description: .. tags: .. date: 2013/08/18 00:00:00 .. title: NINJA-IDE .. slug: menubar .. class:: alert alert-info pull-top .. contents:: *Module:* `menubar.py `_ API ============================================================================= No description. *Imports:* ------------ - `ninja_ide.gui.ide.IDE `_ - `PyQt4.QtGui.QAction `_ - `PyQt4.QtGui.QMenu `_ - `PyQt4.QtCore.QObject `_ - `collections.defaultdict `_ - `ninja_ide.core.settings `_ *Global Attributes:* ---------------------- - `SEC01 [at ln:12] `_ - `SEC02 [at ln:13] `_ - `SEC03 [at ln:14] `_ - `SEC04 [at ln:15] `_ - `SEC05 [at ln:16] `_ - `SEC06 [at ln:17] `_ - `SEC07 [at ln:18] `_ - `SEC08 [at ln:19] `_ - `SEC09 [at ln:20] `_ - `SEC10 [at ln:21] `_ - `menu [at ln:164] `_ ---- *Global Functions:* --------------------- *Function:* `menu_add_section(menu, section_parts) [at ln:28] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def menu_add_section(menu, section_parts): No description. ---- *Class:* `_MenuBar(QObject) `_ --------------------------------------------------------------------------------------------------------------------- .. code:: python class _MenuBar(QObject): No description. *Attributes* ~~~~~~~~~~~~~~ - `_children [at ln:52] `_ - `_menu_refs [at ln:54] `_ - `_roots [at ln:51] `_ - `_submenu [at ln:53] `_ - `_toolbar_index [at ln:55] `_ - `menubar [at ln:111] `_ *Function:* `__init__() [at ln:49] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def __init__(): No description. ---- *Function:* `add_child(root_name, sub_name, child, weight, namespace=str) [at ln:82] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def add_child(root_name, sub_name, child, weight, namespace=str): No description. ---- *Function:* `add_root(root_name, root_weight=None) [at ln:66] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def add_root(root_name, root_weight=None): | Add a root menu with desired weight or at end of list ---- *Function:* `add_toolbar_item(toolbar_item) [at ln:105] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def add_toolbar_item(toolbar_item): No description. ---- *Function:* `get_children_of(parent, sub_name=None, namespace=None) [at ln:92] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def get_children_of(parent, sub_name=None, namespace=None): No description. ---- *Function:* `get_root() [at ln:76] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def get_root(): No description. ---- *Function:* `load_menu(ide) [at ln:109] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def load_menu(ide): No description. ---- *Function:* `load_toolbar(ide) [at ln:155] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def load_toolbar(ide): No description.