mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 20:40:11 +01:00
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:
@@ -113,7 +113,7 @@ INCLUDES = [ 'defs',
|
||||
'listbox',
|
||||
'gauge',
|
||||
'headercol',
|
||||
'dataformat',
|
||||
'dataobj',
|
||||
'filedlg',
|
||||
'dirdlg',
|
||||
'config',
|
||||
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user