- Add specific properties to the keyboardlayout module type. They will assist us...
authorMarc Piulachs <marc.piulachs@live.com>
Thu, 15 May 2008 22:38:18 +0000 (22:38 +0000)
committerMarc Piulachs <marc.piulachs@live.com>
Thu, 15 May 2008 22:38:18 +0000 (22:38 +0000)
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" >

svn path=/trunk/; revision=33539

reactos/tools/rbuild/module.cpp
reactos/tools/rbuild/rbuild.h

index 8943944..b2b4958 100644 (file)
@@ -480,6 +480,18 @@ Module::Module ( const Project& project,
        else
                lcid = "";
 
        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 );
 }
 
        SetImportLibrary ( NULL );
 }
 
index 3375fbc..cac006b 100644 (file)
@@ -378,6 +378,8 @@ public:
        FileLocation *install;
        std::string description;
        std::string lcid;
        FileLocation *install;
        std::string description;
        std::string lcid;
+       std::string layoutId;
+       std::string layoutNameResId;
 
        Module ( const Project& project,
                 const XMLElement& moduleNode,
 
        Module ( const Project& project,
                 const XMLElement& moduleNode,