]> repos.lx-s.de Git - winmute.git/commitdiff
Added bluetooth settings dialogue
authorlx-s <lx-s@users.noreply.github.com>
Mon, 1 Aug 2022 11:06:21 +0000 (13:06 +0200)
committerlx-s <lx-s@users.noreply.github.com>
Mon, 1 Aug 2022 11:06:21 +0000 (13:06 +0200)
WinMute/WinMute.rc
WinMute/resource.h

index 589e635d86f4e65f6a913573fb7bac23e30d8983..35f312361d6071005f86c4e46dc4d3b8a39b28bd 100644 (file)
@@ -172,6 +172,24 @@ BEGIN
     EDITTEXT        IDC_WIFI_NAME,7,20,187,16,ES_AUTOHSCROLL
 END
 
+IDD_SETTINGS_BLUETOOTH DIALOGEX 0, 0, 244, 201
+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,79,170,90,LBS_SORT | LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
+    PUSHBUTTON      "Add",IDC_BLUETOOTH_ADD,179,78,56,16
+    PUSHBUTTON      "Edit",IDC_BLUETOOTH_EDIT,179,98,56,16
+    PUSHBUTTON      "Remove",IDC_BLUETOOTH_REMOVE,179,116,56,16
+    PUSHBUTTON      "Remove all",IDC_BLUETOOTH_REMOVEALL,179,136,56,16
+    LTEXT           "Note: Bluetooth is not available on your device, so some options have been disabled.",IDC_STATIC_BLUETOOTH_NOT_AVAILABLE,7,172,228,18
+    CONTROL         "Enable Bluetooth based muting",IDC_ENABLE_WIFI_MUTE,
+                    "Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,7,37,228,14
+    CONTROL         "Only mute when one of the following devices connect to or disconnect from your PC.",IDC_IS_PERMITLIST,
+                    "Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,20,52,215,18
+    LTEXT           """Bluetooth Muting"" enables muting based on the presence of a bluetooth audio-class device.\nWinMute mutes your workstation if an audio-class bluetooth device is disconnected from your PC.",IDC_STATIC,7,0,228,31
+END
+
 
 /////////////////////////////////////////////////////////////////////////////
 //
@@ -252,6 +270,14 @@ BEGIN
         TOPMARGIN, 7
         BOTTOMMARGIN, 55
     END
+
+    IDD_SETTINGS_BLUETOOTH, DIALOG
+    BEGIN
+        LEFTMARGIN, 7
+        RIGHTMARGIN, 237
+        TOPMARGIN, 7
+        BOTTOMMARGIN, 194
+    END
 END
 #endif    // APSTUDIO_INVOKED
 
@@ -307,6 +333,11 @@ BEGIN
     0
 END
 
+IDD_SETTINGS_BLUETOOTH AFX_DIALOG_LAYOUT
+BEGIN
+    0
+END
+
 
 /////////////////////////////////////////////////////////////////////////////
 //
index 620db5c88650eb3d12bc36c7413cd5c46c5719b1..39950e0783ca9f004c5a2ee2b186faedb3702ff1 100644 (file)
@@ -17,6 +17,7 @@
 #define IDD_SETTINGS_MUTE               123
 #define IDD_SETTINGS_WIFI               127
 #define IDD_SETTINGS_WIFI_ADD           129
+#define IDD_SETTINGS_BLUETOOTH          131
 #define IDC_LINK_HOMEPAGE               1001
 #define IDC_LINK_SUPPORT                1002
 #define IDC_LINK_PROJECT                1002
 #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 ID_TRAYMENU_INFO                40001
 #define ID_TRAYMENU_                    40002
 #define ID_TRAYMENU_MUTEON              40003
 // 
 #ifdef APSTUDIO_INVOKED
 #ifndef APSTUDIO_READONLY_SYMBOLS
-#define _APS_NEXT_RESOURCE_VALUE        131
+#define _APS_NEXT_RESOURCE_VALUE        133
 #define _APS_NEXT_COMMAND_VALUE         40033
-#define _APS_NEXT_CONTROL_VALUE         1030
+#define _APS_NEXT_CONTROL_VALUE         1036
 #define _APS_NEXT_SYMED_VALUE           101
 #endif
 #endif