67 {
N_(
"Exit"), OP_EXIT },
68 {
N_(
"Help"), OP_HELP },
92 if ((event.
ch != 0) && (p = strchr(mdata->
keys, event.
ch)))
98 if (event.
op == OP_NULL)
120 case OP_CURRENT_BOTTOM:
121 return OP_BOTTOM_PAGE;
122 case OP_CURRENT_MIDDLE:
123 return OP_MIDDLE_PAGE;
156 const char **line = NULL;
200 mdata.
prompt =
_(
"(r)eject, accept (o)nce, (a)ccept always, (s)kip");
204 mdata.
keys =
_(
"roas");
208 mdata.
prompt =
_(
"(r)eject, accept (o)nce, (a)ccept always");
212 mdata.
keys =
_(
"roa");
219 mdata.
prompt =
_(
"(r)eject, accept (o)nce, (s)kip");
223 mdata.
keys =
_(
"ros");
227 mdata.
prompt =
_(
"(r)eject, accept (o)nce");
231 mdata.
keys =
_(
"ro");
290 mutt_error(
_(
"Jumping is not implemented for dialogs"));
295 case OP_SEARCH_OPPOSITE:
296 case OP_SEARCH_REVERSE:
297 mutt_error(
_(
"Search is not implemented for this menu"));
302 }
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(GetChFlags flags)
Read a character from the input buffer.
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 km_dokey(enum MenuType mtype, GetChFlags flags)
Determine what a keypress should do.
int menu_function_dispatcher(struct MuttWindow *win, int op)
Perform a Menu function - Implements function_dispatcher_t -.
int dlg_certificate(const char *title, struct CertArray *carr, bool allow_always, bool allow_skip)
Ask the user to validate the certificate -.
#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.
#define GETCH_IGNORE_MACRO
Don't use MacroEvents.
@ LL_DEBUG1
Log at debug level 1.
void msgwin_set_text(struct MuttWindow *win, const char *text, enum ColorId color)
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_set_focus(struct MuttWindow *win)
Set the Window focus.
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_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.
#define OP_TIMEOUT
1 second with no events
#define OP_ABORT
$abort_key pressed (Ctrl-G)
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_DIALOG
Simple Dialog.
@ MENU_GENERIC
Generic selection list.