search for: wxstring

Displaying 20 results from an estimated 118 matches for "wxstring".

Did you mean: wstring
2005 Oct 09
0
[Fwd: Re: [Swig] Re: Object return problem]
...m> Hi guys, I just figured out the answer. wxWindow uses directors (as almost all our wxruby classes do), and the swig error message hints at the problem. We need to use directorout typemaps, rather than just plain "out". I inserted this, and it seemed to work: %typemap(directorout) wxString { $result = wxString(STR2CSTR($1), wxConvUTF8); } Typemaps are sure a confusing feature. They''re great, and powerful. But I hope for SWIG v3 they can be completely overhauled to be more consistent and straightforward. I''ll forward this message to the wxruby list, too. Kevin...
2007 Jun 25
0
[1069] trunk/wxruby2/swig/typemap.i: Fix big memory leak in methods taking wxString as a parameter
...nd:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[1069] trunk/wxruby2/swig/typemap.i: Fix big memory leak in methods taking wxString as a parameter</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>1069</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-06-25 18:49:21 -0400 (Mon, 25 Jun 2007)</...
2005 Oct 06
3
nested classes
I am working on wxFileType and wxMimeTypesManager, most of which I have done but I had to comment out a nested class in wxFileType and the methods that use it. Does anyone have a clever way to get around nested classes since SWIG does not currently support them? Sean
2007 Jan 23
0
[853] trunk/wxruby2/swig: Replace deprecated STR2CSTR with StringValuePtr
...gt;@@ -25,7 +25,7 @@ </span><span class="cx"> void log_message(int argc, VALUE *argv, VALUE self) </span><span class="cx"> { </span><span class="cx"> VALUE str = rb_f_sprintf(argc, argv); </span><del>- wxLogMessage(wxString(STR2CSTR(str), wxConvUTF8)); </del><ins>+ wxLogMessage(wxString(StringValuePtr(str), wxConvUTF8)); </ins><span class="cx"> </span><span class="cx"> } </span><span class="cx"> </span><span class="lines&q...
2007 Jun 22
0
[1056] trunk/wxruby2/swig/classes/include/wxToolBar.h: Add missing param to InsertTool long version; uncomment some methods now
...wxPoint& -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \param const wxSize& -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \param long -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \param const wxString& -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp*/ - </del><span class="cx"> wxToolBar(wxWindow* parent , wxWindowID id , const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTB_HORIZONTAL,...
2006 Nov 06
3
HtmlWindow and friends
Hi Attached is a patch to add HtmlWindow and some of its friends, including HtmlEasyPrinting. Also a sample. I haven''t tried exposing the parsing and rendering API yet to allow custom tags etc - I just wanted to get basic HTML and the 0.6.0 compatibility classes first. There may well be some quite easy classes left. There''s one ugly kludge to get OnOpeningURL to compile -
2007 Apr 13
0
[950] branches/wxruby2/wxwidgets_282: Changes in GenericDirCtrl API 2.6->2.8, fix TreeItemId mapping, remove cruft
...nstructor. -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \param wxWindow* -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \param const wxWindowID -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \param const wxString& -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \param const wxPoint& -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \param const wxSize& -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \param...
2006 Nov 12
0
[724] trunk/wxruby2: Initial commit of HtmlWindow functionality
...URL +enum wxHtmlOpeningStatus +{ + wxHTML_OPEN, + wxHTML_BLOCK, + wxHTML_REDIRECT +}; + +// implement in ruby +%ignore wxHtmlWindow::LoadFile; + +// OnOpeningURL: for some reason this ignore doesn''t actually ignore +// %ignore wxHtmlWindow::OnOpeningURL(wxHtmlURLType type , const wxString& url , wxString * redirect ) const; + +// TODO: fix typemaps so that on_opening_url will be called in subclass method. +// The default typemap for WxString. * is not correct for this method, but ignore doesn''t seem to be working (SWIG 1.3.29). The typemaps below just stop a compile e...
2007 Mar 27
0
[921] branches/wxruby2/wxwidgets_282/swig/Functions.i: Enable Wx::get_number_from_user to fix exception in samples/dialogs
...nclude <wx/utils.h> </span><span class="cx"> </span><span class="lines">@@ -125,7 +126,11 @@ </span><span class="cx"> </span><span class="cx"> size_t wxGetMultipleChoices(wxArrayInt& selections,const wxString& message,const wxString& caption,int n, const wxString choices[],wxWindow *parent = NULL,int x = -1, int y = -1,bool centre = TRUE,int width=150, int height=200); </span><span class="cx"> </span><del>-//long wxGetNumberFromUser( const wxString& messag...
2006 Nov 27
0
[760] trunk/wxruby2/swig/classes/include/wxHelpController.h: Correct method signatures for Initialize, OnQuit, GetFrameParameters;
...l ~wxHelpController() ; </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp/** -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \brief -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \param const wxString& -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp*/ - - virtual void Initialize(const wxString& file ) ; -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp/** -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \br...
2007 Mar 17
0
[883] branches/wxruby2/wxwidgets_282/swig: API changes for move to WxWidgets 2.8
...;nbsp&nbsp&nbsp&nbsp&nbsp2007-03-17 18:39:40 UTC (rev 883) </span><span class="lines">@@ -125,7 +125,7 @@ </span><span class="cx"> </span><span class="cx"> size_t wxGetMultipleChoices(wxArrayInt& selections,const wxString& message,const wxString& caption,int n, const wxString choices[],wxWindow *parent = NULL,int x = -1, int y = -1,bool centre = TRUE,int width=150, int height=200); </span><span class="cx"> </span><del>-long wxGetNumberFromUser( const wxString& message,...
2006 Nov 23
0
[753] trunk/wxruby2/swig/classes/include/wxListBox.h: Added back in client data functions for listbox
...22:28 UTC (rev 753) </span><span class="lines">@@ -27,7 +27,7 @@ </span><span class="cx"> </span><span class="cx"> // override pure virtuals in a base class </span><span class="cx"> virtual int Append(const wxString& item ); </span><del>- //virtual int Append(const wxString& item , void * clientData ); </del><ins>+ virtual int Append(const wxString& item , void * clientData ); </ins><span class="cx"> virtual int Append(const wxString& it...
2005 Sep 03
2
Problem with swig?
Take a look at the generated code from ListBox.cpp: static VALUE _wrap_new_wxListBox__SWIG_0(int argc, VALUE *argv, VALUE self) { VALUE arg1 ; wxWindow *arg2 = (wxWindow *) 0 ; wxWindowID arg3 ; wxPoint *arg4 = 0 ; wxSize *arg5 = 0 ; int arg6 ; wxString *arg7 ; long arg8 ; wxValidator *arg9 = 0 ; wxString *arg10 = 0 ; wxListBox *result; wxString *arr6 ; arg8 has no default value! Here''s the definition from the .h file: wxListBox(wxWindow* parent , wxWindowID id , const wxPoint& pos = wxDefaultPosition, co...
2007 Jan 08
0
[845] trunk/wxruby2/swig/classes: Added MultiChoiceDialog in class form
...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 const wxString& message, +&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&...
2005 Aug 10
3
question on Choice.i
Is there a reason that these lines are in Choice.i? %ignore wxChoice::wxChoice(); %ignore wxChoice::wxChoice(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = NULL, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxChoiceNameStr); If I comment these two lines out I can run all of the sample programs. Sean
2007 Apr 13
0
[954] branches/wxruby2/wxwidgets_282: Additions to Image API 2.6 -> 2.8, remove comment cruft
...l static_data = false) ; </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp/** -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \brief -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \param const wxString& -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \param long -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \param int -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp*/ - </del><span class="c...
2009 Sep 03
24
wxRuby-2.0.1 release ?
Hi, What about releasing a new version shortly ? This is a long-awaited request from several users especially for recent ruby-1.9.1 versions on MinGW. Cheers. Chauk-Mean.
2004 Aug 26
18
wxRuby 0.5.0 has been released!
wxRuby 0.5.0 has been released and is now available for download from RubyForge at http://wxruby.rubyforge.org/ This release includes binary builds for Max OS X and MS Windows. Please report any bugs or feature requests here: http://rubyforge.org/tracker/?group_id=35 Changes in this release include: * Added XRC (Xml Resource File) support. * Added totally awesome HTML widget from Tobi
2005 Jul 27
2
SWIGging ConfigBase
...of overloaded methods called Read, which return different kinds of values. In wxruby-not-swig these are implemented as read, read_bool, read_int and so on. read() means read_string(). In ruby the methods read config_value = conf.read_bool(key, default) but in C++ it''s bool Read(const wxString& key , bool* d , bool defaultVal ) const; There''s also versions that receive just two arguments, the key and a reference to a typed variable that holds the default value which will be modified if there is a config value for that key or else left unchanged: bool Read(const wxStr...
2005 Oct 06
9
Grid.GetTextExtent
Wow. Look what SWIG does to GetTextExtent in Grid.cpp: void SwigDirector_wxGrid::GetTextExtent(wxString const &string, int *x, int *y, int *descent, int *externalLeading, wxFont const *font) const { ... if (swig_get_up()) { wxWindow::GetTextExtent(string,x,y,descent,externalLeading,font); return; } obj0 = rb_str_new2((const char *)(&string)->mb_str()); obj1...