Displaying 20 results from an estimated 20 matches for "wxeventtyp".
Did you mean:
wxeventtype
2007 May 31
0
[1042] trunk/wxruby2: Overhaul of the event handling WxType->RubyClass mapping to make it
...tern swig_class cWxMenuEvent;
-extern swig_class cWxContextMenuEvent;
-extern swig_class cWxAuiManagerEvent;
-extern swig_class cWxAuiNotebookEvent;
-#ifdef WXSCINTILLA
-extern swig_class cWxScintillaEvent;
-#endif
</del><span class="cx">
</span><del>-static const wxEventType *calendarEvents[] =
-{
- &wxEVT_CALENDAR_SEL_CHANGED,
- &wxEVT_CALENDAR_DAY_CHANGED,
- &wxEVT_CALENDAR_MONTH_CHANGED,
- &wxEVT_CALENDAR_YEAR_CHANGED,
- &wxEVT_CALENDAR_DOUBLECLICKED,
- &wxEVT_CALENDAR_WEEKDAY_CLICKED,
- (const wxEventType *)0
-};
-
-sta...
2006 Dec 31
0
[815] trunk/wxruby2/swig/classes: Added ContextMenuEvent class plus event handling methods
...uot;cx"> #ifdef WXSCINTILLA
</span><span class="cx"> extern swig_class cWxScintillaEvent;
</span><span class="cx"> #endif
</span><span class="lines">@@ -322,6 +323,12 @@
</span><span class="cx"> (const wxEventType *)0
</span><span class="cx"> };
</span><span class="cx">
</span><ins>+static const wxEventType *contextMenuEvents[] =
+{
+ &wxEVT_CONTEXT_MENU,
+ (const wxEventType *)0
+};
+
</ins><span class="cx"> #ifdef WXSCINT...
2007 Apr 29
0
[982] branches/wxruby2/wxwidgets_282/swig/classes/EvtHandler.i: Add EvtThunker mapping for TimerEvent (bug 10391)
...vent;
</span><span class="cx"> extern swig_class cWxFindDialogEvent;
</span><span class="cx"> extern swig_class cWxMouseEvent;
</span><span class="lines">@@ -146,6 +147,12 @@
</span><span class="cx"> (const wxEventType *)0
</span><span class="cx"> };
</span><span class="cx">
</span><ins>+static const wxEventType *timerEvents[] =
+{
+ &wxEVT_TIMER,
+ (const wxEventType *)0
+};
+
</ins><span class="cx"> static const wxEventTy...
2006 Nov 07
0
[723] trunk/wxruby2: Added WindowCreateEvent and WindowDestroyEvent + event handlers (AF)
...uot;cx"> #ifdef WXSCINTILLA
</span><span class="cx"> extern swig_class cWxScintillaEvent;
</span><span class="cx"> #endif
</span><span class="lines">@@ -277,6 +279,18 @@
</span><span class="cx"> (const wxEventType *)0
</span><span class="cx"> };
</span><span class="cx">
</span><ins>+static const wxEventType *createEvents[] =
+{
+ &wxEVT_CREATE,
+ (const wxEventType *)0
+};
+
+static const wxEventType *destroyEvents[] =
+{
+ &wxEVT_DESTROY,...
2006 Dec 20
0
[790] trunk/wxruby2/swig/classes: Added TextUrlEvent class and EvtHandler mapping
...</span><span class="cx"> &wxEVT_COMMAND_MENU_SELECTED,
</span><span class="cx"> &wxEVT_COMMAND_SLIDER_UPDATED,
</span><span class="lines">@@ -110,6 +110,12 @@
</span><span class="cx"> (const wxEventType *)0
</span><span class="cx"> };
</span><span class="cx">
</span><ins>+static const wxEventType *textUrlEvents[] =
+{
+ &wxEVT_COMMAND_TEXT_URL,
+ (const wxEventType *)0
+};
+
</ins><span class="cx"> static con...
2006 Dec 24
0
[802] trunk/wxruby2/swig/classes: Add support for MenuEvent (MENU_OPEN, MENU_CLOSE, MENU_HIGHLIGHT)
...uot;cx"> #ifdef WXSCINTILLA
</span><span class="cx"> extern swig_class cWxScintillaEvent;
</span><span class="cx"> #endif
</span><span class="lines">@@ -297,6 +298,14 @@
</span><span class="cx"> (const wxEventType *)0
</span><span class="cx"> };
</span><span class="cx">
</span><ins>+static const wxEventType *menuEvents[] =
+{
+ &wxEVT_MENU_OPEN,
+ &wxEVT_MENU_CLOSE,
+ &wxEVT_MENU_HIGHLIGHT,
+ (const wxEventType *)0
+};
+
</ins>&l...
2007 Jun 23
0
[1064] trunk/wxruby2/swig/Events.i: Removed unused func, updated comments
...sp                                  wxEventType eventType);
</ins><span class="cx">
</span><del>-void internal_connect(VALUE self, int firstId, int lastId,
- wxEventType eventType);
-
-
</del><span class="cx"> static VALUE internal_evt_with_id(int argc, VALUE *argv, VALUE...
2006 Dec 31
0
[814] trunk/wxruby2/swig/classes: Added ScrollEvent class plus event processing and handler methods
...rollWinEvent;
</span><span class="cx"> extern swig_class cWxMoveEvent;
</span><span class="cx"> extern swig_class cWxListEvent;
</span><span class="lines">@@ -266,6 +267,21 @@
</span><span class="cx"> (const wxEventType *)0
</span><span class="cx"> };
</span><span class="cx">
</span><ins>+static const wxEventType *scrollEvents[] =
+{
+ &wxEVT_SCROLL_TOP,
+ &wxEVT_SCROLL_BOTTOM,
+ &wxEVT_SCROLL_LINEUP,
+ &wxEVT_SCROLL_LINEDOWN,
+ &wx...
2007 Jun 23
0
[1063] trunk/wxruby2/swig/classes/EvtHandler.i: Add a public ''connect'' method for handling arbitary user-defined events
...are defined by Events.cpp, generated from
+// swig/Event.i and modified by swig/fixevents.rb
</ins><span class="cx">
</span><ins>+// This provides the public Ruby ''connect'' method
+%extend wxEvtHandler {
+ VALUE connect(int firstId, int lastId, wxEventType eventType)
+ {
+ VALUE func = rb_funcall(rb_cProc, rb_intern("new"), 0);
+ rb_global_variable(&callbacks);
+ if(callbacks == Qnil)
+ callbacks = rb_ary_new();
+ rb_ary_push(callbacks, func);
+
+ wxObject* userData = new wxRbCallback(func);
+ wxObjectEventFun...
2006 Jul 25
6
Wizards
Hi
Please find attached a set of patches and swig files to implement
Wizards for wxruby. Also a brief sample.
Quick q - the C declarations of evt_xxx_xxx methods and their attaching
to Ruby classes seems to be duplicated across Events.i and EvtHandler.i
- is one of these the right place to be adding them? or both?
Thanks
alex
_______________________________________________
2007 Jun 23
0
[1060] trunk/wxruby2/swig/fixevents.rb: Include some previously missing events, rehash and simplify
...       ''EVT_COMMAND'',
-        ''EVT_TAB'',
-]
</del><ins>+# Little class to make accessing Event Type info a bit easier below
+class WxEventType < Struct.new(:name, :type, :wx_const)
+ # Events in Wx but not exposed in WxRuby (b/c they cause problems)
+ EXCLUDED = [ /^EVT_TAB/, ''EVT_COMMAND'' ]
+ # These event types only work on Windows
+ WINDOWS_ONLY = [ /^EVT_DIALUP/ ]
</ins><span class="cx">...
2007 May 29
0
[1035] trunk/wxruby2/swig/classes/EvtHandler.i: Removed a heap of redundant stuff that''s been #if 0''d for a while
...;<span class="cx"> %}
</span><span class="cx">
</span><span class="cx">
</span><del>-#if 0
-%{
- static VALUE callbacks = Qnil;
-%}
-
-%{
-static void internal_connect(VALUE self, int firstId, int lastId,
- wxEventType eventType)
-{
-
- wxEvtHandler *cppSelf = (wxEvtHandler *) 0 ;
- SWIG_ConvertPtr(self, (void **) &cppSelf, SWIGTYPE_p_wxEvtHandler, 1);
-
- VALUE func = rb_funcall(rb_cProc, rb_intern("new"), 0);
- rb_global_variable(&callbacks);
- if(callbacks == Qnil)
- ca...
2007 Jun 25
0
[1066] trunk/wxruby2/swig: Move EVT constants in swig/classes/Event.i; add a few missing ones
...sp                                  wxEventType eventType);
-
-static VALUE internal_evt_with_id(int argc, VALUE *argv, VALUE self,
- wxEventType eventType)
-{
- if (argc != 1)
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
-
- int id = NUM2INT(argv[0]);
-
- internal_connect(self, id,...
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...uot;cx"> #ifdef WXSCINTILLA
</span><span class="cx"> extern swig_class cWxScintillaEvent;
</span><span class="cx"> #endif
</span><span class="lines">@@ -329,6 +332,30 @@
</span><span class="cx"> (const wxEventType *)0
</span><span class="cx"> };
</span><span class="cx">
</span><ins>+static const wxEventType *auiManagerEvents[] =
+{
+ &wxEVT_AUI_PANE_BUTTON,
+ &wxEVT_AUI_PANE_CLOSE,
+ &wxEVT_AUI_PANE_MAXIMIZE,
+ &wxEVT_AUI_PANE_REST...
2006 Sep 12
1
Patch to wxMouseEvent.h
This patch just applies some const tags that were missing (does this
affect anything at all?) and removes a definition that was causing a
conflict.
Roy
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2005 Aug 29
3
added Choicebook
Here are the new files in a zip and the patches to existing.
Also added Listbook values to parents.rb that I forgot when adding that.
Sean
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2007 May 31
0
[1039] trunk/wxruby2/swig/Events.i: Remove some debugging output
...%constant const int wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK;
</span><span class="lines">@@ -280,7 +279,6 @@
</span><span class="cx"> static VALUE internal_evt_with_id(int argc, VALUE *argv, VALUE self,
</span><span class="cx"> wxEventType eventType)
</span><span class="cx"> {
</span><del>-        puts("Called internal_evt_with_id in Events");
</del><span class="cx"> if (argc != 1)
</span&...
2007 May 31
0
[1038] trunk/wxruby2/swig/Events.i: Add missing EVT_COMMAND_TREE constants
...%constant const int wxEVT_GRID_CELL_RIGHT_DCLICK; //1583)
</span><span class="lines">@@ -257,6 +280,7 @@
</span><span class="cx"> static VALUE internal_evt_with_id(int argc, VALUE *argv, VALUE self,
</span><span class="cx"> wxEventType eventType)
</span><span class="cx"> {
</span><ins>+        puts("Called internal_evt_with_id in Events");
</ins><span class="cx"> if (argc != 1)
</span&...
2006 Oct 17
0
[685] trunk/wxruby2/swig: Add Printing constants and typedefs, add two missing methods (Roy
...bsp2006-10-17 21:49:06 UTC (rev 685)
</span><span class="lines">@@ -4,8 +4,6 @@
</span><span class="cx"> typedef int wxWindowID;
</span><span class="cx"> typedef int wxCoord;
</span><span class="cx"> typedef int wxEventType;
</span><del>-//typedef int wxEdge;
-//typedef int wxRelationship;
</del><span class="cx"> enum wxBitmapType;
</span><span class="cx"> typedef short int WXTYPE;
</span><span class="cx"> enum wxCalendarHitTestResult;
<...
2007 Jun 25
0
[1067] trunk/wxruby2: Set up event handlers in Ruby rather than by post-processing SWIG output
...which contains
-# definitions for every event type, and adds the relevant methods to the
-# EvtHandler class.
-
-# Load the $events global array of type definitions
-require ''swig/classes/include/events''
-
-# Little class to make accessing Event Type info a bit easier below
-class WxEventType < Struct.new(:name, :type, :wx_const)
- # Events in Wx but not exposed in WxRuby (b/c they cause problems)
- EXCLUDED = [ /^EVT_TAB/, ''EVT_COMMAND'' ]
- # These event types only work on Windows
- WINDOWS_ONLY = [ /^EVT_DIALUP/ ]
-
- def initialize(*args)
- super
- @e...