]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/common/validate.cpp
Committing in .
[wxWidgets.git] / src / common / validate.cpp
... / ...
CommitLineData
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
9// Licence: wxWindows license
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation "validate.h"
14#endif
15
16// For compilers that support precompilation, includes "wx.h".
17#include "wx/wxprec.h"
18
19#ifdef __BORLANDC__
20 #pragma hdrstop
21#endif
22
23#ifndef WX_PRECOMP
24 #include "wx/defs.h"
25#endif
26
27#if wxUSE_VALIDATORS
28
29#ifndef WX_PRECOMP
30 #include "wx/window.h"
31#endif
32
33#include "wx/validate.h"
34
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
39const wxValidator* wxDefaultValidator = NULL;
40#else
41const wxValidator wxDefaultValidator;
42#endif
43
44#if !USE_SHARED_LIBRARY
45 IMPLEMENT_DYNAMIC_CLASS(wxValidator, wxEvtHandler)
46#endif
47
48// VZ: personally, I think TRUE would be more appropriate - these bells are
49// _annoying_
50bool wxValidator::ms_isSilent = FALSE;
51
52wxValidator::wxValidator()
53{
54 m_validatorWindow = (wxWindow *) NULL;
55}
56
57wxValidator::~wxValidator()
58{
59}
60
61#endif
62 // wxUSE_VALIDATORS