aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lxdialog/dialog.h
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2005-11-19 13:13:34 -0500
committerSam Ravnborg <sam@mars.ravnborg.org>2005-11-19 13:13:34 -0500
commitb1c5f1c635f4a821f834ed51ccd8a2a1515fffd2 (patch)
tree7325e59c16a2b90fd6f78ab491f7ef48bfd409b9 /scripts/lxdialog/dialog.h
parentb286e39207237e2f6929959372bf66d9a8d05a82 (diff)
kconfig: Lindent scripts/lxdialog
The lxdialog code was not easy to read. So as first step the code was run through Lindent. Fix-ups will come in next patchset. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/lxdialog/dialog.h')
-rw-r--r--scripts/lxdialog/dialog.h59
1 files changed, 28 insertions, 31 deletions
diff --git a/scripts/lxdialog/dialog.h b/scripts/lxdialog/dialog.h
index eb63e1bb63a3..c86801f981fe 100644
--- a/scripts/lxdialog/dialog.h
+++ b/scripts/lxdialog/dialog.h
@@ -42,7 +42,7 @@
42#if defined(NCURSES_VERSION) && defined(_NEED_WRAP) && !defined(GCC_PRINTFLIKE) 42#if defined(NCURSES_VERSION) && defined(_NEED_WRAP) && !defined(GCC_PRINTFLIKE)
43#define OLD_NCURSES 1 43#define OLD_NCURSES 1
44#undef wbkgdset 44#undef wbkgdset
45#define wbkgdset(w,p) /*nothing*/ 45#define wbkgdset(w,p) /*nothing */
46#else 46#else
47#define OLD_NCURSES 0 47#define OLD_NCURSES 0
48#endif 48#endif
@@ -56,7 +56,6 @@
56#define MIN(x,y) (x < y ? x : y) 56#define MIN(x,y) (x < y ? x : y)
57#define MAX(x,y) (x > y ? x : y) 57#define MAX(x,y) (x > y ? x : y)
58 58
59
60#ifndef ACS_ULCORNER 59#ifndef ACS_ULCORNER
61#define ACS_ULCORNER '+' 60#define ACS_ULCORNER '+'
62#endif 61#endif
@@ -137,35 +136,34 @@ extern const char *backtitle;
137/* 136/*
138 * Function prototypes 137 * Function prototypes
139 */ 138 */
140extern void create_rc (const char *filename); 139extern void create_rc(const char *filename);
141extern int parse_rc (void); 140extern int parse_rc(void);
142 141
143 142void init_dialog(void);
144void init_dialog (void); 143void end_dialog(void);
145void end_dialog (void); 144void attr_clear(WINDOW * win, int height, int width, chtype attr);
146void attr_clear (WINDOW * win, int height, int width, chtype attr); 145void dialog_clear(void);
147void dialog_clear (void); 146void color_setup(void);
148void color_setup (void); 147void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x);
149void print_autowrap (WINDOW * win, const char *prompt, int width, int y, int x); 148void print_button(WINDOW * win, const char *label, int y, int x, int selected);
150void print_button (WINDOW * win, const char *label, int y, int x, int selected); 149void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box,
151void draw_box (WINDOW * win, int y, int x, int height, int width, chtype box, 150 chtype border);
152 chtype border); 151void draw_shadow(WINDOW * win, int y, int x, int height, int width);
153void draw_shadow (WINDOW * win, int y, int x, int height, int width); 152
154 153int first_alpha(const char *string, const char *exempt);
155int first_alpha (const char *string, const char *exempt); 154int dialog_yesno(const char *title, const char *prompt, int height, int width);
156int dialog_yesno (const char *title, const char *prompt, int height, int width); 155int dialog_msgbox(const char *title, const char *prompt, int height,
157int dialog_msgbox (const char *title, const char *prompt, int height, 156 int width, int pause);
158 int width, int pause); 157int dialog_textbox(const char *title, const char *file, int height, int width);
159int dialog_textbox (const char *title, const char *file, int height, int width); 158int dialog_menu(const char *title, const char *prompt, int height, int width,
160int dialog_menu (const char *title, const char *prompt, int height, int width, 159 int menu_height, const char *choice, int item_no,
161 int menu_height, const char *choice, int item_no, 160 const char *const *items);
162 const char * const * items); 161int dialog_checklist(const char *title, const char *prompt, int height,
163int dialog_checklist (const char *title, const char *prompt, int height, 162 int width, int list_height, int item_no,
164 int width, int list_height, int item_no, 163 const char *const *items, int flag);
165 const char * const * items, int flag);
166extern char dialog_input_result[]; 164extern char dialog_input_result[];
167int dialog_inputbox (const char *title, const char *prompt, int height, 165int dialog_inputbox(const char *title, const char *prompt, int height,
168 int width, const char *init); 166 int width, const char *init);
169 167
170/* 168/*
171 * This is the base for fictitious keys, which activate 169 * This is the base for fictitious keys, which activate
@@ -178,7 +176,6 @@ int dialog_inputbox (const char *title, const char *prompt, int height,
178 */ 176 */
179#define M_EVENT (KEY_MAX+1) 177#define M_EVENT (KEY_MAX+1)
180 178
181
182/* 179/*
183 * The `flag' parameter in checklist is used to select between 180 * The `flag' parameter in checklist is used to select between
184 * radiolist and checklist 181 * radiolist and checklist