commands/fed/src/fed.cpp
changeset 95 b3ffff030d5c
parent 0 7f656887cf89
equal deleted inserted replaced
94:8df58d8c99e8 95:b3ffff030d5c
   230 			break;
   230 			break;
   231 		case ECmdOpenDocument:
   231 		case ECmdOpenDocument:
   232 			OpenDocumentL();
   232 			OpenDocumentL();
   233 			break;
   233 			break;
   234 		case ECmdRefresh:
   234 		case ECmdRefresh:
   235 			iScreenMngr.RefreshScreenL();
   235 			RedrawEverythingL();
   236 			break;
   236 			break;
   237 		default:
   237 		default:
   238 			return EFalse;
   238 			return EFalse;
   239 		}
   239 		}
   240 	return ETrue;
   240 	return ETrue;
   370 	iScreenMngr.AddViewL(*view);
   370 	iScreenMngr.AddViewL(*view);
   371 	}
   371 	}
   372 
   372 
   373 void CFed::RedrawEverythingL()
   373 void CFed::RedrawEverythingL()
   374 	{
   374 	{
   375 	ExecuteCommandL(ECmdRefresh);
   375 	// This is not very nice but the whole window management thing within fed needs gutting and simplifying
   376 	}
   376 	TSize size = iConsole.ScreenSize();
       
   377 	iScreenMngr.ResizeScreenL(TWindow(0, 0, size.iWidth, size.iHeight));
       
   378 	iCmdWindow->SetWindow(iScreenMngr.GetCommandWindow());
       
   379 	iScreenMngr.RefreshScreenL();
       
   380 	}