Displaying 19 results from an estimated 19 matches for "wxvalid".
Did you mean:
invalid
2005 Aug 10
3
question on Choice.i
...e 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
2005 Sep 03
2
Problem with swig?
...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, const wxSize& size = wxDefaultSize...
2006 Dec 31
0
[813] trunk/wxruby2/swig/classes: Added ScrollBar class
...wxPoint&
-         * \param const wxSize&
-         * \param long
-         * \param const wxValidator&
-         * \param const wxString&
-        */
-
</del><span class="cx"> wxScrollBar(wxWindow* parent , wxWindowID id , const...
2007 Apr 13
0
[949] branches/wxruby2/wxwidgets_282: Changes in Gauge API 2.6->2.8, remove comment cruft in header
...t wxPoint&
-         * \param const wxSize&
-         * \param long
-         * \param const wxValidator&
-         * \param const wxString&
-        */
-
</del><span class="cx"> wxGauge(wxWindow* parent , wxWindowID id , int rang...
2004 Feb 24
1
Tweaks for 0.2
...e
"Clone" method in wxRbValidator needs to be changed to:
virtual wxObject* Clone() const;
while in there, I think the validator methods need to be renamed to
proper ''wxruby'' things ("validate" instead of "Validate").
2) The GetWindow method of WxValidator needs to be changed to:
VALUE
WxValidator::GetWindow(VALUE self)
{
wxRbValidator *ptr;
Data_Get_Struct(self, wxRbValidator, ptr);
return WxRbTypeTable::ConvertCppObject(ptr->GetWindow());
}
3) The following line needs to be added into dynamiccast.cpp Init method:
WXRB_ADD_...
2005 Aug 05
1
Validator
...pretty good. I just added a generic .i for it and it all compiled.
Sadly, the samples didn''t work because the base Validator class can''t
actually be used as a validator! You have to derive from
GenericValidator. I thought the way to get around this might be to
include both wxValidator.h and wxGenericValidator.h into the Validator.i
file. I''m a bit unclear on how one might specify that Validator in Ruby
refers to wxGenericValidator. Something to dig into this weekend I suppose.
Another thing I''m a bit unclear on is the whole (directors="1")....
2007 Mar 18
0
[893] branches/wxruby2/wxwidgets_282: New hover bitmap methods in 2.6 -> 2.8 API
...wxPoint&
-         * \param const wxSize&
-         * \param long
-         * \param const wxValidator&
-         * \param const wxString&
-        */
-
</del><span class="cx"> wxBitmapButton(wxWindow* parent , wxWindowID id , co...
2006 Nov 21
0
[744] trunk/wxruby2: get_data support & mem mgmt to all ControlWithItems types, using more
...2:54 UTC (rev 743)
+++ trunk/wxruby2/swig/classes/Choice.i        2006-11-21 19:59:03 UTC (rev 744)
</span><span class="lines">@@ -28,24 +28,15 @@
</span><span class="cx"> const wxValidator& validator = wxDefaultValidator,
</span><span class="cx"> const wxString& name = wxChoiceNameStr);
</span><span class="cx">
</span><del>-
</del><span class="cx"> // start client_data fixes
</...
2007 Jan 04
0
[825] trunk/wxruby2/swig/RubyConstants.i: Added DEFAULT_VALIDATOR constant
...@
</span><span class="cx">
</span><span class="cx"> %constant const wxSize DEFAULT_SIZE = wxDefaultSize;
</span><span class="cx"> %constant const wxPoint DEFAULT_POSITION = wxDefaultPosition;
</span><ins>+%constant const wxValidator DEFAULT_VALIDATOR = wxDefaultValidator;
</ins><span class="cx">
</span><del>-
</del><span class="cx"> // Text font families
</span><span class="cx"> %constant int FONTFAMILY_DEFAULT = wxDEFAULT;
</span>&...
2007 Jan 25
0
[855] trunk/wxruby2/swig/classes/include/parents.rb: Parenting for GridBagSizer
...</span><span class="lines">@@ -105,6 +105,7 @@
</span><span class="cx"> ''wxGenericDirCtrl'' => ''wxControl'',
</span><span class="cx"> ''wxGenericValidator'' => ''wxValidator'',
</span><span class="cx"> ''wxGrid'' => ''wxScrolledWindow'',
</span><ins>+ ''wxGridBagSizer'' => ''wxFlexGridSizer'',
</ins><span class="cx"> '...
2006 Dec 23
0
[795] trunk/wxruby2/swig/classes/include/parents.rb: Added missing DatePickerCtrl and TextUrlEvent classes
...;cx"> ''wxTextEntryDialog'' => ''wxDialog'',
</span><ins>+ ''wxTextUrlEvent'' => ''wxCommandEvent'',
</ins><span class="cx"> ''wxTextValidator'' => ''wxValidator'',
</span><span class="cx"> ''wxTimer'' => ''wxEvtHandler'',
</span><span class="cx"> ''wxTipWindow'' => ''wxWindow'',
</span></span></pre>
</di...
2007 Jul 04
0
[1104] trunk/wxruby2: Added 2.8 methods to TextCtrl & document them; tidy up header file
...      wxPoint const &pos = wxDefaultPosition, wxSize const &size = wxDefaultSize,
-                long style = 0, wxValidator const &validator = wxDefaultValidator,
-                wxString const &name = wxTextCtrlNameStr);
</del><ins>+ wxTextCtrl(wxWindow *parent,
+...
2007 Mar 17
0
[883] branches/wxruby2/wxwidgets_282/swig: API changes for move to WxWidgets 2.8
...lt;span class="cx"> public:
</span><span class="cx"> wxControl();
</span><ins>+ wxControl(wxWindow *parent, wxWindowID id,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize, long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxT("control"));
+
</ins><span class="cx"> virtual ~wxControl();
</span><ins>+ bool Create(wxWindow *parent, wxWindowID id,
+ const wxPoint& pos = wxDefaultPosition,
+...
2007 Jan 05
0
[827] trunk/wxruby2/swig: Moved NULL objects into constants so they can be used for default args
...nbsp  2007-01-05 21:43:19 UTC (rev 827)
</span><span class="lines">@@ -2145,6 +2145,17 @@
</span><span class="cx"> %constant const wxPoint DEFAULT_POSITION = wxDefaultPosition;
</span><span class="cx"> %constant const wxValidator DEFAULT_VALIDATOR = wxDefaultValidator;
</span><span class="cx">
</span><ins>+
+// ''Null'' objects
+%constant wxBitmap const NULL_BITMAP = wxNullBitmap;
+%constant wxIcon const NULL_ICON = wxNullIcon;
+%constant wxCursor const NULL_CURSOR...
2006 Nov 07
0
[722] trunk/wxruby2/swig: Wx::Choice fixes for get_client_data (AF)
...t;>
</span><span class="cx"> %include "../common.i"
</span><span class="lines">@@ -27,9 +27,26 @@
</span><span class="cx"> long style = 0,
</span><span class="cx"> const wxValidator& validator = wxDefaultValidator,
</span><span class="cx"> const wxString& name = wxChoiceNameStr);
</span><del>-
</del><span class="cx">
</span><span class="cx">
</span><ins>+// s...
2006 Dec 20
0
[791] trunk/wxruby2/swig/classes/include/wxWindow.h: Remove shadowing GetBestSize def causing warning, plus strip crufty comments
...p/**
-         * \brief Returns a pointer to the current validator for the window, or NULL if there is none.
-        */
-
</del><span class="cx"> wxValidator* GetValidator();
</span><del>-        /**
-         * \brief
-         * \param int*
-...
2007 Mar 21
0
[906] branches/wxruby2/wxwidgets_282: Wx::ComboBox API 2.6 -> 2.8, plus some doc corrections
...omboBox(wxWindow *parent, wxWindowID id,
- const wxString& value = wxEmptyString,
- 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 = wxComboBoxNameStr);
-*/
-
</del><span class="cx"> /* tweak this signature so it can be used for cases where only
</span><span class="cx"> a few parameters are passed */
<...
2005 Aug 15
16
swig_up
Tracing down some things to add in validators and I''ve run across
something that kinda bothers me...
In order to implement validators you have to override the clone method.
The directors seems to be set up to specifically handle this situation.
However, whenever C++ calls back to the object''s methods the swig_get_up
function is returning false. It seems like swig_up
2007 Apr 30
0
[997] branches/wxruby2/wxwidgets_282: Window - 2.6 -> 2.8 API, new methods and deprecations; update doc
...width , int* height ) const;
</span><span class="cx"> wxSize GetSize() const;
</span><span class="cx"> wxSizer * GetSizer() const;
</span><span class="lines">@@ -88,13 +93,19 @@
</span><span class="cx"> wxValidator* GetValidator();
</span><span class="cx"> void GetVirtualSize(int* width , int* height ) const;
</span><span class="cx"> wxSize GetVirtualSize() const;
</span><ins>+ wxSize GetWindowBorderSize() const;
</ins><span class=&qu...