wxBitmap MaxArtProvider::CreateBitmap(const wxArtID& id, const wxArtClient& client, const wxSize& size) { MaxBitmap * bitmap = _wx_wxartprovider_wxArtProvider__CreateBitmap(maxHandle, bbStringFromWxString(id), bbStringFromWxString(client), size.x, size.y); if (bitmap) { return bitmap->Bitmap(); } else { return wxNullBitmap; } }
BBString * bmx_wxgetsinglechoice(BBString * message, BBString * caption, BBArray * choices, wxWindow * parent, int x, int y, int centre, int width, int height) { if (parent) { return bbStringFromWxString(wxGetSingleChoice(wxStringFromBBString(message), wxStringFromBBString(caption), bbStringArrayTowxArrayStr(choices), parent, x, y, static_cast<bool>(centre), width, height)); } else { return bbStringFromWxString(wxGetSingleChoice(wxStringFromBBString(message), wxStringFromBBString(caption), bbStringArrayTowxArrayStr(choices), NULL, x, y, static_cast<bool>(centre), width, height)); } }
void MaxLogStream::DoLogString(const wxChar *szString, time_t t) { wxString str; TimeStamp(&str); str << szString; _wx_wxlog_wxLogStream__DoLogString(maxHandle, bbStringFromWxString(str)); }
BBString * bmx_wxdatetime_parsetime(MaxDateTime * datetime, BBString * time) { wxString::const_iterator end; wxString str = wxStringFromBBString(time); if (!datetime->DateTime().ParseTime(str, &end)) { return &bbEmptyString; } else if (end == str.end()) { return time; } else { return bbStringFromWxString(wxString(end, str.end())); } }
BBString * bmx_wxdatetime_parseformat(MaxDateTime * datetime, BBString * date, BBString * format, MaxDateTime * dateDef) { wxString::const_iterator end; wxString str = wxStringFromBBString(date); wxString c = wxDefaultDateTimeFormat; if (format!=&bbEmptyString) { c = wxStringFromBBString(format); } bool res; if (dateDef) { res = datetime->DateTime().ParseFormat(str, c, dateDef->DateTime(), &end); } else { res = datetime->DateTime().ParseFormat(str, c, wxDefaultDateTime, &end); } if (!res) { return &bbEmptyString; } else if (end == str.end()) { return date; } else { return bbStringFromWxString(wxString(end, str.end())); } }
BBString * bmx_wxwindow_gethelptextatpoint(wxWindow * window, int x, int y, wxHelpEvent::Origin origin) { return bbStringFromWxString(window->GetHelpTextAtPoint(wxPoint(x, y), origin)); }
BBString * bmx_wxwindow_getname(wxWindow * window) { return bbStringFromWxString(window->GetName()); }
BBString * bmx_wxwindow_gethelptext(wxWindow * window) { return bbStringFromWxString(window->GetHelpText()); }
BBString * bmx_wxwindow_getlabel(wxWindow * window) { return bbStringFromWxString(window->GetLabel()); }
BBString * bmx_wxfiletypeinfo_getshortdesc(MaxFileTypeInfo * info) { return bbStringFromWxString(info->FileTypeInfo().GetShortDesc()); }
BBString * bmx_wxwebviewevent_geturl(wxWebViewEvent & event) { return bbStringFromWxString(event.GetURL()); }
BBString * bmx_wxgenericdirctrl_getfilter(wxGenericDirCtrl * dir) { return bbStringFromWxString(dir->GetFilter()); }
BBString * bmx_wxwebview_getpagesource(wxWebView * view) { return bbStringFromWxString(view->GetPageSource()); }
BBString * bmx_wxbitmapcombobox_getstringselection(wxBitmapComboBox * combobox) { return bbStringFromWxString(((wxTextEntryBase*)(combobox))->GetStringSelection()); }
BBString * bmx_wxsinglechoicedialog_getstringselection(wxSingleChoiceDialog * dialog) { return bbStringFromWxString(dialog->GetStringSelection()); }
BBString * bmx_wxbitmapcombobox_getstring(wxBitmapComboBox * combobox, int item) { return bbStringFromWxString(combobox->GetString(item)); }
BBString * bmx_wxwebview_getcurrenttitle(wxWebView * view) { return bbStringFromWxString(view->GetCurrentTitle()); }
BBString * bmx_wxwebview_getpagetext(wxWebView * view) { return bbStringFromWxString(view->GetPageText()); }
BBString * bmx_wxbutton_getlabel(MaxButton * button) { return bbStringFromWxString(button->GetLabel()); }
BBString * bmx_wxfiletypeinfo_getmimetype(MaxFileTypeInfo * info) { return bbStringFromWxString(info->FileTypeInfo().GetMimeType()); }
BBString * bmx_wxhelpprovider_gethelp(wxHelpProvider * provider, wxWindow * window) { return bbStringFromWxString(provider->GetHelp(window)); }
BBString * bmx_wxwebview_getcurrenturl(wxWebView * view) { return bbStringFromWxString(view->GetCurrentURL()); }
BBString * bmx_wxgenericdirctrl_getpath(wxGenericDirCtrl * dir) { return bbStringFromWxString(dir->GetPath()); }
BBString * bmx_wxprintdata_getprintername(MaxPrintData * data) { return bbStringFromWxString(data->Data().GetPrinterName()); }
BBString * bmx_wxfiletypeinfo_geticonfile(MaxFileTypeInfo * info) { return bbStringFromWxString(info->FileTypeInfo().GetIconFile()); }
BBString * bmx_wxdataviewtreectrl_getitemtext(wxDataViewTreeCtrl * tree, MaxDataViewItem * item) { return bbStringFromWxString(tree->GetItemText(item->Item())); }
BBString * bmx_wxfiletypeinfo_getprintcommand(MaxFileTypeInfo * info) { return bbStringFromWxString(info->FileTypeInfo().GetPrintCommand()); }
BBString * bmx_wxtooltip_gettip(wxToolTip * tip) { return bbStringFromWxString(tip->GetTip()); }
BBString * bmx_wxfiletypeinfo_getdescription(MaxFileTypeInfo * info) { return bbStringFromWxString(info->FileTypeInfo().GetDescription()); }
BBString * bmx_wxupdateeventui_gettext(wxUpdateUIEvent & event) { return bbStringFromWxString(event.GetText()); }