X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/003b8322f346ba005c07fff762dc3e90396a21a1..31ad423e4fb556ec225a63b161154d3bf3445c1b:/contrib/src/fl/frmview.cpp diff --git a/contrib/src/fl/frmview.cpp b/contrib/src/fl/frmview.cpp index dcd98c5f9f..4246df8caf 100644 --- a/contrib/src/fl/frmview.cpp +++ b/contrib/src/fl/frmview.cpp @@ -41,9 +41,6 @@ void wxFrameView::OnIdle( wxIdleEvent& event) if ( mDoToolUpdates ) { - int o = 0; //glt - ++o; - // TBD:: } } @@ -83,7 +80,7 @@ void wxFrameView::Deactivate() void wxFrameView::CreateLayout() { - mpLayout = new wxFrameLayout( GetParentFrame(), mpFrameMgr->GetClientWindow(), FALSE ); + mpLayout = new wxFrameLayout( GetParentFrame(), mpFrameMgr->GetClientWindow(), false ); } wxFrameLayout* wxFrameView::GetLayout() @@ -153,7 +150,7 @@ void wxFrameViewSerializer::Serialize( wxObject* pObj, wxObjectStorage& store ) /***** Implementation for class wxFrameManager *****/ -void wxFrameManager::DoSerialize( wxObjectStorage& store ) +void wxFrameManager::DoSerialize( wxObjectStorage& WXUNUSED(store) ) { #if 0 store.AddInitialRef( mpFrameWnd ); @@ -235,12 +232,12 @@ void wxFrameManager::SyncAllMenus() { if ( i != mActiveViewNo ) - EnableMenusForView( (wxFrameView*)pNode->GetData(), FALSE ); + EnableMenusForView( (wxFrameView*)pNode->GetData(), false ); pNode = pNode->GetNext(); } - EnableMenusForView( GetView( mActiveViewNo ), TRUE ); + EnableMenusForView( GetView( mActiveViewNo ), true ); } /*** public methods ***/ @@ -293,7 +290,7 @@ void wxFrameManager::Init( wxWindow* pMainFrame, const wxString& settingsFile ) } } - if ( mActiveViewNo >= mViews.GetCount() ) + if ( mActiveViewNo >= (int)mViews.GetCount() ) mActiveViewNo = -1; ActivateView( GetView( ( mActiveViewNo == -1 ) ? 0 : mActiveViewNo ) ); @@ -308,7 +305,7 @@ void wxFrameManager::AddView( wxFrameView* pFrmView ) pFrmView->mpFrameMgr = this; // back ref. } -void wxFrameManager::RemoveView( wxFrameView* pFrmView ) +void wxFrameManager::RemoveView( wxFrameView* WXUNUSED(pFrmView) ) { // TBD:: wxFAIL_MSG( _T("wxFrameManager::RemoveView() has not been implemented yet.") ); @@ -371,7 +368,7 @@ void wxFrameManager::ActivateView( wxFrameView* pFrmView ) GetParentFrame()->PushEventHandler( pFrmView ); - EnableMenusForView( pFrmView, TRUE ); + EnableMenusForView( pFrmView, true ); } void wxFrameManager::SetClinetWindow( wxWindow* pFrameClient ) @@ -405,7 +402,7 @@ void wxFrameManager::DeactivateCurrentView() if ( pView->mpLayout ) pView->mpLayout->Deactivate(); - EnableMenusForView( pView, FALSE ); + EnableMenusForView( pView, false ); } void wxFrameManager::SaveViewsNow() @@ -423,12 +420,12 @@ void wxFrameManager::SaveViewsNow() bool wxFrameManager::ReloadViews() { - return FALSE; + return false; // TBD: ???? #if 0 if ( mSettingsFile == "" || !wxFileExists( mSettingsFile ) ) - return FALSE; + return false; DestroyViews(); @@ -438,7 +435,7 @@ bool wxFrameManager::ReloadViews() mStore.SetDataStream( stm ); DoSerialize( mStore ); - return TRUE; + return true; #endif }