12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
* GNU General Public License for more details. |
* GNU General Public License for more details. |
|
* |
|
|
* You should have received a copy of the GNU General Public License |
|
|
* along with WinPT; if not, write to the Free Software Foundation, |
|
|
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
15 |
*/ |
*/ |
16 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
17 |
#include <config.h> |
#include <config.h> |
154 |
save.lStructSize = sizeof (OPENFILENAME); |
save.lStructSize = sizeof (OPENFILENAME); |
155 |
save.hInstance = glob_hinst; |
save.hInstance = glob_hinst; |
156 |
save.lpstrTitle = _("File Save"); |
save.lpstrTitle = _("File Save"); |
157 |
save.lpstrFile = "All Files (*.*)\0*.*\0\0"; |
save.lpstrFile = (char*)"All Files (*.*)\0*.*\0\0"; |
158 |
save.hwndOwner = dlg; |
save.hwndOwner = dlg; |
159 |
save.lpstrFile = file; |
save.lpstrFile = file; |
160 |
save.nMaxFile = DIM (file) - 1; |
save.nMaxFile = DIM (file) - 1; |
205 |
free_if_alloc (foot); |
free_if_alloc (foot); |
206 |
|
|
207 |
menu = LoadMenu (glob_hinst, (LPCTSTR)IDR_WINPT_CLIPEDIT); |
menu = LoadMenu (glob_hinst, (LPCTSTR)IDR_WINPT_CLIPEDIT); |
208 |
set_menu_text (menu, ID_CLIPEDIT_SEND, _("&Copy")); |
|
209 |
|
set_menu_text_bypos (menu, 0, _("&File")); |
210 |
|
set_menu_text_bypos (menu, 1, _("&Edit")); |
211 |
|
|
212 |
|
set_menu_text (menu, ID_CLIPEDIT_COPY, _("&Copy")); |
213 |
set_menu_text (menu, ID_CLIPEDIT_CLEAR, _("Clea&r")); |
set_menu_text (menu, ID_CLIPEDIT_CLEAR, _("Clea&r")); |
214 |
set_menu_text (menu, ID_CLIPEDIT_QUOTE, _("&Quote")); |
set_menu_text (menu, ID_CLIPEDIT_QUOTE, _("&Quote")); |
215 |
set_menu_text (menu, ID_CLIPEDIT_OPEN, _("&Open...")); |
set_menu_text (menu, ID_CLIPEDIT_OPEN, _("&Open...")); |
217 |
set_menu_text (menu, ID_CLIPEDIT_PASTE, _("&Paste")); |
set_menu_text (menu, ID_CLIPEDIT_PASTE, _("&Paste")); |
218 |
set_menu_text (menu, ID_CLIPEDIT_ENC, _("&Encrypt")); |
set_menu_text (menu, ID_CLIPEDIT_ENC, _("&Encrypt")); |
219 |
set_menu_text (menu, ID_CLIPEDIT_DEC, _("&Decrypt")); |
set_menu_text (menu, ID_CLIPEDIT_DEC, _("&Decrypt")); |
220 |
|
set_menu_text (menu, ID_CLIPEDIT_QUIT, _("&Exit")); |
221 |
SetMenu (dlg, menu); |
SetMenu (dlg, menu); |
222 |
SetWindowText (dlg, _("Clipboard Editor")); |
SetWindowText (dlg, _("Clipboard Editor")); |
223 |
SetDlgItemText (dlg, IDC_CLIPEDIT_SEND, _("&Copy")); |
SetDlgItemText (dlg, IDC_CLIPEDIT_SEND, _("&Copy")); |
241 |
if (gpg_data_new_from_clipboard (&txt, 0)) |
if (gpg_data_new_from_clipboard (&txt, 0)) |
242 |
return TRUE; |
return TRUE; |
243 |
gpg_data_mail_quote (&txt); |
gpg_data_mail_quote (&txt); |
244 |
gpg_data_release_and_set_clipboard (txt, 0); |
gpg_data_release_to_clipboard (txt, 0); |
245 |
load_clipboard (dlg, head, foot); |
load_clipboard (dlg, head, foot); |
246 |
return TRUE; |
return TRUE; |
247 |
|
|