Source cleaning: TRUE/true, FALSE/false, whitespaces, tabs.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-09-09 17:42:36 +00:00
parent 11908acc89
commit c9d59ee7e0
12 changed files with 133 additions and 133 deletions

View File

@@ -64,21 +64,21 @@ bool wxControlContainer::AcceptsFocus() const
// at least one child will accept focus
wxWindowList::compatibility_iterator node = m_winParent->GetChildren().GetFirst();
if ( !node )
return TRUE;
return true;
#ifdef __WXMAC__
// wxMac has eventually the two scrollbars as children, they don't count
// as real children in the algorithm mentioned above
bool hasRealChildren = false ;
#endif
while ( node )
{
wxWindow *child = node->GetData();
if ( child->AcceptsFocus() )
{
return TRUE;
return true;
}
#ifdef __WXMAC__
@@ -88,14 +88,14 @@ bool wxControlContainer::AcceptsFocus() const
#endif
node = node->GetNext();
}
#ifdef __WXMAC__
if ( !hasRealChildren )
return TRUE ;
return true ;
#endif
}
return FALSE;
return false;
}
void wxControlContainer::SetLastFocus(wxWindow *win)
@@ -308,7 +308,7 @@ void wxControlContainer::HandleOnNavigationKey( wxNavigationKeyEvent& event )
}
//else: the child manages its focus itself
event.Skip( FALSE );
event.Skip( false );
return;
}
@@ -344,7 +344,7 @@ bool wxControlContainer::DoSetFocus()
if (m_inSetFocus)
return true;
// when the panel gets the focus we move the focus to either the last
// window that had the focus or the first one that can get it unless the
// focus had been already set to some other child
@@ -367,7 +367,7 @@ bool wxControlContainer::DoSetFocus()
win = win->GetParent();
}
// protect against infinite recursion:
m_inSetFocus = true;
@@ -401,8 +401,8 @@ bool wxControlContainer::SetFocusToChild()
bool wxSetFocusToChild(wxWindow *win, wxWindow **childLastFocused)
{
wxCHECK_MSG( win, FALSE, _T("wxSetFocusToChild(): invalid window") );
wxCHECK_MSG( childLastFocused, FALSE,
wxCHECK_MSG( win, false, _T("wxSetFocusToChild(): invalid window") );
wxCHECK_MSG( childLastFocused, false,
_T("wxSetFocusToChild(): NULL child poonter") );
if ( *childLastFocused )
@@ -417,7 +417,7 @@ bool wxSetFocusToChild(wxWindow *win, wxWindow **childLastFocused)
// not SetFocusFromKbd(): we're restoring focus back to the old
// window and not setting it as the result of a kbd action
(*childLastFocused)->SetFocus();
return TRUE;
return true;
}
else
{
@@ -440,12 +440,12 @@ bool wxSetFocusToChild(wxWindow *win, wxWindow **childLastFocused)
*childLastFocused = child;
child->SetFocusFromKbd();
return TRUE;
return true;
}
node = node->GetNext();
}
return FALSE;
return false;
}