From c332fbcf038001ec42de272002fa8617b58a1239 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 10 Oct 2018 10:38:03 -0700 Subject: [PATCH] Mark output parameters --- docs/sphinx/itemToModuleMap.json | 1 + etg/access.py | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/sphinx/itemToModuleMap.json b/docs/sphinx/itemToModuleMap.json index 81daad4c..8698f4b4 100644 --- a/docs/sphinx/itemToModuleMap.json +++ b/docs/sphinx/itemToModuleMap.json @@ -52,6 +52,7 @@ "ACC_NOT_IMPLEMENTED":"wx.", "ACC_NOT_SUPPORTED":"wx.", "ACC_OK":"wx.", +"ACC_SELF":"wx.", "ACC_SEL_ADDSELECTION":"wx.", "ACC_SEL_EXTENDSELECTION":"wx.", "ACC_SEL_NONE":"wx.", diff --git a/etg/access.py b/etg/access.py index cdb66c38..a59457f9 100644 --- a/etg/access.py +++ b/etg/access.py @@ -31,7 +31,7 @@ def run(): # Tweak the parsed meta objects in the module object as needed for # customizing the generated code and docstrings. - #module.addHeaderCode('#include ') + module.addHeaderCode('#include ') tools.generateStubs('wxUSE_ACCESSIBILITY', module, typeValMap={'wxAccStatus':'wxACC_NOT_IMPLEMENTED'}) @@ -39,6 +39,22 @@ def run(): c = module.find('wxAccessible') assert isinstance(c, etgtools.ClassDef) + c.find('GetChild.child').out = True + c.find('GetChildCount.childCount').out = True + c.find('GetDefaultAction.actionName').out = True + c.find('GetDescription.description').out = True + c.find('GetFocus.child').out = True + c.find('GetHelpText.helpText').out = True + c.find('GetKeyboardShortcut.shortcut').out = True + c.find('GetName.name').out = True + c.find('GetParent.parent').out = True + c.find('GetRole.role').out = True + c.find('GetSelections.selections').out = True + c.find('GetState.state').out = True + c.find('GetValue.strValue').out = True + + #TODO: double-check this one + c.find('GetLocation.rect').out = True #----------------------------------------------------------------- tools.doCommonTweaks(module)