search for: __wxmac__

Displaying 17 results from an estimated 17 matches for "__wxmac__".

2005 Aug 10
1
another small patch
This is a fix for MenuItem, on Mac OS it only has 1 constructor so the second one has #ifndef __WXMAC__ #endif around it Sean _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Oct 20
0
[695] trunk/wxruby2/swig/classes/include/wxPen.h: Get/SetStipple not available on GTK
...</span><span class="cx"> int GetDashes(wxDash** dashes ) const; </span><span class="cx"> int GetJoin() const; </span><del>- wxBitmap* GetStipple() const; </del><ins>+// not available on GTK +#if defined(__WXMSW__) || defined(__WXMAC__) + wxBitmap* GetStipple() const; +#endif </ins><span class="cx"> int GetStyle() const; </span><span class="cx"> int GetWidth() const; </span><span class="cx"> bool Ok() const; </span><span class="lines">@...
2007 Apr 18
5
Turning off spell checker in TextCtrl
Hi, I''m running WxRuby2 on Mac OS X. Something is spell checking the text that I put into it; words it doesn''t recognize get an annoying red line under them. How can I turn the spell checker off? Thanks, Paul
2010 May 18
8
gem for snow leopard?
Does anybody plan to post binary rem for SL? Id''love to rely on its availability in the installation script... As wx included in installation package makes it huge... Sergey Chernov real.sergeych@gmail.com
2007 Apr 29
0
[985] branches/wxruby2/wxwidgets_282/swig/classes/Window.i: Fix get_handle on GTK
...&nbsp&nbsplong handle; - -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp// borrowed from wxPython -#ifdef __WXMSW__ - handle = (long)win->GetHandle(); -#endif - -#if defined(__WXGTK__) || defined(__WXX11) - handle = (long)GetXWindow(win); -#endif - -#ifdef __WXMAC__ - handle = (long)win->GetHandle(); -#endif - </del><ins>+ long handle = (long)win->GetHandle(); </ins><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn LONG2NUM(handle); </span><span class="cx...
2007 Jul 04
0
[1106] trunk/wxruby2/swig/RubyConstants.i: Add the MOD_XXX constants as used in wxKeyEvent
...= 4, - wxMOD_WIN = 8 </del><ins>+ wxMOD_NONE = 0x0000, + wxMOD_ALT = 0x0001, + wxMOD_CONTROL = 0x0002, + wxMOD_ALTGR = wxMOD_ALT | wxMOD_CONTROL, + wxMOD_SHIFT = 0x0004, + wxMOD_META = 0x0008, + wxMOD_WIN = wxMOD_META, +#if defined(__WXMAC__) || defined(__WXCOCOA__) + wxMOD_CMD = wxMOD_META, +#else + wxMOD_CMD = wxMOD_CONTROL, +#endif + wxMOD_ALL = 0xffff </ins><span class="cx"> }; </span><del>-#endif </del><span class="cx"> </span><span class=...
2007 Mar 19
0
[899] branches/wxruby2/wxwidgets_282/swig/classes/include/wxFontDialog.h: Fixed GetFontData() signature to match headers for wxMac, needed to get around compile error.
...gt;@@ -21,7 +21,12 @@ </span><span class="cx"> </span><span class="cx"> </span><span class="cx"> virtual ~wxFontDialog() ; </span><del>- const wxFontData& GetFontData() const; </del><ins>+#if defined(__WXMAC__) + wxFontData& GetFontData(); +#else +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspconst wxFontData& GetFontData() const; +#endif + </ins><span class="cx"> wxFontData& GetFontData() ; </span><span class="cx"> in...
2007 May 02
0
[1000] branches/wxruby2/wxwidgets_282/swig/classes/include/wxPen.h: Default arguments for Wx::Pen constructors
...olour& colour , int width = 1 , int style = wxSOLID ) ; + wxPen(const wxString& colourName , int width = 1 , int style = wxSOLID ) ; </ins><span class="cx"> // not available on GTK </span><span class="cx"> #if defined(__WXMSW__) || defined(__WXMAC__) </span><span class="cx"> wxPen(const wxBitmap& stipple , int width ) ; </span></span></pre> </div> </div> </body> </html>
2007 Jan 03
0
[824] trunk/wxruby2/swig/classes/App.i: Remove some ifdefs for old unstable versions of WxWidgets
...int nCmdShow); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspwxEntry(GetModuleHandle(NULL),(HINSTANCE)0,(wxCmdLineArgType)"",(int)true); </ins><span class="cx"> #elif __WXMAC__ </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspwxEntry(argc,(char **)argv); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp </del><ins>+&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&am...
2007 Apr 26
0
[973] branches/wxruby2/wxwidgets_282/swig/classes/Window.i: Fix crasher with Window#get_handle, also comment the paint method
...&nbsp&nbsplong handle; + +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp// borrowed from wxPython +#ifdef __WXMSW__ + handle = (long)win->GetHandle(); +#endif + +#if defined(__WXGTK__) || defined(__WXX11) + handle = (long)GetXWindow(win); +#endif + +#ifdef __WXMAC__ + handle = (long)win->GetHandle(); +#endif + +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn LONG2NUM(handle); + } </ins><span class="cx"> } </span></span></pre> </div> </div> </body> </html>
2007 Apr 21
0
[971] branches/wxruby2/wxwidgets_282/swig/classes: Added method to turn off ''Check Spelling as You Type'' on OS X 10.4.x and above.
...sp//Use this to turn off and on ''Check Spelling as You Type'' on OS X 10.4.x and above +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp//renamed in the .i file to check_spelling +#ifdef __WXMAC__ +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspvoid MacCheckSpellin...
2006 Dec 20
0
[790] trunk/wxruby2/swig/classes: Added TextUrlEvent class and EvtHandler mapping
...@@ </span><span class="cx"> return internal_evt_with_id(argc, argv, self, wxEVT_COMMAND_TEXT_MAXLEN); </span><span class="cx"> } </span><span class="cx"> </span><del>-#ifdef __WXMSW__ </del><ins>+#ifndef __WXMAC__ </ins><span class="cx"> static VALUE evt_text_url(int argc, VALUE *argv, VALUE self) </span><span class="cx"> { </span><span class="cx"> return internal_evt_with_id(argc, argv, self, wxEVT_COMMAND_TEXT_URL); </span></sp...
2006 Sep 17
11
ShapedWindow.rbw
These patches implement wxRegion and the ShapedWindow sample. I stole the ruby image from ruby-lang.org. Shamelessly. Maybe someone has a better image we can use for the shaped window. It didn''t seem to make sense to use the Python image. I''d like something even bigger than what I stol^h^h^h^hmade, preferably. Image goes in icons. I had to %ignore one function in wxRegion.
2005 May 03
10
Is wxRuby-SWIG version usable enough to package for download?
If wxRuby-SWIG is as usable as wxRuby 0.6.0, maybe it should be given a version number and packaged up for download. Given the nature of SWIG, having a lot more people use it would probably result in more code contributions to this project. Seems most of the changes are 2+ months old, so I''m guessing wxRuby-SWIG is fairly stable right now in terms of frequency of changes...
2007 Mar 17
0
[883] branches/wxruby2/wxwidgets_282/swig: API changes for move to WxWidgets 2.8
...lass="cx"> { </span><span class="cx"> public: </span><span class="cx"> wxFontDialog() ; </span><ins>+ wxFontDialog(wxWindow* parent , const wxFontData& data ) ; </ins><span class="cx"> #if !defined(__WXMAC__) </span><span class="cx"> wxFontDialog(wxWindow* parent ) ; </span><span class="cx"> #endif </span><del>- wxFontDialog(wxWindow* parent , const wxFontData& data ) ; </del><ins>+ </ins><span class="cx"...
2005 Aug 21
15
New inheritance
A good number of the samples I have tested are outright or subtly broken on Windows now. I''m trying to determine what the cause is. Mostly it seems related to the initialize function not being created when it should be. Case in point: ClientDC.i The caret example won''t work at all because initialize isn''t declared any longer. If you comment out the import
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
...evt_text_enter(int argc, VALUE *argv, VALUE self) -{ - return internal_evt_with_id(argc, argv, self, wxEVT_COMMAND_TEXT_ENTER); -} - -static VALUE evt_text_maxlen(int argc, VALUE *argv, VALUE self) -{ - return internal_evt_with_id(argc, argv, self, wxEVT_COMMAND_TEXT_MAXLEN); -} - -#ifndef __WXMAC__ -static VALUE evt_text_url(int argc, VALUE *argv, VALUE self) -{ - return internal_evt_with_id(argc, argv, self, wxEVT_COMMAND_TEXT_URL); -} -#endif - -static VALUE evt_radiobox(int argc, VALUE *argv, VALUE self) -{ - return internal_evt_with_id(argc, argv, self, wxEVT_COMMAND_RADIOBOX_SELE...