[ros-diffs] [mpiulachs] 33539: - Add specific properties to the keyboardlayout module type. They will assist us on autogenerating/updating the [keyboardLayout] & [Files.KeyboardLayout] from txtsetup and registry information automatically in the near future note: All rbuild files in reactos\dll\keyboard must be updated to contain the follwing information: <module name="kbdusl" type="keyboardlayout" (...) description="US Dvorak for left hand" lcid="00030409" layoutId="001A" layoutnameresid="5027" >

mpiulachs at svn.reactos.org mpiulachs at svn.reactos.org
Fri May 16 00:38:18 CEST 2008


Author: mpiulachs
Date: Thu May 15 17:38:18 2008
New Revision: 33539

URL: http://svn.reactos.org/svn/reactos?rev=33539&view=rev
Log:
- Add specific properties to the keyboardlayout module type. They will assist us on autogenerating/updating the [keyboardLayout] & [Files.KeyboardLayout] from txtsetup and registry information automatically in the near future
note: All rbuild files in reactos\dll\keyboard must be updated to contain the follwing information:

<module name="kbdusl" type="keyboardlayout" (...) description="US Dvorak for left hand" lcid="00030409" layoutId="001A" layoutnameresid="5027" >

Modified:
    trunk/reactos/tools/rbuild/module.cpp
    trunk/reactos/tools/rbuild/rbuild.h

Modified: trunk/reactos/tools/rbuild/module.cpp
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/module.cpp?rev=33539&r1=33538&r2=33539&view=diff
==============================================================================
--- trunk/reactos/tools/rbuild/module.cpp [iso-8859-1] (original)
+++ trunk/reactos/tools/rbuild/module.cpp [iso-8859-1] Thu May 15 17:38:18 2008
@@ -479,6 +479,18 @@
 		lcid = att->value;
 	else
 		lcid = "";
+
+	att = moduleNode.GetAttribute ( "layoutid", false );
+	if (type == KeyboardLayout && att != NULL )
+		layoutId = att->value;
+	else
+		layoutId = "";
+
+	att = moduleNode.GetAttribute ( "layoutnameresid", false );
+	if (type == KeyboardLayout && att != NULL )
+		layoutNameResId = att->value;
+	else
+		layoutNameResId = "";
 
 	SetImportLibrary ( NULL );
 }

Modified: trunk/reactos/tools/rbuild/rbuild.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/rbuild.h?rev=33539&r1=33538&r2=33539&view=diff
==============================================================================
--- trunk/reactos/tools/rbuild/rbuild.h [iso-8859-1] (original)
+++ trunk/reactos/tools/rbuild/rbuild.h [iso-8859-1] Thu May 15 17:38:18 2008
@@ -378,6 +378,8 @@
 	FileLocation *install;
 	std::string description;
 	std::string lcid;
+	std::string layoutId;
+	std::string layoutNameResId;
 
 	Module ( const Project& project,
 	         const XMLElement& moduleNode,



More information about the Ros-diffs mailing list