[CMIDriver]
[reactos.git] / reactos / drivers / wdm / audio / drivers / CMIDriver / cmicontrol / window.rc
1 /*
2 Copyright (c) 2006-2008 dogbert <dogber1@gmail.com>
3 All rights reserved.
4
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions
7 are met:
8 1. Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10 2. Redistributions in binary form must reproduce the above copyright
11 notice, this list of conditions and the following disclaimer in the
12 documentation and/or other materials provided with the distribution.
13 3. The name of the author may not be used to endorse or promote products
14 derived from this software without specific prior written permission.
15
16 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28 #include <windows.h>
29 #include <commctrl.h>
30 #include "resource.h"
31
32 #include <ntverp.h>
33
34 #define VER_FILETYPE VFT_DLL
35 #define VER_FILESUBTYPE VFT2_UNKNOWN
36 #define VER_FILEDESCRIPTION_STR "Audio Control Panel (CMI 8738/8768)"
37 #define VER_INTERNALNAME_STR "cmicontrol.exe"
38 #define VER_ORIGINALFILENAME_STR "cmicontrol.exe"
39 #ifdef VER_COMPANYNAME_STR
40 #undef VER_COMPANYNAME_STR
41 #endif
42 #define VER_COMPANYNAME_STR "Dogbert"
43 #ifdef VER_PRODUCTNAME_STR
44 #undef VER_PRODUCTNAME_STR
45 #endif
46 #define VER_PRODUCTNAME_STR ""
47 #define VER_LEGALCOPYRIGHT_YEARS ""
48 #define VER_LEGALCOPYRIGHT_STR "BSD-style license"
49
50 #include <reactos/manifest_exe.rc>
51
52 /*#include "common.ver"*/
53
54 IDI_APP_ICON ICON "window.ico"
55
56 IDD_MAIN DIALOGEX 0, 0, 310, 176
57 STYLE DS_SHELLFONT | DS_ABSALIGN | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
58 CAPTION "Audio Control Panel (CMI 8738/8768)"
59 FONT 8, "MS Shell Dlg"
60 CLASS "cmiControlPanel"
61 BEGIN
62 PUSHBUTTON "&Close",IDB_CLOSE,250,158,50,14
63 DEFPUSHBUTTON "&Apply",IDB_APPLY,190,158,50,14
64 CONTROL "",IDC_TAB,"SysTabControl32",0x0,7,7,296,146
65 LTEXT " ", IDT_SWAPJACKS, 10,162,180,8
66 END
67
68 IDD_TAB1 DIALOGEX 4, 15, 290, 122
69 STYLE DS_SHELLFONT | WS_CHILD
70 FONT 8, "MS Shell Dlg"
71 BEGIN
72 AUTOCHECKBOX "Enable PCM DAC", IDC_EN_SPDIMONITOR,4,4,104,10
73 AUTOCHECKBOX "Exchange Front/Rear Jacks", IDC_EXCH_FB, 4,16,104,10
74 GROUPBOX "Line-In Jack", IDC_STATIC, 4,40,110,44
75 AUTORADIOBUTTON "Route Rear to Line-In", IDC_EN_REAR2LINE, 8,50,104,10,WS_GROUP
76 AUTORADIOBUTTON "Route C/LFE to Line-In", IDC_EN_CLFE2LINE, 8,60,104,10
77 AUTORADIOBUTTON "Don't route", IDC_NOROUTE_LINE, 8,70,104,10
78 GROUPBOX "Mic-In Jack", IDC_STATIC, 4,86,110,34
79 AUTORADIOBUTTON "Route Center to Mic-In", IDC_EN_CENTER2MIC, 8,96,104,10,WS_GROUP
80 AUTORADIOBUTTON "Don't route", IDC_NOROUTE_MIC, 8,106,104,10
81 GROUPBOX "Channel Configuration", IDC_STATIC, 120,4,160,116
82 COMBOBOX IDCB_CHANNELCONFIG,124,14,150,50, CBS_DROPDOWNLIST | WS_TABSTOP
83 AUTOCHECKBOX "L", IDC_LEFT, 130,30,24,20
84 AUTOCHECKBOX "CL", IDC_CLEFT, 160,30,24,20
85 AUTOCHECKBOX "C", IDC_CENTER, 190,30,24,20
86 AUTOCHECKBOX "CR", IDC_CRIGHT, 220,30,24,20
87 AUTOCHECKBOX "R", IDC_RIGHT, 250,30,24,20
88 AUTOCHECKBOX "BL", IDC_BLEFT, 130,96,24,20
89 AUTOCHECKBOX "BR", IDC_BRIGHT, 250,96,24,20
90 AUTOCHECKBOX "Sub", IDC_SUB, 240,60,30,20
91 DEFPUSHBUTTON "&Play test tone", IDB_STARTSTOP, 175,98,50,14
92 END
93
94 IDD_TAB2 DIALOGEX 4, 15, 290, 122
95 STYLE DS_SHELLFONT | WS_CHILD
96 FONT 8, "MS Shell Dlg"
97 BEGIN
98 GROUPBOX "S/PDIF output", IDC_STATIC, 4,4,132,116
99 AUTOCHECKBOX "Enable S/PDIF-out", IDC_EN_SPDO, 8,14,110,10
100 AUTOCHECKBOX "Enable 5V signal levels", IDC_EN_SPDO5V, 8,28,110,10
101 AUTOCHECKBOX "Enable copyright bit", IDC_EN_SPDCOPYRHT, 8,42,110,10
102 GROUPBOX "S/PDIF input", IDC_STATIC, 146,4,134,116
103 AUTOCHECKBOX "Enable S/PDIF-in recording", IDC_EN_SPDI, 150,14,110,10
104 LTEXT "(and disable all analog inputs)", -1 , 162,26,110,10
105 AUTOCHECKBOX "Select secondary S/PDIF-in", IDC_SEL_SPDIFI, 150,42,110,10
106 AUTOCHECKBOX "Invert phase", IDC_INV_SPDIFI, 150,56,110,10
107 AUTOCHECKBOX "Invert validity flag", IDC_POLVALID, 150,70,110,10
108 AUTOCHECKBOX "Loop S/PDIF-in to S/PDIF-out",IDC_LOOP_SPDF, 150,84,110,10
109 END
110
111 IDD_TAB3 DIALOGEX 4, 15, 290, 122
112 STYLE DS_SHELLFONT | WS_CHILD
113 FONT 8, "MS Shell Dlg"
114 BEGIN
115 LTEXT "44.1 kHz", IDC_STATIC, 74,8,40,8
116 LTEXT "48 kHz", IDC_STATIC, 114,8,40,8
117 LTEXT "88.2 kHz", IDC_STATIC, 154,8,40,8
118 LTEXT "96 kHz", IDC_STATIC, 194,8,40,8
119 LTEXT "PCM" , IDC_STATIC, 4,20,60,8
120 LTEXT "Multi-Channel PCM", IDC_STATIC, 4,32,60,8
121 LTEXT "Dolby (AC3)/DTS", IDC_STATIC, 4,44,60,8
122 AUTOCHECKBOX "", IDC_FMT_441_PCM, 82,20,10,10
123 AUTOCHECKBOX "", IDC_FMT_441_MULTI_PCM, 82,32,10,10
124 AUTOCHECKBOX "", IDC_FMT_441_DOLBY, 82,44,10,10
125 AUTOCHECKBOX "", IDC_FMT_480_PCM, 122,20,10,10
126 AUTOCHECKBOX "", IDC_FMT_480_MULTI_PCM, 122,32,10,10
127 AUTOCHECKBOX "", IDC_FMT_480_DOLBY, 122,44,10,10
128 AUTOCHECKBOX "", IDC_FMT_882_PCM, 162,20,10,10
129 AUTOCHECKBOX "", IDC_FMT_882_MULTI_PCM, 162,32,10,10
130 AUTOCHECKBOX "", IDC_FMT_882_DOLBY, 162,44,10,10
131 AUTOCHECKBOX "", IDC_FMT_960_PCM, 202,20,10,10
132 AUTOCHECKBOX "", IDC_FMT_960_MULTI_PCM, 202,32,10,10
133 AUTOCHECKBOX "", IDC_FMT_960_DOLBY, 202,44,10,10
134 END
135
136 IDD_TAB4 DIALOGEX 4, 15, 290, 124
137 STYLE DS_SHELLFONT | WS_CHILD
138 FONT 8, "MS Shell Dlg"
139 BEGIN
140 LTEXT "Driver Version:", IDC_STATIC, 4,5,100,10
141 LTEXT "", IDC_VERSION,80,4,60,10, SS_SUNKEN
142 LTEXT "Hardware Revision:", IDC_STATIC, 4,21,100,8
143 LTEXT "", IDC_HWREV, 80,20,60,10, SS_SUNKEN
144 LTEXT "Maximum Channels:", IDC_STATIC, 4,37,100,8
145 LTEXT "", IDC_MAXCHAN,80,36,60,10, SS_SUNKEN
146 LTEXT "Base Address:", IDC_STATIC, 4,53,100,8
147 LTEXT "", IDC_BASEADR,80,52,60,10, SS_SUNKEN
148 LTEXT "MPU401 Address:", IDC_STATIC, 4,69,100,8
149 LTEXT "", IDC_MPUADR, 80,68,60,10, SS_SUNKEN
150
151 LTEXT "Application Icon: Copyright (c) Tango Desktop Project,", IDC_STATIC,4,84,176,8
152 CONTROL "http://tango.freedesktop.org/",IDC_URL1,"URLLink",SS_NOTIFY, 178,84,100,8
153
154 LTEXT "Copyright (c) 2006-2008 Dogbert <dogber1@gmail.com>", IDC_STATIC,4,96,202,8
155 CONTROL "http://code.google.com/p/cmediadrivers/",IDC_URL2,"URLLink",SS_NOTIFY,48,110,192,22
156 END