Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add wxRuby3 validator support, fix misc C++ validator problems #1355

Merged
merged 4 commits into from
Dec 27, 2023

Conversation

Randalphwa
Copy link
Collaborator

This PR adds support for wxRuby3 validators. It also updates C++ code generation for validators:

  • wxGenericValidator will ignore any validator styles
  • wxFILTER_NONE is no longer added as a style if other styles are specified
  • wx/filename.h is added to header file if validator_data_type is wxFileName
  • it is no longer necessary to set both min and max values for numeric validators in order for either of them to be used.

If prop_validator_data_type is set to wxFileName then the variable will be
added to the header file, which means wx/filename.h must be #included.
Python doesn's support validators, but calling this function does output
a comment line indicating that it isn't supported.
This also fixes some problems with C++ code generation -- see PR description
for details.
@Randalphwa Randalphwa merged commit d4cf674 into main Dec 27, 2023
@Randalphwa Randalphwa deleted the validators branch December 27, 2023 20:38
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant