/[winpt]/trunk/Src/wptClipEditDlg.cpp
ViewVC logotype

Diff of /trunk/Src/wptClipEditDlg.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 327 by twoaday, Sun Nov 5 08:57:45 2006 UTC revision 328 by twoaday, Fri Sep 25 16:07:38 2009 UTC
# Line 12  Line 12 
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>
# Line 158  save_clipboard_to_file (HWND dlg) Line 154  save_clipboard_to_file (HWND dlg)
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;
# Line 209  clip_edit_dlg_proc (HWND dlg, UINT msg, Line 205  clip_edit_dlg_proc (HWND dlg, UINT msg,
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..."));  
# Line 217  clip_edit_dlg_proc (HWND dlg, UINT msg, Line 217  clip_edit_dlg_proc (HWND dlg, UINT msg,
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"));
# Line 240  clip_edit_dlg_proc (HWND dlg, UINT msg, Line 241  clip_edit_dlg_proc (HWND dlg, UINT msg,
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    

Legend:
Removed from v.327  
changed lines
  Added in v.328

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26