/[winpt]/trunk/Include/wptHotkey.h
ViewVC logotype

Annotation of /trunk/Include/wptHotkey.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 180 - (hide annotations)
Mon Mar 6 14:41:58 2006 UTC (18 years, 11 months ago) by twoaday
File MIME type: text/plain
File size: 1991 byte(s)
2006-02-27  Timo Schulz  <twoaday@freakmail.de>
 
        * wptSOCKS.cpp (socks_handshake): New.
        * wptMainProc.cpp (winpt_main_proc): A dbl-click forces
        the key manager in teh foreground if possible.
        * wptHotkey.cpp (hotkey_unregister): Unregister all hotkeys.
        * wptRegistry.cpp (get_reg_proxy_prefs,
        set_reg_proxy_prefs): Use directly the proxy context.
        Changed all callers.
        * wptProxySettingsDlg.cpp (init_proxy_protocols): New.
        (keyserver_proxy_dlg_proc): Use directly the proxy context.
        * wptKeyserver.cpp (kserver_connect): Better proxy support.
        (kserver_send_request, kserver_recvkey_request): Likewise.
        * wptKeyserverDlg.cpp (name_from_proto): New.
        (set_proxy): Adjusted for the new code.


1 werner 37 /* wptHotkey.h - Hotkey registration
2 twoaday 180 * Copyright (C) 2001-2006 Timo Schulz
3 werner 37 *
4     * This file is part of WinPT.
5     *
6     * WinPT is free software; you can redistribute it and/or
7     * modify it under the terms of the GNU General Public License
8     * as published by the Free Software Foundation; either version 2
9     * of the License, or (at your option) any later version.
10     *
11     * WinPT is distributed in the hope that it will be useful,
12     * but WITHOUT ANY WARRANTY; without even the implied warranty of
13     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14     * General Public License for more details.
15     *
16     * You should have received a copy of the GNU General Public License
17     * along with WinPT; if not, write to the Free Software Foundation,
18     * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19     */
20     #ifndef WPT_HOTKEY_H
21     #define WPT_HOTKEY_H
22    
23     /* Hotkey IDs. */
24     enum hotkey_id_t {
25     WPT_CLIP_ENCRYPT_ID = 0x3000,
26     WPT_CLIP_DECRYPT_VERIFY_ID = 0x3001,
27     WPT_CLIP_SIGN_ID = 0x3002,
28     WPT_CLIP_SIGN_ENCRYPT_ID = 0x3003,
29     WPT_CURRWND_ENCRYPT_ID = 0x4000,
30     WPT_CURRWND_DECRYPT_VERIFY_ID = 0x4001,
31     WPT_CURRWND_SIGN_ID = 0x4002,
32     WPT_CURRWND_SIGN_ENCRYPT_ID = 0x4003,
33     WPT_AGENT_FORGET_ID = 0x5000,
34     };
35    
36     /* Hotkey context. */
37     struct hotkey_s {
38 twoaday 180 const char *name; /* name in the registry. */
39 werner 37 int enabled; /* 1 = enabled. */
40     int id; /* valid ID (see above). */
41     int alt_ctrl; /* hotkey used with ALT+ */
42     int alt_shift; /* hotkey used with SHIFT+ */
43     int key; /* actual key code. */
44     };
45 twoaday 180 typedef struct hotkey_s *hotkey_t;
46 werner 37
47 twoaday 180 extern hotkey_s wpt_hotkeys[];
48 werner 37
49     const char * hotkeys_strerror (void);
50     int hotkeys_register (HWND wnd);
51     int hotkeys_unregister (HWND wnd);
52     int hotkey_register_single (HWND wnd, hotkey_t hk);
53     int hotkey_unregister_single (HWND wnd, hotkey_t hk);
54 twoaday 180 void hotkey_disable (hotkey_t hk);
55     void hotkey_enable (hotkey_t hk, const char * key);
56 werner 37
57     #endif /* WPT_HOTKEY_H */

Properties

Name Value
svn:eol-style native

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26