epoc32/include/mw/eikcapc.h
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
     1 /*
     1 /*
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     8 *
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    33 
    33 
    34 #include <eikdialg.h>
    34 #include <eikdialg.h>
    35 #include <eikdpage.h>
    35 #include <eikdpage.h>
    36 
    36 
    37 #include <AknControl.h>
    37 #include <AknControl.h>
       
    38 #include <aknsconstants.h>
    38 
    39 
    39 class CEikImage ;
    40 class CEikImage ;
    40 class CEikDialogPage;
    41 class CEikDialogPage;
    41 // Forward declaration of types used in layout routines.
    42 // Forward declaration of types used in layout routines.
    42 class CAknPopupField;
    43 class CAknPopupField;
   306      * Low level observer for touch related pointer events.
   307      * Low level observer for touch related pointer events.
   307      * This can be used to receive low level pointer events.
   308      * This can be used to receive low level pointer events.
   308      */
   309      */
   309 	IMPORT_C void SetPointerEventObserver(MPointerEventObserver *aObserver);
   310 	IMPORT_C void SetPointerEventObserver(MPointerEventObserver *aObserver);
   310 	MPointerEventObserver *PointerEventObserver() const;
   311 	MPointerEventObserver *PointerEventObserver() const;
       
   312 	
       
   313     /** Sets the captionedcontrol to be currently focused or not.
       
   314      * @param aSelected whether captionedcontrol is focused
       
   315      * @param aRedraw whether redraw is needed or not
       
   316      */    
       
   317     void SetCurrent(TBool aSelected, TBool aRedraw );
       
   318     
   311 protected:
   319 protected:
   312     TRect ViewRect() const;
   320     TRect ViewRect() const;
   313     TRect EditRect() const;
   321     TRect EditRect() const;
   314 
   322 
   315 private:
   323 private:
   376     void  LayoutBitmap(const TRect& aRect);
   384     void  LayoutBitmap(const TRect& aRect);
   377     void  LayoutCaption(const TRect& aRect);
   385     void  LayoutCaption(const TRect& aRect);
   378     void DoFormCaptionSettingsL(const TDesC& aText);
   386     void DoFormCaptionSettingsL(const TDesC& aText);
   379 private:
   387 private:
   380     static void FormLayoutControlBitmap(CEikImage* aBitmap, const TRect& aParent, TBool aIsEditable, TBool aSingleLayout, TInt aNumberOfLines);
   388     static void FormLayoutControlBitmap(CEikImage* aBitmap, const TRect& aParent, TBool aIsEditable, TBool aSingleLayout, TInt aNumberOfLines);
   381     static void FormLayoutControlEdwin(CEikEdwin* aEdwin, const TRect& aParent, TBool aIsEditable, TBool aSingleLayout, TInt aNumberOfLines, TBool aBitmapPresent, TBool aIsFocused);
   389     void FormLayoutControlEdwin(CEikEdwin* aEdwin, const TRect& aParent, TBool aIsEditable, TBool aSingleLayout, TInt aNumberOfLines, TBool aBitmapPresent, TBool aIsFocused);
   382     static void FormLayoutControlLabel(CEikLabel* aSlider, const TRect& aParent, TBool aIsEditable, TBool aSingleLayout, TInt aNumberOfLines, TBool aLayoutWithBitmap, TBool aIsFocused, TInt aIconCount);
   390     void FormLayoutControlLabel(CEikLabel* aSlider, const TRect& aParent, TBool aIsEditable, TBool aSingleLayout, TInt aNumberOfLines, TBool aLayoutWithBitmap, TBool aIsFocused, TInt aIconCount);
   383     static void FormLayoutControlMfne(CEikMfne* aMfne,  const TRect& aParent, TBool aIsEditable, TBool aSingleLayout, TInt aNumberOfLines, TBool aBitmapPresent, TBool aIsFocused );
   391     void FormLayoutControlMfne(CEikMfne* aMfne,  const TRect& aParent, TBool aIsEditable, TBool aSingleLayout, TInt aNumberOfLines, TBool aBitmapPresent, TBool aIsFocused );
   384     static void FormLayoutControlPopfield(CAknPopupField* aPopfield, const TRect& aParent, TBool aIsEditable, TBool aSingleLayout, TInt aNumberOfLines, TBool aBitmapPresent, TBool aIsFocused);
   392     void FormLayoutControlPopfield(CAknPopupField* aPopfield, const TRect& aParent, TBool aIsEditable, TBool aSingleLayout, TInt aNumberOfLines, TBool aBitmapPresent, TBool aIsFocused);
   385     static void FormLayoutControlSecretEditor(CEikSecretEditor* aSecretEd, const TRect& aParent, TBool aIsEditable, TBool aSingleLayout, TInt aNumberOfLines, TBool aBitmapPresent, TBool aIsFocused );
   393     void FormLayoutControlSecretEditor(CEikSecretEditor* aSecretEd, const TRect& aParent, TBool aIsEditable, TBool aSingleLayout, TInt aNumberOfLines, TBool aBitmapPresent, TBool aIsFocused );
   386     static void FormLayoutControlSlider(CAknSlider* aSlider, const TRect& aParent, TBool aIsEditable, TBool aSingleLayout, TInt aNumberOfLines, TBool aBitmapPresent);
   394     static void FormLayoutControlSlider(CAknSlider* aSlider, const TRect& aParent, TBool aIsEditable, TBool aSingleLayout, TInt aNumberOfLines, TBool aBitmapPresent);
   387     static void ConvertViewRectToEditRect(TRect& aRect);
   395     static void ConvertViewRectToEditRect(TRect& aRect);
   388     static void ConvertEditRectToViewRect(TRect& aRect);
   396     static void ConvertEditRectToViewRect(TRect& aRect);
   389 
   397 
   390     /*	
   398     /*	
   416     void DrawAsForm( const TRect& aRect ) const;
   424     void DrawAsForm( const TRect& aRect ) const;
   417     void DrawAsEikonDialog( const TRect& aRect ) const;
   425     void DrawAsEikonDialog( const TRect& aRect ) const;
   418     void DrawAsFormInEditMode( const TRect& aRect ) const;
   426     void DrawAsFormInEditMode( const TRect& aRect ) const;
   419     void DrawAsFormInViewMode( const TRect& aRect ) const;
   427     void DrawAsFormInViewMode( const TRect& aRect ) const;
   420     void DrawAsFormUnFocusedLine( const TRect& aRect ) const;
   428     void DrawAsFormUnFocusedLine( const TRect& aRect ) const;
       
   429     
       
   430     /**
       
   431      * Returns correct text color index.
       
   432      *
       
   433      * @since S60 5.2
       
   434      * @return Text color index.
       
   435      */
       
   436     TAknsQsnTextColorsIndex TextColorIndex() const;
   421 
   437 
   422 public:
   438 public:
   423     CCoeControl* iControl;
   439     CCoeControl* iControl;
   424     CEikCapCLabel* iCaption;
   440     CEikCapCLabel* iCaption;
   425     HBufC* iCaptionText;
   441     HBufC* iCaptionText;