Deluge Firmware 1.3.0
Build date: 2025.07.02
Loading...
Searching...
No Matches
dmui.dsl.MultiModeMenu Class Reference
Inheritance diagram for dmui.dsl.MultiModeMenu:
Collaboration diagram for dmui.dsl.MultiModeMenu:

Public Member Functions

 __init__ (self, str clazz, str cpp_name, list[str] arg_template, Iterable[MultiModeMenuMode] modes, Optional[str] name=None, Optional[str] title=None)
 visit (self, visitor)
Public Member Functions inherited from dmui.dsl.Menu
 __init__ (self, str clazz, str cpp_name, list[str] arg_template, Optional[str] description, Optional[str] name=None, Optional[str] title=None, Optional[str] available_when=None)
 template_args (self)

Public Attributes

 modes = modes
Public Attributes inherited from dmui.dsl.Menu
 cpp_name = cpp_name
 clazz = clazz
 title = name
 name = title
 arg_template = arg_template
 description = description
 available_when = None

Detailed Description

A menu that changes its title and operation depending on context.

:param clazz: The C++ class to use for this menu item.
:param cpp_name: The variable name to use when emitting C++ code.
:param arg_template: A list of Python format strings which will be used to
    generate the C++ initializer arguments.
:param title: The key in the language map for the header of this menu item
    when it's opened.
:param modes:  The menus this submenu selects from.
:param name: The key in the langauge map for the string to be rendered when
    this menu item is presented for selection in a submenu. A value of None
    (the default) causes this to default to the same value as ``title``.

Member Function Documentation

◆ visit()

dmui.dsl.MultiModeMenu.visit ( self,
visitor )

Reimplemented from dmui.dsl.Menu.


The documentation for this class was generated from the following file:
  • src/deluge/gui/menu_item/generate/dmui/dsl.py