1 /* 2 * $Id: context.h 761 2007-10-23 22:35:18Z hubert@u.washington.edu $ 3 * 4 * ======================================================================== 5 * Copyright 2013-2021 Eduardo Chappa 6 * Copyright 2006 University of Washington 7 * 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 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * ======================================================================== 15 */ 16 17 #ifndef PINE_CONTEXT_INCLUDED 18 #define PINE_CONTEXT_INCLUDED 19 20 21 #include "../pith/context.h" 22 #include "../pith/state.h" 23 #include "../pith/conf.h" 24 #include "help.h" 25 #include "keymenu.h" 26 27 28 /* 29 * Structures to control the collection list screen 30 */ 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; 45 46 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); 50 51 52 #endif /* PINE_CONTEXT_INCLUDED */ 53