69 {
N_(
"Exit"), OP_EXIT },
70 {
N_(
"Help"), OP_HELP },
96 if ((ch.
ch != 0) && (p = strchr(mdata->
keys, ch.
ch)))
102 if (ch.
op == OP_NULL)
124 case OP_CURRENT_BOTTOM:
125 return OP_BOTTOM_PAGE;
126 case OP_CURRENT_MIDDLE:
127 return OP_MIDDLE_PAGE;
160 const char **line = NULL;
183 bool allow_always,
bool allow_skip)
202 mdata.
prompt =
_(
"(r)eject, accept (o)nce, (a)ccept always, (s)kip");
206 mdata.
keys =
_(
"roas");
210 mdata.
prompt =
_(
"(r)eject, accept (o)nce, (a)ccept always");
214 mdata.
keys =
_(
"roa");
221 mdata.
prompt =
_(
"(r)eject, accept (o)nce, (s)kip");
225 mdata.
keys =
_(
"ros");
229 mdata.
prompt =
_(
"(r)eject, accept (o)nce");
233 mdata.
keys =
_(
"ro");
298 mutt_error(
_(
"Jumping is not implemented for dialogs"));
303 case OP_SEARCH_OPPOSITE:
304 case OP_SEARCH_REVERSE:
305 mutt_error(
_(
"Search is not implemented for this menu"));
310 }
while (choice == 0);
#define ARRAY_FOREACH(elem, head)
Iterate over all elements of the array.
#define ARRAY_SIZE(head)
The number of elements stored.
#define ARRAY_GET(head, idx)
Return the element at index.
Color and attribute parsing.
@ MT_COLOR_PROMPT
Question/user input.
struct KeyEvent mutt_getch_timeout(int delay)
Get an event with a timeout.
void mutt_unget_op(int op)
Return an operation to the input buffer.
void mutt_unget_ch(int ch)
Return a keystroke to the input buffer.
static int menu_dialog_dokey(struct Menu *menu, int *id)
Check if there are any menu key events to process.
void cert_array_clear(struct CertArray *carr)
Free all memory of a CertArray.
static int menu_dialog_translate_op(int op)
Convert menubar movement to scrolling.
static const struct Mapping VerifyHelp[]
Help Bar for the Certificate Verification dialog.
int dlg_verify_certificate(const char *title, struct CertArray *carr, bool allow_always, bool allow_skip)
Ask the user to validate the certificate.
bool OptIgnoreMacroEvents
(pseudo) don't process macro/push/exec events while set
int menu_function_dispatcher(struct MuttWindow *win, int op)
Perform a Menu function - Implements function_dispatcher_t -.
#define mutt_debug(LEVEL,...)
Convenience wrapper for the gui headers.
void simple_dialog_free(struct MuttWindow **ptr)
Destroy a simple index Dialog.
struct MuttWindow * simple_dialog_new(enum MenuType mtype, enum WindowType wtype, const struct Mapping *help_data)
Create a simple index Dialog.
struct KeyEvent km_dokey_event(enum MenuType mtype)
Determine what a keypress should do.
@ LL_DEBUG1
Log at debug level 1.
void msgwin_set_text(enum ColorId cid, const char *text)
Set the text for the Message Window.
Convenience wrapper for the library headers.
size_t mutt_str_copy(char *dest, const char *src, size_t dsize)
Copy a string into a buffer (guaranteeing NUL-termination)
void window_redraw(struct MuttWindow *win)
Reflow, recalc and repaint a tree of Windows.
struct MuttWindow * window_find_child(struct MuttWindow *win, enum WindowType type)
Recursively find a child Window of a given type.
@ WT_DLG_CERTIFICATE
Certificate Dialog, dlg_verify_certificate()
@ WT_STATUS_BAR
Status Bar containing extra info about the Index/Pager/etc.
const char * opcodes_get_name(int op)
Get the name of an opcode.
All user-callable functions.
void sbar_set_title(struct MuttWindow *win, const char *title)
Set the title for the Simple Bar.
Handling of SSL encryption.
An event such as a keypress.
int op
Function opcode, e.g. OP_HELP.
Mapping between user-readable string and a constant.
void * wdata
Private data.
@ MENU_GENERIC
Generic selection list.