NeoMutt  2022-04-29-249-gaae397
Teaching an old dog new tricks
DOXYGEN
Pattern Selection Dialog

The Pattern Selection Dialog lets the user select a pattern.

This is a Simple Dialog

Windows

Name Type See Also
Pattern Selection Dialog WT_DLG_PATTERN dlg_select_pattern()

Parent

Children

Data

The Simple Dialog holds a Menu. The Pattern Selection Dialog stores its data (PatternEntry) in Menu::mdata.

Events

Once constructed, it is controlled by the following events:

Event Type Handler
NT_CONFIG pattern_config_observer()
NT_WINDOW pattern_window_observer()

The Pattern Selection Dialog doesn't have any specific colours, so it doesn't need to support NT_COLOR.

The Pattern Selection Dialog does not implement MuttWindow::recalc() or MuttWindow::repaint().

Some other events are handled by the Simple Dialog.

Functions

Function Description Links
create_pattern_menu() Create the Pattern Completion menu
dlg_select_pattern() Show menu to select a Pattern
free_pattern_menu() Free the Pattern Completion menu Menu::mdata_free(), menu_mdata_free
make_pattern_entry() Create a line for the Pattern Completion menu Menu::make_entry(), menu_make_entry
pattern_config_observer() Notification that a Config Variable has changed observer_t, observer_api
pattern_format_str() Format a string for the pattern completion menu format_t, expando_api
pattern_window_observer() Notification that a Window has changed observer_t, observer_api