diff options
Diffstat (limited to 'lib/wx/c_src/gen/wxe_funcs.cpp')
-rw-r--r-- | lib/wx/c_src/gen/wxe_funcs.cpp | 191 |
1 files changed, 177 insertions, 14 deletions
diff --git a/lib/wx/c_src/gen/wxe_funcs.cpp b/lib/wx/c_src/gen/wxe_funcs.cpp index 479d7679a4..afef2990b4 100644 --- a/lib/wx/c_src/gen/wxe_funcs.cpp +++ b/lib/wx/c_src/gen/wxe_funcs.cpp @@ -1,7 +1,7 @@ /* * %CopyrightBegin% * - * Copyright Ericsson AB 2008-2010. All Rights Reserved. + * Copyright Ericsson AB 2008-2011. All Rights Reserved. * * The contents of this file are subject to the Erlang Public License, * Version 1.1, (the "License"); you may not use this file except in @@ -4486,7 +4486,7 @@ case wxGridCellBoolEditor_IsTrueValue: { // wxGridCellBoolEditor::IsTrueValue break; } case wxGridCellBoolEditor_UseStringValues: { // wxGridCellBoolEditor::UseStringValues - wxString valueTrue= _T("1"); + wxString valueTrue= wxT("1"); wxString valueFalse= wxEmptyString; while( * (int*) bp) { switch (* (int*) bp) { case 1: {bp += 4; @@ -15143,12 +15143,14 @@ case wxListBox_SetFirstItem_1_1: { // wxListBox::SetFirstItem This->SetFirstItem(s); break; } + case wxListCtrl_new_0: { // wxListCtrl::wxListCtrl wxListCtrl * Result = new EwxListCtrl(); newPtr((void *) Result, 0, memenv); rt.addRef(getRef((void *)Result,memenv), "wxListCtrl"); break; } + case wxListCtrl_new_2: { // wxListCtrl::wxListCtrl wxWindowID winid=wxID_ANY; wxPoint pos= wxDefaultPosition; @@ -15156,6 +15158,8 @@ case wxListCtrl_new_2: { // wxListCtrl::wxListCtrl long style=wxLC_ICON; const wxValidator * validator= &wxDefaultValidator; wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4; + int onGetItemText = 0, onGetItemAttr = 0, onGetItemColumnImage = 0; + bp += 4; /* Align */ while( * (int*) bp) { switch (* (int*) bp) { case 1: {bp += 4; @@ -15179,8 +15183,21 @@ case wxListCtrl_new_2: { // wxListCtrl::wxListCtrl case 5: {bp += 4; validator = (wxValidator *) getPtr(bp,memenv); bp += 4; } break; + case 6: {bp += 4; + onGetItemText = *(int *) bp; bp += 4; + } break; + case 7: {bp += 4; + onGetItemAttr = *(int *) bp; bp += 4; + } break; + case 8: {bp += 4; + onGetItemColumnImage = *(int *) bp; bp += 4; + } break; }}; - wxListCtrl * Result = new EwxListCtrl(parent,winid,pos,size,style,*validator); + EwxListCtrl * Result = new EwxListCtrl(parent,winid,pos,size,style,*validator); + Result->onGetItemText = onGetItemText; + Result->onGetItemAttr = onGetItemAttr; + Result->onGetItemColumnImage = onGetItemColumnImage; + Result->port = Ecmd.port; newPtr((void *) Result, 0, memenv); rt.addRef(getRef((void *)Result,memenv), "wxListCtrl"); break; @@ -15213,14 +15230,18 @@ case wxListCtrl_ClearAll: { // wxListCtrl::ClearAll This->ClearAll(); break; } + case wxListCtrl_Create: { // wxListCtrl::Create wxWindowID winid=wxID_ANY; wxPoint pos= wxDefaultPosition; wxSize size= wxDefaultSize; long style=wxLC_ICON; const wxValidator * validator= &wxDefaultValidator; - wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4; + EwxListCtrl *This = (EwxListCtrl *) getPtr(bp,memenv); bp += 4; wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4; + int onGetItemText = 0, onGetItemAttr = 0, onGetItemColumnImage = 0; + + bp += 4; /* Align */ while( * (int*) bp) { switch (* (int*) bp) { case 1: {bp += 4; winid = (wxWindowID)*(int *) bp; bp += 4; @@ -15243,9 +15264,23 @@ case wxListCtrl_Create: { // wxListCtrl::Create case 5: {bp += 4; validator = (wxValidator *) getPtr(bp,memenv); bp += 4; } break; + case 6: {bp += 4; + onGetItemText = *(int *) bp; bp += 4; + } break; + case 7: {bp += 4; + onGetItemAttr = *(int *) bp; bp += 4; + } break; + case 8: {bp += 4; + onGetItemColumnImage = *(int *) bp; bp += 4; + } break; }}; if(!This) throw wxe_badarg(0); bool Result = This->Create(parent,winid,pos,size,style,*validator); + This->onGetItemText = onGetItemText; + This->onGetItemAttr = onGetItemAttr; + This->onGetItemColumnImage = onGetItemColumnImage; + This->port = Ecmd.port; + rt.addBool(Result); break; } @@ -16095,6 +16130,106 @@ case wxListItem_SetWidth: { // wxListItem::SetWidth This->SetWidth((int) *width); break; } +case wxListItemAttr_new_0: { // wxListItemAttr::wxListItemAttr + wxListItemAttr * Result = new wxListItemAttr(); + newPtr((void *) Result, 101, memenv); + rt.addRef(getRef((void *)Result,memenv), "wxListItemAttr"); + break; +} +case wxListItemAttr_new_3: { // wxListItemAttr::wxListItemAttr + int * colTextR = (int *) bp; bp += 4; + int * colTextG = (int *) bp; bp += 4; + int * colTextB = (int *) bp; bp += 4; + int * colTextA = (int *) bp; bp += 4; + wxColour colText = wxColour(*colTextR,*colTextG,*colTextB,*colTextA); + int * colBackR = (int *) bp; bp += 4; + int * colBackG = (int *) bp; bp += 4; + int * colBackB = (int *) bp; bp += 4; + int * colBackA = (int *) bp; bp += 4; + wxColour colBack = wxColour(*colBackR,*colBackG,*colBackB,*colBackA); + wxFont *font = (wxFont *) getPtr(bp,memenv); bp += 4; + wxListItemAttr * Result = new wxListItemAttr(colText,colBack,*font); + newPtr((void *) Result, 101, memenv); + rt.addRef(getRef((void *)Result,memenv), "wxListItemAttr"); + break; +} +case wxListItemAttr_GetBackgroundColour: { // wxListItemAttr::GetBackgroundColour + wxListItemAttr *This = (wxListItemAttr *) getPtr(bp,memenv); bp += 4; + if(!This) throw wxe_badarg(0); + const wxColour * Result = &This->GetBackgroundColour(); + rt.add((*Result)); + break; +} +case wxListItemAttr_GetFont: { // wxListItemAttr::GetFont + wxListItemAttr *This = (wxListItemAttr *) getPtr(bp,memenv); bp += 4; + if(!This) throw wxe_badarg(0); + const wxFont * Result = &This->GetFont(); + rt.addRef(getRef((void *)Result,memenv), "wxFont"); + break; +} +case wxListItemAttr_GetTextColour: { // wxListItemAttr::GetTextColour + wxListItemAttr *This = (wxListItemAttr *) getPtr(bp,memenv); bp += 4; + if(!This) throw wxe_badarg(0); + const wxColour * Result = &This->GetTextColour(); + rt.add((*Result)); + break; +} +case wxListItemAttr_HasBackgroundColour: { // wxListItemAttr::HasBackgroundColour + wxListItemAttr *This = (wxListItemAttr *) getPtr(bp,memenv); bp += 4; + if(!This) throw wxe_badarg(0); + bool Result = This->HasBackgroundColour(); + rt.addBool(Result); + break; +} +case wxListItemAttr_HasFont: { // wxListItemAttr::HasFont + wxListItemAttr *This = (wxListItemAttr *) getPtr(bp,memenv); bp += 4; + if(!This) throw wxe_badarg(0); + bool Result = This->HasFont(); + rt.addBool(Result); + break; +} +case wxListItemAttr_HasTextColour: { // wxListItemAttr::HasTextColour + wxListItemAttr *This = (wxListItemAttr *) getPtr(bp,memenv); bp += 4; + if(!This) throw wxe_badarg(0); + bool Result = This->HasTextColour(); + rt.addBool(Result); + break; +} +case wxListItemAttr_SetBackgroundColour: { // wxListItemAttr::SetBackgroundColour + wxListItemAttr *This = (wxListItemAttr *) getPtr(bp,memenv); bp += 4; + int * colBackR = (int *) bp; bp += 4; + int * colBackG = (int *) bp; bp += 4; + int * colBackB = (int *) bp; bp += 4; + int * colBackA = (int *) bp; bp += 4; + wxColour colBack = wxColour(*colBackR,*colBackG,*colBackB,*colBackA); + if(!This) throw wxe_badarg(0); + This->SetBackgroundColour(colBack); + break; +} +case wxListItemAttr_SetFont: { // wxListItemAttr::SetFont + wxListItemAttr *This = (wxListItemAttr *) getPtr(bp,memenv); bp += 4; + wxFont *font = (wxFont *) getPtr(bp,memenv); bp += 4; + if(!This) throw wxe_badarg(0); + This->SetFont(*font); + break; +} +case wxListItemAttr_SetTextColour: { // wxListItemAttr::SetTextColour + wxListItemAttr *This = (wxListItemAttr *) getPtr(bp,memenv); bp += 4; + int * colTextR = (int *) bp; bp += 4; + int * colTextG = (int *) bp; bp += 4; + int * colTextB = (int *) bp; bp += 4; + int * colTextA = (int *) bp; bp += 4; + wxColour colText = wxColour(*colTextR,*colTextG,*colTextB,*colTextA); + if(!This) throw wxe_badarg(0); + This->SetTextColour(colText); + break; +} +case wxListItemAttr_destroy: { // wxListItemAttr::destroy + wxListItemAttr *This = (wxListItemAttr *) getPtr(bp,memenv); bp += 4; + if(This) { ((WxeApp *) wxTheApp)->clearPtr((void *) This); + delete This;} + break; +} case wxImageList_new_0: { // wxImageList::wxImageList wxImageList * Result = new EwxImageList(); newPtr((void *) Result, 1, memenv); @@ -16263,7 +16398,7 @@ case wxImageList_Replace_3: { // wxImageList::Replace } case wxTextAttr_new_0: { // wxTextAttr::wxTextAttr wxTextAttr * Result = new wxTextAttr(); - newPtr((void *) Result, 102, memenv); + newPtr((void *) Result, 103, memenv); rt.addRef(getRef((void *)Result,memenv), "wxTextAttr"); break; } @@ -16293,7 +16428,7 @@ alignment = *(wxTextAttrAlignment *) bp; bp += 4;; } break; }}; wxTextAttr * Result = new wxTextAttr(colText,colBack,*font,(wxTextAttrAlignment) alignment); - newPtr((void *) Result, 102, memenv); + newPtr((void *) Result, 103, memenv); rt.addRef(getRef((void *)Result,memenv), "wxTextAttr"); break; } @@ -22711,7 +22846,7 @@ case wxPreviewFrame_new: { // wxPreviewFrame::wxPreviewFrame wxString title= wxT("Print Preview"); wxPoint pos= wxDefaultPosition; wxSize size= wxDefaultSize; - long style=wxDEFAULT_FRAME_STYLE; + long style=wxDEFAULT_FRAME_STYLE|wxFRAME_FLOAT_ON_PARENT; wxPrintPreview *preview = (wxPrintPreview *) getPtr(bp,memenv); bp += 4; wxWindow *parent = (wxWindow *) getPtr(bp,memenv); bp += 4; while( * (int*) bp) { switch (* (int*) bp) { @@ -23742,14 +23877,14 @@ case wxAuiManager_Update: { // wxAuiManager::Update #if wxUSE_AUI case wxAuiPaneInfo_new_0: { // wxAuiPaneInfo::wxAuiPaneInfo wxAuiPaneInfo * Result = new wxAuiPaneInfo(); - newPtr((void *) Result, 154, memenv); + newPtr((void *) Result, 155, memenv); rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo"); break; } case wxAuiPaneInfo_new_1: { // wxAuiPaneInfo::wxAuiPaneInfo wxAuiPaneInfo *c = (wxAuiPaneInfo *) getPtr(bp,memenv); bp += 4; wxAuiPaneInfo * Result = new wxAuiPaneInfo(*c); - newPtr((void *) Result, 154, memenv); + newPtr((void *) Result, 155, memenv); rt.addRef(getRef((void *)Result,memenv), "wxAuiPaneInfo"); break; } @@ -30292,7 +30427,7 @@ case wxNotebookEvent_SetSelection: { // wxNotebookEvent::SetSelection } case wxFileDataObject_new: { // wxFileDataObject::wxFileDataObject wxFileDataObject * Result = new wxFileDataObject(); - newPtr((void *) Result, 211, memenv); + newPtr((void *) Result, 212, memenv); rt.addRef(getRef((void *)Result,memenv), "wxFileDataObject"); break; } @@ -30328,7 +30463,7 @@ case wxTextDataObject_new: { // wxTextDataObject::wxTextDataObject } break; }}; wxTextDataObject * Result = new wxTextDataObject(text); - newPtr((void *) Result, 212, memenv); + newPtr((void *) Result, 213, memenv); rt.addRef(getRef((void *)Result,memenv), "wxTextDataObject"); break; } @@ -30364,7 +30499,7 @@ case wxTextDataObject_destroy: { // wxTextDataObject::destroy case wxBitmapDataObject_new_1_1: { // wxBitmapDataObject::wxBitmapDataObject wxBitmap *bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4; wxBitmapDataObject * Result = new wxBitmapDataObject(*bitmap); - newPtr((void *) Result, 213, memenv); + newPtr((void *) Result, 214, memenv); rt.addRef(getRef((void *)Result,memenv), "wxBitmapDataObject"); break; } @@ -30376,7 +30511,7 @@ bitmap = (wxBitmap *) getPtr(bp,memenv); bp += 4; } break; }}; wxBitmapDataObject * Result = new wxBitmapDataObject(*bitmap); - newPtr((void *) Result, 213, memenv); + newPtr((void *) Result, 214, memenv); rt.addRef(getRef((void *)Result,memenv), "wxBitmapDataObject"); break; } @@ -31159,7 +31294,7 @@ case wxAuiManagerEvent_CanVeto: { // wxAuiManagerEvent::CanVeto } case wxLogNull_new: { // wxLogNull::wxLogNull wxLogNull * Result = new wxLogNull(); - newPtr((void *) Result, 223, memenv); + newPtr((void *) Result, 224, memenv); rt.addRef(getRef((void *)Result,memenv), "wxLogNull"); break; } @@ -31188,3 +31323,31 @@ case wxLogNull_destroy: { // wxLogNull::destroy error.addTupleCount(3); error.send(); }} /* The End */ + + +void WxeApp::delete_object(void *ptr, wxeRefData *refd) { + switch(refd->type) { + case 24: delete (wxGridCellBoolRenderer *) ptr; break; + case 25: delete (wxGridCellBoolEditor *) ptr; break; + case 26: delete (wxGridCellFloatRenderer *) ptr; break; + case 27: delete (wxGridCellFloatEditor *) ptr; break; + case 28: delete (wxGridCellStringRenderer *) ptr; break; + case 29: delete (wxGridCellTextEditor *) ptr; break; + case 30: delete (wxGridCellChoiceEditor *) ptr; break; + case 31: delete (wxGridCellNumberRenderer *) ptr; break; + case 32: delete (wxGridCellNumberEditor *) ptr; break; + case 61: delete (wxIconBundle *) ptr; break; + case 69: delete (wxAcceleratorEntry *) ptr; break; + case 70: /* delete (wxCaret *) ptr;These objects must be deleted by owner object */ break; + case 72: delete (wxSizerFlags *) ptr; break; + case 88: /* delete (wxCalendarDateAttr *) ptr;These objects must be deleted by owner object */ break; + case 101: delete (wxListItemAttr *) ptr; break; + case 103: delete (wxTextAttr *) ptr; break; + case 155: delete (wxAuiPaneInfo *) ptr; break; + case 212: /* delete (wxFileDataObject *) ptr;These objects must be deleted by owner object */ break; + case 213: /* delete (wxTextDataObject *) ptr;These objects must be deleted by owner object */ break; + case 214: /* delete (wxBitmapDataObject *) ptr;These objects must be deleted by owner object */ break; + case 224: delete (wxLogNull *) ptr; break; + default: delete (wxObject *) ptr; +}} + |