diff --git a/etg/_html.py b/etg/_html.py index b95ad457..cf1fdd98 100644 --- a/etg/_html.py +++ b/etg/_html.py @@ -32,6 +32,12 @@ INCLUDES = [ 'htmlwin', 'htmlprint', #'htmlwinpars', + + 'helpctrl', + 'helpdata', + 'helpdlg', + 'helpfrm', + 'helpwnd', ] diff --git a/etg/helpctrl.py b/etg/helpctrl.py new file mode 100644 index 00000000..7aa0e200 --- /dev/null +++ b/etg/helpctrl.py @@ -0,0 +1,48 @@ +#--------------------------------------------------------------------------- +# Name: etg/helpctrl.py +# Author: Robin Dunn +# +# Created: 30-Oct-2012 +# Copyright: (c) 2012 by Total Control Software +# License: wxWindows License +#--------------------------------------------------------------------------- + +import etgtools +import etgtools.tweaker_tools as tools + +PACKAGE = "wx" +MODULE = "_html" +NAME = "helpctrl" # Base name of the file to generate to for this script +DOCSTRING = "" + +# The classes and/or the basename of the Doxygen XML files to be processed by +# this script. +ITEMS = [ "wxHtmlHelpController", + "wxHtmlModalHelp", + ] + +#--------------------------------------------------------------------------- + +def run(): + # Parse the XML file(s) building a collection of Extractor objects + module = etgtools.ModuleDef(PACKAGE, MODULE, NAME, DOCSTRING) + etgtools.parseDoxyXML(module, ITEMS) + + #----------------------------------------------------------------- + # Tweak the parsed meta objects in the module object as needed for + # customizing the generated code and docstrings. + + c = module.find('wxHtmlHelpController') + assert isinstance(c, etgtools.ClassDef) + c.addPrivateCopyCtor() + + + #----------------------------------------------------------------- + tools.doCommonTweaks(module) + tools.runGenerators(module) + + +#--------------------------------------------------------------------------- +if __name__ == '__main__': + run() + diff --git a/etg/helpdata.py b/etg/helpdata.py new file mode 100644 index 00000000..5df8fd3c --- /dev/null +++ b/etg/helpdata.py @@ -0,0 +1,58 @@ +#--------------------------------------------------------------------------- +# Name: etg/helpdata.py +# Author: Robin Dunn +# +# Created: 30-Oct-2012 +# Copyright: (c) 2012 by Total Control Software +# License: wxWindows License +#--------------------------------------------------------------------------- + +import etgtools +import etgtools.tweaker_tools as tools + +PACKAGE = "wx" +MODULE = "_html" +NAME = "helpdata" # Base name of the file to generate to for this script +DOCSTRING = "" + +# The classes and/or the basename of the Doxygen XML files to be processed by +# this script. +ITEMS = [ "wxHtmlBookRecord", + "wxHtmlHelpDataItem", + "wxHtmlHelpData", + ] + +#--------------------------------------------------------------------------- + +def run(): + # Parse the XML file(s) building a collection of Extractor objects + module = etgtools.ModuleDef(PACKAGE, MODULE, NAME, DOCSTRING) + etgtools.parseDoxyXML(module, ITEMS) + + #----------------------------------------------------------------- + # Tweak the parsed meta objects in the module object as needed for + # customizing the generated code and docstrings. + + + module.addItem( + tools.wxArrayWrapperTemplate('wxHtmlBookRecArray', 'wxHtmlBookRecord', module)) + + module.addItem( + tools.wxArrayWrapperTemplate('wxHtmlHelpDataItems', 'wxHtmlHelpDataItem', module)) + + + c = module.find('wxHtmlHelpData') + assert isinstance(c, etgtools.ClassDef) + c.addPrivateCopyCtor() + + + + #----------------------------------------------------------------- + tools.doCommonTweaks(module) + tools.runGenerators(module) + + +#--------------------------------------------------------------------------- +if __name__ == '__main__': + run() + diff --git a/etg/helpdlg.py b/etg/helpdlg.py new file mode 100644 index 00000000..21ea1f82 --- /dev/null +++ b/etg/helpdlg.py @@ -0,0 +1,47 @@ +#--------------------------------------------------------------------------- +# Name: etg/helpdlg.py +# Author: Robin Dunn +# +# Created: 30-Oct-2012 +# Copyright: (c) 2012 by Total Control Software +# License: wxWindows License +#--------------------------------------------------------------------------- + +import etgtools +import etgtools.tweaker_tools as tools + +PACKAGE = "wx" +MODULE = "_html" +NAME = "helpdlg" # Base name of the file to generate to for this script +DOCSTRING = "" + +# The classes and/or the basename of the Doxygen XML files to be processed by +# this script. +ITEMS = [ "wxHtmlHelpDialog", + ] + +#--------------------------------------------------------------------------- + +def run(): + # Parse the XML file(s) building a collection of Extractor objects + module = etgtools.ModuleDef(PACKAGE, MODULE, NAME, DOCSTRING) + etgtools.parseDoxyXML(module, ITEMS) + + #----------------------------------------------------------------- + # Tweak the parsed meta objects in the module object as needed for + # customizing the generated code and docstrings. + + c = module.find('wxHtmlHelpDialog') + assert isinstance(c, etgtools.ClassDef) + tools.fixTopLevelWindowClass(c) + + + #----------------------------------------------------------------- + tools.doCommonTweaks(module) + tools.runGenerators(module) + + +#--------------------------------------------------------------------------- +if __name__ == '__main__': + run() + diff --git a/etg/helpfrm.py b/etg/helpfrm.py new file mode 100644 index 00000000..71624efd --- /dev/null +++ b/etg/helpfrm.py @@ -0,0 +1,49 @@ +#--------------------------------------------------------------------------- +# Name: etg/helpfrm.py +# Author: Robin Dunn +# +# Created: 30-Oct-2012 +# Copyright: (c) 2012 by Total Control Software +# License: wxWindows License +#--------------------------------------------------------------------------- + +import etgtools +import etgtools.tweaker_tools as tools + +PACKAGE = "wx" +MODULE = "_html" +NAME = "helpfrm" # Base name of the file to generate to for this script +DOCSTRING = "" + +# The classes and/or the basename of the Doxygen XML files to be processed by +# this script. +ITEMS = [ "wxHtmlHelpFrame", + + ] + +#--------------------------------------------------------------------------- + +def run(): + # Parse the XML file(s) building a collection of Extractor objects + module = etgtools.ModuleDef(PACKAGE, MODULE, NAME, DOCSTRING) + etgtools.parseDoxyXML(module, ITEMS) + + #----------------------------------------------------------------- + # Tweak the parsed meta objects in the module object as needed for + # customizing the generated code and docstrings. + + c = module.find('wxHtmlHelpFrame') + assert isinstance(c, etgtools.ClassDef) + tools.fixTopLevelWindowClass(c) + + + + #----------------------------------------------------------------- + tools.doCommonTweaks(module) + tools.runGenerators(module) + + +#--------------------------------------------------------------------------- +if __name__ == '__main__': + run() + diff --git a/etg/helpwnd.py b/etg/helpwnd.py new file mode 100644 index 00000000..dbedaf75 --- /dev/null +++ b/etg/helpwnd.py @@ -0,0 +1,48 @@ +#--------------------------------------------------------------------------- +# Name: etg/helpwnd.py +# Author: Robin Dunn +# +# Created: 30-Oct-2012 +# Copyright: (c) 2012 by Total Control Software +# License: wxWindows License +#--------------------------------------------------------------------------- + +import etgtools +import etgtools.tweaker_tools as tools + +PACKAGE = "wx" +MODULE = "_html" +NAME = "helpwnd" # Base name of the file to generate to for this script +DOCSTRING = "" + +# The classes and/or the basename of the Doxygen XML files to be processed by +# this script. +ITEMS = [ "wxHtmlHelpWindow", + + ] + +#--------------------------------------------------------------------------- + +def run(): + # Parse the XML file(s) building a collection of Extractor objects + module = etgtools.ModuleDef(PACKAGE, MODULE, NAME, DOCSTRING) + etgtools.parseDoxyXML(module, ITEMS) + + #----------------------------------------------------------------- + # Tweak the parsed meta objects in the module object as needed for + # customizing the generated code and docstrings. + + c = module.find('wxHtmlHelpWindow') + assert isinstance(c, etgtools.ClassDef) + tools.fixWindowClass(c) + + + #----------------------------------------------------------------- + tools.doCommonTweaks(module) + tools.runGenerators(module) + + +#--------------------------------------------------------------------------- +if __name__ == '__main__': + run() + diff --git a/unittests/test_helpctrl.py b/unittests/test_helpctrl.py new file mode 100644 index 00000000..570430a1 --- /dev/null +++ b/unittests/test_helpctrl.py @@ -0,0 +1,16 @@ +import imp_unittest, unittest +import wtc +import wx + +#--------------------------------------------------------------------------- + +class helpctrl_Tests(wtc.WidgetTestCase): + + # TODO: Remove this test and add real ones. + def test_helpctrl1(self): + self.fail("Unit tests for helpctrl not implemented yet.") + +#--------------------------------------------------------------------------- + +if __name__ == '__main__': + unittest.main() diff --git a/unittests/test_helpdata.py b/unittests/test_helpdata.py new file mode 100644 index 00000000..85360f62 --- /dev/null +++ b/unittests/test_helpdata.py @@ -0,0 +1,16 @@ +import imp_unittest, unittest +import wtc +import wx + +#--------------------------------------------------------------------------- + +class helpdata_Tests(wtc.WidgetTestCase): + + # TODO: Remove this test and add real ones. + def test_helpdata1(self): + self.fail("Unit tests for helpdata not implemented yet.") + +#--------------------------------------------------------------------------- + +if __name__ == '__main__': + unittest.main() diff --git a/unittests/test_helpdlg.py b/unittests/test_helpdlg.py new file mode 100644 index 00000000..c9d7bb26 --- /dev/null +++ b/unittests/test_helpdlg.py @@ -0,0 +1,16 @@ +import imp_unittest, unittest +import wtc +import wx + +#--------------------------------------------------------------------------- + +class helpdlg_Tests(wtc.WidgetTestCase): + + # TODO: Remove this test and add real ones. + def test_helpdlg1(self): + self.fail("Unit tests for helpdlg not implemented yet.") + +#--------------------------------------------------------------------------- + +if __name__ == '__main__': + unittest.main() diff --git a/unittests/test_helpfrm.py b/unittests/test_helpfrm.py new file mode 100644 index 00000000..80ad1c58 --- /dev/null +++ b/unittests/test_helpfrm.py @@ -0,0 +1,16 @@ +import imp_unittest, unittest +import wtc +import wx + +#--------------------------------------------------------------------------- + +class helpfrm_Tests(wtc.WidgetTestCase): + + # TODO: Remove this test and add real ones. + def test_helpfrm1(self): + self.fail("Unit tests for helpfrm not implemented yet.") + +#--------------------------------------------------------------------------- + +if __name__ == '__main__': + unittest.main() diff --git a/unittests/test_helpwnd.py b/unittests/test_helpwnd.py new file mode 100644 index 00000000..729d5040 --- /dev/null +++ b/unittests/test_helpwnd.py @@ -0,0 +1,16 @@ +import imp_unittest, unittest +import wtc +import wx + +#--------------------------------------------------------------------------- + +class helpwnd_Tests(wtc.WidgetTestCase): + + # TODO: Remove this test and add real ones. + def test_helpwnd1(self): + self.fail("Unit tests for helpwnd not implemented yet.") + +#--------------------------------------------------------------------------- + +if __name__ == '__main__': + unittest.main()