File: PropertyGridInterface.xsp

package info (click to toggle)
libwx-perl 1%3A0.9932-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,300 kB
  • sloc: cpp: 11,064; perl: 8,603; ansic: 711; makefile: 53
file content (550 lines) | stat: -rw-r--r-- 27,734 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
#############################################################################
## Name:        viface/PropertyGridInterface.xsp
## Purpose:     XS++ for wxPropertyGridInterface
## Author:      Mark Dootson
## Modified by:
## Created:     04/03/2012
## RCS-ID:      $Id:$
## Copyright:   (c) 2012 Mattia Barbon
## Licence:     This program is free software; you can redistribute it and/or
##              modify it under the same terms as Perl itself
#############################################################################

%file{xspp/PropertyGridInterface.h};

%module{Wx};

#if WXPERL_W_VERSION_GE( 2, 9, 3 ) && wxUSE_PROPGRID

## DECLARE_OVERLOAD( wpge, Wx::PGEditor )
## DECLARE_OVERLOAD( wpgp, Wx::PGProperty )
## DECLARE_OVERLOAD( wdtm, Wx::DateTime )
## DECLARE_OVERLOAD( wobj, Wx::Object )
## DECLARE_OVERLOAD( wvar, Wx::Variant )

%loadplugin{build::Wx::XSP::Overload};

%name{Wx::PGPGridInterfaceBase} class wxPGPGridInterfaceBase
{

public:

    /*
    virtual wxPGVIterator GetVIterator( int flags ) const;

    virtual bool IsPropertySelected( wxString& id ) const %Overload;
	
	void ShowPropertyError( wxString& id, const wxString& msg );
	*/
	
    wxPGProperty__parsed_nodelete* Append( wxPGProperty__parsed_nodelete* property );
	
    %name{AppendInString} wxPGProperty__parsed_nodelete* AppendIn( wxString& id, wxPGProperty__parsed_nodelete* newProperty ) %Overload;
	%name{AppendInProperty} wxPGProperty__parsed_nodelete* AppendIn( wxPGProperty* id, wxPGProperty__parsed_nodelete* newProperty ) %Overload;
	
    %name{BeginAddChildrenString} void BeginAddChildren( wxString& id ) %Overload;
	%name{BeginAddChildrenProperty} void BeginAddChildren( wxPGProperty* id ) %Overload;

    bool ClearSelection( bool validation = false);

    void ClearModifiedStatus();

    %name{CollapseString} bool Collapse( wxString& id ) %Overload;
	%name{CollapseProperty} bool Collapse( wxPGProperty* id  ) %Overload;

    bool CollapseAll();

	%name{DeletePropertyString} void DeleteProperty( wxString& id ) %Overload;
	%name{DeletePropertyProperty} void DeleteProperty( wxPGProperty* id ) %Overload;
    
	%name{DisablePropertyString} bool DisableProperty( wxString& id ) %Overload;
	%name{DisablePropertyProperty} bool DisableProperty( wxPGProperty* id ) %Overload;
    
    bool EditorValidate();

	%name{EnablePropertyString} bool EnableProperty( wxString& id, bool enable = true ) %Overload;
	%name{EnablePropertyProperty} bool EnableProperty( wxPGProperty* id, bool enable = true ) %Overload;
    
	%name{EndAddChildrenString} void EndAddChildren( wxString& id ) %Overload;
	%name{EndAddChildrenProperty} void EndAddChildren( wxPGProperty* id ) %Overload;

	%name{ExpandString} bool Expand( wxString& id ) %Overload;
	%name{ExpandProperty} bool Expand( wxPGProperty* id ) %Overload;

    bool ExpandAll( bool expand = true );

    int GetColumnProportion( unsigned int column ) const;

	%name{GetFirstChildString} wxPGProperty__parsed_nodelete* GetFirstChild( wxString& id ) %Overload;
	%name{GetFirstChildProperty} wxPGProperty__parsed_nodelete* GetFirstChild( wxPGProperty* id ) %Overload;

    %name{GetIteratorPropertyOverload} wxPropertyGridIterator GetIterator( int flags = wxPG_ITERATE_DEFAULT,
                                        wxPGProperty* firstProp = NULL ) %Overload;
    /*
    wxPropertyGridConstIterator GetIterator( int flags = wxPG_ITERATE_DEFAULT,
                                             wxPGProperty* firstProp = NULL ) const;
    */
    
    %name{GetIteratorPosOverload} wxPropertyGridIterator GetIterator( int flags, int startPos ) %Overload;
    /*
    wxPropertyGridConstIterator GetIterator( int flags, int startPos ) const;
    */
    
    wxPGProperty__parsed_nodelete* GetFirst( int flags = wxPG_ITERATE_ALL )
        %code{% RETVAL = THIS->wxPropertyGridInterface::GetFirst( flags ); %};

    wxPGProperty__parsed_nodelete* GetProperty( const wxString& name ) const;
/*
    void GetPropertiesWithFlag( wxArrayPGProperty* targetArr,
                                wxByte flags,
                                bool inverse = false,
                                int iterFlags = wxPerl_build_default_propertyflags ) const;
*/

%{

void
wxPGPGridInterfaceBase::GetPropertiesWithFlag(wxByte flags, bool inverse = false, int iterFlags = wxPerl_build_default_propertyflags )
  PREINIT:
    wxArrayPGProperty* targetArr;
  PPCODE:
    THIS->GetPropertiesWithFlag( targetArr, flags, inverse, iterFlags );
    size_t num = targetArr->GetCount();
    EXTEND( SP, (IV)num );
    for( size_t i = 0; i < num; ++i )
    {   
        SV* rvar = wxPli_object_2_sv( aTHX_ sv_newmortal(), targetArr->Item( i ) );
        wxPli_object_set_deleteable( aTHX_ rvar, false );
        PUSHs( rvar ); 
    }    
   
%}

	%name{GetPropertyAttributeString} wxVariant GetPropertyAttribute( wxString& id, const wxString& attrName  ) const %Overload;
	%name{GetPropertyAttributeProperty} wxVariant GetPropertyAttribute( wxPGProperty* id, const wxString& attrName  ) const %Overload;
   
    %name{GetPropertyBackgroundColourString} wxColour GetPropertyBackgroundColour( wxString& id ) const %Overload;
	%name{GetPropertyBackgroundColourProperty} wxColour GetPropertyBackgroundColour( wxPGProperty* id ) const %Overload;

#if !defined(WXPERL_IN_PROPERTYGRIDPAGE)
	
	wxPGProperty__parsed_nodelete* GetPropertyByLabel( const wxString& label ) const;

#endif

	Wx_UserDataCD* GetPropertyClientData( wxString& id ) const
      %code{%
	       wxPGProperty *prop = THIS->GetPropertyByName( id );
		   if( prop ) {
			RETVAL = (wxPliUserDataCD*)prop->GetClientObject();
		   } else {
		    RETVAL = NULL;
		   }
	  %};

    %name{GetPropertyByNameName} wxPGProperty__parsed_nodelete* GetPropertyByName( const wxString& name ) const %Overload;

    %name{GetPropertyByNameSubName} wxPGProperty__parsed_nodelete* GetPropertyByName( const wxString& name,
                                     const wxString& subname ) const %Overload;

	%name{GetPropertyEditorString} const wxPGEditor__parsed_nodelete* GetPropertyEditor( wxString& id ) const %Overload;
	%name{GetPropertyEditorProperty} const wxPGEditor__parsed_nodelete* GetPropertyEditor( wxPGProperty* id ) const %Overload;

	%name{GetPropertyHelpStringString} wxString GetPropertyHelpString( wxString& id ) const %Overload;
	%name{GetPropertyHelpStringProperty} wxString GetPropertyHelpString( wxPGProperty* id ) const %Overload;
    
	%name{GetPropertyImageString} wxBitmap* GetPropertyImage( wxString& id ) const %Overload;
	%name{GetPropertyImageProperty} wxBitmap* GetPropertyImage( wxPGProperty* id ) const %Overload;
    
	%name{GetPropertyLabelString} const wxString& GetPropertyLabel( wxString& id ) %Overload;
	%name{GetPropertyLabelProperty} const wxString& GetPropertyLabel( wxPGProperty* id ) %Overload;
    
    wxString GetPropertyName( wxPGProperty* property );

	
    %name{GetPropertyTextColourString} wxColour GetPropertyTextColour( wxString& id ) const %Overload;
	%name{GetPropertyTextColourProperty} wxColour GetPropertyTextColour( wxPGProperty* id ) const %Overload;

    %name{GetPropertyValidatorString} wxValidator* GetPropertyValidator( wxString& id ) %Overload;
	%name{GetPropertyValidatorProperty} wxValidator* GetPropertyValidator( wxPGProperty* id ) %Overload;

    %name{GetPropertyValueString} wxVariant GetPropertyValue( wxString& id ) %Overload;
	%name{GetPropertyValueProperty} wxVariant GetPropertyValue( wxPGProperty* id ) %Overload;

    %name{GetPropertyValueAsArrayIntString} wxArrayInt GetPropertyValueAsArrayInt( wxString& id ) const %Overload;
	%name{GetPropertyValueAsArrayIntProperty} wxArrayInt GetPropertyValueAsArrayInt( wxPGProperty* id ) const %Overload;

    %name{GetPropertyValueAsArrayStringString} wxArrayString GetPropertyValueAsArrayString( wxString& id ) const %Overload;
	%name{GetPropertyValueAsArrayStringProperty} wxArrayString GetPropertyValueAsArrayString( wxPGProperty* id) const %Overload;

    %name{GetPropertyValueAsBoolString} bool GetPropertyValueAsBool( wxString& id ) const %Overload;
	%name{GetPropertyValueAsBoolProperty} bool GetPropertyValueAsBool( wxPGProperty* id ) const %Overload;

    %name{GetPropertyValueAsDateTimeString} wxDateTime GetPropertyValueAsDateTime( wxString& id ) const %Overload;
	%name{GetPropertyValueAsDateTimeProperty} wxDateTime GetPropertyValueAsDateTime(wxPGProperty* id ) const %Overload;

    %name{GetPropertyValueAsDoubleString} double GetPropertyValueAsDouble( wxString& id ) const %Overload;
	%name{GetPropertyValueAsDoubleProperty} double GetPropertyValueAsDouble( wxPGProperty* id  ) const %Overload;

    %name{GetPropertyValueAsIntString} int GetPropertyValueAsInt( wxString& id ) const %Overload;
	%name{GetPropertyValueAsIntProperty} int GetPropertyValueAsInt( wxPGProperty* id ) const %Overload;

    %name{GetPropertyValueAsLongString} long GetPropertyValueAsLong( wxString& id ) const %Overload;
	%name{GetPropertyValueAsLongProperty} long GetPropertyValueAsLong( wxPGProperty* id ) const %Overload;
	
    %name{GetPropertyValueAsLongLongString} wxLongLong_t GetPropertyValueAsLongLong( wxString& id ) const %Overload;
	%name{GetPropertyValueAsLongLongProperty} wxLongLong_t GetPropertyValueAsLongLong( wxPGProperty* id ) const %Overload;

    %name{GetPropertyValueAsStringString} wxString GetPropertyValueAsString( wxString& id ) const %Overload;
	%name{GetPropertyValueAsStringProperty} wxString GetPropertyValueAsString( wxPGProperty* id ) const %Overload;

    %name{GetPropertyValueAsULongString} unsigned long GetPropertyValueAsULong( wxString& id ) const %Overload;
	%name{GetPropertyValueAsULongProperty} unsigned long GetPropertyValueAsULong( wxPGProperty* id ) const %Overload;

    %name{GetPropertyValueAsULongLongString} wxULongLong_t GetPropertyValueAsULongLong( wxString& id ) const %Overload;
	%name{GetPropertyValueAsULongLongProperty} wxULongLong_t GetPropertyValueAsULongLong( wxPGProperty* id ) const %Overload;

    wxVariant GetPropertyValues( const wxString& listname = wxEmptyString,
                                 wxPGProperty* baseparent = NULL, long flags = 0 ) const;

%{

void
wxPGPGridInterfaceBase::GetSelectedProperties( )
  PPCODE:
    const wxArrayPGProperty& targetArr = THIS->GetSelectedProperties();
    size_t num = targetArr.GetCount();
    EXTEND( SP, (IV)num );
    for( size_t i = 0; i < num; ++i )
    {
        SV* rvar = wxPli_object_2_sv( aTHX_ sv_newmortal(), targetArr.Item( i ) );
        wxPli_object_set_deleteable( aTHX_ rvar, false );
        PUSHs( rvar );
    }    

%}

#if !defined(WXPERL_IN_PROPERTYGRID) && !defined(WXPERL_IN_PROPERTYGRIDMANAGER)

    wxPGProperty__parsed_nodelete* GetSelection() const;

#endif

    %name{HidePropertyString} bool HideProperty( wxString& id, bool hide = true, int flags = wxPG_RECURSE ) %Overload;
	%name{HidePropertyProperty} bool HideProperty( wxPGProperty* id, bool hide = true, int flags = wxPG_RECURSE ) %Overload;

    static void InitAllTypeHandlers();

    %name{InsertString} wxPGProperty__parsed_nodelete* Insert( wxString& priorThis, wxPGProperty__parsed_nodelete* newProperty ) %Overload;
	%name{InsertProperty} wxPGProperty__parsed_nodelete* Insert( wxPGProperty* priorThis, wxPGProperty__parsed_nodelete* newProperty ) %Overload;
    %name{InsertIndexString} wxPGProperty__parsed_nodelete* Insert( wxString& parent, int index, wxPGProperty__parsed_nodelete* newProperty ) %Overload;
	%name{InsertIndexProperty} wxPGProperty__parsed_nodelete* Insert( wxPGProperty* parent, int index, wxPGProperty__parsed_nodelete* newProperty ) %Overload;

    %name{IsPropertyCategoryString} bool IsPropertyCategory( wxString& id ) const %Overload;
	%name{IsPropertyCategoryProperty} bool IsPropertyCategory( wxPGProperty* id ) const %Overload;

    %name{IsPropertyEnabledString} bool IsPropertyEnabled( wxString& id ) const %Overload;
	%name{IsPropertyEnabledProperty} bool IsPropertyEnabled( wxPGProperty* id ) const %Overload;

    %name{IsPropertyExpandedString} bool IsPropertyExpanded( wxString& id ) const %Overload;
	%name{IsPropertyExpandedProperty} bool IsPropertyExpanded( wxPGProperty* id ) const %Overload;

    %name{IsPropertyModifiedString} bool IsPropertyModified( wxString& id ) const %Overload;
	%name{IsPropertyModifiedProperty} bool IsPropertyModified( wxPGProperty* id ) const %Overload;

    %name{IsPropertyShownString} bool IsPropertyShown( wxString& id ) const %Overload;
	%name{IsPropertyShownProperty} bool IsPropertyShown( wxPGProperty* id ) const %Overload;

    %name{IsPropertyValueUnspecifiedString} bool IsPropertyValueUnspecified( wxString& id ) const %Overload;
	%name{IsPropertyValueUnspecifiedProperty} bool IsPropertyValueUnspecified( wxPGProperty* id ) const %Overload;

    %name{LimitPropertyEditingString} void LimitPropertyEditing( wxString& id, bool limit = true ) %Overload;
	%name{LimitPropertyEditingProperty} void LimitPropertyEditing( wxPGProperty* id, bool limit = true ) %Overload;

    static void RegisterAdditionalEditors();

    %name{RemovePropertyString} wxPGProperty__parsed_allowdelete* RemoveProperty( wxString& id ) %Overload;
	%name{RemovePropertyProperty} wxPGProperty__parsed_allowdelete* RemoveProperty( wxPGProperty__parsed_allowdelete* id ) %Overload;

    %name{ReplacePropertyString} wxPGProperty__parsed_nodelete* ReplaceProperty( wxString& id, wxPGProperty__parsed_nodelete* property ) %Overload;
	%name{ReplacePropertyProperty} wxPGProperty__parsed_nodelete* ReplaceProperty( wxPGProperty__parsed_allowdelete* id, wxPGProperty__parsed_nodelete* property ) %Overload;

    bool RestoreEditableState( const wxString& src,
                               int restoreStates = 0x3F );

    wxString SaveEditableState( int includedStates = 0x3F ) const;

    static void SetBoolChoices( const wxString& trueChoice,
                                const wxString& falseChoice );

    bool SetColumnProportion( unsigned int column, int proportion );
	
	%name{SetPropertyAttributeString} void SetPropertyAttribute( wxString& id, const wxString& attrName,
                               wxVariantArg value, long argFlags = 0 ) %Overload;
	%name{SetPropertyAttributeProperty} void SetPropertyAttribute( wxPGProperty* id, const wxString& attrName,
                               wxVariantArg value, long argFlags = 0 ) %Overload;

    void SetPropertyAttributeAll( const wxString& attrName, wxVariantArg value );

    %name{SetPropertyBackgroundColourString} void SetPropertyBackgroundColour( wxString& id,
                                      const wxColour& colour,
                                      int flags = wxPG_RECURSE ) %Overload;
	%name{SetPropertyBackgroundColourProperty} void SetPropertyBackgroundColour( wxPGProperty* id,
                                      const wxColour& colour,
                                      int flags = wxPG_RECURSE ) %Overload;


    %name{SetPropertyCellString} void SetPropertyCell( wxString& id, int column,
                          const wxString& text = wxEmptyString,
                          const wxBitmap& bitmap = wxNullBitmapPtr,
                          const wxColour& fgCol = wxNullColourPtr,
                          const wxColour& bgCol = wxNullColourPtr ) %Overload;
	
	%name{SetPropertyCellProperty} void SetPropertyCell( wxPGProperty* id, int column,
                          const wxString& text = wxEmptyString,
                          const wxBitmap& bitmap = wxNullBitmapPtr,
                          const wxColour& fgCol = wxNullColourPtr,
                          const wxColour& bgCol = wxNullColourPtr ) %Overload;

	
	void SetPropertyClientData( wxString& id, Wx_UserDataCD* data )
		%code{%
			wxPGProperty *prop = THIS->GetPropertyByName( id );
		    if( prop )
			   prop->SetClientObject( data );
		%};
    
    %name{SetPropertyColoursToDefaultString} void SetPropertyColoursToDefault( wxString& id ) %Overload;
	%name{SetPropertyColoursToDefaultProperty} void SetPropertyColoursToDefault( wxPGProperty* id ) %Overload;
    
    %name{SetPropertyEditorString} void SetPropertyEditor( wxString& id, const wxPGEditor__parsed_nodelete* editor ) %Overload;
	%name{SetPropertyEditorProperty} void SetPropertyEditor( wxPGProperty* id, const wxPGEditor__parsed_nodelete* editor ) %Overload;
	%name{SetPropertyEditorNameString} void SetPropertyEditor( wxString& id, const wxString& editorName ) %Overload;
	%name{SetPropertyEditorNameProperty} void SetPropertyEditor( wxPGProperty* id, const wxString& editorName ) %Overload;

    %name{SetPropertyLabelString} void SetPropertyLabel( wxString& id, const wxString& newproplabel ) %Overload;
	%name{SetPropertyLabelProperty} void SetPropertyLabel( wxPGProperty* id, const wxString& newproplabel ) %Overload;

    %name{SetPropertyNameString} void SetPropertyName( wxString& id, const wxString& newName ) %Overload;
	%name{SetPropertyNameProperty} void SetPropertyName( wxPGProperty* id, const wxString& newName ) %Overload;

    %name{SetPropertyReadOnlyString} void SetPropertyReadOnly( wxString& id, bool set = true,
                              int flags = wxPG_RECURSE ) %Overload;
	%name{SetPropertyReadOnlyProperty} void SetPropertyReadOnly( wxPGProperty* id, bool set = true,
                              int flags = wxPG_RECURSE ) %Overload;

    %name{SetPropertyValueUnspecifiedString} void SetPropertyValueUnspecified( wxString& id ) %Overload;
	%name{SetPropertyValueUnspecifiedProperty} void SetPropertyValueUnspecified( wxPGProperty* id ) %Overload;
    
    /*
    void SetPropertyValues( const wxVariantList& list,
                            wxPGProperty& defaultCategory = wxNullPropertyPtr );
    */
    
    %name{SetPropertyValuesString} void SetPropertyValues( const wxVariant& list, wxString& defaultCategory = wxEmptyString ) %Overload;
    %name{SetPropertyValuesProperty} void SetPropertyValues( const wxVariant& list, wxPGProperty* defaultCategory = wxNullProperty ) %Overload;

   	
	%name{SetPropertyHelpStringString} void SetPropertyHelpString( wxString& id , const wxString& helpString ) %Overload;
    %name{SetPropertyHelpStringProperty} void SetPropertyHelpString( wxPGProperty* id , const wxString& helpString ) %Overload;
	
    %name{SetPropertyImageString} void SetPropertyImage( wxString& id, wxBitmap& bmp ) %Overload;
    %name{SetPropertyImageProperty} void SetPropertyImage( wxPGProperty* id, wxBitmap& bmp ) %Overload;

    %name{SetPropertyMaxLengthString} bool SetPropertyMaxLength( wxString& id, int maxLen ) %Overload;
    %name{SetPropertyMaxLengthProperty} bool SetPropertyMaxLength( wxPGProperty* id, int maxLen ) %Overload;

    %name{SetPropertyTextColourString} void SetPropertyTextColour( wxString& id,
                                const wxColour& colour,
                                int flags = wxPG_RECURSE ) %Overload;
    %name{SetPropertyTextColourProperty} void SetPropertyTextColour( wxPGProperty* id,
                                const wxColour& colour,
                                int flags = wxPG_RECURSE ) %Overload;

    %name{SetPropertyValidatorString} void SetPropertyValidator( wxString& id, const wxValidator& validator ) %Overload;
    %name{SetPropertyValidatorProperty} void SetPropertyValidator( wxPGProperty* id, const wxValidator& validator ) %Overload;

%{

void
wxPGPGridInterfaceBase::SetPropertyValue( ... )
  PPCODE:
    BEGIN_OVERLOAD()
        MATCH_REDISP( wxPliOvl_s_s, SetPropertyValueAsString_string )
        MATCH_REDISP( wxPliOvl_wpgp_s, SetPropertyValueAsString_property )
        MATCH_REDISP( wxPliOvl_s_n, SetPropertyValueAsDouble_string )
        MATCH_REDISP( wxPliOvl_wpgp_n, SetPropertyValueAsDouble_property )
        MATCH_REDISP( wxPliOvl_s_arr, SetPropertyValueAsArrayString_string )
        MATCH_REDISP( wxPliOvl_wpgp_arr, SetPropertyValueAsArrayString_property )
        MATCH_REDISP( wxPliOvl_s_wdtm, SetPropertyValueAsDateTime_string )
        MATCH_REDISP( wxPliOvl_wpgp_wdtm, SetPropertyValueAsDateTime_property )
        MATCH_REDISP( wxPliOvl_s_wobj, SetPropertyValueAsObject_string )
        MATCH_REDISP( wxPliOvl_wpgp_wobj, SetPropertyValueAsObject_property )
    END_OVERLOAD( Wx::PGPGridInterfaceBase::SetPropertyValue )

void
wxPGPGridInterfaceBase::SetPropertyValueAsLong( ... )
  PPCODE:
    BEGIN_OVERLOAD()
        MATCH_REDISP( wxPliOvl_s_n, SetPropertyValueAsLong_string )
        MATCH_REDISP( wxPliOvl_wpgp_n, SetPropertyValueAsLong_property )
    END_OVERLOAD( Wx::PGPGridInterfaceBase::SetPropertyValueAsLong )

void
wxPGPGridInterfaceBase::SetPropertyValueAsInt( ... )
  PPCODE:
    BEGIN_OVERLOAD()
        MATCH_REDISP( wxPliOvl_s_n, SetPropertyValueAsInt_string )
        MATCH_REDISP( wxPliOvl_wpgp_n, SetPropertyValueAsInt_property )
    END_OVERLOAD( Wx::PGPGridInterfaceBase::SetPropertyValueAsInt )

void
wxPGPGridInterfaceBase::SetPropertyValueAsDouble( ... )
  PPCODE:
    BEGIN_OVERLOAD()
        MATCH_REDISP( wxPliOvl_s_n, SetPropertyValueAsDouble_string )
        MATCH_REDISP( wxPliOvl_wpgp_n, SetPropertyValueAsDouble_property )
    END_OVERLOAD( Wx::PGPGridInterfaceBase::SetPropertyValueAsDouble )

void
wxPGPGridInterfaceBase::SetPropertyValueAsBool( ... )
  PPCODE:
    BEGIN_OVERLOAD()
        MATCH_REDISP( wxPliOvl_s_n, SetPropertyValueAsBool_string )
        MATCH_REDISP( wxPliOvl_wpgp_n, SetPropertyValueAsBool_property )
    END_OVERLOAD( Wx::PGPGridInterfaceBase::SetPropertyValueAsBool )

void
wxPGPGridInterfaceBase::SetPropertyValueAsString( ... )
  PPCODE:
    BEGIN_OVERLOAD()
        MATCH_REDISP( wxPliOvl_s_s, SetPropertyValueAsString_string )
        MATCH_REDISP( wxPliOvl_wpgp_s, SetPropertyValueAsString_property )
    END_OVERLOAD( Wx::PGPGridInterfaceBase::SetPropertyValueAsString )

void
wxPGPGridInterfaceBase::SetPropertyValueAsArrayString( ... )
  PPCODE:
    BEGIN_OVERLOAD()
        MATCH_REDISP( wxPliOvl_s_arr, SetPropertyValueAsArrayString_string )
        MATCH_REDISP( wxPliOvl_wpgp_arr, SetPropertyValueAsArrayString_property )
    END_OVERLOAD( Wx::PGPGridInterfaceBase::SetPropertyValueAsArrayString )

void
wxPGPGridInterfaceBase::SetPropertyValueAsArrayInt( ... )
  PPCODE:
    BEGIN_OVERLOAD()
        MATCH_REDISP( wxPliOvl_s_arr, SetPropertyValueAsArrayInt_string )
        MATCH_REDISP( wxPliOvl_wpgp_arr, SetPropertyValueAsArrayInt_property )
    END_OVERLOAD( Wx::PGPGridInterfaceBase::SetPropertyValueAsArrayInt )

void
wxPGPGridInterfaceBase::SetPropertyValueAsDateTime( ... )
  PPCODE:
    BEGIN_OVERLOAD()
        MATCH_REDISP( wxPliOvl_s_wdtm, SetPropertyValueAsDateTime_string )
        MATCH_REDISP( wxPliOvl_wpgp_wdtm, SetPropertyValueAsDateTime_property )
    END_OVERLOAD( Wx::PGPGridInterfaceBase::SetPropertyValueAsDateTime )

void
wxPGPGridInterfaceBase::SetPropertyValueAsObject( ... )
  PPCODE:
    BEGIN_OVERLOAD()
        MATCH_REDISP( wxPliOvl_s_wobj, SetPropertyValueAsObject_string )
        MATCH_REDISP( wxPliOvl_wpgp_wobj, SetPropertyValueAsObject_property )
    END_OVERLOAD( Wx::PGPGridInterfaceBase::SetPropertyValueAsObject )

void
wxPGPGridInterfaceBase::SetPropertyValueAsLongLong( ... )
  PPCODE:
    BEGIN_OVERLOAD()
        MATCH_REDISP( wxPliOvl_s_n, SetPropertyValueAsLongLong_string )
        MATCH_REDISP( wxPliOvl_wpgp_n, SetPropertyValueAsLongLong_property )
    END_OVERLOAD( Wx::PGPGridInterfaceBase::SetPropertyValueAsLongLong )

void
wxPGPGridInterfaceBase::SetPropertyValueAsULongLong( ... )
  PPCODE:
    BEGIN_OVERLOAD()
        MATCH_REDISP( wxPliOvl_s_n, SetPropertyValueAsULongLong_string )
        MATCH_REDISP( wxPliOvl_wpgp_n, SetPropertyValueAsULongLong_property )
    END_OVERLOAD( Wx::PGPGridInterfaceBase::SetPropertyValueAsULongLong )

void
wxPGPGridInterfaceBase::SetPropertyValueAsVariant( ... )
  PPCODE:
    BEGIN_OVERLOAD()
        MATCH_REDISP( wxPliOvl_s_wvar, SetPropertyValueAsVariant_string )
        MATCH_REDISP( wxPliOvl_wpgp_wvar, SetPropertyValueAsVariant_property )
    END_OVERLOAD( Wx::PGPGridInterfaceBase::SetPropertyValueAsVariant )

%}
    /** Sets value (integer) of a property. */
    
    %name{SetPropertyValueAsLong_string} void SetPropertyValue( wxString& id, long value );
    %name{SetPropertyValueAsLong_property} void SetPropertyValue( wxPGProperty* id, long value );
        
    /** Sets value (integer) of a property. */
    %name{SetPropertyValueAsInt_string} void SetPropertyValue( wxString& id, int value );
    %name{SetPropertyValueAsInt_property} void SetPropertyValue( wxPGProperty* id, int value );

    /** Sets value (floating point) of a property. */
    %name{SetPropertyValueAsDouble_string} void SetPropertyValue( wxString& id, double value );
    %name{SetPropertyValueAsDouble_property} void SetPropertyValue( wxPGProperty* id, double value );

    /** Sets value (bool) of a property. */
    %name{SetPropertyValueAsBool_string} void SetPropertyValue( wxString& id, bool value );
    %name{SetPropertyValueAsBool_property} void SetPropertyValue( wxPGProperty* id, bool value );

    /** Sets value (string) of a property. */
    %name{SetPropertyValueAsString_string} void SetPropertyValue( wxString& id, const wxString& value );
    %name{SetPropertyValueAsString_property} void SetPropertyValue( wxPGProperty* id, const wxString& value );

    /** Sets value (wxArrayString) of a property. */
    %name{SetPropertyValueAsArrayString_string} void SetPropertyValue( wxString& id, const wxArrayString& value );
    %name{SetPropertyValueAsArrayString_property} void SetPropertyValue( wxPGProperty* id, const wxArrayString& value );

    /** Sets value (wxDateTime) of a property. */
    %name{SetPropertyValueAsDateTime_string} void SetPropertyValue( wxString& id, const wxDateTime& value );
    %name{SetPropertyValueAsDateTime_property} void SetPropertyValue( wxPGProperty* id, const wxDateTime& value );

    /** Sets value (wxObject*) of a property. */
    %name{SetPropertyValueAsObject_string} void SetPropertyValue( wxString& id, wxObject* value );
    %name{SetPropertyValueAsObject_property} void SetPropertyValue(wxPGProperty* id, wxObject* value );

    /** Sets value (wxObject&) of a property. */
    /** void SetPropertyValue( wxString& id, wxObject& value ); */

    /** Sets value (native 64-bit int) of a property. */
    %name{SetPropertyValueAsLongLong_string} void SetPropertyValue( wxString& id, wxLongLong_t value );
    %name{SetPropertyValueAsLongLong_property} void SetPropertyValue( wxPGProperty* id, wxLongLong_t value );

    /** Sets value (native 64-bit unsigned int) of a property. */
    %name{SetPropertyValueAsULongLong_string} void SetPropertyValue( wxString& id, wxULongLong_t value );
    %name{SetPropertyValueAsULongLong_property} void SetPropertyValue( wxPGProperty* id, wxULongLong_t value );

    /** Sets value (wxArrayInt&) of a property. */
    %name{SetPropertyValueAsArrayInt_string} void SetPropertyValue( wxString& id, const wxArrayInt& value );
    %name{SetPropertyValueAsArrayInt_property} void SetPropertyValue( wxPGProperty* id, const wxArrayInt& value );

    %name{SetPropertyValueString_string}  void SetPropertyValueString( wxString& id, const wxString& value );
    %name{SetPropertyValueString_property}  void SetPropertyValueString( wxPGProperty* id, const wxString& value );
    
    %name{SetPropertyValueAsVariant_string} void SetPropertyValue( wxString& id, wxVariant value );
    %name{SetPropertyValueAsVariant_property} void SetPropertyValue( wxPGProperty* id, wxVariant value );

    void SetValidationFailureBehavior( int vfbFlags );

    void Sort( int flags = 0 );

    %name{SortChildrenString} void SortChildren( wxString& id, int flags = 0 ) %Overload;
    %name{SortChildrenProperty} void SortChildren( wxPGProperty* id, int flags = 0 ) %Overload;

    static wxPGEditor__parsed_nodelete* GetEditorByName( const wxString& editorName );
};

#endif

%file{-};