Author: ekohl
Date: Sun Aug 19 20:11:04 2007
New Revision: 28424
URL:
http://svn.reactos.org/svn/reactos?rev=28424&view=rev
Log:
- Implement the mouse keys dialog.
- Fix a tiny bug in the mouse keys dialog resource.
- Update file header.
Modified:
trunk/reactos/dll/cpl/access/access.c
trunk/reactos/dll/cpl/access/display.c
trunk/reactos/dll/cpl/access/general.c
trunk/reactos/dll/cpl/access/keyboard.c
trunk/reactos/dll/cpl/access/lang/cs-CZ.rc
trunk/reactos/dll/cpl/access/lang/de-DE.rc
trunk/reactos/dll/cpl/access/lang/en-US.rc
trunk/reactos/dll/cpl/access/lang/es-ES.rc
trunk/reactos/dll/cpl/access/lang/fr-FR.rc
trunk/reactos/dll/cpl/access/lang/hu-HU.rc
trunk/reactos/dll/cpl/access/lang/id-ID.rc
trunk/reactos/dll/cpl/access/lang/it-IT.rc
trunk/reactos/dll/cpl/access/lang/ja-JP.rc
trunk/reactos/dll/cpl/access/lang/nl-NL.rc
trunk/reactos/dll/cpl/access/lang/pl-PL.rc
trunk/reactos/dll/cpl/access/lang/ru-RU.rc
trunk/reactos/dll/cpl/access/mouse.c
trunk/reactos/dll/cpl/access/resource.h
trunk/reactos/dll/cpl/access/sound.c
Modified: trunk/reactos/dll/cpl/access/access.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/access.c?re…
==============================================================================
--- trunk/reactos/dll/cpl/access/access.c (original)
+++ trunk/reactos/dll/cpl/access/access.c Sun Aug 19 20:11:04 2007
@@ -1,19 +1,17 @@
/* $Id$
*
- * PROJECT: ReactOS System Control Panel
+ * PROJECT: ReactOS Accessibility Control Panel
* LICENSE: GPL - See COPYING in the top level directory
- * FILE: lib/cpl/system/sysdm.c
- * PURPOSE: ReactOS System Control Panel
+ * FILE: dll/cpl/access/access.c
+ * PURPOSE: Main control panel code
* COPYRIGHT: Copyright 2004 Johannes Anderwald (j_anderw(a)sbox.tugraz.at)
- * UPDATE HISTORY:
- * 03-04-2004 Created
+ * Copyright 2007 Eric Kohl
*/
+
#include <windows.h>
#include <commctrl.h>
#include <cpl.h>
-
#include <stdlib.h>
-
#include "resource.h"
#include "access.h"
Modified: trunk/reactos/dll/cpl/access/display.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/display.c?r…
==============================================================================
--- trunk/reactos/dll/cpl/access/display.c (original)
+++ trunk/reactos/dll/cpl/access/display.c Sun Aug 19 20:11:04 2007
@@ -1,12 +1,13 @@
-/*
- * PROJECT: ReactOS System Control Panel
+/* $Id$
+ *
+ * PROJECT: ReactOS Accessibility Control Panel
* LICENSE: GPL - See COPYING in the top level directory
* FILE: dll/cpl/access/display.c
- * PURPOSE: Memory, start-up and profiles settings
+ * PURPOSE: Display-related accessibility settings
* COPYRIGHT: Copyright 2004 Johannes Anderwald (j_anderw(a)sbox.tugraz.at)
- * UPDATE HISTORY:
- * 03-04-2004 Created
+ * Copyright 2007 Eric Kohl
*/
+
#include <windows.h>
#include <stdlib.h>
#include <commctrl.h>
Modified: trunk/reactos/dll/cpl/access/general.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/general.c?r…
==============================================================================
--- trunk/reactos/dll/cpl/access/general.c (original)
+++ trunk/reactos/dll/cpl/access/general.c Sun Aug 19 20:11:04 2007
@@ -1,13 +1,13 @@
/* $Id$
*
- * PROJECT: ReactOS System Control Panel
+ * PROJECT: ReactOS Accessibility Control Panel
* LICENSE: GPL - See COPYING in the top level directory
* FILE: dll/cpl/access/general.c
- * PURPOSE: Memory, start-up and profiles settings
+ * PURPOSE: General accessibility settings
* COPYRIGHT: Copyright 2004 Johannes Anderwald (j_anderw(a)sbox.tugraz.at)
- * UPDATE HISTORY:
- * 03-04-2004 Created
+ * Copyright 2007 Eric Kohl
*/
+
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
Modified: trunk/reactos/dll/cpl/access/keyboard.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/keyboard.c?…
==============================================================================
--- trunk/reactos/dll/cpl/access/keyboard.c (original)
+++ trunk/reactos/dll/cpl/access/keyboard.c Sun Aug 19 20:11:04 2007
@@ -1,13 +1,13 @@
/* $Id$
*
- * PROJECT: ReactOS System Control Panel
+ * PROJECT: ReactOS Accessibility Control Panel
* LICENSE: GPL - See COPYING in the top level directory
- * FILE: lib/cpl/system/advanced.c
- * PURPOSE: Memory, start-up and profiles settings
+ * FILE: dll/cpl/access/keyboard.c
+ * PURPOSE: Keyboard-related accessibility settings
* COPYRIGHT: Copyright 2004 Johannes Anderwald (j_anderw(a)sbox.tugraz.at)
- * UPDATE HISTORY:
- * 03-04-2004 Created
+ * Copyright 2007 Eric Kohl
*/
+
#include <windows.h>
#include <stdlib.h>
#include <commctrl.h>
Modified: trunk/reactos/dll/cpl/access/lang/cs-CZ.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/cs-CZ.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/cs-CZ.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/cs-CZ.rc Sun Aug 19 20:11:04 2007
@@ -183,8 +183,8 @@
AUTOCHECKBOX "&Hold down Ctrl to speed up and Shift to slow
down",IDC_MOUSEKEYS_SPEED_CHECK,PROPSHEETPADDING(2),LABELLINE(16),PROPSHEETWIDTH-PROPSHEETPADDING(4),14
LTEXT "Use MouseKeys when NumLock
is:",-1,PROPSHEETPADDING(1),LABELLINE(18)+7,PROPSHEETPADDING(20),LABELLINE(1)
- AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
- AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
AUTOCHECKBOX "&Show MouseKey status on
screen",IDC_MOUSEKEYS_STATUS_CHECK,PROPSHEETPADDING(1),LABELLINE(20)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),14
Modified: trunk/reactos/dll/cpl/access/lang/de-DE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/de-DE.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/de-DE.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/de-DE.rc Sun Aug 19 20:11:04 2007
@@ -186,8 +186,8 @@
AUTOCHECKBOX "&Hold down Ctrl to speed up and Shift to slow
down",IDC_MOUSEKEYS_SPEED_CHECK,PROPSHEETPADDING(2),LABELLINE(16),PROPSHEETWIDTH-PROPSHEETPADDING(4),14
LTEXT "Use MouseKeys when NumLock
is:",-1,PROPSHEETPADDING(1),LABELLINE(18)+7,PROPSHEETPADDING(20),LABELLINE(1)
- AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
- AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
AUTOCHECKBOX "&Show MouseKey status on
screen",IDC_MOUSEKEYS_STATUS_CHECK,PROPSHEETPADDING(1),LABELLINE(20)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),14
Modified: trunk/reactos/dll/cpl/access/lang/en-US.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/en-US.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/en-US.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/en-US.rc Sun Aug 19 20:11:04 2007
@@ -183,8 +183,8 @@
AUTOCHECKBOX "&Hold down Ctrl to speed up and Shift to slow
down",IDC_MOUSEKEYS_SPEED_CHECK,PROPSHEETPADDING(2),LABELLINE(16),PROPSHEETWIDTH-PROPSHEETPADDING(4),14
LTEXT "Use MouseKeys when NumLock
is:",-1,PROPSHEETPADDING(1),LABELLINE(18)+7,PROPSHEETPADDING(20),LABELLINE(1)
- AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
- AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
AUTOCHECKBOX "&Show MouseKey status on
screen",IDC_MOUSEKEYS_STATUS_CHECK,PROPSHEETPADDING(1),LABELLINE(20)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),14
Modified: trunk/reactos/dll/cpl/access/lang/es-ES.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/es-ES.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/es-ES.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/es-ES.rc Sun Aug 19 20:11:04 2007
@@ -186,8 +186,8 @@
AUTOCHECKBOX "&Hold down Ctrl to speed up and Shift to slow
down",IDC_MOUSEKEYS_SPEED_CHECK,PROPSHEETPADDING(2),LABELLINE(16),PROPSHEETWIDTH-PROPSHEETPADDING(4),14
LTEXT "Use MouseKeys when NumLock
is:",-1,PROPSHEETPADDING(1),LABELLINE(18)+7,PROPSHEETPADDING(20),LABELLINE(1)
- AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
- AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
AUTOCHECKBOX "&Show MouseKey status on
screen",IDC_MOUSEKEYS_STATUS_CHECK,PROPSHEETPADDING(1),LABELLINE(20)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),14
Modified: trunk/reactos/dll/cpl/access/lang/fr-FR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/fr-FR.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/fr-FR.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/fr-FR.rc Sun Aug 19 20:11:04 2007
@@ -184,8 +184,8 @@
AUTOCHECKBOX "&Hold down Ctrl to speed up and Shift to slow
down",IDC_MOUSEKEYS_SPEED_CHECK,PROPSHEETPADDING(2),LABELLINE(16),PROPSHEETWIDTH-PROPSHEETPADDING(4),14
LTEXT "Use MouseKeys when NumLock
is:",-1,PROPSHEETPADDING(1),LABELLINE(18)+7,PROPSHEETPADDING(20),LABELLINE(1)
- AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
- AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
AUTOCHECKBOX "&Show MouseKey status on
screen",IDC_MOUSEKEYS_STATUS_CHECK,PROPSHEETPADDING(1),LABELLINE(20)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),14
Modified: trunk/reactos/dll/cpl/access/lang/hu-HU.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/hu-HU.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/hu-HU.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/hu-HU.rc Sun Aug 19 20:11:04 2007
@@ -184,8 +184,8 @@
AUTOCHECKBOX "&Hold down Ctrl to speed up and Shift to slow
down",IDC_MOUSEKEYS_SPEED_CHECK,PROPSHEETPADDING(2),LABELLINE(16),PROPSHEETWIDTH-PROPSHEETPADDING(4),14
LTEXT "Use MouseKeys when NumLock
is:",-1,PROPSHEETPADDING(1),LABELLINE(18)+7,PROPSHEETPADDING(20),LABELLINE(1)
- AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
- AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
AUTOCHECKBOX "&Show MouseKey status on
screen",IDC_MOUSEKEYS_STATUS_CHECK,PROPSHEETPADDING(1),LABELLINE(20)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),14
Modified: trunk/reactos/dll/cpl/access/lang/id-ID.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/id-ID.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/id-ID.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/id-ID.rc Sun Aug 19 20:11:04 2007
@@ -185,8 +185,8 @@
AUTOCHECKBOX "&Hold down Ctrl to speed up and Shift to slow
down",IDC_MOUSEKEYS_SPEED_CHECK,PROPSHEETPADDING(2),LABELLINE(16),PROPSHEETWIDTH-PROPSHEETPADDING(4),14
LTEXT "Use MouseKeys when NumLock
is:",-1,PROPSHEETPADDING(1),LABELLINE(18)+7,PROPSHEETPADDING(20),LABELLINE(1)
- AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
- AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
AUTOCHECKBOX "&Show MouseKey status on
screen",IDC_MOUSEKEYS_STATUS_CHECK,PROPSHEETPADDING(1),LABELLINE(20)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),14
Modified: trunk/reactos/dll/cpl/access/lang/it-IT.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/it-IT.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/it-IT.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/it-IT.rc Sun Aug 19 20:11:04 2007
@@ -183,8 +183,8 @@
AUTOCHECKBOX "&Hold down Ctrl to speed up and Shift to slow
down",IDC_MOUSEKEYS_SPEED_CHECK,PROPSHEETPADDING(2),LABELLINE(16),PROPSHEETWIDTH-PROPSHEETPADDING(4),14
LTEXT "Use MouseKeys when NumLock
is:",-1,PROPSHEETPADDING(1),LABELLINE(18)+7,PROPSHEETPADDING(20),LABELLINE(1)
- AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
- AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
AUTOCHECKBOX "&Show MouseKey status on
screen",IDC_MOUSEKEYS_STATUS_CHECK,PROPSHEETPADDING(1),LABELLINE(20)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),14
Modified: trunk/reactos/dll/cpl/access/lang/ja-JP.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/ja-JP.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/ja-JP.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/ja-JP.rc Sun Aug 19 20:11:04 2007
@@ -183,8 +183,8 @@
AUTOCHECKBOX "&Hold down Ctrl to speed up and Shift to slow
down",IDC_MOUSEKEYS_SPEED_CHECK,PROPSHEETPADDING(2),LABELLINE(16),PROPSHEETWIDTH-PROPSHEETPADDING(4),14
LTEXT "Use MouseKeys when NumLock
is:",-1,PROPSHEETPADDING(1),LABELLINE(18)+7,PROPSHEETPADDING(20),LABELLINE(1)
- AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
- AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
AUTOCHECKBOX "&Show MouseKey status on
screen",IDC_MOUSEKEYS_STATUS_CHECK,PROPSHEETPADDING(1),LABELLINE(20)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),14
Modified: trunk/reactos/dll/cpl/access/lang/nl-NL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/nl-NL.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/nl-NL.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/nl-NL.rc Sun Aug 19 20:11:04 2007
@@ -185,8 +185,8 @@
AUTOCHECKBOX "&Hold down Ctrl to speed up and Shift to slow
down",IDC_MOUSEKEYS_SPEED_CHECK,PROPSHEETPADDING(2),LABELLINE(16),PROPSHEETWIDTH-PROPSHEETPADDING(4),14
LTEXT "Use MouseKeys when NumLock
is:",-1,PROPSHEETPADDING(1),LABELLINE(18)+7,PROPSHEETPADDING(20),LABELLINE(1)
- AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
- AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
AUTOCHECKBOX "&Show MouseKey status on
screen",IDC_MOUSEKEYS_STATUS_CHECK,PROPSHEETPADDING(1),LABELLINE(20)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),14
Modified: trunk/reactos/dll/cpl/access/lang/pl-PL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/pl-PL.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/pl-PL.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/pl-PL.rc Sun Aug 19 20:11:04 2007
@@ -186,8 +186,8 @@
AUTOCHECKBOX "&Hold down Ctrl to speed up and Shift to slow
down",IDC_MOUSEKEYS_SPEED_CHECK,PROPSHEETPADDING(2),LABELLINE(16),PROPSHEETWIDTH-PROPSHEETPADDING(4),14
LTEXT "Use MouseKeys when NumLock
is:",-1,PROPSHEETPADDING(1),LABELLINE(18)+7,PROPSHEETPADDING(20),LABELLINE(1)
- AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
- AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
AUTOCHECKBOX "&Show MouseKey status on
screen",IDC_MOUSEKEYS_STATUS_CHECK,PROPSHEETPADDING(1),LABELLINE(20)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),14
Modified: trunk/reactos/dll/cpl/access/lang/ru-RU.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/ru-RU.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/ru-RU.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/ru-RU.rc Sun Aug 19 20:11:04 2007
@@ -183,8 +183,8 @@
AUTOCHECKBOX "&Hold down Ctrl to speed up and Shift to slow
down",IDC_MOUSEKEYS_SPEED_CHECK,PROPSHEETPADDING(2),LABELLINE(16),PROPSHEETWIDTH-PROPSHEETPADDING(4),14
LTEXT "Use MouseKeys when NumLock
is:",-1,PROPSHEETPADDING(1),LABELLINE(18)+7,PROPSHEETPADDING(20),LABELLINE(1)
- AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
- AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"O&n",IDC_MOUSEKEYS_ON_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(14),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
+ AUTORADIOBUTTON
"Of&f",IDC_MOUSEKEYS_OFF_RADIO,PROPSHEETWIDTH-PROPSHEETPADDING(8),LABELLINE(18)+7,PROPSHEETPADDING(5),LABELLINE(1)
AUTOCHECKBOX "&Show MouseKey status on
screen",IDC_MOUSEKEYS_STATUS_CHECK,PROPSHEETPADDING(1),LABELLINE(20)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),14
Modified: trunk/reactos/dll/cpl/access/mouse.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/mouse.c?rev…
==============================================================================
--- trunk/reactos/dll/cpl/access/mouse.c (original)
+++ trunk/reactos/dll/cpl/access/mouse.c Sun Aug 19 20:11:04 2007
@@ -1,13 +1,13 @@
/* $Id$
*
- * PROJECT: ReactOS System Control Panel
+ * PROJECT: ReactOS Accessibility Control Panel
* LICENSE: GPL - See COPYING in the top level directory
* FILE: dll/cpl/access/mouse.c
- * PURPOSE: Memory, start-up and profiles settings
+ * PURPOSE: Mouse-related accessibility settings
* COPYRIGHT: Copyright 2004 Johannes Anderwald (j_anderw(a)sbox.tugraz.at)
- * UPDATE HISTORY:
- * 03-04-2004 Created
+ * Copyright 2007 Eric Kohl
*/
+
#include <windows.h>
#include <stdlib.h>
#include <commctrl.h>
@@ -22,6 +22,12 @@
} GLOBAL_DATA, *PGLOBAL_DATA;
+#define SPEEDTICKS 9
+#define ACCELTICKS 9
+
+static INT nSpeedArray[SPEEDTICKS] = {10, 20, 30, 40, 60, 80, 120, 180, 360};
+
+
INT_PTR CALLBACK
MouseKeysDlgProc(HWND hwndDlg,
UINT uMsg,
@@ -29,6 +35,7 @@
LPARAM lParam)
{
PGLOBAL_DATA pGlobalData;
+ INT i;
pGlobalData = (PGLOBAL_DATA)GetWindowLongPtr(hwndDlg, DWLP_USER);
@@ -38,11 +45,93 @@
pGlobalData = (PGLOBAL_DATA)lParam;
SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)pGlobalData);
+ CheckDlgButton(hwndDlg,
+ IDC_MOUSEKEYS_ACTIVATE_CHECK,
+ pGlobalData->mouseKeys.dwFlags & MKF_HOTKEYACTIVE ?
BST_CHECKED : BST_UNCHECKED);
+
+ /* Set the number of ticks for the speed trackbar */
+ SendDlgItemMessage(hwndDlg, IDC_MOUSEKEYS_SPEED_TRACK, TBM_SETRANGE,
+ TRUE, MAKELONG(0, SPEEDTICKS - 1));
+
+ /* Calculate the matching tick */
+ for (i = 0; i < SPEEDTICKS; i++)
+ {
+ if (pGlobalData->mouseKeys.iMaxSpeed <= nSpeedArray[i])
+ break;
+ }
+
+ /* Set the thumb */
+ SendDlgItemMessage(hwndDlg, IDC_MOUSEKEYS_SPEED_TRACK, TBM_SETPOS, TRUE, i);
+
+ /* Set the number of ticks for the accelleration trackbar */
+ SendDlgItemMessage(hwndDlg, IDC_MOUSEKEYS_ACCEL_TRACK, TBM_SETRANGE,
+ TRUE, MAKELONG(0, ACCELTICKS - 1));
+
+ /* Calculate the matching tick */
+ i = (ACCELTICKS + 1) - pGlobalData->mouseKeys.iTimeToMaxSpeed / 500;
+ if (i > ACCELTICKS - 1)
+ i = ACCELTICKS - 1;
+
+ if (i < 0)
+ i = 0;
+
+ /* Set the thumb */
+ SendDlgItemMessage(hwndDlg, IDC_MOUSEKEYS_ACCEL_TRACK, TBM_SETPOS, TRUE, i);
+
+ CheckDlgButton(hwndDlg,
+ IDC_MOUSEKEYS_SPEED_CHECK,
+ pGlobalData->mouseKeys.dwFlags & MKF_MODIFIERS ?
BST_CHECKED : BST_UNCHECKED);
+
+ CheckRadioButton(hwndDlg,
+ IDC_MOUSEKEYS_ON_RADIO,
+ IDC_MOUSEKEYS_OFF_RADIO,
+ pGlobalData->mouseKeys.dwFlags & MKF_REPLACENUMBERS ?
IDC_MOUSEKEYS_ON_RADIO : IDC_MOUSEKEYS_OFF_RADIO);
+
+ CheckDlgButton(hwndDlg,
+ IDC_MOUSEKEYS_STATUS_CHECK,
+ pGlobalData->mouseKeys.dwFlags & MKF_INDICATOR ?
BST_CHECKED : BST_UNCHECKED);
+ break;
+
+ case WM_HSCROLL:
+ switch (GetWindowLong((HWND) lParam, GWL_ID))
+ {
+ case IDC_MOUSEKEYS_SPEED_TRACK:
+ i = SendDlgItemMessage(hwndDlg, IDC_MOUSEKEYS_SPEED_TRACK,
TBM_GETPOS, 0, 0);
+ if (i >= 0 && i < SPEEDTICKS)
+ pGlobalData->mouseKeys.iMaxSpeed = nSpeedArray[i];
+ break;
+
+ case IDC_MOUSEKEYS_ACCEL_TRACK:
+ i = SendDlgItemMessage(hwndDlg, IDC_MOUSEKEYS_ACCEL_TRACK,
TBM_GETPOS, 0, 0);
+ if (i >= 0 && i < ACCELTICKS)
+ pGlobalData->mouseKeys.iTimeToMaxSpeed = (ACCELTICKS + 1 - i)
* 500;
+ break;
+ }
break;
case WM_COMMAND:
switch (LOWORD(wParam))
{
+ case IDC_MOUSEKEYS_ACTIVATE_CHECK:
+ pGlobalData->mouseKeys.dwFlags ^= MKF_HOTKEYACTIVE;
+ break;
+
+ case IDC_MOUSEKEYS_SPEED_CHECK:
+ pGlobalData->mouseKeys.dwFlags ^= MKF_MODIFIERS;
+ break;
+
+ case IDC_MOUSEKEYS_ON_RADIO:
+ pGlobalData->mouseKeys.dwFlags |= MKF_REPLACENUMBERS;
+ break;
+
+ case IDC_MOUSEKEYS_OFF_RADIO:
+ pGlobalData->mouseKeys.dwFlags &= ~MKF_REPLACENUMBERS;
+ break;
+
+ case IDC_MOUSEKEYS_STATUS_CHECK:
+ pGlobalData->mouseKeys.dwFlags ^= MKF_INDICATOR;
+ break;
+
case IDOK:
EndDialog(hwndDlg, TRUE);
break;
Modified: trunk/reactos/dll/cpl/access/resource.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/resource.h?…
==============================================================================
--- trunk/reactos/dll/cpl/access/resource.h (original)
+++ trunk/reactos/dll/cpl/access/resource.h Sun Aug 19 20:11:04 2007
@@ -78,8 +78,8 @@
#define IDC_MOUSEKEYS_SPEED_TRACK 266
#define IDC_MOUSEKEYS_ACCEL_TRACK 267
#define IDC_MOUSEKEYS_SPEED_CHECK 268
-#define IDC_MOUSEKEYS_OFF_RADIO 269
-#define IDC_MOUSEKEYS_ON_RADIO 270
+#define IDC_MOUSEKEYS_ON_RADIO 269
+#define IDC_MOUSEKEYS_OFF_RADIO 270
#define IDC_MOUSEKEYS_STATUS_CHECK 271
#endif /* __CPL_RESOURCE_H */
Modified: trunk/reactos/dll/cpl/access/sound.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/sound.c?rev…
==============================================================================
--- trunk/reactos/dll/cpl/access/sound.c (original)
+++ trunk/reactos/dll/cpl/access/sound.c Sun Aug 19 20:11:04 2007
@@ -1,12 +1,13 @@
/* $Id$
*
- * PROJECT: ReactOS System Control Panel
+ * PROJECT: ReactOS Accessibility Control Panel
* LICENSE: GPL - See COPYING in the top level directory
* FILE: dll/cpl/access/sound.c
* PURPOSE: Sound-related acessibility settings
* COPYRIGHT: Copyright 2004 Johannes Anderwald (j_anderw(a)sbox.tugraz.at)
* Copyright 2007 Eric Kohl
*/
+
#include <windows.h>
#include <commctrl.h>
#include <prsht.h>