]>
cygwin.com Git - cygwin-apps/setup.git/blob - other.cc
2 * Copyright (c) 2000, Red Hat, Inc.
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.
9 * A copy of the GNU General Public License can be found at
12 * Written by DJ Delorie <dj@cygnus.com>
16 /* This handles the "other URL" option from the mirror site
20 static const char *cvsid
=
35 static char * other_url
= 0;
38 check_if_enable_next (HWND h
)
40 EnableWindow (GetDlgItem (h
, IDOK
), other_url
? 1 : 0);
46 eset (h
, IDC_OTHER_URL
, other_url
);
47 check_if_enable_next (h
);
53 other_url
= eget (h
, IDC_OTHER_URL
, other_url
);
54 site_list_type
*newsite
= new site_list_type (other_url
);
55 site_list_type
&listobj
= all_site_list
.registerbyobject (*newsite
);
56 if (&listobj
!= newsite
)
57 /* That site was already registered */
59 site_list
.registerbyobject (listobj
);
63 dialog_cmd (HWND h
, int id
, HWND hwndctl
, UINT code
)
69 other_url
= eget (h
, IDC_OTHER_URL
, other_url
);
70 check_if_enable_next (h
);
76 NEXT (IDD_S_LOAD_INI
);
92 dialog_proc (HWND h
, UINT message
, WPARAM wParam
, LPARAM lParam
)
100 return HANDLE_WM_COMMAND (h
, wParam
, lParam
, dialog_cmd
);
106 do_other (HINSTANCE h
, HWND owner
)
109 rv
= DialogBox (h
, MAKEINTRESOURCE (IDD_OTHER_URL
), owner
, dialog_proc
);
111 fatal (owner
, IDS_DIALOG_FAILED
);
113 log (0, "site: %s", other_url
);
This page took 0.03939 seconds and 5 git commands to generate.