From be97173fa0526220cdbfe645695939ec2de66d47 Mon Sep 17 00:00:00 2001 From: lx-s Date: Mon, 18 Dec 2023 11:39:29 +0100 Subject: [PATCH] Changed dialog sizes for italian translation --- WinMute/WinMute.rc | 50 +++++++-------- WinMute/resource.h | 156 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 181 insertions(+), 25 deletions(-) create mode 100644 WinMute/resource.h diff --git a/WinMute/WinMute.rc b/WinMute/WinMute.rc index 27d138e..181a4ce 100644 --- a/WinMute/WinMute.rc +++ b/WinMute/WinMute.rc @@ -1,6 +1,6 @@ // Microsoft Visual C++ generated resource script. // -#include "resource_winmute.h" +#include "resource.h" #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// @@ -93,10 +93,10 @@ FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN LTEXT "During Quiet Hours WinMute automatically mutes your PC volumes and unmutes it afterwards.",IDC_QUIET_HOURS_DESCRIPTION,7,9,232,22 CONTROL "Enable Quiet Hours",IDC_ENABLEQUIETHOURS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,31,120,15 - LTEXT "Start time:",IDC_QUIET_HOURS_START_LABEL,23,50,43,13 - CONTROL "",IDC_QUIETHOURS_START,"SysDateTimePick32",DTS_RIGHTALIGN | DTS_UPDOWN | WS_TABSTOP | 0x8,73,47,65,18 - LTEXT "End time:",IDC_QUIET_HOURS_END_LABEL,24,73,32,16 - CONTROL "",IDC_QUIETHOURS_END,"SysDateTimePick32",DTS_RIGHTALIGN | DTS_UPDOWN | WS_TABSTOP | 0x8,72,71,67,19 + LTEXT "Start time:",IDC_QUIET_HOURS_START_LABEL,23,50,64,13 + CONTROL "",IDC_QUIETHOURS_START,"SysDateTimePick32",DTS_RIGHTALIGN | DTS_UPDOWN | WS_TABSTOP | 0x8,88,47,67,18 + LTEXT "End time:",IDC_QUIET_HOURS_END_LABEL,24,73,62,16 + CONTROL "",IDC_QUIETHOURS_END,"SysDateTimePick32",DTS_RIGHTALIGN | DTS_UPDOWN | WS_TABSTOP | 0x8,87,71,68,19 CONTROL "Force unmute",IDC_FORCEUNMUTE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,23,94,86,16 LTEXT "If force unmute is enabled, WinMute will unmute your workstation when quiet hours end and not take into account if your workstation was already muted before quiet hours started.",IDC_QUIET_HOURS_FORCE_UNMUTE_DESCRIPTION,33,111,204,37 CONTROL "Show quiet hours notifications",IDC_SHOWNOTIFICATIONS, @@ -151,19 +151,19 @@ BEGIN EDITTEXT IDC_MUTEDELAY,13,124,30,13,ES_RIGHT | ES_AUTOHSCROLL | ES_NUMBER END -IDD_SETTINGS_WIFI DIALOGEX 0, 0, 242, 204 +IDD_SETTINGS_WIFI DIALOGEX 0, 0, 242, 216 STYLE DS_SETFONT | DS_FIXEDSYS | DS_CONTROL | WS_CHILD FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN - LISTBOX IDC_WIFI_LIST,7,81,170,95,LBS_SORT | LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP - PUSHBUTTON "Add",IDC_WIFI_ADD,179,80,56,16 - PUSHBUTTON "Edit",IDC_WIFI_EDIT,179,99,56,16 - PUSHBUTTON "Remove",IDC_WIFI_REMOVE,179,118,56,16 - PUSHBUTTON "Remove all",IDC_WIFI_REMOVEALL,179,138,56,16 - LTEXT "Note: WLAN is not available on your device, so some options have been disabled.",IDC_STATIC_WLAN_NOT_AVAILABLE,7,179,228,18 + LISTBOX IDC_WIFI_LIST,7,99,170,86,LBS_SORT | LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP + PUSHBUTTON "Add",IDC_WIFI_ADD,179,97,56,16 + PUSHBUTTON "Edit",IDC_WIFI_EDIT,179,116,56,16 + PUSHBUTTON "Remove",IDC_WIFI_REMOVE,179,135,56,16 + PUSHBUTTON "Remove all",IDC_WIFI_REMOVEALL,179,155,56,16 + LTEXT "Note: WLAN is not available on your device, so some options have been disabled.",IDC_STATIC_WLAN_NOT_AVAILABLE,7,191,228,18 CONTROL "Enable WLAN based muting",IDC_ENABLE_WIFI_MUTE,"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,7,44,228,14 - CONTROL "Mute workstation if the WLAN network name is NOT in the list\n(default: mute if it is on the list)",IDC_IS_PERMITLIST, - "Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,20,59,215,18 + CONTROL "Mute workstation if the WLAN network name is NOT in the list\n(default: mute if it is on the list)\nLine3",IDC_IS_PERMITLIST, + "Button",BS_AUTOCHECKBOX | BS_LEFT | BS_TOP | BS_MULTILINE | WS_TABSTOP,20,59,215,31 LTEXT """WLAN Mute"" allows you to mute your workstation based on the name of the connected wireless network.",IDC_WIFI_INTRO,7,7,228,35 END @@ -178,21 +178,21 @@ BEGIN EDITTEXT IDC_WIFI_NAME,7,20,187,16,ES_AUTOHSCROLL END -IDD_SETTINGS_BLUETOOTH DIALOGEX 0, 0, 244, 201 +IDD_SETTINGS_BLUETOOTH DIALOGEX 0, 0, 244, 222 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD EXSTYLE WS_EX_CONTROLPARENT FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN - LISTBOX IDC_BLUETOOTH_LIST,7,93,170,79,LBS_SORT | LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP - PUSHBUTTON "Add",IDC_BLUETOOTH_ADD,179,92,56,16 - PUSHBUTTON "Edit",IDC_BLUETOOTH_EDIT,179,112,56,16 - PUSHBUTTON "Remove",IDC_BLUETOOTH_REMOVE,179,130,56,16 - PUSHBUTTON "Remove all",IDC_BLUETOOTH_REMOVEALL,179,150,56,16 - LTEXT "Note: Bluetooth is not available on your device, so some options have been disabled.",IDC_STATIC_BLUETOOTH_NOT_AVAILABLE,7,175,228,18 + LISTBOX IDC_BLUETOOTH_LIST,7,121,170,73,LBS_SORT | LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP + PUSHBUTTON "Add",IDC_BLUETOOTH_ADD,179,120,56,16 + PUSHBUTTON "Edit",IDC_BLUETOOTH_EDIT,179,140,56,16 + PUSHBUTTON "Remove",IDC_BLUETOOTH_REMOVE,179,158,56,16 + PUSHBUTTON "Remove all",IDC_BLUETOOTH_REMOVEALL,179,178,56,16 + LTEXT "Note: Bluetooth is not available on your device, so some options have been disabled.",IDC_STATIC_BLUETOOTH_NOT_AVAILABLE,7,197,228,18 CONTROL "Enable Bluetooth based muting",IDC_ENABLE_BLUETOOTH_MUTE, - "Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,7,60,228,14 + "Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,7,67,228,14 CONTROL "Only mute when one of the following devices connect to or disconnect from your PC.",IDC_ENABLE_BLUETOOTH_MUTE_DEVICE_LIST, - "Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,20,74,215,18 + "Button",BS_AUTOCHECKBOX | BS_TOP | BS_MULTILINE | WS_TABSTOP,20,84,215,27 LTEXT "Description\nDescription\nDescription\nDescription\nDescription",IDC_BLUETOOTH_DESCRIPTION_LABEL,7,7,230,53 END @@ -308,7 +308,7 @@ BEGIN LEFTMARGIN, 7 RIGHTMARGIN, 235 TOPMARGIN, 7 - BOTTOMMARGIN, 197 + BOTTOMMARGIN, 209 END IDD_SETTINGS_WIFI_ADD, DIALOG @@ -324,7 +324,7 @@ BEGIN LEFTMARGIN, 7 RIGHTMARGIN, 237 TOPMARGIN, 7 - BOTTOMMARGIN, 194 + BOTTOMMARGIN, 215 END IDD_SETTINGS_BLUETOOTH_ADD, DIALOG diff --git a/WinMute/resource.h b/WinMute/resource.h new file mode 100644 index 0000000..419849b --- /dev/null +++ b/WinMute/resource.h @@ -0,0 +1,156 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by WinMute.rc +// +#define IDI_APP 5 +#define IDD_ABOUT 9 +#define IDI_TRAY_BRIGHT 104 +#define IDI_TRAY_DARK 105 +#define IDR_TRAYMENU 106 +#define IDD_SETTINGS 109 +#define IDD_SETTINGS_GENERAL 114 +#define IDD_SETTINGS_QUIETHOURS 116 +#define IDD_ABOUT_LICENSE 118 +#define IDD_ABOUT_WINMUTE 120 +#define IDI_ICON1 122 +#define IDI_SETTINGS 122 +#define IDD_SETTINGS_MUTE 123 +#define IDD_SETTINGS_WIFI 127 +#define IDD_SETTINGS_WIFI_ADD 129 +#define IDD_SETTINGS_BLUETOOTH 131 +#define IDD_DIALOG1 133 +#define IDD_SETTINGS_BLUETOOTH_ADD 133 +#define IDD_MANAGE_ENDPOINTS 135 +#define IDD_DIALOG2 137 +#define IDD_MANAGE_ENDPOINTS_ADD 137 +#define IDC_LINK_HOMEPAGE 1001 +#define IDC_LINK_SUPPORT 1002 +#define IDC_LINK_PROJECT 1002 +#define IDC_ENABLEQUIETHOURS 1003 +#define IDC_LINK_TICKETS 1003 +#define IDC_QUIETHOURS_START 1004 +#define IDC_QUIETHOURS_END 1005 +#define IDC_FORCEUNMUTE 1006 +#define IDC_SHOWNOTIFICATIONS 1007 +#define IDC_TREE1 1008 +#define IDC_MANAGE_AUDIO_ENDPOINTS_INDIVIDUALLY 1008 +#define IDC_TAB1 1010 +#define IDC_SETTINGS_TAB 1010 +#define IDC_CHECK1 1011 +#define IDC_RUNONSTARTUP 1011 +#define IDC_MUTE_WHEN_WS_LOCKED 1011 +#define IDC_ENABLE_WIFI_MUTE 1011 +#define IDC_ENABLELOGGING 1012 +#define IDC_CHECK3 1013 +#define IDC_OPENLOG 1014 +#define IDC_LICENSETEXT 1015 +#define IDC_ABOUT_TAB 1016 +#define IDC_ABOUTTEXT 1019 +#define IDC_TITLE 1020 +#define IDC_ABOUT_TITLE 1020 +#define IDC_MUTE_WHEN_SCREENSAVER_STARTS 1021 +#define IDC_MUTE_WHEN_SCREEN_OFF 1022 +#define IDC_MUTE_WHEN_RDP_SESSION 1023 +#define IDC_WIFI_LIST 1023 +#define IDC_RESTOREVOLUME 1024 +#define IDC_WIFI_ADD 1024 +#define IDC_MUTE_WHEN_SHUTDOWN 1025 +#define IDC_WIFI_REMOVE 1025 +#define IDC_WIFI_NAME 1025 +#define IDC_MUTE_WHEN_LOGOUT 1026 +#define IDC_WIFI_EDIT 1026 +#define IDC_MUTE_WHEN_SLEEP 1027 +#define IDC_WIFI_REMOVE2 1027 +#define IDC_WIFI_REMOVEALL 1027 +#define IDC_CHECK2 1028 +#define IDC_IS_PERMITLIST 1028 +#define IDC_STATIC_WLAN_NOT_AVAILABLE 1029 +#define IDC_STATIC_BLUETOOTH_NOT_AVAILABLE 1030 +#define IDC_BLUETOOTH_ADD 1031 +#define IDC_BLUETOOTH_EDIT 1032 +#define IDC_BLUETOOTH_REMOVE 1033 +#define IDC_BLUETOOTH_REMOVEALL 1034 +#define IDC_BLUETOOTH_LIST 1035 +#define IDC_ENABLE_BLUETOOTH_MUTE 1036 +#define IDC_ENABLE_BLUETOOTH_MUTE_DEVICE_LIST 1037 +#define IDC_BT_DEVICE_NAME 1038 +#define IDC_LOGFILEPATH 1040 +#define IDC_BUTTON1 1041 +#define IDC_MANAGE_ENDPOINTS 1041 +#define IDC_ENDPOINT_LIST_IS_ALLOWLIST 1042 +#define IDC_ENDPOINT_LIST_IS_BLOCKLIST 1043 +#define IDC_ENDPOINT_LIST 1044 +#define IDC_ENDPOINT_ADD 1045 +#define IDC_ENDPOINT_EDIT 1046 +#define IDC_ENDPOINT_REMOVE 1047 +#define IDC_ENDPOINT_REMOVEALL 1048 +#define IDC_ENDPOINT_NAME 1049 +#define IDC_MUTEDELAY 1050 +#define IDC_LANGUAGE 1051 +#define IDC_LABEL_BT_DEVICE_NAME 1052 +#define IDC_BLUETOOTH_DESCRIPTION_LABEL 1053 +#define IDC_SELECT_LANGUAGE_LABEL 1054 +#define IDC_GROUP_GENERAL 1055 +#define IDC_GROUP_MUTE_WITH_RESTORE 1056 +#define IDC_GROUP_MUTE_WITHOUT_RESTORE 1057 +#define IDC_DELAY_MUTING_LABEL 1058 +#define IDC_QUIET_HOURS_DESCRIPTION 1059 +#define IDC_QUIET_HOURS_START_LABEL 1060 +#define IDC_QUIET_HOURS_END_LABEL 1061 +#define IDC_QUIET_HOURS_FORCE_UNMUTE_DESCRIPTION 1062 +#define IDC_WIFI_INTRO 1063 +#define IDC_WIFI_NAME_LABEL 1064 +#define IDC_GROUP_LIST_BEHAVIOUR 1066 +#define IDC_GROUP_ENDPOINTS 1067 +#define IDC_ENDPOINT_NAME_LABEL 1068 +#define ID_TRAYMENU_INFO 40001 +#define ID_TRAYMENU_ 40002 +#define ID_TRAYMENU_MUTEON 40003 +#define ID_TRAYMENU_ID 40004 +#define ID_TRAYMENU_MUTEONSCREENSAVER 40005 +#define ID_TRAYMENU_40006 40006 +#define ID_TRAYMENU_RESTOREAUDIO 40007 +#define ID_TRAYMENU_40008 40008 +#define ID_TRAYMENU_CONFIGUREQUIETHOURS 40009 +#define ID_TRAYMENU_40010 40010 +#define ID_TRAYMENU_MUTEON40011 40011 +#define ID_TRAYMENU_AFTERWARDS 40012 +#define ID_TRAYMENU_40013 40013 +#define ID_TRAYMENU_MUTEONSHUTDOWN 40014 +#define ID_TRAYMENU_40015 40015 +#define ID_TRAYMENU_MUTEONSUSPEND 40016 +#define ID_TRAYMENU_40017 40017 +#define ID_TRAYMENU_MUTEONLOGOUT 40018 +#define ID_TRAYMENU_40019 40019 +#define ID_TRAYMENU_MUTENOW 40020 +#define ID_TRAYMENU_40021 40021 +#define ID_TRAYMENU_EXIT 40022 +#define ID_TRAYMENU_MUTE 40023 +#define ID_TRAYMENU_MUTEONLOCK 40024 +#define ID_TRAYMENU_SETTINGS 40025 +#define ID_TRAYMENU_SCREENTURNSOFF 40026 +#define ID_TRAYMENU_SCREENSUSPEND 40027 +#define ID_TRAYMENU_40028 40028 +#define ID_TRAYMENU_40029 40029 +#define ID_TRAYMENU_BLUETOOTH 40030 +#define ID_TRAYMENU_MUTEONBLUETOOTH 40031 +#define ID_TRAYMENU_MUTEONSCREENSUSPEND 40032 +#define ID_TRAYMENU_SPECIAL 40033 +#define ID_TRAYMENU_40034 40034 +#define ID_TRAYMENU_WIFIMUTING 40035 +#define ID_TRAYMENU_MUTEONWIFI 40036 +#define ID_TRAYMENU_LABEL_MUTEWHEN 40037 +#define ID_TRAYMENU_LABEL_MUTEON 40038 +#define ID_TRAYMENU_MUTEONSCREE 40039 +#define ID_TRAYMENU_LABEL_MUTEON_NO_RESTORE 40040 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 141 +#define _APS_NEXT_COMMAND_VALUE 40041 +#define _APS_NEXT_CONTROL_VALUE 1069 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif -- 2.43.0