Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

CE32FrodoAppView Class Reference

#include <e32frodo.h>

List of all members.

Public Member Functions

void ConstructL (const TRect &aRect)
 ~CE32FrodoAppView ()
void UpdateDrawPositions ()
void DrawBuf (bool bg_update)
void DrawSpeed (int speed, int max_speed)
void DrawLed (TPoint aPos, TInt aState)

Public Attributes

CFbsBitmap iTheBitMap
TBool iIsC64ScreenZoomed
TBool iIsC64ScreenStretched

Private Member Functions

void FocusChanged (TDrawNow aDrawNow)
void HandlePointerEventL (const TPointerEvent &aPointerEvent)

Private Attributes

TDisplayMode iDispMode
CFbsFont * iSpeedFont
TInt iDrawCount
TBool iIsColorMachine
 true if machine supports colors

TRect iC64screen
TPoint * iOffset
 X/Y offset from top-left corner.

TPoint iNormalScreenOffset
 X/Y offset in normal mode.

TPoint iZoomedScreenOffset
 X/Y offset in zoomed mode.

TPoint iStretchedScreenOffset
 X/Y offset stretched mode.

TBool iBgUpdate
 true if we need to update the background

TBool iFullScreenMode
 ETrue if using the full screen.

TBool iPauseFromUi
TBool iPause
TSize iScreenSize
 size of the screen


Friends

class CE32FrodoAppUi


Detailed Description

class CE32FrodoAppView - this class handles the output

Definition at line 49 of file e32frodo.h.


Constructor & Destructor Documentation

CE32FrodoAppView::~CE32FrodoAppView  ) 
 

Destructor

Definition at line 1197 of file e32frodo.cpp.

References DTOR, and iSpeedFont.


Member Function Documentation

void CE32FrodoAppView::ConstructL const TRect &  aRect  ) 
 

safe constructor

Todo:
should be Crystal

move to ctor init list

Definition at line 1024 of file e32frodo.cpp.

References _LIT(), CTOR, DISPLAY_Y, ELOG2, ELOG3, iBgUpdate, iC64screen, iDispMode, iFullScreenMode, iIsColorMachine, iNormalScreenOffset, iOffset, iPause, iPauseFromUi, iScreenSize, iSpeedFont, iStretchedScreenOffset, iTheBitMap, iZoomedScreenOffset, OFFSET_X, and UpdateDrawPositions().

Referenced by CE32FrodoAppUi::ConstructL().

void CE32FrodoAppView::DrawBuf bool  bg_update  ) 
 

DrawBuf - using bitmaps Called by VBlank and blits the bitmap to the screen

if bg_update is TRUE then the whole bitmap is blitted otherwise, only the inner part is drawn.

Definition at line 1253 of file e32frodo.cpp.

References iBgUpdate, iC64screen, iIsC64ScreenStretched, iIsC64ScreenZoomed, iOffset, and iTheBitMap.

void CE32FrodoAppView::DrawLed TPoint  aPos,
TInt  aState
 

Draw the LEDs for 1541 disk drives.

Parameters:
aPos Position of the LED on the screen.
aState State of LED as defined above.

Definition at line 1770 of file e32frodo.cpp.

References iIsC64ScreenStretched, iIsC64ScreenZoomed, LED_ERROR_OFF, LED_ERROR_ON, LED_OFF, and LED_ON.

void CE32FrodoAppView::DrawSpeed int  speed,
int  max_speed
 

Definition at line 1657 of file e32frodo.cpp.

References iIsC64ScreenStretched, iIsC64ScreenZoomed, and iSpeedFont.

void CE32FrodoAppView::FocusChanged TDrawNow  aDrawNow  )  [private]
 

focus was changed - update pause state

Definition at line 1219 of file e32frodo.cpp.

References iPauseFromUi.

void CE32FrodoAppView::HandlePointerEventL const TPointerEvent &  aPointerEvent  )  [private]
 

This function is called when the user taps the screen in the application view.

Definition at line 1233 of file e32frodo.cpp.

References DISPLAY_Y, ELOG3, iBgUpdate, iOffset, and UpdateDrawPositions().

void CE32FrodoAppView::UpdateDrawPositions  ) 
 

Todo:
implement this for ER5

Definition at line 1306 of file e32frodo.cpp.

References iC64screen, iIsC64ScreenStretched, iIsC64ScreenZoomed, iOffset, and iScreenSize.

Referenced by ConstructL(), CE32FrodoAppUi::HandleCommandL(), and HandlePointerEventL().


Friends And Related Function Documentation

friend class CE32FrodoAppUi [friend]
 

Definition at line 51 of file e32frodo.h.


Member Data Documentation

TBool CE32FrodoAppView::iBgUpdate [private]
 

true if we need to update the background

Definition at line 101 of file e32frodo.h.

Referenced by ConstructL(), DrawBuf(), CE32FrodoAppUi::HandleKeyEventL(), and HandlePointerEventL().

TRect CE32FrodoAppView::iC64screen [private]
 

Definition at line 96 of file e32frodo.h.

Referenced by ConstructL(), DrawBuf(), and UpdateDrawPositions().

TDisplayMode CE32FrodoAppView::iDispMode [private]
 

Definition at line 71 of file e32frodo.h.

Referenced by ConstructL().

TInt CE32FrodoAppView::iDrawCount [private]
 

Definition at line 94 of file e32frodo.h.

TBool CE32FrodoAppView::iFullScreenMode [private]
 

ETrue if using the full screen.

Definition at line 102 of file e32frodo.h.

Referenced by ConstructL(), CE32FrodoAppUi::ConstructL(), CE32FrodoAppUi::DynInitMenuPaneL(), CE32FrodoAppUi::HandleCommandL(), and CE32FrodoAppUi::SetFullScreenModeL().

TBool CE32FrodoAppView::iIsC64ScreenStretched
 

Definition at line 85 of file e32frodo.h.

Referenced by DrawBuf(), DrawLed(), DrawSpeed(), CE32FrodoAppUi::DynInitMenuPaneL(), CE32FrodoAppUi::HandleCommandL(), and UpdateDrawPositions().

TBool CE32FrodoAppView::iIsC64ScreenZoomed
 

Definition at line 84 of file e32frodo.h.

Referenced by DrawBuf(), DrawLed(), DrawSpeed(), CE32FrodoAppUi::DynInitMenuPaneL(), CE32FrodoAppUi::HandleCommandL(), and UpdateDrawPositions().

TBool CE32FrodoAppView::iIsColorMachine [private]
 

true if machine supports colors

Definition at line 95 of file e32frodo.h.

Referenced by ConstructL().

TPoint CE32FrodoAppView::iNormalScreenOffset [private]
 

X/Y offset in normal mode.

Definition at line 98 of file e32frodo.h.

Referenced by ConstructL(), and CE32FrodoAppUi::HandleCommandL().

TPoint* CE32FrodoAppView::iOffset [private]
 

X/Y offset from top-left corner.

Definition at line 97 of file e32frodo.h.

Referenced by ConstructL(), DrawBuf(), CE32FrodoAppUi::HandleCommandL(), HandlePointerEventL(), and UpdateDrawPositions().

TBool CE32FrodoAppView::iPause [private]
 

Definition at line 104 of file e32frodo.h.

Referenced by ConstructL(), CE32FrodoAppUi::HandleCommandL(), and CE32FrodoAppUi::SetPauseState().

TBool CE32FrodoAppView::iPauseFromUi [private]
 

Definition at line 103 of file e32frodo.h.

Referenced by ConstructL(), CE32FrodoAppUi::DynInitMenuPaneL(), FocusChanged(), CE32FrodoAppUi::HandleCommandL(), CE32FrodoAppUi::HandleForegroundEventL(), CE32FrodoAppUi::SetEmphasis(), and CE32FrodoAppUi::SetPauseState().

TSize CE32FrodoAppView::iScreenSize [private]
 

size of the screen

Definition at line 105 of file e32frodo.h.

Referenced by ConstructL(), CE32FrodoAppUi::HandleCommandL(), and UpdateDrawPositions().

CFbsFont* CE32FrodoAppView::iSpeedFont [private]
 

Definition at line 93 of file e32frodo.h.

Referenced by ConstructL(), DrawSpeed(), and ~CE32FrodoAppView().

TPoint CE32FrodoAppView::iStretchedScreenOffset [private]
 

X/Y offset stretched mode.

Definition at line 100 of file e32frodo.h.

Referenced by ConstructL(), and CE32FrodoAppUi::HandleCommandL().

CFbsBitmap CE32FrodoAppView::iTheBitMap
 

Definition at line 82 of file e32frodo.h.

Referenced by ConstructL(), and DrawBuf().

TPoint CE32FrodoAppView::iZoomedScreenOffset [private]
 

X/Y offset in zoomed mode.

Definition at line 99 of file e32frodo.h.

Referenced by ConstructL(), and CE32FrodoAppUi::HandleCommandL().


The documentation for this class was generated from the following files:
Generated on Tue Feb 8 04:11:39 2005 for E32frodo by doxygen 1.3.3