void wxFrameView::CreateLayout()
{
- mpLayout = new wxFrameLayout( GetParentFrame(), mpFrameMgr->GetClientWindow(), FALSE );
+ mpLayout = new wxFrameLayout( GetParentFrame(), mpFrameMgr->GetClientWindow(), false );
}
wxFrameLayout* wxFrameView::GetLayout()
{
DeactivateCurrentView();
- wxNode* pNode = mViews.GetFirst();
+ wxObjectList::compatibility_iterator pNode = mViews.GetFirst();
while ( pNode )
{
int wxFrameManager::GetViewNo( wxFrameView* pView )
{
- wxNode* pNode = mViews.GetFirst();
+ wxObjectList::compatibility_iterator pNode = mViews.GetFirst();
int n = 0;
while ( pNode )
if ( !pMenuBar )
return;
- wxStringListNode* pNode = pView->mTopMenus.GetFirst();
+ wxStringList::compatibility_iterator pNode = pView->mTopMenus.GetFirst();
int i;
while ( pNode )
void wxFrameManager::SyncAllMenus()
{
- wxNode* pNode = mViews.GetFirst();
+ wxObjectList::compatibility_iterator pNode = mViews.GetFirst();
int i = 0;
while ( pNode )
{
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 ***/
mSettingsFile = settingsFile;
mpFrameWnd = pMainFrame;
- wxNode* pNode = mViews.GetFirst();
+ wxObjectList::compatibility_iterator pNode = mViews.GetFirst();
while ( pNode )
{
wxFrameView* wxFrameManager::GetActiveView()
{
- wxNode* pNode = mViews.Item( mActiveViewNo );
+ wxObjectList::compatibility_iterator pNode = mViews.Item( mActiveViewNo );
if ( pNode ) return (wxFrameView*)pNode->GetData();
else return NULL;
}
-wxNode* wxFrameManager::GetActiveViewNode()
+wxObjectList::compatibility_iterator wxFrameManager::GetActiveViewNode()
{
return mViews.Item( mActiveViewNo );
}
wxFrameView* wxFrameManager::GetView( int viewNo )
{
- wxNode* pNode = mViews.Item( viewNo );
+ wxObjectList::compatibility_iterator pNode = mViews.Item( viewNo );
if ( pNode ) return (wxFrameView*)pNode->GetData();
else return NULL;
GetParentFrame()->PushEventHandler( pFrmView );
- EnableMenusForView( pFrmView, TRUE );
+ EnableMenusForView( pFrmView, true );
}
void wxFrameManager::SetClinetWindow( wxWindow* pFrameClient )
if ( pView->mpLayout )
pView->mpLayout->Deactivate();
- EnableMenusForView( pView, FALSE );
+ EnableMenusForView( pView, false );
}
void wxFrameManager::SaveViewsNow()
bool wxFrameManager::ReloadViews()
{
- return FALSE;
+ return false;
// TBD: ????
#if 0
if ( mSettingsFile == "" || !wxFileExists( mSettingsFile ) )
- return FALSE;
+ return false;
DestroyViews();
mStore.SetDataStream( stm );
DoSerialize( mStore );
- return TRUE;
+ return true;
#endif
}