* Patches from MichaƂ Dardas and Mateusz Kocielski from LogicalTrust
[alpine.git] / alpine / listsel.h
blobff25801c2386ad4fe23f897ac1567fb805013e9c
1 /*
2 * $Id: listsel.h 918 2008-01-23 19:39:38Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2006-2008 University of Washington
6 * Copyright 2013-2018 Eduardo Chappa
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * ========================================================================
17 #ifndef PINE_LISTSEL_INCLUDED
18 #define PINE_LISTSEL_INCLUDED
21 #include "help.h"
24 /* for select_from_list_screen */
25 #define SFL_NONE 0x000
26 #define SFL_ALLOW_LISTMODE 0x001
27 #define SFL_STARTIN_LISTMODE 0x002 /* should also light ALLOW_LISTMODE */
28 #define SFL_ONLY_LISTMODE 0x004 /* don't allow switching back out of ListMode */
29 #define SFL_NOSELECT 0x008 /* per item flag, line not selectable */
30 #define SFL_CTRLC 0x010 /* use ^C instead of Exit for Exit and
31 allow zero selections */
34 typedef struct list_selection {
35 char *display_item; /* use item if this is NULL */
36 char *item; /* selected value for item */
37 int selected; /* is item selected or not */
38 int flags;
39 struct list_selection *next;
40 } LIST_SEL_S;
43 /* exported protoypes */
44 int select_from_list_screen(LIST_SEL_S *, unsigned long, char *, char *, HelpType, char *, LIST_SEL_S *);
47 #endif /* PINE_LISTSEL_INCLUDED */