projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
html filters has const methods now
[wxWidgets.git]
/
src
/
common
/
valtext.cpp
diff --git
a/src/common/valtext.cpp
b/src/common/valtext.cpp
index 4f1740a7499d2cfe82306e4d74345eeb13d63fed..f891889826b97db693fe8897702d9fea694522b2 100644
(file)
--- a/
src/common/valtext.cpp
+++ b/
src/common/valtext.cpp
@@
-10,22
+10,24
@@
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
-
#pragma implementation "valtext.h"
+#pragma implementation "valtext.h"
#endif
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#endif
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
-
#pragma hdrstop
+ #pragma hdrstop
#endif
#endif
+#if wxUSE_VALIDATORS
+
#ifndef WX_PRECOMP
#ifndef WX_PRECOMP
-
#include <stdio.h>
-
#include "wx/textctrl.h"
-
#include "wx/utils.h"
-
#include "wx/msgdlg.h"
-
#include "wx/intl.h"
+ #include <stdio.h>
+ #include "wx/textctrl.h"
+ #include "wx/utils.h"
+ #include "wx/msgdlg.h"
+ #include "wx/intl.h"
#endif
#include "wx/valtext.h"
#endif
#include "wx/valtext.h"
@@
-129,7
+131,7
@@
bool wxTextValidator::Validate(wxWindow *parent)
wxTextCtrl *control = (wxTextCtrl *) m_validatorWindow ;
// If window is disabled, simply return
wxTextCtrl *control = (wxTextCtrl *) m_validatorWindow ;
// If window is disabled, simply return
- if ( !control->Enabled() )
+ if ( !control->
Is
Enabled() )
return TRUE;
wxString val(control->GetValue());
return TRUE;
wxString val(control->GetValue());
@@
-306,3
+308,6
@@
static bool wxIsNumeric(const wxString& val)
return TRUE;
}
return TRUE;
}
+#endif
+ // wxUSE_VALIDATORS
+
\ No newline at end of file