X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4cbc57f086cee690f397ac5622d3f1d7153b300e..5cf1cb1006d6b5762d96c07ee3892883607460c7:/contrib/src/fl/hintanimpl.cpp diff --git a/contrib/src/fl/hintanimpl.cpp b/contrib/src/fl/hintanimpl.cpp index 56752d6f1d..fd49501c18 100644 --- a/contrib/src/fl/hintanimpl.cpp +++ b/contrib/src/fl/hintanimpl.cpp @@ -6,13 +6,9 @@ // Created: 9/11/98 // RCS-ID: $Id$ // Copyright: (c) Aleksandras Gluchovas -// Licence: wxWindows license +// Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ - #pragma implementation "hintanimpl.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -45,12 +41,12 @@ cbHintAnimationPlugin::cbHintAnimationPlugin(void) : mpScrDc( NULL ), mpAnimTimer( 0 ), - mAnimStarted( FALSE ), + mAnimStarted( false ), mMorphDelay ( 5 ), mMaxFrames ( 20 ), mInClientHintBorder( 4 ), - mAccelerationOn( TRUE ) + mAccelerationOn( true ) {} cbHintAnimationPlugin::cbHintAnimationPlugin( wxFrameLayout* pPanel, int paneMask ) @@ -58,12 +54,12 @@ cbHintAnimationPlugin::cbHintAnimationPlugin( wxFrameLayout* pPanel, int paneMas : cbPluginBase( pPanel, paneMask ), mpScrDc( NULL ), mpAnimTimer( 0 ), - mAnimStarted( FALSE ), + mAnimStarted( false ), mMorphDelay ( 5 ), mMaxFrames ( 20 ), mInClientHintBorder( 4 ), - mAccelerationOn( TRUE ) + mAccelerationOn( true ) {} cbHintAnimationPlugin::~cbHintAnimationPlugin() @@ -83,7 +79,7 @@ void cbHintAnimationPlugin::OnDrawHintRect( cbDrawHintRectEvent& event ) mPrevRect = event.mRect; - mStopPending = FALSE; + mStopPending = false; } if ( !event.mEraseRect ) @@ -113,7 +109,7 @@ void cbHintAnimationPlugin::OnDrawHintRect( cbDrawHintRectEvent& event ) mpAnimTimer->Init( this, mAnimStarted ); - mAnimStarted = TRUE; + mAnimStarted = true; } else if ( !mAnimStarted ) @@ -132,7 +128,7 @@ void cbHintAnimationPlugin::OnDrawHintRect( cbDrawHintRectEvent& event ) if ( event.mLastTime && mpAnimTimer ) { - mStopPending = TRUE; + mStopPending = true; if ( mpAnimTimer->mPrevMorphed.x != POS_UNDEFINED ) @@ -298,9 +294,9 @@ void cbHintAnimTimer::Notify(void) mpPl->FinishTracking(); - mpPl->mStopPending = FALSE; + mpPl->mStopPending = false; mpPl->mpAnimTimer = NULL; - mpPl->mAnimStarted = FALSE; + mpPl->mAnimStarted = false; mPrevMorphed.x = POS_UNDEFINED; @@ -338,7 +334,7 @@ void cbHintAnimTimer::Notify(void) mpPl->FinishTracking(); mpPl->mpAnimTimer = NULL; - mpPl->mAnimStarted = FALSE; + mpPl->mAnimStarted = false; mPrevMorphed.x = POS_UNDEFINED; @@ -392,6 +388,6 @@ bool cbHintAnimTimer::Init( cbHintAnimationPlugin* pAnimPl, bool reinit ) Start( mpPl->mMorphDelay ); - return TRUE; + return true; }