1 |
/* wptFirstRunDlg.cpp - Welcome dialog |
/* wptFirstRunDlg.cpp - Welcome dialog |
2 |
* Copyright (C) 2002-2005 Timo Schulz |
* Copyright (C) 2002-2006 Timo Schulz |
3 |
* |
* |
4 |
* This file is part of WinPT. |
* This file is part of WinPT. |
5 |
* |
* |
17 |
* along with WinPT; if not, write to the Free Software Foundation, |
* along with WinPT; if not, write to the Free Software Foundation, |
18 |
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
19 |
*/ |
*/ |
|
|
|
20 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
21 |
#include <config.h> |
#include <config.h> |
22 |
#endif |
#endif |
23 |
|
|
24 |
#include <windows.h> |
#include <windows.h> |
|
#include <windows.h> |
|
25 |
|
|
26 |
#include "../resource.h" |
#include "resource.h" |
27 |
#include "wptW32API.h" |
#include "wptW32API.h" |
28 |
#include "wptGPG.h" |
#include "wptGPG.h" |
29 |
#include "wptTypes.h" |
#include "wptTypes.h" |
31 |
#include "wptContext.h" |
#include "wptContext.h" |
32 |
|
|
33 |
|
|
34 |
|
/* Dialog box procedure which is executed on the first time WinPT |
35 |
|
is started. */ |
36 |
BOOL CALLBACK |
BOOL CALLBACK |
37 |
first_run_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam) |
first_run_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam) |
38 |
{ |
{ |
44 |
if (!ctx) |
if (!ctx) |
45 |
BUG (0); |
BUG (0); |
46 |
CheckDlgButton( dlg, IDC_FIRST_KEYGEN, BST_CHECKED ); |
CheckDlgButton( dlg, IDC_FIRST_KEYGEN, BST_CHECKED ); |
47 |
SetDlgItemText (dlg, IDC_FIRST_KEYGEN, _("&Generate a GnuPG key pair")); |
SetDlgItemText (dlg, IDC_FIRST_KEYGEN, |
48 |
SetDlgItemText (dlg, IDC_FIRST_IMPORT, _("&Copy GnuPG keyrings from another location")); |
_("&Generate a GnuPG key pair")); |
49 |
SetDlgItemText (dlg, IDC_FIRST_SETUP, _("&Specify a new GnuPG home directory")); |
SetDlgItemText (dlg, IDC_FIRST_IMPORT, |
50 |
|
_("&Copy GnuPG keyrings from another location")); |
51 |
|
SetDlgItemText (dlg, IDCANCEL, _("&Cancel")); |
52 |
|
SetWindowText (dlg, _("WinPT First Start")); |
53 |
SetForegroundWindow (dlg); |
SetForegroundWindow (dlg); |
54 |
center_window (dlg, NULL); |
center_window (dlg, NULL); |
55 |
return TRUE; |
return TRUE; |
75 |
} |
} |
76 |
|
|
77 |
return FALSE; |
return FALSE; |
78 |
} /* first_run_dlg_proc */ |
} |