diff -r 741dcdf88ba9 -r c4d65d91ad0c kerneltest/f32test/shostmassstorage/msman/app/cdisplay.h --- a/kerneltest/f32test/shostmassstorage/msman/app/cdisplay.h Mon Mar 08 11:57:08 2010 +0000 +++ b/kerneltest/f32test/shostmassstorage/msman/app/cdisplay.h Sun Mar 14 13:15:32 2010 +0000 @@ -33,11 +33,11 @@ class CScrollWindow: public CBase { public: - static CScrollWindow* NewL(CConsoleBase& aConsole); + static CScrollWindow* NewL(CConsoleBase& aConsole, TInt aStartRow, TInt aEndRow); ~CScrollWindow(); private: - CScrollWindow(CConsoleBase& aConsole); + CScrollWindow(CConsoleBase& aConsole, TInt aStartRow, TInt aEndRow); void ConstructL(); public: @@ -56,7 +56,9 @@ RArray iLineArray; TInt iPage; - static const TInt KPageLength = 8; + const TInt iStartRow; + const TInt iEndRow; + const TInt iPageLength; }; @@ -100,12 +102,20 @@ void CursorHome() const; -private: + void SetFooterPos(TPoint iPos) const; + +private: + static const TInt iFooterX = 0; + static const TInt iFooterY = 4; + RFs& iFs; CConsoleBase& iConsole; + TSize iScreenSize; TPoint iCursorPos; + TPoint iPointFooter; + CScrollWindow* iScrollWindow; }; @@ -115,7 +125,11 @@ iConsole.SetPos(iCursorPos.iX, iCursorPos.iY); } - +inline void CDisplay::SetFooterPos(TPoint iPos) const + { + TPoint pos = iPos + iPointFooter; + iConsole.SetPos(pos.iX, pos.iY); + } class CMessageKeyProcessor : public CActive {