projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was generated by cvs2svn to compensate for changes in r28944,
[wxWidgets.git]
/
src
/
univ
/
checkbox.cpp
diff --git
a/src/univ/checkbox.cpp
b/src/univ/checkbox.cpp
index 2fcd04bfa9e33367c6df9a63a857d1a8945bb669..450d303dc1f343c111b34892a423778875956061 100644
(file)
--- a/
src/univ/checkbox.cpp
+++ b/
src/univ/checkbox.cpp
@@
-17,7
+17,7
@@
// headers
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
-#if
def __GNUG__
+#if
defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "univcheckbox.h"
#endif
#pragma implementation "univcheckbox.h"
#endif
@@
-54,7
+54,7
@@
IMPLEMENT_DYNAMIC_CLASS(wxCheckBox, wxControl)
void wxCheckBox::Init()
{
void wxCheckBox::Init()
{
- m_isPressed =
FALSE
;
+ m_isPressed =
false
;
m_status = Status_Unchecked;
}
m_status = Status_Unchecked;
}
@@
-68,14
+68,14
@@
bool wxCheckBox::Create(wxWindow *parent,
const wxString &name)
{
if ( !wxControl::Create(parent, id, pos, size, style, validator, name) )
const wxString &name)
{
if ( !wxControl::Create(parent, id, pos, size, style, validator, name) )
- return
FALSE
;
+ return
false
;
SetLabel(label);
SetBestSize(size);
CreateInputHandler(wxINP_HANDLER_CHECKBOX);
SetLabel(label);
SetBestSize(size);
CreateInputHandler(wxINP_HANDLER_CHECKBOX);
- return
TRUE
;
+ return
true
;
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------
@@
-207,7
+207,7
@@
void wxCheckBox::Press()
{
if ( !m_isPressed )
{
{
if ( !m_isPressed )
{
- m_isPressed =
TRUE
;
+ m_isPressed =
true
;
Refresh();
}
Refresh();
}
@@
-217,7
+217,7
@@
void wxCheckBox::Release()
{
if ( m_isPressed )
{
{
if ( m_isPressed )
{
- m_isPressed =
FALSE
;
+ m_isPressed =
false
;
Refresh();
}
Refresh();
}
@@
-225,7
+225,7
@@
void wxCheckBox::Release()
void wxCheckBox::Toggle()
{
void wxCheckBox::Toggle()
{
- m_isPressed =
FALSE
;
+ m_isPressed =
false
;
ChangeValue(!GetValue());
}
ChangeValue(!GetValue());
}
@@
-258,15
+258,15
@@
bool wxCheckBox::PerformAction(const wxControlAction& action,
else if ( action == wxACTION_BUTTON_RELEASE )
Release();
if ( action == wxACTION_CHECKBOX_CHECK )
else if ( action == wxACTION_BUTTON_RELEASE )
Release();
if ( action == wxACTION_CHECKBOX_CHECK )
- ChangeValue(
TRUE
);
+ ChangeValue(
true
);
else if ( action == wxACTION_CHECKBOX_CLEAR )
else if ( action == wxACTION_CHECKBOX_CLEAR )
- ChangeValue(
FALSE
);
+ ChangeValue(
false
);
else if ( action == wxACTION_CHECKBOX_TOGGLE )
Toggle();
else
return wxControl::PerformAction(action, numArg, strArg);
else if ( action == wxACTION_CHECKBOX_TOGGLE )
Toggle();
else
return wxControl::PerformAction(action, numArg, strArg);
- return
TRUE
;
+ return
true
;
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------