search for: wxeventtype

Displaying 20 results from an estimated 20 matches for "wxeventtype".

Did you mean: eventtype
2007 May 31
0
[1042] trunk/wxruby2: Overhaul of the event handling WxType->RubyClass mapping to make it
...g_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 -}; - -stat...
2006 Dec 31
0
[815] trunk/wxruby2/swig/classes: Added ContextMenuEvent class plus event handling methods
...#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">...
2006 Nov 07
0
[723] trunk/wxruby2: Added WindowCreateEvent and WindowDestroyEvent + event handlers (AF)
...#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[] = +{ + &wxEV...
2007 Apr 29
0
[982] branches/wxruby2/wxwidgets_282/swig/classes/EvtHandler.i: Add EvtThunker mapping for TimerEvent (bug 10391)
...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...
2006 Dec 20
0
[790] trunk/wxruby2/swig/classes: Added TextUrlEvent class and EvtHandler mapping
...t;<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"...
2006 Dec 24
0
[802] trunk/wxruby2/swig/classes: Add support for MenuEvent (MENU_OPEN, MENU_CLOSE, MENU_HIGHLIGHT)
...#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 +}; + &lt...
2007 Jun 23
0
[1064] trunk/wxruby2/swig/Events.i: Removed unused func, updated comments
...sp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp 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 *a...
2006 Dec 31
0
[814] trunk/wxruby2/swig/classes: Added ScrollEvent class plus event processing and handler methods
...t;/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,...
2007 Jun 23
0
[1063] trunk/wxruby2/swig/classes/EvtHandler.i: Add a public ''connect'' method for handling arbitary user-defined events
...rated 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); + wxObjectEventFunc...
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
...;nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp''EVT_COMMAND'', -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp''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 c...
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
...ass="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) - cal...
2007 Jun 25
0
[1066] trunk/wxruby2/swig: Move EVT constants in swig/classes/Event.i; add a few missing ones
...sp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp 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
...#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_AU...
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
...onst 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>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspputs("Called internal_evt_with_id in Events"); </del><span class="cx"> if (argc != 1)...
2007 May 31
0
[1038] trunk/wxruby2/swig/Events.i: Add missing EVT_COMMAND_TREE constants
...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>+&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspputs("Called internal_evt_with_id in Events"); </ins><span class="cx"> if (argc != 1)...
2006 Oct 17
0
[685] trunk/wxruby2/swig: Add Printing constants and typedefs, add two missing methods (Roy
...: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"> enu...
2007 Jun 25
0
[1067] trunk/wxruby2: Set up event handlers in Ruby rather than by post-processing SWIG output
...ns -# 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)...