]> git.saurik.com Git - wxWidgets.git/blame - src/common/validate.cpp
I changed wxUSE_HTML (and other related wxUSEs) to 1. wxHTML is stable enough and...
[wxWidgets.git] / src / common / validate.cpp
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: validate.cpp
3// Purpose: wxValidator
4// Author: Julian Smart
5// Modified by:
6// Created: 04/01/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart and Markus Holzem
a994f81b 9// Licence: wxWindows license
c801d85f
KB
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
ce4169a4 13#pragma implementation "validate.h"
c801d85f
KB
14#endif
15
16// For compilers that support precompilation, includes "wx.h".
17#include "wx/wxprec.h"
18
19#ifdef __BORLANDC__
ce4169a4 20 #pragma hdrstop
c801d85f
KB
21#endif
22
23#ifndef WX_PRECOMP
ce4169a4
RR
24 #include "wx/defs.h"
25#endif
26
27#if wxUSE_VALIDATORS
28
29#ifndef WX_PRECOMP
30 #include "wx/window.h"
c801d85f
KB
31#endif
32
33#include "wx/validate.h"
34
87d67331
DW
35#if defined(__VISAGECPP__)
36// treated as a static global class by VA and thus cannot use in this form.
37// Defined as a pointer and then explicity allocated and deallocated
38// by user if desired
5d4b632b 39const wxValidator* wxDefaultValidator = NULL;
87d67331 40#else
c801d85f 41const wxValidator wxDefaultValidator;
87d67331 42#endif
c801d85f
KB
43
44#if !USE_SHARED_LIBRARY
a994f81b 45 IMPLEMENT_DYNAMIC_CLASS(wxValidator, wxEvtHandler)
c801d85f
KB
46#endif
47
a994f81b
VZ
48// VZ: personally, I think TRUE would be more appropriate - these bells are
49// _annoying_
50bool wxValidator::ms_isSilent = FALSE;
51
52wxValidator::wxValidator()
c801d85f 53{
c67daf87 54 m_validatorWindow = (wxWindow *) NULL;
c801d85f
KB
55}
56
57wxValidator::~wxValidator()
58{
59}
60
ce4169a4
RR
61#endif
62 // wxUSE_VALIDATORS