Move dataformat to dataobj

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2011-09-17 19:06:27 +00:00
parent 6b9f5b8d91
commit 4e07201394
2 changed files with 11 additions and 4 deletions

View File

@@ -113,7 +113,7 @@ INCLUDES = [ 'defs',
'listbox',
'gauge',
'headercol',
'dataformat',
'dataobj',
'filedlg',
'dirdlg',
'config',

View File

@@ -1,5 +1,5 @@
#---------------------------------------------------------------------------
# Name: etg/choice.py
# Name: etg/dataobj.py
# Author: Kevin Ollivier
#
# Created: 10-Sept-2011
@@ -12,12 +12,14 @@ import etgtools.tweaker_tools as tools
PACKAGE = "wx"
MODULE = "_core"
NAME = "dataformat" # Base name of the file to generate to for this script
NAME = "dataobj" # 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 = [ 'wxDataFormat' ]
ITEMS = [ 'wxDataFormat',
# TODO: specify the rest of the classes in dataobj.h here
]
#---------------------------------------------------------------------------
@@ -30,6 +32,11 @@ def run():
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
c = module.find('wxDataFormat')
assert isinstance(c, etgtools.ClassDef)
c.find('GetType').setCppCode("sipRes = static_cast<wxDataFormatId>(sipCpp->GetType());")
#-----------------------------------------------------------------
tools.doCommonTweaks(module)
tools.addGetterSetterProps(module)