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

◆ __init__()

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

Definition at line 38 of file menu_manager.py.

Member Function Documentation

◆ _get_item_label()

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

Definition at line 139 of file menu_manager.py.

◆ _insert_item()

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

Definition at line 127 of file menu_manager.py.

◆ add_item()

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

Definition at line 63 of file menu_manager.py.

◆ add_prefix()

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

Definition at line 55 of file menu_manager.py.

◆ add_suffix()

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

Definition at line 74 of file menu_manager.py.

◆ contains_item()

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

Definition at line 82 of file menu_manager.py.

◆ contains_menu()

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

Definition at line 95 of file menu_manager.py.

◆ count_items()

def qt_gui.menu_manager.MenuManager.count_items (   self)

Definition at line 79 of file menu_manager.py.

◆ get_item()

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

Definition at line 85 of file menu_manager.py.

◆ get_items()

def qt_gui.menu_manager.MenuManager.get_items (   self)

Definition at line 104 of file menu_manager.py.

◆ get_menu()

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

Definition at line 98 of file menu_manager.py.

◆ remove_item()

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

Definition at line 120 of file menu_manager.py.

◆ set_item_checked()

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

Definition at line 110 of file menu_manager.py.

◆ set_item_disabled()

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

Definition at line 115 of file menu_manager.py.

Member Data Documentation

◆ _ordered_items

qt_gui.menu_manager.MenuManager._ordered_items
private

Definition at line 44 of file menu_manager.py.

◆ _prefixes_separator

qt_gui.menu_manager.MenuManager._prefixes_separator
private

Definition at line 43 of file menu_manager.py.

◆ _suffixes_separator

qt_gui.menu_manager.MenuManager._suffixes_separator
private

Definition at line 45 of file menu_manager.py.

◆ menu

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 Fri Jun 24 2022 02:42:37