mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
Fix compilation errors due to wxAuiMDIChildFrame deriving from wxTDIChildFrame
This commit is contained in:
@@ -42,6 +42,7 @@ def run():
|
||||
|
||||
|
||||
c = module.find('wxAuiMDIChildFrame')
|
||||
c.bases = ['wxTDIChildFrame']
|
||||
tools.fixTopLevelWindowClass(c)
|
||||
tools.fixSetStatusWidths(c.find('SetStatusWidths'))
|
||||
c.find('SetMenuBar.menuBar').transfer = True
|
||||
|
||||
22
etg/mdi.py
22
etg/mdi.py
@@ -33,12 +33,30 @@ def run():
|
||||
# Tweak the parsed meta objects in the module object as needed for
|
||||
# customizing the generated code and docstrings.
|
||||
|
||||
# Let the generator know about these intermediate classes even though they
|
||||
# are undocumented. wxTDIChildFrame is used elsewhere in the class hiearchy
|
||||
# so it needs to be available.
|
||||
module.insertItemBefore(module.find('wxMDIClientWindow'), etgtools.WigCode("""\
|
||||
class wxMDIChildFrameBase : wxFrame
|
||||
{
|
||||
public:
|
||||
wxMDIChildFrameBase();
|
||||
virtual void Activate() = 0;
|
||||
wxMDIParentFrame *GetMDIParent() const;
|
||||
virtual bool IsTopLevel() const;
|
||||
};
|
||||
|
||||
class wxTDIChildFrame : wxMDIChildFrameBase /Abstract/
|
||||
{
|
||||
public:
|
||||
};
|
||||
"""))
|
||||
|
||||
c = module.find('wxMDIClientWindow')
|
||||
assert isinstance(c, etgtools.ClassDef)
|
||||
tools.fixWindowClass(c)
|
||||
c.find('CreateClient').isVirtual = True
|
||||
|
||||
|
||||
c = module.find('wxMDIParentFrame')
|
||||
tools.fixTopLevelWindowClass(c)
|
||||
c.find('OnCreateClient').isVirtual = True
|
||||
@@ -48,8 +66,8 @@ def run():
|
||||
m.type = 'wxMDIClientWindow *'
|
||||
m.setCppCode("return static_cast<wxMDIClientWindow*>(self->GetClientWindow());")
|
||||
|
||||
|
||||
c = module.find('wxMDIChildFrame')
|
||||
c.bases = ['wxMDIChildFrameBase']
|
||||
tools.fixTopLevelWindowClass(c)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user