Made extensive changes to the launcher to provide more control over setting up auto-start and it now saves configuration to the user's documents directory if auto-starting at login and saves to the system directory if auto-starting at boot. Replaced MapVirtualKey() with table lookup to work around that function's lack of support for extended keyboard scan codes. Added first cut at support for AltGr.
269 lines
10 KiB
Text
269 lines
10 KiB
Text
//Microsoft Developer Studio generated resource script.
|
|
//
|
|
#include "resource.h"
|
|
|
|
#define APSTUDIO_READONLY_SYMBOLS
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Generated from the TEXTINCLUDE 2 resource.
|
|
//
|
|
#include "afxres.h"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
#undef APSTUDIO_READONLY_SYMBOLS
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// English (U.S.) resources
|
|
|
|
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
|
#ifdef _WIN32
|
|
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|
#pragma code_page(1252)
|
|
#endif //_WIN32
|
|
|
|
#ifdef APSTUDIO_INVOKED
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// TEXTINCLUDE
|
|
//
|
|
|
|
1 TEXTINCLUDE DISCARDABLE
|
|
BEGIN
|
|
"resource.h\0"
|
|
END
|
|
|
|
2 TEXTINCLUDE DISCARDABLE
|
|
BEGIN
|
|
"#include ""afxres.h""\r\n"
|
|
"\0"
|
|
END
|
|
|
|
3 TEXTINCLUDE DISCARDABLE
|
|
BEGIN
|
|
"\r\n"
|
|
"\0"
|
|
END
|
|
|
|
#endif // APSTUDIO_INVOKED
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Dialog
|
|
//
|
|
|
|
IDD_MAIN DIALOG DISCARDABLE 32768, 0, 300, 262
|
|
STYLE DS_MODALFRAME | WS_MINIMIZEBOX | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Synergy"
|
|
CLASS "GoSynergy"
|
|
FONT 8, "MS Sans Serif"
|
|
BEGIN
|
|
LTEXT "Choose to start either the Client or Server and provide the requested information. Then click Test to check your settings or Start to save your settings and start Synergy.",
|
|
IDC_STATIC,7,7,286,19
|
|
GROUPBOX "",IDC_STATIC,7,29,286,31
|
|
GROUPBOX "",IDC_STATIC,7,67,286,103
|
|
GROUPBOX "Advanced Options",IDC_STATIC,7,177,286,56
|
|
CONTROL "&Client",IDC_MAIN_CLIENT_RADIO,"Button",
|
|
BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP,11,29,33,10
|
|
CONTROL "Server",IDC_MAIN_SERVER_RADIO,"Button",
|
|
BS_AUTORADIOBUTTON,11,67,37,10
|
|
LTEXT "Server &Host Name:",IDC_MAIN_CLIENT_SERVER_NAME_LABEL,
|
|
12,41,61,8
|
|
EDITTEXT IDC_MAIN_CLIENT_SERVER_NAME_EDIT,79,39,106,12,
|
|
ES_AUTOHSCROLL
|
|
LTEXT "&Screens:",IDC_MAIN_SERVER_SCREENS_LABEL,12,79,29,8
|
|
LISTBOX IDC_MAIN_SERVER_SCREENS_LIST,12,91,106,36,
|
|
LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
|
|
PUSHBUTTON "&Add",IDC_MAIN_SERVER_ADD_BUTTON,12,132,50,14
|
|
PUSHBUTTON "&Edit",IDC_MAIN_SERVER_EDIT_BUTTON,68,132,50,14
|
|
PUSHBUTTON "&Remove",IDC_MAIN_SERVER_REMOVE_BUTTON,12,150,50,14
|
|
LTEXT "&Layout:",IDC_MAIN_SERVER_LAYOUT_LABEL,138,79,24,8
|
|
LTEXT "Left:",IDC_MAIN_SERVER_LEFT_LABEL,144,93,15,8
|
|
COMBOBOX IDC_MAIN_SERVER_LEFT_COMBO,175,91,118,46,
|
|
CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
|
|
LTEXT "Right:",IDC_MAIN_SERVER_RIGHT_LABEL,144,109,20,8
|
|
COMBOBOX IDC_MAIN_SERVER_RIGHT_COMBO,175,107,118,46,
|
|
CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
|
|
LTEXT "Above:",IDC_MAIN_SERVER_TOP_LABEL,144,125,24,8
|
|
COMBOBOX IDC_MAIN_SERVER_TOP_COMBO,175,123,118,46,
|
|
CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
|
|
LTEXT "Below:",IDC_MAIN_SERVER_BOTTOM_LABEL,144,141,22,8
|
|
COMBOBOX IDC_MAIN_SERVER_BOTTOM_COMBO,175,139,118,46,
|
|
CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
|
|
LTEXT "Screen &Name:",IDC_STATIC,12,192,46,8
|
|
EDITTEXT IDC_MAIN_ADVANCED_NAME_EDIT,64,190,106,12,ES_AUTOHSCROLL
|
|
LTEXT "&Port:",IDC_STATIC,194,192,16,8
|
|
EDITTEXT IDC_MAIN_ADVANCED_PORT_EDIT,216,190,40,12,ES_AUTOHSCROLL |
|
|
ES_NUMBER
|
|
LTEXT "Automatic Startup:",IDC_STATIC,12,212,59,8
|
|
PUSHBUTTON "Con&figure...",IDC_MAIN_AUTOSTART,78,210,50,14
|
|
PUSHBUTTON "Sa&ve",IDC_MAIN_SAVE,75,241,50,14
|
|
DEFPUSHBUTTON "&Test",IDC_MAIN_TEST,131,241,50,14
|
|
PUSHBUTTON "Start",IDOK,187,241,50,14
|
|
PUSHBUTTON "Quit",IDCANCEL,243,241,50,14
|
|
END
|
|
|
|
IDD_ADD DIALOG DISCARDABLE 0, 0, 172, 95
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION
|
|
CAPTION "Add Screen"
|
|
FONT 8, "MS Sans Serif"
|
|
BEGIN
|
|
LTEXT "Screen Name:",IDC_STATIC,7,9,46,8
|
|
EDITTEXT IDC_ADD_SCREEN_NAME_EDIT,59,7,106,12,ES_AUTOHSCROLL
|
|
LTEXT "Aliases:",IDC_STATIC,7,25,25,8
|
|
EDITTEXT IDC_ADD_ALIASES_EDIT,59,26,106,40,ES_MULTILINE |
|
|
ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN
|
|
DEFPUSHBUTTON "OK",IDOK,59,74,50,14
|
|
PUSHBUTTON "Cancel",IDCANCEL,115,74,50,14
|
|
END
|
|
|
|
IDD_WAIT DIALOG DISCARDABLE 0, 0, 186, 54
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION
|
|
CAPTION "Running Test..."
|
|
FONT 8, "MS Sans Serif"
|
|
BEGIN
|
|
DEFPUSHBUTTON "Stop",IDOK,129,33,50,14
|
|
LTEXT "Running synergy. Press Stop to end the test.",
|
|
IDC_STATIC,7,7,172,15
|
|
END
|
|
|
|
IDD_AUTOSTART DIALOG DISCARDABLE 0, 0, 195, 189
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Auto Start"
|
|
FONT 8, "MS Sans Serif"
|
|
BEGIN
|
|
DEFPUSHBUTTON "Close",IDCANCEL,138,168,50,14
|
|
LTEXT "Synergy can be configured to start automatically when you log in. If you have sufficient access rights, you can instead configure synergy to start automatically when your computer starts.",
|
|
IDC_STATIC,7,7,181,33
|
|
LTEXT "You have sufficient access rights to install and uninstall Auto Start for all users or for just yourself.",
|
|
IDC_AUTOSTART_PERMISSION_MSG,7,69,181,17
|
|
LTEXT "Synergy is configured to start automatically when the system starts.",
|
|
IDC_AUTOSTART_INSTALLED_MSG,7,93,181,17
|
|
GROUPBOX "When &You Log In",IDC_STATIC,7,119,84,40
|
|
PUSHBUTTON "Install",IDC_AUTOSTART_INSTALL_USER,23,133,50,14
|
|
GROUPBOX "When &Computer Starts",IDC_STATIC,104,119,84,40
|
|
PUSHBUTTON "Install",IDC_AUTOSTART_INSTALL_SYSTEM,119,134,50,14
|
|
LTEXT "Synergy can be configured to start automatically when the computer starts or when you log in but not both.",
|
|
IDC_STATIC,7,43,181,17
|
|
END
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// DESIGNINFO
|
|
//
|
|
|
|
#ifdef APSTUDIO_INVOKED
|
|
GUIDELINES DESIGNINFO DISCARDABLE
|
|
BEGIN
|
|
IDD_MAIN, DIALOG
|
|
BEGIN
|
|
LEFTMARGIN, 7
|
|
RIGHTMARGIN, 293
|
|
TOPMARGIN, 7
|
|
BOTTOMMARGIN, 255
|
|
END
|
|
|
|
IDD_ADD, DIALOG
|
|
BEGIN
|
|
LEFTMARGIN, 7
|
|
RIGHTMARGIN, 165
|
|
TOPMARGIN, 7
|
|
BOTTOMMARGIN, 88
|
|
END
|
|
|
|
IDD_WAIT, DIALOG
|
|
BEGIN
|
|
LEFTMARGIN, 7
|
|
RIGHTMARGIN, 179
|
|
TOPMARGIN, 7
|
|
BOTTOMMARGIN, 47
|
|
END
|
|
|
|
IDD_AUTOSTART, DIALOG
|
|
BEGIN
|
|
LEFTMARGIN, 7
|
|
RIGHTMARGIN, 188
|
|
TOPMARGIN, 7
|
|
BOTTOMMARGIN, 182
|
|
END
|
|
END
|
|
#endif // APSTUDIO_INVOKED
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Icon
|
|
//
|
|
|
|
// Icon with lowest ID value placed first to ensure application icon
|
|
// remains consistent on all systems.
|
|
IDI_SYNERGY ICON DISCARDABLE "synergy.ico"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// String Table
|
|
//
|
|
|
|
STRINGTABLE DISCARDABLE
|
|
BEGIN
|
|
IDS_ERROR "Error"
|
|
IDS_INVALID_SCREEN_NAME "Screen name `%{1}' is invalid."
|
|
IDS_DUPLICATE_SCREEN_NAME "The screen name `%{1}' is already being used."
|
|
IDS_SCREEN_NAME_IS_ALIAS "A name may not be an alias of itself."
|
|
IDS_VERIFY "Confirm"
|
|
IDS_UNSAVED_DATA_REALLY_QUIT "You have unsaved changes. Really quit?"
|
|
IDS_UNKNOWN_SCREEN_NAME "The screen name `%{1}' is not in the layout."
|
|
IDS_INVALID_PORT "The port `%{1}' is invalid. It must be between 1 and 65535 inclusive. %{2} is the standard port."
|
|
IDS_SAVE_FAILED "Failed to save configuration: %{1}"
|
|
IDS_STARTUP_FAILED "Failed to start synergy: %{1}"
|
|
IDS_STARTED_TITLE "Started"
|
|
IDS_STARTED "Synergy was successfully started. Use the task manager to terminate it."
|
|
IDS_UNINSTALL_TITLE "Removed Auto-Start"
|
|
END
|
|
|
|
STRINGTABLE DISCARDABLE
|
|
BEGIN
|
|
IDS_AUTOSTART_PERMISSION_SYSTEM
|
|
"You have sufficient access rights to install and uninstall Auto Start for all users or for just yourself."
|
|
IDS_AUTOSTART_PERMISSION_USER
|
|
"You have sufficient access rights to install and uninstall Auto Start for just yourself."
|
|
IDS_AUTOSTART_PERMISSION_NONE
|
|
"You do not have sufficient access rights to install or uninstall Auto Start."
|
|
IDS_AUTOSTART_INSTALLED_SYSTEM
|
|
"Synergy is configured to start automatically when the system starts."
|
|
IDS_AUTOSTART_INSTALLED_USER
|
|
"Synergy is configured to start automatically when you log in."
|
|
IDS_AUTOSTART_INSTALLED_NONE
|
|
"Synergy is not configured to start automatically."
|
|
IDS_INSTALL_LABEL "Install"
|
|
IDS_UNINSTALL_LABEL "Uninstall"
|
|
IDS_INSTALL_GENERIC_ERROR "Install failed for an unknown reason."
|
|
IDS_UNINSTALL_GENERIC_ERROR "Uninstall failed for an unknown reason."
|
|
IDS_INSTALL_TITLE "Installed Auto-Start"
|
|
IDS_INSTALLED_SYSTEM "Installed auto-start. Synergy will now automatically start each time you start your computer."
|
|
IDS_INSTALLED_USER "Installed auto-start. Synergy will now automatically start each time you log in."
|
|
END
|
|
|
|
STRINGTABLE DISCARDABLE
|
|
BEGIN
|
|
IDS_UNINSTALLED_SYSTEM "Removed auto-start. Synergy will not automatically start each time you start or reboot your computer."
|
|
IDS_UNINSTALLED_USER "Removed auto-start. Synergy will not automatically start each time you log in."
|
|
IDS_INVALID_SERVER_NAME "Server name `%{1}' is invalid."
|
|
END
|
|
|
|
#endif // English (U.S.) resources
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef APSTUDIO_INVOKED
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Generated from the TEXTINCLUDE 3 resource.
|
|
//
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
#endif // not APSTUDIO_INVOKED
|
|
|