22 |
#endif |
#endif |
23 |
|
|
24 |
#include <windows.h> |
#include <windows.h> |
|
#include <windows.h> |
|
25 |
|
|
26 |
#include "../resource.h" |
#include "resource.h" |
27 |
#include "wptTypes.h" |
#include "wptTypes.h" |
28 |
#include "wptGPG.h" |
#include "wptGPG.h" |
29 |
#include "wptCommonCtl.h" |
#include "wptCommonCtl.h" |
75 |
ctx = (text_input_s *)lparam; |
ctx = (text_input_s *)lparam; |
76 |
if (ctx == NULL) |
if (ctx == NULL) |
77 |
dlg_fatal_error (dlg, "Could not get dialog param."); |
dlg_fatal_error (dlg, "Could not get dialog param."); |
|
#ifndef LANG_DE |
|
78 |
SetWindowText (dlg, _("Text Input")); |
SetWindowText (dlg, _("Text Input")); |
|
#endif |
|
79 |
switch (ctx->type) { |
switch (ctx->type) { |
80 |
case 0: |
case 0: |
81 |
SetDlgItemText (dlg, IDC_TEXT_INFO, _("Enter the text that was signed")); |
SetDlgItemText (dlg, IDC_TEXT_INFO, _("Enter the text that was signed")); |
91 |
case IDC_TEXT_FILE: |
case IDC_TEXT_FILE: |
92 |
const char *file; |
const char *file; |
93 |
|
|
94 |
file = get_filename_dlg( dlg, FILE_OPEN, _("Text Input from File"), NULL, NULL ); |
file = get_fileopen_dlg( dlg, _("Text Input from File"), NULL, NULL ); |
95 |
if( file ) |
if( file ) |
96 |
load_file_contents( dlg, file ); |
load_file_contents( dlg, file ); |
97 |
break; |
break; |