[ros-kernel] Accessibility CPL

Johannes Anderwald j_anderw at sbox.tugraz.at
Tue Apr 13 16:52:32 CEST 2004


Hi,
I have created a Win2k look-like Accessbility CPL (though it does not 
include any functionality) In addition I have included a patch which 
makes the current sysdm (reactos/lib/cpl/sysdm) look more like in Win2k

regards

-- 
Johannes Anderwald
-------------- next part --------------
? sysdm.patch
? userprofile.c
Index: Makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/lib/cpl/sysdm/Makefile,v
retrieving revision 1.1
diff -r1.1 Makefile
34c34
< TARGET_OBJECTS = sysdm.o general.o computer.o hardware.o advanced.o
---
> TARGET_OBJECTS = sysdm.o general.o computer.o hardware.o advanced.o userprofile.o
Index: advanced.c
===================================================================
RCS file: /CVS/ReactOS/reactos/lib/cpl/sysdm/advanced.c,v
retrieving revision 1.1
diff -r1.1 advanced.c
45a46,49
>     case WM_COMMAND:
>     {
>       break;
>     }
Index: hardware.c
===================================================================
RCS file: /CVS/ReactOS/reactos/lib/cpl/sysdm/hardware.c,v
retrieving revision 1.1
diff -r1.1 hardware.c
66a67,69
>     {
>       //GetComputerName
> 
67a71
>     }
71c75
<         case IDC_DEVMGR:
---
>         case IDC_HARDWARE_DEVICE_MANAGER:
Index: resource.h
===================================================================
RCS file: /CVS/ReactOS/reactos/lib/cpl/sysdm/resource.h,v
retrieving revision 1.1
diff -r1.1 resource.h
22c22,23
< #define IDD_PROPPAGEADVANCED	103
---
> #define IDD_PROPPAGEUSERPROFILE	103
> #define IDD_PROPPAGEADVANCED	104
33a35,36
> #define IDC_ENVVAR	107
> #define IDC_STAREC	108
35c38,49
< 
---
> #define IDC_COMPUTERNAME	202
> #define IDC_WORKGROUPDOMAIN_NAME	203
> #define IDC_WORKGROUPDOMAIN	204
> #define IDC_NETWORK_ID	205
> #define IDC_NETWORK_PROPERTY	206
> #define IDC_HARDWARE_WIZARD	207
> #define IDC_HARDWARE_PROFILE	210
> #define IDC_HARDWARE_DRIVER_SIGN	211
> #define IDC_HARDWARE_DEVICE_MANAGER	212
> #define IDC_USERPROFILE_DELETE	213
> #define IDC_USERPROFILE_CHANGE	214
> #define IDC_USERPROFILE_COPY		215
Index: sysdm.c
===================================================================
RCS file: /CVS/ReactOS/reactos/lib/cpl/sysdm/sysdm.c,v
retrieving revision 1.1
diff -r1.1 sysdm.c
39a40
> BOOL CALLBACK UserProfilePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
96c97
<   PROPSHEETPAGE psp[4];
---
>   PROPSHEETPAGE psp[5];
117c118,119
<   InitPropSheetPage(&psp[3], IDD_PROPPAGEADVANCED, AdvancedPageProc);
---
>   InitPropSheetPage(&psp[3], IDD_PROPPAGEUSERPROFILE, UserProfilePageProc);
>   InitPropSheetPage(&psp[4], IDD_PROPPAGEADVANCED, AdvancedPageProc);
Index: sysdm.rc
===================================================================
RCS file: /CVS/ReactOS/reactos/lib/cpl/sysdm/sysdm.rc,v
retrieving revision 1.1
diff -r1.1 sysdm.rc
64c64
< CAPTION "Computer Name"
---
> CAPTION "Network Identification"
67c67,77
<   /* LTEXT "Property Page 2",-1,73,74,90,8 */
---
>   ICON IDI_DEVMGR, IDC_ICON1, PROPSHEETPADDING,LABELLINE(1)-5, ICONSIZE, ICONSIZE, SS_ICON
>   LTEXT "Windows uses the following information to identify your computer on the network.",-1,(4*PROPSHEETPADDING)+ICONSIZE,LABELLINE(1)-5,PROPSHEETWIDTH-(6*PROPSHEETPADDING)-ICONSIZE,LABELLINE(3)
>   LTEXT "Full computer name:",-1,PROPSHEETPADDING,LABELLINE(4)-4,PROPSHEETWIDTH-(6*PROPSHEETPADDING)-ICONSIZE,LABELLINE(4)-4
>   LTEXT "",IDC_COMPUTERNAME,90,LABELLINE(4)-5,PROPSHEETWIDTH-(6*PROPSHEETPADDING)-ICONSIZE,LABELLINE(4)-5
>   LTEXT "Workgroup:",IDC_WORKGROUPDOMAIN,PROPSHEETPADDING,LABELLINE(6)-6,PROPSHEETWIDTH-(6*PROPSHEETPADDING)-ICONSIZE,LABELLINE(6)-6
>   LTEXT "",IDC_WORKGROUPDOMAIN_NAME,90,LABELLINE(6)-6,PROPSHEETWIDTH-(6*PROPSHEETPADDING)-ICONSIZE,LABELLINE(6)-6
>   LTEXT "To use the Network Identfication Wizard to join a domain and create a local user, click Network ID.",-1,PROPSHEETPADDING,LABELLINE(7)+5,PROPSHEETWIDTH-(12*PROPSHEETPADDING)-ICONSIZE,LABELLINE(8)+5
>   PUSHBUTTON "&Network ID",IDC_NETWORK_ID,185,LABELLINE(7)+5,54,LABELLINE(1)+4
>   LTEXT "To rename this computer or join a domain, click Properties.",-1,PROPSHEETPADDING,LABELLINE(11)+2,PROPSHEETWIDTH-(12*PROPSHEETPADDING)-ICONSIZE,LABELLINE(12)+2
>   PUSHBUTTON "&Properties",IDC_NETWORK_PROPERTY,185,LABELLINE(11)+2,54,LABELLINE(1)+4
> 
74,75c84,86
< BEGIN
<   GROUPBOX "Hardware Devices",-1,PROPSHEETPADDING,PROPSHEETPADDING,PROPSHEETWIDTH-(2*PROPSHEETPADDING),LABELLINE(6)+PROPSHEETPADDING
---
> BEGIN  
>   GROUPBOX "Hardware Wizard",-1,PROPSHEETPADDING,LABELLINE(1),PROPSHEETWIDTH-(2*PROPSHEETPADDING),LABELLINE(6)+PROPSHEETPADDING
>   LTEXT "The Hardware wizard helps you install, uninstall, repair, unplug, eject, and configure your hardware.",-1,(4*PROPSHEETPADDING)+ICONSIZE,LABELLINE(2),PROPSHEETWIDTH-(6*PROPSHEETPADDING)-ICONSIZE,LABELLINE(3)
77,78c88,115
<   LTEXT "The Device Manager lists all the hardware devices that are installed on your computer. Use the Device Manger to change their settings.",-1,(4*PROPSHEETPADDING)+ICONSIZE,LABELLINE(2),PROPSHEETWIDTH-(6*PROPSHEETPADDING)-ICONSIZE,LABELLINE(3)
<   PUSHBUTTON "&Device Manager",IDC_DEVMGR,PROPSHEETWIDTH-(17*PROPSHEETPADDING),LABELLINE(5)+2,(15*PROPSHEETPADDING),14
---
>   PUSHBUTTON "&Hardware Wizard",IDC_HARDWARE_WIZARD,PROPSHEETWIDTH-(17*PROPSHEETPADDING),LABELLINE(5)+2,(15*PROPSHEETPADDING),14
> 
>   GROUPBOX "Device Manager",-1,PROPSHEETPADDING,LABELLINE(8)+5,PROPSHEETWIDTH-(2*PROPSHEETPADDING),LABELLINE(7)+2
>   ICON IDI_DEVMGR, IDC_ICON1, (2*PROPSHEETPADDING),LABELLINE(10)-3,ICONSIZE, ICONSIZE, SS_ICON
>   LTEXT "The Device Manager lists all the hardware devices installed on your computer. Use the Device Manager to change the properties of any device.",-1,(4*PROPSHEETPADDING)+ICONSIZE,LABELLINE(10)-3,PROPSHEETWIDTH-(6*PROPSHEETPADDING)-ICONSIZE,LABELLINE(3)
>   
>   PUSHBUTTON "&Device Manager",IDC_HARDWARE_DEVICE_MANAGER,PROPSHEETWIDTH-(17*PROPSHEETPADDING),LABELLINE(13)+2,(15*PROPSHEETPADDING),14
> 
> 
>   GROUPBOX "Hardware Profiles",-1,PROPSHEETPADDING,LABELLINE(16)+3,PROPSHEETWIDTH-(2*PROPSHEETPADDING),LABELLINE(6)+PROPSHEETPADDING
>   ICON IDI_DEVMGR, IDC_ICON1, (2*PROPSHEETPADDING),LABELLINE(18)-5, ICONSIZE, ICONSIZE, SS_ICON
>   LTEXT "Hardware profiles provide a way for you to set up and store different hardware configurations.",0,(4*PROPSHEETPADDING)+ICONSIZE,LABELLINE(18)-5,PROPSHEETWIDTH-(6*PROPSHEETPADDING)-ICONSIZE,LABELLINE(3)
>   PUSHBUTTON "&Hardware Profiles",IDC_HARDWARE_PROFILE,PROPSHEETWIDTH-(17*PROPSHEETPADDING),LABELLINE(20)+2,(15*PROPSHEETPADDING),14
> 
>  
> END
> 
> IDD_PROPPAGEUSERPROFILE DIALOGEX 0, 0, PROPSHEETWIDTH, PROPSHEETHEIGHT
> STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
> CAPTION "User Profiles"
> FONT 8, "MS Shell Dlg", 0, 0, 0x0
> BEGIN
>   ICON IDI_DEVMGR, IDC_ICON1, PROPSHEETPADDING,LABELLINE(1), ICONSIZE, ICONSIZE, SS_ICON
>   LTEXT "User profiles contain desktop settings and other information related to your login. A different profile can be created on each computer you use, or you can select a roaming profile that is the same on every computer you use.",-1,(4*PROPSHEETPADDING)+ICONSIZE,LABELLINE(1),PROPSHEETWIDTH-(6*PROPSHEETPADDING)-ICONSIZE,LABELLINE(4)
>   LTEXT "Profiles stored on this computer:",-1,PROPSHEETPADDING,LABELLINE(6),PROPSHEETWIDTH-(6*PROPSHEETPADDING)-ICONSIZE,LABELLINE(6)
>   PUSHBUTTON "Delete",IDC_USERPROFILE_DELETE,PROPSHEETPADDING,LABELLINE(23),60,LABELLINE(1)+2
>   PUSHBUTTON "Change Type",IDC_USERPROFILE_CHANGE,95,LABELLINE(23),60,LABELLINE(1)+2
>   PUSHBUTTON "Copy To",IDC_USERPROFILE_COPY,180,LABELLINE(23),60,LABELLINE(1)+2
86c123,134
<   /* LTEXT "Property Page 4",-1,73,74,90,8 */
---
>   GROUPBOX "Performance",-1,PROPSHEETPADDING,LABELLINE(1),PROPSHEETWIDTH-(2*PROPSHEETPADDING),LABELLINE(6)+PROPSHEETPADDING
>   ICON IDI_DEVMGR, IDC_ICON1, (2*PROPSHEETPADDING),LABELLINE(2), ICONSIZE, ICONSIZE, SS_ICON
>   LTEXT "Performance options control how applications use memory, which affects the speed of your computer.",-1,(4*PROPSHEETPADDING)+ICONSIZE,LABELLINE(2),PROPSHEETWIDTH-(6*PROPSHEETPADDING)-ICONSIZE,LABELLINE(3)
>   PUSHBUTTON "&Performance Options",IDC_ENVVAR,PROPSHEETWIDTH-(17*PROPSHEETPADDING),LABELLINE(5)+2,(15*PROPSHEETPADDING),14
>   GROUPBOX "Environment Variables",-1,PROPSHEETPADDING,LABELLINE(8)+2,PROPSHEETWIDTH-(2*PROPSHEETPADDING),LABELLINE(6)+PROPSHEETPADDING
>   ICON IDI_DEVMGR, IDC_ICON1, (2*PROPSHEETPADDING),LABELLINE(10)-5, ICONSIZE, ICONSIZE, SS_ICON
>   LTEXT "Environment variables tell your computer where to find certain types of information.",-1,(4*PROPSHEETPADDING)+ICONSIZE,LABELLINE(10)-5,PROPSHEETWIDTH-(6*PROPSHEETPADDING)-ICONSIZE,LABELLINE(11)
>   PUSHBUTTON "&Environment Variables",IDC_ENVVAR,PROPSHEETWIDTH-(17*PROPSHEETPADDING),LABELLINE(12)+2,(15*PROPSHEETPADDING),14
>   GROUPBOX "Startup and Recovery",-1,PROPSHEETPADDING,LABELLINE(15)+3,PROPSHEETWIDTH-(2*PROPSHEETPADDING),LABELLINE(6)+PROPSHEETPADDING
>   ICON IDI_DEVMGR, IDC_ICON1, (2*PROPSHEETPADDING),LABELLINE(17)-5, ICONSIZE, ICONSIZE, SS_ICON
>   LTEXT "Startup and recovery options tell your computer how to start and what to do if an error causes your computer to stop.",0,(4*PROPSHEETPADDING)+ICONSIZE,LABELLINE(17)-5,PROPSHEETWIDTH-(6*PROPSHEETPADDING)-ICONSIZE,LABELLINE(3)
>   PUSHBUTTON "&Startup and Recovery",IDC_STAREC,PROPSHEETWIDTH-(17*PROPSHEETPADDING),LABELLINE(19)+2,(15*PROPSHEETPADDING),14
88d135
< 
Index: resources/gpl.txt
===================================================================
RCS file: /CVS/ReactOS/reactos/lib/cpl/sysdm/resources/gpl.txt,v
retrieving revision 1.4
diff -r1.4 gpl.txt
Binary files /tmp/cvsLglbr7 and gpl.txt differ
-------------- next part --------------
A non-text attachment was scrubbed...
Name: access.zip
Type: application/zip
Size: 10783 bytes
Desc: not available
Url : http://reactos.com:8080/pipermail/ros-kernel/attachments/20040413/5a818e3e/access-0001.zip


More information about the Ros-kernel mailing list