diff -r 4d54b72983ae -r c743ef5928ba idlehomescreen/widgetmanager/inc/wmdetailsdlg.h --- a/idlehomescreen/widgetmanager/inc/wmdetailsdlg.h Tue Jan 26 11:48:23 2010 +0200 +++ b/idlehomescreen/widgetmanager/inc/wmdetailsdlg.h Tue Feb 02 00:04:13 2010 +0200 @@ -24,6 +24,7 @@ #include // FORWARD DECLARATIONS +class CAknMarqueeControl; class CEikRichTextEditor; class CAknsBasicBackgroundControlContext; @@ -43,8 +44,7 @@ const TDesC& aDescription, TBool aCanBeAdded, const CFbsBitmap* aLogoBmp, - const CFbsBitmap* aLogoMask, - CAknsBasicBackgroundControlContext* aBgContext ); + const CFbsBitmap* aLogoMask ); /** Destructor. */ ~CWmDetailsDlg(); @@ -55,7 +55,6 @@ TInt ExecuteLD(); private: // Functions from base classes - /** From CEikDialog Initializes dialog before layout*/ void PreLayoutDynInitL(); @@ -65,7 +64,8 @@ TBool OkToExitL(TInt aButtonId); /** From CCoeControl Handles key events */ - TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent,TEventCode aType ); + TKeyResponse OfferKeyEventL( + const TKeyEvent& aKeyEvent,TEventCode aType ); /** From CEikDialog Called by framework when dialog is activated */ void ActivateL(); @@ -83,13 +83,22 @@ TInt CountComponentControls() const; CCoeControl* ComponentControl(TInt aIndex) const; void Draw( const TRect& aRect ) const; + void FocusChanged( TDrawNow aDrawNow ); + +private: // new functions - /** Desired rect for dialog */ - TRect WmDetailsDialogRect(); - /** Insert and format content */ void InsertAndFormatContentL(); + /** Redraw call back for marque control */ + static TInt RedrawCallback( TAny* aPtr ); + + /** start marque control */ + void StartMarquee(); + + /** stop marque control */ + void StopMarquee(); + private: /** Constructor for performing 1st stage construction */ @@ -100,8 +109,7 @@ const TDesC& aName, const TDesC& aDescription, const CFbsBitmap* aLogoBmp, - const CFbsBitmap* aLogoMask, - CAknsBasicBackgroundControlContext* aBgContext ); + const CFbsBitmap* aLogoMask ); private: @@ -115,6 +123,11 @@ */ CEikRichTextEditor* iRtEditor; + /** + * Marquee control + */ + CAknMarqueeControl* iMarquee; + /** * Name of widget */ @@ -139,6 +152,11 @@ * ETrue if widget can be added to HS */ TBool iCanBeAdded; + + /** + * ETrue if widget name needs to be scrolled. + */ + TBool iNeedToScroll; }; #endif ___WMDETAILSDLG_H__