51dddeba2108a6c5e6829697f97fad8826e93abd
[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 "common.ver"*/
51
52 IDI_APP_ICON ICON "window.ico"
53
54 IDD_MAIN DIALOG 0, 0, 310, 176
55 STYLE DS_ABSALIGN | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
56 CAPTION "Audio Control Panel (CMI 8738/8768)"
57 FONT 8, "MS Shell Dlg"
58 CLASS "cmiControlPanel"
59 BEGIN
60 PUSHBUTTON "&Close",IDB_CLOSE,250,158,50,14
61 DEFPUSHBUTTON "&Apply",IDB_APPLY,190,158,50,14
62 CONTROL "",IDC_TAB,"SysTabControl32",0x0,7,7,296,146
63 LTEXT " ", IDT_SWAPJACKS, 10,162,180,8
64 END
65
66 IDD_TAB1 DIALOG 4, 15, 290, 122
67 STYLE WS_CHILD
68 FONT 8, "MS Shell Dlg"
69 BEGIN
70 AUTOCHECKBOX "Enable PCM DAC", IDC_EN_SPDIMONITOR,4,4,104,10
71 AUTOCHECKBOX "Exchange Front/Rear Jacks", IDC_EXCH_FB, 4,16,104,10
72 GROUPBOX "Line-In Jack", IDC_STATIC, 4,40,110,44
73 AUTORADIOBUTTON "Route Rear to Line-In", IDC_EN_REAR2LINE, 8,50,104,10,WS_GROUP
74 AUTORADIOBUTTON "Route C/LFE to Line-In", IDC_EN_CLFE2LINE, 8,60,104,10
75 AUTORADIOBUTTON "Don't route", IDC_NOROUTE_LINE, 8,70,104,10
76 GROUPBOX "Mic-In Jack", IDC_STATIC, 4,86,110,34
77 AUTORADIOBUTTON "Route Center to Mic-In", IDC_EN_CENTER2MIC, 8,96,104,10,WS_GROUP
78 AUTORADIOBUTTON "Don't route", IDC_NOROUTE_MIC, 8,106,104,10
79 GROUPBOX "Channel Configuration", IDC_STATIC, 120,4,160,116
80 COMBOBOX IDCB_CHANNELCONFIG,124,14,150,50, CBS_DROPDOWNLIST | WS_TABSTOP
81 AUTOCHECKBOX "L", IDC_LEFT, 130,30,24,20
82 AUTOCHECKBOX "CL", IDC_CLEFT, 160,30,24,20
83 AUTOCHECKBOX "C", IDC_CENTER, 190,30,24,20
84 AUTOCHECKBOX "CR", IDC_CRIGHT, 220,30,24,20
85 AUTOCHECKBOX "R", IDC_RIGHT, 250,30,24,20
86 AUTOCHECKBOX "BL", IDC_BLEFT, 130,96,24,20
87 AUTOCHECKBOX "BR", IDC_BRIGHT, 250,96,24,20
88 AUTOCHECKBOX "Sub", IDC_SUB, 240,60,30,20
89 DEFPUSHBUTTON "&Play test tone", IDB_STARTSTOP, 175,98,50,14
90 END
91
92 IDD_TAB2 DIALOG 4, 15, 290, 122
93 STYLE WS_CHILD
94 FONT 8, "MS Shell Dlg"
95 BEGIN
96 GROUPBOX "S/PDIF output", IDC_STATIC, 4,4,132,116
97 AUTOCHECKBOX "Enable S/PDIF-out", IDC_EN_SPDO, 8,14,110,10
98 AUTOCHECKBOX "Enable 5V signal levels", IDC_EN_SPDO5V, 8,28,110,10
99 AUTOCHECKBOX "Enable copyright bit", IDC_EN_SPDCOPYRHT, 8,42,110,10
100 GROUPBOX "S/PDIF input", IDC_STATIC, 146,4,134,116
101 AUTOCHECKBOX "Enable S/PDIF-in recording", IDC_EN_SPDI, 150,14,110,10
102 LTEXT "(and disable all analog inputs)", -1 , 162,26,110,10
103 AUTOCHECKBOX "Select secondary S/PDIF-in", IDC_SEL_SPDIFI, 150,42,110,10
104 AUTOCHECKBOX "Invert phase", IDC_INV_SPDIFI, 150,56,110,10
105 AUTOCHECKBOX "Invert validity flag", IDC_POLVALID, 150,70,110,10
106 AUTOCHECKBOX "Loop S/PDIF-in to S/PDIF-out",IDC_LOOP_SPDF, 150,84,110,10
107 END
108
109 IDD_TAB3 DIALOG 4, 15, 290, 122
110 STYLE WS_CHILD
111 FONT 8, "MS Shell Dlg"
112 BEGIN
113 LTEXT "44.1 kHz", IDC_STATIC, 74,8,40,8
114 LTEXT "48 kHz", IDC_STATIC, 114,8,40,8
115 LTEXT "88.2 kHz", IDC_STATIC, 154,8,40,8
116 LTEXT "96 kHz", IDC_STATIC, 194,8,40,8
117 LTEXT "PCM" , IDC_STATIC, 4,20,60,8
118 LTEXT "Multi-Channel PCM", IDC_STATIC, 4,32,60,8
119 LTEXT "Dolby (AC3)/DTS", IDC_STATIC, 4,44,60,8
120 AUTOCHECKBOX "", IDC_FMT_441_PCM, 82,20,10,10
121 AUTOCHECKBOX "", IDC_FMT_441_MULTI_PCM, 82,32,10,10
122 AUTOCHECKBOX "", IDC_FMT_441_DOLBY, 82,44,10,10
123 AUTOCHECKBOX "", IDC_FMT_480_PCM, 122,20,10,10
124 AUTOCHECKBOX "", IDC_FMT_480_MULTI_PCM, 122,32,10,10
125 AUTOCHECKBOX "", IDC_FMT_480_DOLBY, 122,44,10,10
126 AUTOCHECKBOX "", IDC_FMT_882_PCM, 162,20,10,10
127 AUTOCHECKBOX "", IDC_FMT_882_MULTI_PCM, 162,32,10,10
128 AUTOCHECKBOX "", IDC_FMT_882_DOLBY, 162,44,10,10
129 AUTOCHECKBOX "", IDC_FMT_960_PCM, 202,20,10,10
130 AUTOCHECKBOX "", IDC_FMT_960_MULTI_PCM, 202,32,10,10
131 AUTOCHECKBOX "", IDC_FMT_960_DOLBY, 202,44,10,10
132 END
133
134 IDD_TAB4 DIALOG 4, 15, 290, 124
135 STYLE WS_CHILD
136 FONT 8, "MS Shell Dlg"
137 BEGIN
138 LTEXT "Driver Version:", IDC_STATIC, 4,5,100,10
139 LTEXT "", IDC_VERSION,80,4,60,10, SS_SUNKEN
140 LTEXT "Hardware Revision:", IDC_STATIC, 4,21,100,8
141 LTEXT "", IDC_HWREV, 80,20,60,10, SS_SUNKEN
142 LTEXT "Maximum Channels:", IDC_STATIC, 4,37,100,8
143 LTEXT "", IDC_MAXCHAN,80,36,60,10, SS_SUNKEN
144 LTEXT "Base Address:", IDC_STATIC, 4,53,100,8
145 LTEXT "", IDC_BASEADR,80,52,60,10, SS_SUNKEN
146 LTEXT "MPU401 Address:", IDC_STATIC, 4,69,100,8
147 LTEXT "", IDC_MPUADR, 80,68,60,10, SS_SUNKEN
148
149 LTEXT "Application Icon: Copyright (c) Tango Desktop Project,", IDC_STATIC,4,84,176,8
150 CONTROL "http://tango.freedesktop.org/",IDC_URL1,"URLLink",SS_NOTIFY, 178,84,100,8
151
152 LTEXT "Copyright (c) 2006-2008 Dogbert <dogber1@gmail.com>", IDC_STATIC,4,96,202,8
153 CONTROL "http://code.google.com/p/cmediadrivers/",IDC_URL2,"URLLink",SS_NOTIFY,48,110,192,22
154 END