Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
qt_gui.menu_manager.MenuManager Class Reference
Inheritance diagram for qt_gui.menu_manager.MenuManager:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, menu)
 
def add_item (self, new_item)
 
def add_prefix (self, item)
 
def add_suffix (self, item)
 
def contains_item (self, name)
 
def contains_menu (self, name)
 
def count_items (self)
 
def get_item (self, name)
 
def get_items (self)
 
def get_menu (self, name)
 
def remove_item (self, name)
 
def set_item_checked (self, name, flag)
 
def set_item_disabled (self, name, flag)
 

Public Attributes

 menu
 

Private Member Functions

def _get_item_label (self, item)
 
def _insert_item (self, before, item)
 

Private Attributes

 _ordered_items
 
 _prefixes_separator
 
 _suffixes_separator
 

Detailed Description

Menu manager containing alphabetically ordered items and other items before and after.

Definition at line 35 of file menu_manager.py.

Constructor & Destructor Documentation

def qt_gui.menu_manager.MenuManager.__init__ (   self,
  menu 
)

Definition at line 38 of file menu_manager.py.

Member Function Documentation

def qt_gui.menu_manager.MenuManager._get_item_label (   self,
  item 
)
private

Definition at line 139 of file menu_manager.py.

def qt_gui.menu_manager.MenuManager._insert_item (   self,
  before,
  item 
)
private

Definition at line 127 of file menu_manager.py.

def qt_gui.menu_manager.MenuManager.add_item (   self,
  new_item 
)

Definition at line 63 of file menu_manager.py.

def qt_gui.menu_manager.MenuManager.add_prefix (   self,
  item 
)

Definition at line 55 of file menu_manager.py.

def qt_gui.menu_manager.MenuManager.add_suffix (   self,
  item 
)

Definition at line 74 of file menu_manager.py.

def qt_gui.menu_manager.MenuManager.contains_item (   self,
  name 
)

Definition at line 82 of file menu_manager.py.

def qt_gui.menu_manager.MenuManager.contains_menu (   self,
  name 
)

Definition at line 95 of file menu_manager.py.

def qt_gui.menu_manager.MenuManager.count_items (   self)

Definition at line 79 of file menu_manager.py.

def qt_gui.menu_manager.MenuManager.get_item (   self,
  name 
)

Definition at line 85 of file menu_manager.py.

def qt_gui.menu_manager.MenuManager.get_items (   self)

Definition at line 104 of file menu_manager.py.

def qt_gui.menu_manager.MenuManager.get_menu (   self,
  name 
)

Definition at line 98 of file menu_manager.py.

def qt_gui.menu_manager.MenuManager.remove_item (   self,
  name 
)

Definition at line 120 of file menu_manager.py.

def qt_gui.menu_manager.MenuManager.set_item_checked (   self,
  name,
  flag 
)

Definition at line 110 of file menu_manager.py.

def qt_gui.menu_manager.MenuManager.set_item_disabled (   self,
  name,
  flag 
)

Definition at line 115 of file menu_manager.py.

Member Data Documentation

qt_gui.menu_manager.MenuManager._ordered_items
private

Definition at line 44 of file menu_manager.py.

qt_gui.menu_manager.MenuManager._prefixes_separator
private

Definition at line 43 of file menu_manager.py.

qt_gui.menu_manager.MenuManager._suffixes_separator
private

Definition at line 45 of file menu_manager.py.

qt_gui.menu_manager.MenuManager.menu

Definition at line 42 of file menu_manager.py.


The documentation for this class was generated from the following file:


qt_gui
Author(s): Dirk Thomas
autogenerated on Sun Mar 1 2020 04:07:38