Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added fields

  • Loading branch information...
commit c3304d56f32c3fea83e1889abafabaedc49bd044 1 parent be55ba8
Joe Ferner authored
Showing with 573 additions and 22 deletions.
  1. +3 −3 examples/webview.js
  2. +2 −0  lib/index.js
  3. +27 −0 render-templates.js
  4. +0 −15 src-dummy/wxNode_wxWebViewHistoryItem.h
  5. +3 −0  src-generated/wxNode_wxAnyButton.cpp
  6. +1 −0  src-generated/wxNode_wxAnyButton.h
  7. +3 −0  src-generated/wxNode_wxArtProvider.cpp
  8. +1 −0  src-generated/wxNode_wxArtProvider.h
  9. +3 −0  src-generated/wxNode_wxBitmap.cpp
  10. +1 −0  src-generated/wxNode_wxBitmap.h
  11. +3 −0  src-generated/wxNode_wxBookCtrlBase.cpp
  12. +1 −0  src-generated/wxNode_wxBookCtrlBase.h
  13. +3 −0  src-generated/wxNode_wxBoxSizer.cpp
  14. +1 −0  src-generated/wxNode_wxBoxSizer.h
  15. +3 −0  src-generated/wxNode_wxButton.cpp
  16. +1 −0  src-generated/wxNode_wxButton.h
  17. +3 −0  src-generated/wxNode_wxCommandEvent.cpp
  18. +1 −0  src-generated/wxNode_wxCommandEvent.h
  19. +3 −0  src-generated/wxNode_wxControl.cpp
  20. +1 −0  src-generated/wxNode_wxControl.h
  21. +3 −0  src-generated/wxNode_wxControlWithItems.cpp
  22. +1 −0  src-generated/wxNode_wxControlWithItems.h
  23. +3 −0  src-generated/wxNode_wxCursor.cpp
  24. +1 −0  src-generated/wxNode_wxCursor.h
  25. +3 −0  src-generated/wxNode_wxDialog.cpp
  26. +1 −0  src-generated/wxNode_wxDialog.h
  27. +3 −0  src-generated/wxNode_wxEvent.cpp
  28. +1 −0  src-generated/wxNode_wxEvent.h
  29. +3 −0  src-generated/wxNode_wxFrame.cpp
  30. +1 −0  src-generated/wxNode_wxFrame.h
  31. +3 −0  src-generated/wxNode_wxIcon.cpp
  32. +1 −0  src-generated/wxNode_wxIcon.h
  33. +3 −0  src-generated/wxNode_wxInfoBar.cpp
  34. +1 −0  src-generated/wxNode_wxInfoBar.h
  35. +3 −0  src-generated/wxNode_wxItemContainer.cpp
  36. +1 −0  src-generated/wxNode_wxItemContainer.h
  37. +3 −0  src-generated/wxNode_wxItemContainerImmutable.cpp
  38. +1 −0  src-generated/wxNode_wxItemContainerImmutable.h
  39. +3 −0  src-generated/wxNode_wxKeyEvent.cpp
  40. +1 −0  src-generated/wxNode_wxKeyEvent.h
  41. +3 −0  src-generated/wxNode_wxListBox.cpp
  42. +1 −0  src-generated/wxNode_wxListBox.h
  43. +3 −0  src-generated/wxNode_wxLogWindow.cpp
  44. +1 −0  src-generated/wxNode_wxLogWindow.h
  45. +3 −0  src-generated/wxNode_wxMenu.cpp
  46. +1 −0  src-generated/wxNode_wxMenu.h
  47. +3 −0  src-generated/wxNode_wxMenuBar.cpp
  48. +1 −0  src-generated/wxNode_wxMenuBar.h
  49. +3 −0  src-generated/wxNode_wxMenuItem.cpp
  50. +1 −0  src-generated/wxNode_wxMenuItem.h
  51. +3 −0  src-generated/wxNode_wxNonOwnedWindow.cpp
  52. +1 −0  src-generated/wxNode_wxNonOwnedWindow.h
  53. +3 −0  src-generated/wxNode_wxNotebook.cpp
  54. +1 −0  src-generated/wxNode_wxNotebook.h
  55. +3 −0  src-generated/wxNode_wxNotifyEvent.cpp
  56. +1 −0  src-generated/wxNode_wxNotifyEvent.h
  57. +3 −0  src-generated/wxNode_wxPanel.cpp
  58. +1 −0  src-generated/wxNode_wxPanel.h
  59. +33 −0 src-generated/wxNode_wxPoint.cpp
  60. +5 −0 src-generated/wxNode_wxPoint.h
  61. +33 −0 src-generated/wxNode_wxSize.cpp
  62. +5 −0 src-generated/wxNode_wxSize.h
  63. +3 −0  src-generated/wxNode_wxSizer.cpp
  64. +1 −0  src-generated/wxNode_wxSizer.h
  65. +3 −0  src-generated/wxNode_wxSizerFlags.cpp
  66. +1 −0  src-generated/wxNode_wxSizerFlags.h
  67. +3 −0  src-generated/wxNode_wxStaticText.cpp
  68. +1 −0  src-generated/wxNode_wxStaticText.h
  69. +3 −0  src-generated/wxNode_wxTextCtrl.cpp
  70. +1 −0  src-generated/wxNode_wxTextCtrl.h
  71. +3 −0  src-generated/wxNode_wxToolBar.cpp
  72. +1 −0  src-generated/wxNode_wxToolBar.h
  73. +3 −0  src-generated/wxNode_wxToolBarBase.cpp
  74. +1 −0  src-generated/wxNode_wxToolBarBase.h
  75. +3 −0  src-generated/wxNode_wxToolBarToolBase.cpp
  76. +1 −0  src-generated/wxNode_wxToolBarToolBase.h
  77. +3 −0  src-generated/wxNode_wxTopLevelWindow.cpp
  78. +1 −0  src-generated/wxNode_wxTopLevelWindow.h
  79. +4 −0 src-generated/wxNode_wxWebView.cpp
  80. +1 −0  src-generated/wxNode_wxWebView.h
  81. +3 −0  src-generated/wxNode_wxWebViewArchiveHandler.cpp
  82. +1 −0  src-generated/wxNode_wxWebViewArchiveHandler.h
  83. +3 −0  src-generated/wxNode_wxWebViewEvent.cpp
  84. +1 −0  src-generated/wxNode_wxWebViewEvent.h
  85. +3 −0  src-generated/wxNode_wxWebViewHandler.cpp
  86. +1 −0  src-generated/wxNode_wxWebViewHandler.h
  87. +208 −0 src-generated/wxNode_wxWebViewHistoryItem.cpp
  88. +40 −0 src-generated/wxNode_wxWebViewHistoryItem.h
  89. +3 −0  src-generated/wxNode_wxWindow.cpp
  90. +1 −0  src-generated/wxNode_wxWindow.h
  91. +18 −0 src-templates/generic.cpp
  92. +3 −0  src-templates/generic.h
  93. +21 −1 src/globalFunctions.cpp
  94. +1 −0  src/globalFunctions.h
  95. +3 −0  src/wxNode_wxEvtHandler.cpp
  96. +8 −2 src/wxNode_wxVector.h
  97. +0 −1  src/wxnode.h
  98. +2 −0  src/wxnode_bindings.cpp
6 examples/webview.js
View
@@ -470,7 +470,7 @@ var WebFrame = wx.Frame.extend({
var item;
var i;
- for(i = 0; i < back.size(); i++)
+ for(i = 0; i < back.length; i++)
{
item = this.m_tools_history_menu.appendRadioItem(wx.ID_ANY, back[i].getTitle());
this.m_histMenuItems[item.getId()] = back[i];
@@ -484,7 +484,7 @@ var WebFrame = wx.Frame.extend({
//No need to connect the current item
this.m_histMenuItems[item.getId()] = new wx.WebViewHistoryItem(this.m_browser.getCurrentURL(), this.m_browser.getCurrentTitle());
- for(i = 0; i < forward.size(); i++)
+ for(i = 0; i < forward.length; i++)
{
item = this.m_tools_history_menu.appendRadioItem(wx.ID_ANY, forward[i].getTitle());
this.m_histMenuItems[item.getId()] = forward[i];
@@ -492,7 +492,7 @@ var WebFrame = wx.Frame.extend({
this.onHistory, null, this );
}
- var position = this.screenToClient( wx.GetMousePosition() );
+ var position = this.screenToClient( wx.getMousePosition() );
this.popupMenu(this.m_tools_menu, position.x, position.y);
},
2  lib/index.js
View
@@ -24,10 +24,12 @@ exports.InfoBar = bindings.InfoBar.extend({});
exports.LogWindow = bindings.LogWindow.extend({});
exports.WebView = bindings.WebView.extend({});
exports.WebViewArchiveHandler = bindings.WebViewArchiveHandler.extend({});
+exports.WebViewHistoryItem = bindings.WebViewHistoryItem.extend({});
exports.MessageBox = bindings.MessageBox.show;
exports.LogStatus = bindings.LogStatus.log;
exports.setCursor = bindings.setCursor;
exports.logMessage = bindings.logMessage;
+exports.getMousePosition = bindings.getMousePosition;
exports.DefaultPosition = bindings.DefaultPosition;
exports.DefaultSize = bindings.DefaultSize;
27 render-templates.js
View
@@ -39,6 +39,7 @@ var files = [
{ className: 'wxWebView', allowNew: false, allowStaticNew: true },
{ className: 'wxWebViewArchiveHandler', allowNew: true, noNewCopy: true },
{ className: 'wxWebViewHandler', allowNew: false },
+ { className: 'wxWebViewHistoryItem', allowNew: true, noNewCopy: true },
{ className: 'wxItemContainer', allowNew: false },
{ className: 'wxItemContainerImmutable', allowNew: false },
{ className: 'wxSizer', allowNew: false },
@@ -421,6 +422,10 @@ function methodJsonToCtx(parent, rawJson, methodJson) {
+ 'sprintf(returnValTemp, "%lc", returnVal);\n'
+ "return scope.Close(v8::String::New(returnValTemp));";
} else if(ctx.returnTypeName && ctx.returnTypeName.match(/^wx.*/)) {
+ if(ctx.returnTypeName.indexOf('Vector') > 0) {
+ ctx.includes = concatUnique(ctx.includes, ["wxNode_wxVector.h"]);
+ }
+
if(returnType.refs == '&' || (returnType.refs == '' && returnType.pointers == '')) {
ctx.returnEq = ctx.returnTypeName + " returnVal = ";
ctx.returnStmt = "return scope.Close(wxNode_" + ctx.returnTypeName + "::NewCopy(returnVal));";
@@ -477,6 +482,26 @@ function toJsName(str) {
}
}
+function addField(rawJson, ctx, member, fields) {
+ if(member['access'] != 'public') {
+ return;
+ }
+ if(member['attributes'] && member['attributes'].match(/deprecated/)) {
+ return;
+ }
+ if(member.name.match(/^m_/)) {
+ return;
+ }
+
+ var field = {
+ parent: ctx,
+ name: member.name,
+ addFieldStmt: "target->PrototypeTemplate()->SetAccessor(v8::String::New(\"" + member.name + "\"), _" + member.name + "Get, _" + member.name + "Set);"
+ };
+
+ fields.push(field);
+}
+
function addMethod(rawJson, ctx, member, dest) {
if(member['access'] != 'public') {
return;
@@ -570,6 +595,7 @@ function rawJsonToCtx(rawJson, file) {
name: file.className,
outputFilename: "wxNode" + "_" + file.className + "." + file.outputFileType,
methods: [],
+ fields: [],
constructors: [],
includes: [],
classes: [],
@@ -670,6 +696,7 @@ function rawJsonToCtx(rawJson, file) {
}
if(member.elementName == "Field") {
+ addField(rawJson, ctx, member, ctx.fields);
continue;
}
15 src-dummy/wxNode_wxWebViewHistoryItem.h
View
@@ -1,15 +0,0 @@
-
-#ifndef _wxNode_wxWebViewHistoryItem_
-#define _wxNode_wxWebViewHistoryItem_
-
-class wxNode_wxWebViewHistoryItem : public wxWebViewHistoryItem, public wxNodeObject {
- public:
- static void AddMethods(v8::Handle<v8::FunctionTemplate> target) { wxNodeObject::AddMethods(target); }
- static bool AssignableFrom(const v8::Handle<v8::String>& className) { return false; }
- static bool AssignableFrom(const char* className) { return false; }
- static v8::Handle<v8::Value> New(wxWebViewHistoryItem* obj) { return v8::Undefined(); }
- static v8::Handle<v8::Value> NewCopy(wxWebViewHistoryItem& obj) { return v8::Undefined(); }
-
-};
-
-#endif
3  src-generated/wxNode_wxAnyButton.cpp
View
@@ -61,6 +61,7 @@ wxNode_wxAnyButton::wxNode_wxAnyButton()
NODE_SET_PROTOTYPE_METHOD(target, "dontShowLabel", _DontShowLabel);
NODE_SET_PROTOTYPE_METHOD(target, "showsLabel", _ShowsLabel);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxAnyButton::New(const wxNode_wxAnyButton* obj) {
@@ -877,3 +878,5 @@ wxNode_wxAnyButton::wxNode_wxAnyButton()
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxAnyButton.h
View
@@ -55,6 +55,7 @@ class wxNode_wxAnyButton : public wxAnyButton, public wxNodeObject, public NodeE
static v8::Handle<v8::Value> _DontShowLabel(const v8::Arguments& args);
static v8::Handle<v8::Value> _ShowsLabel(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxArtProvider.cpp
View
@@ -60,6 +60,7 @@ wxNode_wxArtProvider::wxNode_wxArtProvider()
NODE_SET_METHOD(target, "getSizeHint", _GetSizeHint);
NODE_SET_PROTOTYPE_METHOD(target, "getClassInfo", _GetClassInfo);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxArtProvider::New(const wxNode_wxArtProvider* obj) {
@@ -639,3 +640,5 @@ wxNode_wxArtProvider::wxNode_wxArtProvider()
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxArtProvider.h
View
@@ -47,6 +47,7 @@ class wxNode_wxArtProvider : public wxArtProvider, public wxNodeObject, public N
static v8::Handle<v8::Value> _GetSizeHint(const v8::Arguments& args);
static v8::Handle<v8::Value> _GetClassInfo(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxBitmap.cpp
View
@@ -143,6 +143,7 @@ wxNode_wxBitmap::wxNode_wxBitmap(wxImage& image)
NODE_SET_PROTOTYPE_METHOD(target, "quantizeColour", _QuantizeColour);
NODE_SET_PROTOTYPE_METHOD(target, "getClassInfo", _GetClassInfo);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxBitmap::New(const wxNode_wxBitmap* obj) {
@@ -1221,3 +1222,5 @@ wxNode_wxBitmap::wxNode_wxBitmap(wxImage& image)
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxBitmap.h
View
@@ -88,6 +88,7 @@ class wxNode_wxBitmap : public wxBitmap, public wxNodeObject, public NodeExEvtHa
static v8::Handle<v8::Value> _QuantizeColour(const v8::Arguments& args);
static v8::Handle<v8::Value> _GetClassInfo(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxBookCtrlBase.cpp
View
@@ -65,6 +65,7 @@
NODE_SET_PROTOTYPE_METHOD(target, "canApplyThemeBorder", _CanApplyThemeBorder);
NODE_SET_PROTOTYPE_METHOD(target, "getClassInfo", _GetClassInfo);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxBookCtrlBase::New(const wxNode_wxBookCtrlBase* obj) {
@@ -1219,3 +1220,5 @@
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxBookCtrlBase.h
View
@@ -61,6 +61,7 @@ class wxNode_wxBookCtrlBase : public wxBookCtrlBase, public wxNodeObject, public
static v8::Handle<v8::Value> _CanApplyThemeBorder(const v8::Arguments& args);
static v8::Handle<v8::Value> _GetClassInfo(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxBoxSizer.cpp
View
@@ -51,6 +51,7 @@ wxNode_wxBoxSizer::wxNode_wxBoxSizer(int orient)
NODE_SET_PROTOTYPE_METHOD(target, "recalcSizes", _RecalcSizes);
NODE_SET_PROTOTYPE_METHOD(target, "getClassInfo", _GetClassInfo);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxBoxSizer::New(const wxNode_wxBoxSizer* obj) {
@@ -356,3 +357,5 @@ wxNode_wxBoxSizer::wxNode_wxBoxSizer(int orient)
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxBoxSizer.h
View
@@ -39,6 +39,7 @@ class wxNode_wxBoxSizer : public wxBoxSizer, public wxNodeObject, public NodeExE
static v8::Handle<v8::Value> _RecalcSizes(const v8::Arguments& args);
static v8::Handle<v8::Value> _GetClassInfo(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxButton.cpp
View
@@ -85,6 +85,7 @@ wxNode_wxButton::wxNode_wxButton(wxWindow* parent, int id)
NODE_SET_PROTOTYPE_METHOD(target, "setDefault", _SetDefault);
NODE_SET_METHOD(target, "getDefaultSize", _GetDefaultSize);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxButton::New(const wxNode_wxButton* obj) {
@@ -444,3 +445,5 @@ wxNode_wxButton::wxNode_wxButton(wxWindow* parent, int id)
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxButton.h
View
@@ -51,6 +51,7 @@ class wxNode_wxButton : public wxButton, public wxNodeObject, public NodeExEvtHa
static v8::Handle<v8::Value> _SetDefault(const v8::Arguments& args);
static v8::Handle<v8::Value> _GetDefaultSize(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxCommandEvent.cpp
View
@@ -68,6 +68,7 @@ wxNode_wxCommandEvent::wxNode_wxCommandEvent(wxCommandEvent& event)
NODE_SET_PROTOTYPE_METHOD(target, "getClassInfo", _GetClassInfo);
NODE_SET_METHOD(target, "wxCreateObject", _wxCreateObject);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxCommandEvent::New(const wxNode_wxCommandEvent* obj) {
@@ -565,3 +566,5 @@ wxNode_wxCommandEvent::wxNode_wxCommandEvent(wxCommandEvent& event)
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxCommandEvent.h
View
@@ -49,6 +49,7 @@ class wxNode_wxCommandEvent : public wxCommandEvent, public wxNodeObject, public
static v8::Handle<v8::Value> _GetClassInfo(const v8::Arguments& args);
static v8::Handle<v8::Value> _wxCreateObject(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxControl.cpp
View
@@ -95,6 +95,7 @@ wxNode_wxControl::wxNode_wxControl(wxWindow* parent, int id)
NODE_SET_METHOD(target, "findAccelIndex", _FindAccelIndex);
NODE_SET_METHOD(target, "getCompositeControlsDefaultAttributes", _GetCompositeControlsDefaultAttributes);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxControl::New(const wxNode_wxControl* obj) {
@@ -1069,3 +1070,5 @@ wxNode_wxControl::wxNode_wxControl(wxWindow* parent, int id)
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxControl.h
View
@@ -64,6 +64,7 @@ class wxNode_wxControl : public wxControl, public wxNodeObject, public NodeExEvt
static v8::Handle<v8::Value> _FindAccelIndex(const v8::Arguments& args);
static v8::Handle<v8::Value> _GetCompositeControlsDefaultAttributes(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxControlWithItems.cpp
View
@@ -28,6 +28,7 @@
wxNode_wxWindowWithItems_wxControl_wxItemContainer::AddMethods(target);
NODE_SET_PROTOTYPE_METHOD(target, "shouldInheritColours", _ShouldInheritColours);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxControlWithItems::New(const wxNode_wxControlWithItems* obj) {
@@ -153,3 +154,5 @@
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxControlWithItems.h
View
@@ -26,6 +26,7 @@ class wxNode_wxControlWithItems : public wxControlWithItems, public wxNodeObject
static v8::Handle<v8::Value> _ShouldInheritColours(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxCursor.cpp
View
@@ -126,6 +126,7 @@ wxNode_wxCursor::wxNode_wxCursor(const char* bits, int width, int height)
NODE_SET_PROTOTYPE_METHOD(target, "getClassInfo", _GetClassInfo);
NODE_SET_METHOD(target, "wxCreateObject", _wxCreateObject);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxCursor::New(const wxNode_wxCursor* obj) {
@@ -508,3 +509,5 @@ wxNode_wxCursor::wxNode_wxCursor(const char* bits, int width, int height)
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxCursor.h
View
@@ -63,6 +63,7 @@ class wxNode_wxCursor : public wxCursor, public wxNodeObject, public NodeExEvtHa
static v8::Handle<v8::Value> _GetClassInfo(const v8::Arguments& args);
static v8::Handle<v8::Value> _wxCreateObject(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxDialog.cpp
View
@@ -107,6 +107,7 @@ wxNode_wxDialog::wxNode_wxDialog(wxWindow* parent, int id, const wxString& title
NODE_SET_METHOD(target, "enableLayoutAdaptation", _EnableLayoutAdaptation);
NODE_SET_PROTOTYPE_METHOD(target, "getModality", _GetModality);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxDialog::New(const wxNode_wxDialog* obj) {
@@ -1300,3 +1301,5 @@ wxNode_wxDialog::wxNode_wxDialog(wxWindow* parent, int id, const wxString& title
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxDialog.h
View
@@ -79,6 +79,7 @@ class wxNode_wxDialog : public wxDialog, public wxNodeObject, public NodeExEvtHa
static v8::Handle<v8::Value> _EnableLayoutAdaptation(const v8::Arguments& args);
static v8::Handle<v8::Value> _GetModality(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxEvent.cpp
View
@@ -48,6 +48,7 @@
NODE_SET_PROTOTYPE_METHOD(target, "didntHonourProcessOnlyIn", _DidntHonourProcessOnlyIn);
NODE_SET_PROTOTYPE_METHOD(target, "getClassInfo", _GetClassInfo);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxEvent::New(const wxNode_wxEvent* obj) {
@@ -782,3 +783,5 @@
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxEvent.h
View
@@ -45,6 +45,7 @@ class wxNode_wxEvent : public wxEvent, public wxNodeObject, public NodeExEvtHand
static v8::Handle<v8::Value> _DidntHonourProcessOnlyIn(const v8::Arguments& args);
static v8::Handle<v8::Value> _GetClassInfo(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxFrame.cpp
View
@@ -100,6 +100,7 @@ wxNode_wxFrame::wxNode_wxFrame(wxWindow* parent, int id, const wxString& title)
NODE_SET_PROTOTYPE_METHOD(target, "doGiveHelp", _DoGiveHelp);
NODE_SET_PROTOTYPE_METHOD(target, "isClientAreaChild", _IsClientAreaChild);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxFrame::New(const wxNode_wxFrame* obj) {
@@ -1157,3 +1158,5 @@ wxNode_wxFrame::wxNode_wxFrame(wxWindow* parent, int id, const wxString& title)
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxFrame.h
View
@@ -74,6 +74,7 @@ class wxNode_wxFrame : public wxFrame, public wxNodeObject, public NodeExEvtHand
static v8::Handle<v8::Value> _DoGiveHelp(const v8::Arguments& args);
static v8::Handle<v8::Value> _IsClientAreaChild(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxIcon.cpp
View
@@ -84,6 +84,7 @@ wxNode_wxIcon::wxNode_wxIcon(wxIconLocation& loc)
NODE_SET_PROTOTYPE_METHOD(target, "getClassInfo", _GetClassInfo);
NODE_SET_METHOD(target, "wxCreateObject", _wxCreateObject);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxIcon::New(const wxNode_wxIcon* obj) {
@@ -416,3 +417,5 @@ wxNode_wxIcon::wxNode_wxIcon(wxIconLocation& loc)
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxIcon.h
View
@@ -49,6 +49,7 @@ class wxNode_wxIcon : public wxIcon, public wxNodeObject, public NodeExEvtHandle
static v8::Handle<v8::Value> _GetClassInfo(const v8::Arguments& args);
static v8::Handle<v8::Value> _wxCreateObject(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxInfoBar.cpp
View
@@ -52,6 +52,7 @@ wxNode_wxInfoBar::wxNode_wxInfoBar(wxWindow* parent)
NODE_SET_PROTOTYPE_METHOD(target, "addButton", _AddButton);
NODE_SET_PROTOTYPE_METHOD(target, "removeButton", _RemoveButton);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxInfoBar::New(const wxNode_wxInfoBar* obj) {
@@ -317,3 +318,5 @@ wxNode_wxInfoBar::wxNode_wxInfoBar(wxWindow* parent)
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxInfoBar.h
View
@@ -38,6 +38,7 @@ class wxNode_wxInfoBar : public wxInfoBar, public wxNodeObject, public NodeExEvt
static v8::Handle<v8::Value> _AddButton(const v8::Arguments& args);
static v8::Handle<v8::Value> _RemoveButton(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxItemContainer.cpp
View
@@ -45,6 +45,7 @@
NODE_SET_PROTOTYPE_METHOD(target, "hasClientObjectData", _HasClientObjectData);
NODE_SET_PROTOTYPE_METHOD(target, "hasClientUntypedData", _HasClientUntypedData);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxItemContainer::New(const wxNode_wxItemContainer* obj) {
@@ -761,3 +762,5 @@
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxItemContainer.h
View
@@ -43,6 +43,7 @@ class wxNode_wxItemContainer : public wxItemContainer, public wxNodeObject, publ
static v8::Handle<v8::Value> _HasClientObjectData(const v8::Arguments& args);
static v8::Handle<v8::Value> _HasClientUntypedData(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxItemContainerImmutable.cpp
View
@@ -37,6 +37,7 @@
NODE_SET_PROTOTYPE_METHOD(target, "getStringSelection", _GetStringSelection);
NODE_SET_PROTOTYPE_METHOD(target, "select", _Select);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxItemContainerImmutable::New(const wxNode_wxItemContainerImmutable* obj) {
@@ -468,3 +469,5 @@
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxItemContainerImmutable.h
View
@@ -34,6 +34,7 @@ class wxNode_wxItemContainerImmutable : public wxItemContainerImmutable, public
static v8::Handle<v8::Value> _GetStringSelection(const v8::Arguments& args);
static v8::Handle<v8::Value> _Select(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxKeyEvent.cpp
View
@@ -70,6 +70,7 @@ wxNode_wxKeyEvent::wxNode_wxKeyEvent(int eventType, wxKeyEvent& evt)
NODE_SET_PROTOTYPE_METHOD(target, "getClassInfo", _GetClassInfo);
NODE_SET_METHOD(target, "wxCreateObject", _wxCreateObject);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxKeyEvent::New(const wxNode_wxKeyEvent* obj) {
@@ -614,3 +615,5 @@ return scope.Close(v8::String::New(returnValTemp));
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxKeyEvent.h
View
@@ -50,6 +50,7 @@ class wxNode_wxKeyEvent : public wxKeyEvent, public wxNodeObject, public NodeExE
static v8::Handle<v8::Value> _GetClassInfo(const v8::Arguments& args);
static v8::Handle<v8::Value> _wxCreateObject(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxListBox.cpp
View
@@ -144,6 +144,7 @@ wxNode_wxListBox::wxNode_wxListBox(wxWindow* parent, int id, wxPoint& pos, wxSiz
NODE_SET_PROTOTYPE_METHOD(target, "hasClientObjectData", _HasClientObjectData);
NODE_SET_PROTOTYPE_METHOD(target, "hasClientUntypedData", _HasClientUntypedData);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxListBox::New(const wxNode_wxListBox* obj) {
@@ -1520,3 +1521,5 @@ wxNode_wxListBox::wxNode_wxListBox(wxWindow* parent, int id, wxPoint& pos, wxSiz
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxListBox.h
View
@@ -90,6 +90,7 @@ class wxNode_wxListBox : public wxListBox, public wxNodeObject, public NodeExEvt
static v8::Handle<v8::Value> _HasClientObjectData(const v8::Arguments& args);
static v8::Handle<v8::Value> _HasClientUntypedData(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxLogWindow.cpp
View
@@ -54,6 +54,7 @@ wxNode_wxLogWindow::wxNode_wxLogWindow(wxWindow* pParent, const wxString& szTitl
NODE_SET_PROTOTYPE_METHOD(target, "onFrameClose", _OnFrameClose);
NODE_SET_PROTOTYPE_METHOD(target, "onFrameDelete", _OnFrameDelete);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxLogWindow::New(const wxNode_wxLogWindow* obj) {
@@ -294,3 +295,5 @@ wxNode_wxLogWindow::wxNode_wxLogWindow(wxWindow* pParent, const wxString& szTitl
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxLogWindow.h
View
@@ -39,6 +39,7 @@ class wxNode_wxLogWindow : public wxLogWindow, public wxNodeObject, public NodeE
static v8::Handle<v8::Value> _OnFrameClose(const v8::Arguments& args);
static v8::Handle<v8::Value> _OnFrameDelete(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxMenu.cpp
View
@@ -104,6 +104,7 @@ wxNode_wxMenu::wxNode_wxMenu()
NODE_SET_PROTOTYPE_METHOD(target, "sendEvent", _SendEvent);
NODE_SET_METHOD(target, "lockAccels", _LockAccels);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxMenu::New(const wxNode_wxMenu* obj) {
@@ -2097,3 +2098,5 @@ wxNode_wxMenu::wxNode_wxMenu()
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxMenu.h
View
@@ -86,6 +86,7 @@ class wxNode_wxMenu : public wxMenu, public wxNodeObject, public NodeExEvtHandle
static v8::Handle<v8::Value> _SendEvent(const v8::Arguments& args);
static v8::Handle<v8::Value> _LockAccels(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxMenuBar.cpp
View
@@ -85,6 +85,7 @@ wxNode_wxMenuBar::wxNode_wxMenuBar(unsigned int n, wxMenu** menus, const wxStrin
NODE_SET_PROTOTYPE_METHOD(target, "updateMenus", _UpdateMenus);
NODE_SET_PROTOTYPE_METHOD(target, "canBeOutsideClientArea", _CanBeOutsideClientArea);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxMenuBar::New(const wxNode_wxMenuBar* obj) {
@@ -1115,3 +1116,5 @@ wxNode_wxMenuBar::wxNode_wxMenuBar(unsigned int n, wxMenu** menus, const wxStrin
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxMenuBar.h
View
@@ -66,6 +66,7 @@ class wxNode_wxMenuBar : public wxMenuBar, public wxNodeObject, public NodeExEvt
static v8::Handle<v8::Value> _UpdateMenus(const v8::Arguments& args);
static v8::Handle<v8::Value> _CanBeOutsideClientArea(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxMenuItem.cpp
View
@@ -99,6 +99,7 @@ wxNode_wxMenuItem::wxNode_wxMenuItem()
NODE_SET_PROTOTYPE_METHOD(target, "getAccel", _GetAccel);
NODE_SET_PROTOTYPE_METHOD(target, "setAccel", _SetAccel);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxMenuItem::New(const wxNode_wxMenuItem* obj) {
@@ -1027,3 +1028,5 @@ wxNode_wxMenuItem::wxNode_wxMenuItem()
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxMenuItem.h
View
@@ -69,6 +69,7 @@ class wxNode_wxMenuItem : public wxMenuItem, public wxNodeObject, public NodeExE
static v8::Handle<v8::Value> _GetAccel(const v8::Arguments& args);
static v8::Handle<v8::Value> _SetAccel(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxNonOwnedWindow.cpp
View
@@ -38,6 +38,7 @@ wxNode_wxNonOwnedWindow::wxNode_wxNonOwnedWindow()
wxNode_wxWindow::AddMethods(target);
NODE_SET_PROTOTYPE_METHOD(target, "setShape", _SetShape);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxNonOwnedWindow::New(const wxNode_wxNonOwnedWindow* obj) {
@@ -278,3 +279,5 @@ wxNode_wxNonOwnedWindow::wxNode_wxNonOwnedWindow()
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxNonOwnedWindow.h
View
@@ -32,6 +32,7 @@ class wxNode_wxNonOwnedWindow : public wxNonOwnedWindow, public wxNodeObject, pu
static v8::Handle<v8::Value> _SetShape(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxNotebook.cpp
View
@@ -77,6 +77,7 @@ wxNode_wxNotebook::wxNode_wxNotebook(wxWindow* parent, int id)
NODE_SET_PROTOTYPE_METHOD(target, "sendPageChangedEvent", _SendPageChangedEvent);
NODE_SET_PROTOTYPE_METHOD(target, "acceptsFocus", _AcceptsFocus);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxNotebook::New(const wxNode_wxNotebook* obj) {
@@ -490,3 +491,5 @@ wxNode_wxNotebook::wxNode_wxNotebook(wxWindow* parent, int id)
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxNotebook.h
View
@@ -50,6 +50,7 @@ class wxNode_wxNotebook : public wxNotebook, public wxNodeObject, public NodeExE
static v8::Handle<v8::Value> _SendPageChangedEvent(const v8::Arguments& args);
static v8::Handle<v8::Value> _AcceptsFocus(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxNotifyEvent.cpp
View
@@ -62,6 +62,7 @@ wxNode_wxNotifyEvent::wxNode_wxNotifyEvent(wxNotifyEvent& event)
NODE_SET_PROTOTYPE_METHOD(target, "getClassInfo", _GetClassInfo);
NODE_SET_METHOD(target, "wxCreateObject", _wxCreateObject);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxNotifyEvent::New(const wxNode_wxNotifyEvent* obj) {
@@ -380,3 +381,5 @@ wxNode_wxNotifyEvent::wxNode_wxNotifyEvent(wxNotifyEvent& event)
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxNotifyEvent.h
View
@@ -42,6 +42,7 @@ class wxNode_wxNotifyEvent : public wxNotifyEvent, public wxNodeObject, public N
static v8::Handle<v8::Value> _GetClassInfo(const v8::Arguments& args);
static v8::Handle<v8::Value> _wxCreateObject(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxPanel.cpp
View
@@ -94,6 +94,7 @@ wxNode_wxPanel::wxNode_wxPanel(wxWindow* parent, int x, int y, int width, int he
NODE_SET_PROTOTYPE_METHOD(target, "create", _Create);
NODE_SET_PROTOTYPE_METHOD(target, "initDialog", _InitDialog);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxPanel::New(const wxNode_wxPanel* obj) {
@@ -511,3 +512,5 @@ wxNode_wxPanel::wxNode_wxPanel(wxWindow* parent, int x, int y, int width, int he
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxPanel.h
View
@@ -52,6 +52,7 @@ class wxNode_wxPanel : public wxPanel, public wxNodeObject, public NodeExEvtHand
static v8::Handle<v8::Value> _Create(const v8::Arguments& args);
static v8::Handle<v8::Value> _InitDialog(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
33 src-generated/wxNode_wxPoint.cpp
View
@@ -54,6 +54,9 @@ wxNode_wxPoint::wxNode_wxPoint(wxRealPoint& pt)
NODE_SET_PROTOTYPE_METHOD(target, "isFullySpecified", _IsFullySpecified);
NODE_SET_PROTOTYPE_METHOD(target, "setDefaults", _SetDefaults);
+ target->PrototypeTemplate()->SetAccessor(v8::String::New("x"), _xGet, _xSet);
+ target->PrototypeTemplate()->SetAccessor(v8::String::New("y"), _yGet, _ySet);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxPoint::New(const wxNode_wxPoint* obj) {
@@ -246,3 +249,33 @@ wxNode_wxPoint::wxNode_wxPoint(wxRealPoint& pt)
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
+/*static*/ v8::Handle<v8::Value> wxNode_wxPoint::_xGet(v8::Local<v8::String> name, const v8::AccessorInfo& info) {
+ v8::HandleScope scope;
+ wxNode_wxPoint* self = unwrap<wxNode_wxPoint>(info.This());
+
+ return scope.Close(v8::Number::New(self->x));
+}
+
+/*static*/ void wxNode_wxPoint::_xSet(v8::Local<v8::String> name, v8::Local<v8::Value> val, const v8::AccessorInfo& info) {
+ v8::HandleScope scope;
+ wxNode_wxPoint* self = unwrap<wxNode_wxPoint>(info.This());
+
+ self->x = val->ToNumber()->Value();
+}
+
+/*static*/ v8::Handle<v8::Value> wxNode_wxPoint::_yGet(v8::Local<v8::String> name, const v8::AccessorInfo& info) {
+ v8::HandleScope scope;
+ wxNode_wxPoint* self = unwrap<wxNode_wxPoint>(info.This());
+
+ return scope.Close(v8::Number::New(self->y));
+}
+
+/*static*/ void wxNode_wxPoint::_ySet(v8::Local<v8::String> name, v8::Local<v8::Value> val, const v8::AccessorInfo& info) {
+ v8::HandleScope scope;
+ wxNode_wxPoint* self = unwrap<wxNode_wxPoint>(info.This());
+
+ self->y = val->ToNumber()->Value();
+}
+
5 src-generated/wxNode_wxPoint.h
View
@@ -37,6 +37,11 @@ class wxNode_wxPoint : public wxPoint, public wxNodeObject, public NodeExEvtHand
static v8::Handle<v8::Value> _IsFullySpecified(const v8::Arguments& args);
static v8::Handle<v8::Value> _SetDefaults(const v8::Arguments& args);
+ static v8::Handle<v8::Value> _xGet(v8::Local<v8::String> name, const v8::AccessorInfo& info);
+ static void _xSet(v8::Local<v8::String> name, v8::Local<v8::Value> val, const v8::AccessorInfo& info);
+ static v8::Handle<v8::Value> _yGet(v8::Local<v8::String> name, const v8::AccessorInfo& info);
+ static void _ySet(v8::Local<v8::String> name, v8::Local<v8::Value> val, const v8::AccessorInfo& info);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
33 src-generated/wxNode_wxSize.cpp
View
@@ -60,6 +60,9 @@ wxNode_wxSize::wxNode_wxSize(int xx, int yy)
NODE_SET_PROTOTYPE_METHOD(target, "getX", _GetX);
NODE_SET_PROTOTYPE_METHOD(target, "getY", _GetY);
+ target->PrototypeTemplate()->SetAccessor(v8::String::New("x"), _xGet, _xSet);
+ target->PrototypeTemplate()->SetAccessor(v8::String::New("y"), _yGet, _ySet);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxSize::New(const wxNode_wxSize* obj) {
@@ -647,3 +650,33 @@ wxNode_wxSize::wxNode_wxSize(int xx, int yy)
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
+/*static*/ v8::Handle<v8::Value> wxNode_wxSize::_xGet(v8::Local<v8::String> name, const v8::AccessorInfo& info) {
+ v8::HandleScope scope;
+ wxNode_wxSize* self = unwrap<wxNode_wxSize>(info.This());
+
+ return scope.Close(v8::Number::New(self->x));
+}
+
+/*static*/ void wxNode_wxSize::_xSet(v8::Local<v8::String> name, v8::Local<v8::Value> val, const v8::AccessorInfo& info) {
+ v8::HandleScope scope;
+ wxNode_wxSize* self = unwrap<wxNode_wxSize>(info.This());
+
+ self->x = val->ToNumber()->Value();
+}
+
+/*static*/ v8::Handle<v8::Value> wxNode_wxSize::_yGet(v8::Local<v8::String> name, const v8::AccessorInfo& info) {
+ v8::HandleScope scope;
+ wxNode_wxSize* self = unwrap<wxNode_wxSize>(info.This());
+
+ return scope.Close(v8::Number::New(self->y));
+}
+
+/*static*/ void wxNode_wxSize::_ySet(v8::Local<v8::String> name, v8::Local<v8::Value> val, const v8::AccessorInfo& info) {
+ v8::HandleScope scope;
+ wxNode_wxSize* self = unwrap<wxNode_wxSize>(info.This());
+
+ self->y = val->ToNumber()->Value();
+}
+
5 src-generated/wxNode_wxSize.h
View
@@ -47,6 +47,11 @@ class wxNode_wxSize : public wxSize, public wxNodeObject, public NodeExEvtHandle
static v8::Handle<v8::Value> _GetX(const v8::Arguments& args);
static v8::Handle<v8::Value> _GetY(const v8::Arguments& args);
+ static v8::Handle<v8::Value> _xGet(v8::Local<v8::String> name, const v8::AccessorInfo& info);
+ static void _xSet(v8::Local<v8::String> name, v8::Local<v8::Value> val, const v8::AccessorInfo& info);
+ static v8::Handle<v8::Value> _yGet(v8::Local<v8::String> name, const v8::AccessorInfo& info);
+ static void _ySet(v8::Local<v8::String> name, v8::Local<v8::Value> val, const v8::AccessorInfo& info);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxSizer.cpp
View
@@ -75,6 +75,7 @@
NODE_SET_PROTOTYPE_METHOD(target, "showItems", _ShowItems);
NODE_SET_PROTOTYPE_METHOD(target, "getClassInfo", _GetClassInfo);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxSizer::New(const wxNode_wxSizer* obj) {
@@ -2574,3 +2575,5 @@
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxSizer.h
View
@@ -72,6 +72,7 @@ class wxNode_wxSizer : public wxSizer, public wxNodeObject, public NodeExEvtHand
static v8::Handle<v8::Value> _ShowItems(const v8::Arguments& args);
static v8::Handle<v8::Value> _GetClassInfo(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxSizerFlags.cpp
View
@@ -66,6 +66,7 @@ wxNode_wxSizerFlags::wxNode_wxSizerFlags()
NODE_SET_PROTOTYPE_METHOD(target, "getFlags", _GetFlags);
NODE_SET_PROTOTYPE_METHOD(target, "getBorderInPixels", _GetBorderInPixels);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxSizerFlags::New(const wxNode_wxSizerFlags* obj) {
@@ -807,3 +808,5 @@ wxNode_wxSizerFlags::wxNode_wxSizerFlags()
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxSizerFlags.h
View
@@ -53,6 +53,7 @@ class wxNode_wxSizerFlags : public wxSizerFlags, public wxNodeObject, public Nod
static v8::Handle<v8::Value> _GetFlags(const v8::Arguments& args);
static v8::Handle<v8::Value> _GetBorderInPixels(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxStaticText.cpp
View
@@ -72,6 +72,7 @@ wxNode_wxStaticText::wxNode_wxStaticText(wxWindow* parent, int id, const wxStrin
NODE_SET_PROTOTYPE_METHOD(target, "hasTransparentBackground", _HasTransparentBackground);
NODE_SET_PROTOTYPE_METHOD(target, "isEllipsized", _IsEllipsized);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxStaticText::New(const wxNode_wxStaticText* obj) {
@@ -365,3 +366,5 @@ wxNode_wxStaticText::wxNode_wxStaticText(wxWindow* parent, int id, const wxStrin
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxStaticText.h
View
@@ -46,6 +46,7 @@ class wxNode_wxStaticText : public wxStaticText, public wxNodeObject, public Nod
static v8::Handle<v8::Value> _HasTransparentBackground(const v8::Arguments& args);
static v8::Handle<v8::Value> _IsEllipsized(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxTextCtrl.cpp
View
@@ -100,6 +100,7 @@ wxNode_wxTextCtrl::wxNode_wxTextCtrl(wxWindow* parent, int id)
NODE_SET_METHOD(target, "getClassDefaultAttributes", _GetClassDefaultAttributes);
NODE_SET_PROTOTYPE_METHOD(target, "getClassInfo", _GetClassInfo);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxTextCtrl::New(const wxNode_wxTextCtrl* obj) {
@@ -733,3 +734,5 @@ wxNode_wxTextCtrl::wxNode_wxTextCtrl(wxWindow* parent, int id)
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxTextCtrl.h
View
@@ -64,6 +64,7 @@ class wxNode_wxTextCtrl : public wxTextCtrl, public wxNodeObject, public NodeExE
static v8::Handle<v8::Value> _GetClassDefaultAttributes(const v8::Arguments& args);
static v8::Handle<v8::Value> _GetClassInfo(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxToolBar.cpp
View
@@ -128,6 +128,7 @@ wxNode_wxToolBar::wxNode_wxToolBar(wxWindow* parent, int id)
NODE_SET_PROTOTYPE_METHOD(target, "acceptsFocus", _AcceptsFocus);
NODE_SET_PROTOTYPE_METHOD(target, "setDropdownMenu", _SetDropdownMenu);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxToolBar::New(const wxNode_wxToolBar* obj) {
@@ -2231,3 +2232,5 @@ wxNode_wxToolBar::wxNode_wxToolBar(wxWindow* parent, int id)
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxToolBar.h
View
@@ -101,6 +101,7 @@ class wxNode_wxToolBar : public wxToolBar, public wxNodeObject, public NodeExEvt
static v8::Handle<v8::Value> _AcceptsFocus(const v8::Arguments& args);
static v8::Handle<v8::Value> _SetDropdownMenu(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxToolBarBase.cpp
View
@@ -88,6 +88,7 @@
NODE_SET_PROTOTYPE_METHOD(target, "acceptsFocus", _AcceptsFocus);
NODE_SET_PROTOTYPE_METHOD(target, "setDropdownMenu", _SetDropdownMenu);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxToolBarBase::New(const wxNode_wxToolBarBase* obj) {
@@ -2093,3 +2094,5 @@
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxToolBarBase.h
View
@@ -85,6 +85,7 @@ class wxNode_wxToolBarBase : public wxToolBarBase, public wxNodeObject, public N
static v8::Handle<v8::Value> _AcceptsFocus(const v8::Arguments& args);
static v8::Handle<v8::Value> _SetDropdownMenu(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxToolBarToolBase.cpp
View
@@ -69,6 +69,7 @@
NODE_SET_PROTOTYPE_METHOD(target, "getClassInfo", _GetClassInfo);
NODE_SET_METHOD(target, "wxCreateObject", _wxCreateObject);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxToolBarToolBase::New(const wxNode_wxToolBarToolBase* obj) {
@@ -1142,3 +1143,5 @@
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxToolBarToolBase.h
View
@@ -64,6 +64,7 @@ class wxNode_wxToolBarToolBase : public wxToolBarToolBase, public wxNodeObject,
static v8::Handle<v8::Value> _GetClassInfo(const v8::Arguments& args);
static v8::Handle<v8::Value> _wxCreateObject(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxTopLevelWindow.cpp
View
@@ -110,6 +110,7 @@ wxNode_wxTopLevelWindow::wxNode_wxTopLevelWindow(wxWindow* parent, int winid, co
NODE_SET_PROTOTYPE_METHOD(target, "oSXSetModified", _OSXSetModified);
NODE_SET_PROTOTYPE_METHOD(target, "oSXIsModified", _OSXIsModified);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxTopLevelWindow::New(const wxNode_wxTopLevelWindow* obj) {
@@ -1490,3 +1491,5 @@ wxNode_wxTopLevelWindow::wxNode_wxTopLevelWindow(wxWindow* parent, int winid, co
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxTopLevelWindow.h
View
@@ -84,6 +84,7 @@ class wxNode_wxTopLevelWindow : public wxTopLevelWindow, public wxNodeObject, pu
static v8::Handle<v8::Value> _OSXSetModified(const v8::Arguments& args);
static v8::Handle<v8::Value> _OSXIsModified(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
4 src-generated/wxNode_wxWebView.cpp
View
@@ -8,6 +8,7 @@
#include "wxNode_wxSize.h"
#include "wxNode_wxWebViewHandler.h"
#include "wxNode_wxInputStream.h"
+#include "wxNode_wxVector.h"
#include "wxNode_wxWebViewHistoryItem.h"
#include "wxNode_wxClassInfo.h"
@@ -81,6 +82,7 @@
NODE_SET_PROTOTYPE_METHOD(target, "redo", _Redo);
NODE_SET_PROTOTYPE_METHOD(target, "getClassInfo", _GetClassInfo);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxWebView::New(const wxNode_wxWebView* obj) {
@@ -1693,3 +1695,5 @@
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxWebView.h
View
@@ -78,6 +78,7 @@ class wxNode_wxWebView : public wxWebView, public wxNodeObject, public NodeExEvt
static v8::Handle<v8::Value> _Redo(const v8::Arguments& args);
static v8::Handle<v8::Value> _GetClassInfo(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxWebViewArchiveHandler.cpp
View
@@ -43,6 +43,7 @@ wxNode_wxWebViewArchiveHandler::wxNode_wxWebViewArchiveHandler(const wxString& s
wxNode_wxWebViewHandler::AddMethods(target);
NODE_SET_PROTOTYPE_METHOD(target, "getFile", _GetFile);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxWebViewArchiveHandler::New(const wxNode_wxWebViewArchiveHandler* obj) {
@@ -178,3 +179,5 @@ wxNode_wxWebViewArchiveHandler::wxNode_wxWebViewArchiveHandler(const wxString& s
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxWebViewArchiveHandler.h
View
@@ -33,6 +33,7 @@ class wxNode_wxWebViewArchiveHandler : public wxWebViewArchiveHandler, public wx
static v8::Handle<v8::Value> _GetFile(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxWebViewEvent.cpp
View
@@ -55,6 +55,7 @@ wxNode_wxWebViewEvent::wxNode_wxWebViewEvent(int type, int id, const wxString ur
NODE_SET_PROTOTYPE_METHOD(target, "getClassInfo", _GetClassInfo);
NODE_SET_METHOD(target, "wxCreateObject", _wxCreateObject);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxWebViewEvent::New(const wxNode_wxWebViewEvent* obj) {
@@ -316,3 +317,5 @@ wxNode_wxWebViewEvent::wxNode_wxWebViewEvent(int type, int id, const wxString ur
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxWebViewEvent.h
View
@@ -39,6 +39,7 @@ class wxNode_wxWebViewEvent : public wxWebViewEvent, public wxNodeObject, public
static v8::Handle<v8::Value> _GetClassInfo(const v8::Arguments& args);
static v8::Handle<v8::Value> _wxCreateObject(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
3  src-generated/wxNode_wxWebViewHandler.cpp
View
@@ -28,6 +28,7 @@
NODE_SET_PROTOTYPE_METHOD(target, "getName", _GetName);
NODE_SET_PROTOTYPE_METHOD(target, "getFile", _GetFile);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxWebViewHandler::New(const wxNode_wxWebViewHandler* obj) {
@@ -164,3 +165,5 @@
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxWebViewHandler.h
View
@@ -25,6 +25,7 @@ class wxNode_wxWebViewHandler : public wxWebViewHandler, public wxNodeObject, pu
static v8::Handle<v8::Value> _GetName(const v8::Arguments& args);
static v8::Handle<v8::Value> _GetFile(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
208 src-generated/wxNode_wxWebViewHistoryItem.cpp
View
@@ -0,0 +1,208 @@
+
+#include <sstream>
+#include "wxNode_wxWebViewHistoryItem.h"
+
+
+/* static */ v8::Persistent<v8::FunctionTemplate> wxNode_wxWebViewHistoryItem::s_ct;
+
+
+
+wxNode_wxWebViewHistoryItem::wxNode_wxWebViewHistoryItem(wxWebViewHistoryItem& arg0)
+ : wxWebViewHistoryItem(arg0)
+{
+
+}
+
+wxNode_wxWebViewHistoryItem::wxNode_wxWebViewHistoryItem(const wxString& url, const wxString& title)
+ : wxWebViewHistoryItem(url, title)
+{
+
+}
+
+
+
+
+/*static*/ void wxNode_wxWebViewHistoryItem::Init(v8::Handle<v8::Object> target) {
+ v8::HandleScope scope;
+
+ v8::Local<v8::FunctionTemplate> t = v8::FunctionTemplate::New(wxNodeObject::NewFunc);
+ s_ct = v8::Persistent<v8::FunctionTemplate>::New(t);
+ s_ct->InstanceTemplate()->SetInternalFieldCount(2);
+ s_ct->SetClassName(v8::String::NewSymbol("WebViewHistoryItem"));
+
+ NODE_SET_PROTOTYPE_METHOD(s_ct, "init", _init);
+ AddMethods(s_ct);
+
+ target->Set(v8::String::NewSymbol("WebViewHistoryItem"), s_ct->GetFunction());
+}
+
+/*static*/ void wxNode_wxWebViewHistoryItem::AddMethods(v8::Handle<v8::FunctionTemplate> target) {
+ wxNode_wxEvtHandler::AddMethods(target);
+ NODE_SET_PROTOTYPE_METHOD(target, "getUrl", _GetUrl);
+ NODE_SET_PROTOTYPE_METHOD(target, "getTitle", _GetTitle);
+
+
+}
+
+/*static*/ v8::Handle<v8::Value> wxNode_wxWebViewHistoryItem::New(const wxNode_wxWebViewHistoryItem* obj) {
+ v8::HandleScope scope;
+
+ if(obj == NULL) {
+ return scope.Close(v8::Null());
+ }
+
+ v8::Local<v8::FunctionTemplate> returnObjFt = v8::FunctionTemplate::New(wxNodeObject::NewFunc);
+ returnObjFt->InstanceTemplate()->SetInternalFieldCount(2);
+ returnObjFt->SetClassName(v8::String::NewSymbol("WebViewHistoryItem"));
+ wxNode_wxWebViewHistoryItem::AddMethods(returnObjFt);
+
+ v8::Local<v8::Function> returnObjFn = returnObjFt->GetFunction();
+ v8::Handle<v8::Value> returnObjArgs[0];
+ v8::Local<v8::Object> returnObj = returnObjFn->CallAsConstructor(0, returnObjArgs)->ToObject();
+ returnObj->SetPointerInInternalField(0, (void*)obj);
+ NodeExEvtHandlerImpl* evtHandler = dynamic_cast<NodeExEvtHandlerImpl*>((wxNode_wxWebViewHistoryItem*)obj);
+ returnObj->SetPointerInInternalField(1, evtHandler);
+
+ return scope.Close(returnObj);
+}
+
+/*static*/ v8::Handle<v8::Value> wxNode_wxWebViewHistoryItem::New(const wxWebViewHistoryItem* obj) {
+ v8::HandleScope scope;
+
+ if(obj == NULL) {
+ return scope.Close(v8::Null());
+ }
+
+ v8::Local<v8::FunctionTemplate> returnObjFt = v8::FunctionTemplate::New(wxNodeObject::NewFunc);
+ returnObjFt->InstanceTemplate()->SetInternalFieldCount(2);
+ returnObjFt->SetClassName(v8::String::NewSymbol("WebViewHistoryItem"));
+ wxNode_wxWebViewHistoryItem::AddMethods(returnObjFt);
+
+ v8::Local<v8::Function> returnObjFn = returnObjFt->GetFunction();
+ v8::Handle<v8::Value> returnObjArgs[0];
+ v8::Local<v8::Object> returnObj = returnObjFn->CallAsConstructor(0, returnObjArgs)->ToObject();
+ returnObj->SetPointerInInternalField(0, (void*)obj);
+ NodeExEvtHandlerImplWrap* wrap = new NodeExEvtHandlerImplWrap(returnObj);
+ NodeExEvtHandlerImpl* evtHandler = dynamic_cast<NodeExEvtHandlerImpl*>(wrap);
+ returnObj->SetPointerInInternalField(1, evtHandler);
+
+ return scope.Close(returnObj);
+}
+
+/*static*/ v8::Handle<v8::Value> wxNode_wxWebViewHistoryItem::NewCopy(const wxWebViewHistoryItem& obj) {
+ return v8::Undefined();
+}
+
+/*static*/ bool wxNode_wxWebViewHistoryItem::AssignableFrom(const v8::Handle<v8::String>& className) {
+ v8::String::AsciiValue classNameStr(className);
+ return AssignableFrom(*classNameStr);
+}
+
+/*static*/ bool wxNode_wxWebViewHistoryItem::AssignableFrom(const char* className) {
+ if(!strcmp("WebViewHistoryItem", className)) { return true; }
+
+
+ return false;
+}
+
+/*static*/ v8::Handle<v8::Value> wxNode_wxWebViewHistoryItem::_init(const v8::Arguments& args) {
+ v8::HandleScope scope;
+
+
+
+ /*
+ * id: _53949
+ */
+ if(args.Length() == 1 && (args[0]->IsNull() || (args[0]->IsObject() && wxNode_wxWebViewHistoryItem::AssignableFrom(args[0]->ToObject()->GetConstructorName())))) {
+ wxNode_wxWebViewHistoryItem* arg0 = args[0]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxWebViewHistoryItem>(args[0]->ToObject()); /* type: _68217 */
+
+
+ wxNode_wxWebViewHistoryItem *self = new wxNode_wxWebViewHistoryItem(*arg0);
+ NodeExEvtHandlerImpl* evtHandler = dynamic_cast<NodeExEvtHandlerImpl*>(self);
+ self->wrap(args.This(), self, evtHandler);
+ return args.This();
+ }
+
+ /*
+ * id: _53950
+ */
+ if(args.Length() == 2 && args[0]->IsString() && args[1]->IsString()) {
+ v8::String::AsciiValue url(args[0]->ToString()); /* type: _14975 */
+ v8::String::AsciiValue title(args[1]->ToString()); /* type: _14975 */
+
+
+ wxNode_wxWebViewHistoryItem *self = new wxNode_wxWebViewHistoryItem(*url, *title);
+ NodeExEvtHandlerImpl* evtHandler = dynamic_cast<NodeExEvtHandlerImpl*>(self);
+ self->wrap(args.This(), self, evtHandler);
+ return args.This();
+ }
+
+
+
+ std::ostringstream errStr;
+ errStr << "Could not find matching constructor for arguments (class name: wxWebViewHistoryItem).\n";
+ errStr << " arg count: " << args.Length() << "\n";
+ for(int i = 0; i < args.Length(); i++) {
+ v8::String::AsciiValue argStr(args[i]);
+ errStr << " arg[" << i << "]: " << *argStr << "\n";
+ }
+ return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
+}
+
+
+/*static*/ v8::Handle<v8::Value> wxNode_wxWebViewHistoryItem::_GetUrl(const v8::Arguments& args) {
+ v8::HandleScope scope;
+ wxNode_wxWebViewHistoryItem* self = unwrap<wxNode_wxWebViewHistoryItem>(args.This());
+
+
+ /*
+ * id: _53951
+ */
+ if(args.Length() == 0) {
+
+
+ wxString returnVal = self->GetUrl();
+
+ return scope.Close(v8::String::New(returnVal.mb_str()));
+ }
+
+
+ std::ostringstream errStr;
+ errStr << "Could not find matching method for arguments (method name: wxWebViewHistoryItem::GetUrl).\n";
+ errStr << " arg count: " << args.Length() << "\n";
+ for(int i = 0; i < args.Length(); i++) {
+ v8::String::AsciiValue argStr(args[i]);
+ errStr << " arg[" << i << "]: " << *argStr << "\n";
+ }
+ return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
+}
+
+/*static*/ v8::Handle<v8::Value> wxNode_wxWebViewHistoryItem::_GetTitle(const v8::Arguments& args) {
+ v8::HandleScope scope;
+ wxNode_wxWebViewHistoryItem* self = unwrap<wxNode_wxWebViewHistoryItem>(args.This());
+
+
+ /*
+ * id: _53952
+ */
+ if(args.Length() == 0) {
+
+
+ wxString returnVal = self->GetTitle();
+
+ return scope.Close(v8::String::New(returnVal.mb_str()));
+ }
+
+
+ std::ostringstream errStr;
+ errStr << "Could not find matching method for arguments (method name: wxWebViewHistoryItem::GetTitle).\n";
+ errStr << " arg count: " << args.Length() << "\n";
+ for(int i = 0; i < args.Length(); i++) {
+ v8::String::AsciiValue argStr(args[i]);
+ errStr << " arg[" << i << "]: " << *argStr << "\n";
+ }
+ return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
+}
+
+
+
40 src-generated/wxNode_wxWebViewHistoryItem.h
View
@@ -0,0 +1,40 @@
+
+#ifndef _wxNode_wxWebViewHistoryItem_h_
+#define _wxNode_wxWebViewHistoryItem_h_
+
+#include "wxnode.h"
+#include "wxNode_wxEvtHandler.h"
+class wxNode_wxWebViewHistoryItem;
+
+
+class wxNode_wxWebViewHistoryItem : public wxWebViewHistoryItem, public wxNodeObject, public NodeExEvtHandlerImpl {
+public:
+ static void Init(v8::Handle<v8::Object> target);
+ static void AddMethods(v8::Handle<v8::FunctionTemplate> target);
+ virtual v8::Handle<v8::Object> self() { return m_self; }
+ static bool AssignableFrom(const v8::Handle<v8::String>& className);
+ static bool AssignableFrom(const char* className);
+ static v8::Handle<v8::Value> New(const wxWebViewHistoryItem* obj);
+ static v8::Handle<v8::Value> New(const wxNode_wxWebViewHistoryItem* obj);
+ static v8::Handle<v8::Value> NewCopy(const wxWebViewHistoryItem& obj);
+
+
+
+ wxNode_wxWebViewHistoryItem(wxWebViewHistoryItem& arg0);
+
+ wxNode_wxWebViewHistoryItem(const wxString& url, const wxString& title);
+
+
+
+private:
+ static v8::Handle<v8::Value> _init(const v8::Arguments& args);
+
+ static v8::Handle<v8::Value> _GetUrl(const v8::Arguments& args);
+ static v8::Handle<v8::Value> _GetTitle(const v8::Arguments& args);
+
+
+
+ static v8::Persistent<v8::FunctionTemplate> s_ct;
+};
+
+#endif
3  src-generated/wxNode_wxWindow.cpp
View
@@ -360,6 +360,7 @@ wxNode_wxWindow::wxNode_wxWindow(wxWindow* parent, int id)
NODE_SET_PROTOTYPE_METHOD(target, "isTopNavigationDomain", _IsTopNavigationDomain);
NODE_SET_PROTOTYPE_METHOD(target, "getClassInfo", _GetClassInfo);
+
}
/*static*/ v8::Handle<v8::Value> wxNode_wxWindow::New(const wxNode_wxWindow* obj) {
@@ -9337,3 +9338,5 @@ wxNode_wxWindow::wxNode_wxWindow(wxWindow* parent, int id)
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
+
+
1  src-generated/wxNode_wxWindow.h
View
@@ -331,6 +331,7 @@ class wxNode_wxWindow : public wxWindow, public wxNodeObject, public NodeExEvtHa
static v8::Handle<v8::Value> _IsTopNavigationDomain(const v8::Arguments& args);
static v8::Handle<v8::Value> _GetClassInfo(const v8::Arguments& args);
+
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
18 src-templates/generic.cpp
View
@@ -34,6 +34,8 @@ wxNode_{{parent.parent.name}}::wxNode_{{parent.parent.name}}({{{argDeclCode}}})
{{{baseClassAddMethodsCallCode}}}
{{#methods}}{{{addMethodStmt}}}
{{/methods}}
+ {{#fields}}{{{addFieldStmt}}}
+ {{/fields}}
}
/*static*/ v8::Handle<v8::Value> wxNode_{{name}}::New(const wxNode_{{name}}* obj) {
@@ -156,3 +158,19 @@ wxNode_{{parent.parent.name}}::wxNode_{{parent.parent.name}}({{{argDeclCode}}})
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
}
{{/methods}}
+
+{{#fields}}
+/*static*/ v8::Handle<v8::Value> wxNode_{{parent.name}}::_{{name}}Get(v8::Local<v8::String> name, const v8::AccessorInfo& info) {
+ v8::HandleScope scope;
+ wxNode_{{parent.name}}* self = unwrap<wxNode_{{parent.name}}>(info.This());
+
+ return scope.Close(v8::Number::New(self->{{name}}));
+}
+
+/*static*/ void wxNode_{{parent.name}}::_{{name}}Set(v8::Local<v8::String> name, v8::Local<v8::Value> val, const v8::AccessorInfo& info) {
+ v8::HandleScope scope;
+ wxNode_{{parent.name}}* self = unwrap<wxNode_{{parent.name}}>(info.This());
+
+ self->{{name}} = val->ToNumber()->Value();
+}
+{{/fields}}
3  src-templates/generic.h
View
@@ -29,6 +29,9 @@ class wxNode_{{name}} : public {{name}}, public wxNodeObject, public NodeExEvtHa
{{#methods}}static v8::Handle<v8::Value> _{{name}}(const v8::Arguments& args);
{{/methods}}
+ {{#fields}}static v8::Handle<v8::Value> _{{name}}Get(v8::Local<v8::String> name, const v8::AccessorInfo& info);
+ static void _{{name}}Set(v8::Local<v8::String> name, v8::Local<v8::Value> val, const v8::AccessorInfo& info);
+ {{/fields}}
static v8::Persistent<v8::FunctionTemplate> s_ct;
};
22 src/globalFunctions.cpp
View
@@ -1,6 +1,7 @@
#include "globalFunctions.h"
#include "wxNode_wxCursor.h"
+#include "wxNode_wxPoint.h"
#include <sstream>
/*static*/ void GlobalFunctions::Init(v8::Handle<v8::Object> target) {
@@ -9,6 +10,9 @@
v8::Local<v8::FunctionTemplate> logMessageTemplate = v8::FunctionTemplate::New(_logMessage);
target->Set(v8::String::NewSymbol("logMessage"), logMessageTemplate->GetFunction());
+
+ v8::Local<v8::FunctionTemplate> getMousePositionTemplate = v8::FunctionTemplate::New(_getMousePosition);
+ target->Set(v8::String::NewSymbol("getMousePosition"), getMousePositionTemplate->GetFunction());
}
/*static*/ v8::Handle<v8::Value> GlobalFunctions::_setCursor(const v8::Arguments& args) {
@@ -49,4 +53,20 @@
errStr << " arg[" << i << "]: " << *argStr << "\n";
}
return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
-}
+}
+
+/*static*/ v8::Handle<v8::Value> GlobalFunctions::_getMousePosition(const v8::Arguments& args) {
+ if(args.Length() == 0) {
+ wxPoint pt = wxGetMousePosition();
+ return wxNode_wxPoint::NewCopy(pt);
+ }
+
+ std::ostringstream errStr;
+ errStr << "Could not find matching method for getMousePosition.\n";
+ errStr << " arg count: " << args.Length() << "\n";
+ for(int i = 0; i < args.Length(); i++) {
+ v8::String::AsciiValue argStr(args[i]);
+ errStr << " arg[" << i << "]: " << *argStr << "\n";
+ }
+ return v8::ThrowException(v8::Exception::TypeError(v8::String::New(errStr.str().c_str())));
+}
1  src/globalFunctions.h
View
@@ -11,6 +11,7 @@ class GlobalFunctions : public wxNodeObject {
private:
static v8::Handle<v8::Value> _setCursor(const v8::Arguments& args);
static v8::Handle<v8::Value> _logMessage(const v8::Arguments& args);
+ static v8::Handle<v8::Value> _getMousePosition(const v8::Arguments& args);
};
#endif
3  src/wxNode_wxEvtHandler.cpp
View
@@ -52,6 +52,9 @@ v8::Handle<v8::Value> NewEvent_wxWebViewEvent(wxEvent& event) {
else if(args.Length() == 5) {
int32_t winId = args[0]->ToInt32()->Value();
int32_t eventType = args[1]->ToInt32()->Value();
+ if(!args[2]->IsFunction()) {
+ return v8::ThrowException(v8::Exception::TypeError(v8::String::New("Invalid 3nd argument, expected function.")));
+ }
v8::Local<v8::Object> func = args[2]->ToObject();
void* userData = args[3]->IsNull() ? NULL : wxNodeObject::unwrap<void>(args[3]->ToObject());
wxNode_wxEvtHandler* eventSink = args[4]->IsNull() ? NULL : wxNodeObject::unwrap<wxNode_wxEvtHandler>(args[4]->ToObject());;
10 src/wxNode_wxVector.h
View
@@ -2,17 +2,23 @@
#ifndef _wxNode_wxVector_
#define _wxNode_wxVector_
+#include "wxnode.h"
#include <wx/vector.h>
template<typename T>
class wxNode_wxVector : public wxVector<T>, public wxNodeObject {
- public:
+public:
static void AddMethods(v8::Handle<v8::FunctionTemplate> target) { wxNodeObject::AddMethods(target); }
static bool AssignableFrom(const v8::Handle<v8::String>& className) { return false; }
static bool AssignableFrom(const char* className) { return false; }
static v8::Handle<v8::Value> New(wxVector<T>* obj) { return v8::Undefined(); }
- static v8::Handle<v8::Value> NewCopy(wxVector<T>& obj) { return v8::Undefined(); }
+ static v8::Handle<v8::Value> NewCopy(wxVector<T>& obj) {
+ v8::HandleScope scope;
+ v8::Local<v8::Array> result = v8::Array::New();
+
+ return scope.Close(result);
+ }
};
#endif
1  src/wxnode.h
View
@@ -15,7 +15,6 @@
#include <wx/webview.h>
#include <wx/webviewarchivehandler.h>
#include "wxNodeObject.h"
-#include "wxNode_wxVector.h"
#include "wxNode_wxWindowWithItems_wxControl_wxItemContainer.h"
#endif
2  src/wxnode_bindings.cpp
View
@@ -25,6 +25,7 @@
#include "wxNode_wxWebView.h"
#include "wxNode_wxCursor.h"
#include "wxNode_wxWebViewArchiveHandler.h"
+#include "wxNode_wxWebViewHistoryItem.h"
#include "wxLogStatus.h"
#include "messageBox.h"
#include "globalFunctions.h"
@@ -54,6 +55,7 @@ extern "C" {
wxNode_wxLogWindow::Init(target);
wxNode_wxWebView::Init(target);
wxNode_wxWebViewArchiveHandler::Init(target);
+ wxNode_wxWebViewHistoryItem::Init(target);
GlobalFunctions::Init(target);
NodeWxMessageBox::Init(target);
NodeWxLogStatus::Init(target);
Please sign in to comment.
Something went wrong with that request. Please try again.