KiCad PCB EDA Suite
ENVIRONMENT_VARIABLE_CHAR_VALIDATOR Class Reference

Class ENVIRONMENT_VARIABLE_CHAR_VALIDATOR. More...

#include <validators.h>

Inheritance diagram for ENVIRONMENT_VARIABLE_CHAR_VALIDATOR:

Public Member Functions

 ENVIRONMENT_VARIABLE_CHAR_VALIDATOR (wxString *aValue=NULL)
 

Detailed Description

Class ENVIRONMENT_VARIABLE_CHAR_VALIDATOR.

This class provides a custome wxValidator object for limiting the allowable characters when defining an environment varaible name in a text edit control. Only uppercase, numbers, and underscore (_) characters are valid and the first character of the name cannot start with a number. This is according to IEEE Std 1003.1-2001. Even though most systems support other characters, these characters guarantee compatibility for all shells.

Definition at line 75 of file validators.h.

Constructor & Destructor Documentation

ENVIRONMENT_VARIABLE_CHAR_VALIDATOR::ENVIRONMENT_VARIABLE_CHAR_VALIDATOR ( wxString *  aValue = NULL)

Definition at line 80 of file validators.cpp.

80  :
81  wxTextValidator( wxFILTER_INCLUDE_CHAR_LIST | wxFILTER_EMPTY, aValue )
82 {
83  wxString includeChars( wxT( "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_" ) );
84  SetCharIncludes( includeChars );
85 }

The documentation for this class was generated from the following files: