* New alpha version 2.24.1
[alpine.git] / alpine / context.h
blobb2f284b0fdb835634ec11dcaec5629ccfeb5e79b
1 /*
2 * $Id: context.h 761 2007-10-23 22:35:18Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2013-2021 Eduardo Chappa
6 * Copyright 2006 University of Washington
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_CONTEXT_INCLUDED
18 #define PINE_CONTEXT_INCLUDED
21 #include "../pith/context.h"
22 #include "../pith/state.h"
23 #include "../pith/conf.h"
24 #include "help.h"
25 #include "keymenu.h"
29 * Structures to control the collection list screen
31 typedef struct context_screen {
32 unsigned edit:1;
33 char *title, *print_string;
34 CONTEXT_S *start, /* for context_select_screen */
35 *selected,
36 **contexts;
37 struct variable *starting_var; /* another type of start for config */
38 int starting_varmem;
39 struct {
40 HelpType text;
41 char *title;
42 } help;
43 struct key_menu *keymenu;
44 } CONT_SCR_S;
47 /* exported prototypes */
48 void context_config_screen(struct pine *, CONT_SCR_S *, int);
49 CONTEXT_S *context_select_screen(struct pine *, CONT_SCR_S *, int);
52 #endif /* PINE_CONTEXT_INCLUDED */