]> cygwin.com Git - cygwin-apps/setup.git/blame - dialog.h
2001-11-13 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / dialog.h
CommitLineData
23c9e63c
DD
1/*
2 * Copyright (c) 2000, Red Hat, Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * A copy of the GNU General Public License can be found at
10 * http://www.gnu.org/
11 *
12 * Written by DJ Delorie <dj@cygnus.com>
13 *
14 */
15
16/* global instance for the application; set in main.cc */
17extern HINSTANCE hinstance;
18
19/* used by main.cc to select the next do_* function */
20extern int next_dialog;
21
f57c332f
DD
22/* either "nothing to do" or "setup complete" or something like that */
23extern int exit_msg;
24
23c9e63c
DD
25#define D(x) void x(HINSTANCE _h)
26
904d24fe
DD
27/* prototypes for all the do_* functions (most called by main.cc) */
28
b24c88b3
RC
29D (do_choose);
30D (do_desktop);
31D (do_download);
32D (do_fromcwd);
33D (do_ini);
34D (do_install);
35D (do_local_dir);
36D (do_net);
37D (do_other);
38D (do_postinstall);
39D (do_root);
40D (do_site);
41D (do_source);
42D (do_splash);
23c9e63c
DD
43
44#undef D
45
46/* end this dialog and select the next. Pass 0 to exit the program */
ed96c6da 47#define NEXT(id) EndDialog((HWND)h, 0), next_dialog = id
23c9e63c
DD
48
49/* Get the value of an EditText control. Pass the previously stored
50 value and it will free the memory if needed. */
b24c88b3 51
23c9e63c
DD
52char *eget (HWND h, int id, char *var);
53
54/* Same, but convert the value to an integer */
55
b24c88b3 56int eget (HWND h, int id);
23c9e63c
DD
57
58/* Set the EditText control to the given string or integer */
59
b24c88b3
RC
60void eset (HWND h, int id, const char *var);
61void eset (HWND h, int id, int var);
23c9e63c
DD
62
63/* RadioButtons. ids is a null-terminated list of IDs. Get
64 returns the selected ID (or zero), pass an ID to set */
65
b24c88b3
RC
66int rbget (HWND h, int *ids);
67void rbset (HWND h, int *ids, int id);
23c9e63c
DD
68
69/* *This* version of fatal (compare with msg.h) uses GetLastError() to
70 format a suitable error message. Similar to perror() */
71
b24c88b3 72void fatal (const char *msg) __attribute__ ((noreturn));
This page took 0.03269 seconds and 5 git commands to generate.