68 {
N_(
"Exit"), OP_EXIT },
69 {
N_(
"Help"), OP_HELP },
93 if ((event.
ch != 0) && (p = strchr(mdata->
keys, event.
ch)))
99 if (event.
op == OP_NULL)
121 case OP_CURRENT_BOTTOM:
122 return OP_BOTTOM_PAGE;
123 case OP_CURRENT_MIDDLE:
124 return OP_MIDDLE_PAGE;
159 const char **line = NULL;
202 mdata.prompt =
_(
"(r)eject, accept (o)nce, (a)ccept always, (s)kip");
210 mdata.prompt =
_(
"(r)eject, accept (o)nce, (a)ccept always");
221 mdata.prompt =
_(
"(r)eject, accept (o)nce, (s)kip");
229 mdata.prompt =
_(
"(r)eject, accept (o)nce");
292 mutt_error(
_(
"Jumping is not implemented for dialogs"));
297 case OP_SEARCH_OPPOSITE:
298 case OP_SEARCH_REVERSE:
299 mutt_error(
_(
"Search is not implemented for this menu"));
304 }
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.
size_t buf_addstr(struct Buffer *buf, const char *s)
Add a string to a Buffer.
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
Color and attribute parsing.
@ MT_COLOR_PROMPT
Question/user input.
size_t mutt_strnwidth(const char *s, size_t n)
Measure a string's width in screen cells.
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 SimpleDialogWindows 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.
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.
@ WT_DLG_CERTIFICATE
Certificate Dialog, dlg_certificate()
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.
String manipulation buffer.
An event such as a keypress.
int op
Function opcode, e.g. OP_HELP.
Mapping between user-readable string and a constant.
Tuple for the results of simple_dialog_new()
struct MuttWindow * sbar
Simple Bar.
struct MuttWindow * dlg
Main Dialog Window.
@ MENU_DIALOG
Simple Dialog.
@ MENU_GENERIC
Generic selection list.