classicui_plat/extended_dialogs_api/inc/EIKPGSEL.H
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 1997-1999 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #if !defined(__EIKPGSEL_H__)
       
    20 #define __EIKPGSEL_H__
       
    21 
       
    22 #if !defined(__COECNTRL_H__)
       
    23 #include <coecntrl.h>
       
    24 #endif
       
    25 
       
    26 class CEikLabel;
       
    27 class CEikCapCArray;
       
    28 class CEikCaptionedControl;
       
    29 class CEikDialogPage;
       
    30 class CEikActivePageSelector;
       
    31 
       
    32 /**
       
    33  * @deprecated
       
    34  */
       
    35 class CEikPageSelector : public CCoeControl
       
    36 	{
       
    37 public: // new functions
       
    38 	IMPORT_C CEikPageSelector();
       
    39 	IMPORT_C ~CEikPageSelector();
       
    40 	IMPORT_C void ConstructFromResourceL(TResourceReader& aReader);
       
    41 	IMPORT_C void AddPageL(const TDesC& aText,TInt aControlId,TInt aLinesResourceId);
       
    42 	IMPORT_C void AddPageL(CEikLabel* aLabel,TInt aControlId,TInt aLinesResourceId);
       
    43 	IMPORT_C TInt CurrentPage() const;
       
    44 	IMPORT_C TInt CurrentPageControlId() const;
       
    45 	IMPORT_C TInt PageSelectorWidth(TInt aPageIndex);
       
    46 	IMPORT_C CEikCapCArray* StartConstructPageL(TInt aPageIndex,CCoeControl*& aContainer,TInt& aResourceId);
       
    47 	IMPORT_C CEikCapCArray* InfoFromPageId(TInt aPageId,CCoeControl*& aContainer) const;
       
    48 	IMPORT_C void SetInitialCurrentPageIndexL(TInt aCurrentPage);
       
    49 	IMPORT_C TSize MinimumPageSize() const;
       
    50 	IMPORT_C void SetPagesRectL(const TRect& aRect);
       
    51 	IMPORT_C CEikCapCArray* SwapPageDetails(TInt& aCurrentLine);
       
    52 	IMPORT_C void ChangePageL(CEikCapCArray* aArray,TInt aCurrentLine);
       
    53 	IMPORT_C TBool GetNextPage(TInt aPageIndex,CEikCapCArray*& aPage) const;
       
    54 	IMPORT_C void SetPageDimmed(TInt aPageId,TBool aDimmed);
       
    55 	IMPORT_C TInt IdOfUnavailableSelectedPage() const;
       
    56 public: // from CCoeControl
       
    57 	IMPORT_C TSize MinimumSize();
       
    58 	IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
       
    59 	IMPORT_C TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
       
    60 	IMPORT_C virtual void GetColorUseListL(CArrayFix<TCoeColorUse>& aColorUseList) const; // not available before Release 005u
       
    61 	IMPORT_C virtual void HandleResourceChange(TInt aType);			// not available before Release 005u
       
    62 	IMPORT_C TCoeInputCapabilities InputCapabilities() const;
       
    63 private:   // from CCoeControl
       
    64 	TInt CountComponentControls() const;
       
    65 	CCoeControl* ComponentControl(TInt aIndex) const;
       
    66 	void SizeChanged();
       
    67 	void FocusChanged(TDrawNow aDrawNow);
       
    68 	void Draw(const TRect& aRect) const;
       
    69 	void ActivateL();
       
    70 private:
       
    71     /**
       
    72     * From CAknControl
       
    73     */
       
    74     IMPORT_C void* ExtensionInterface( TUid aInterface );
       
    75 private: // new functions
       
    76 	void ChangeCurrentPageL(TInt aCurrentPage);
       
    77 	void EmphasizeCurrentPageL(TBool aEmphasis);
       
    78 private:
       
    79 	struct SEikPage
       
    80 		{
       
    81 		CEikLabel* iLabel;
       
    82 		TInt iControlId;
       
    83 		TInt iPageResourceId;
       
    84 		CEikDialogPage* iPage;
       
    85 		CEikCapCArray* iLines;
       
    86 		TInt iCurrentLine;
       
    87 		};
       
    88 
       
    89 
       
    90 	CArrayFixFlat<SEikPage>* iPages;
       
    91 	TInt iCurrentPage;
       
    92 	TInt* iPreviousPageCurrentLine;
       
    93 	CEikActivePageSelector* iActiveSelector;
       
    94 	TInt iIdOfUnavailableSelectedPage;
       
    95 	};
       
    96 
       
    97 
       
    98 /**
       
    99  * @deprecated
       
   100  */
       
   101 class CEikActivePageSelector : public CCoeControl
       
   102 	{
       
   103 public: // new functions
       
   104 	CEikActivePageSelector();
       
   105 	~CEikActivePageSelector();
       
   106 	void ConstructL(CCoeControl* aContainer);
       
   107 	void SetTextL(const CEikLabel* aLabel);
       
   108 	inline CEikLabel* Label() const {return iLabel;}
       
   109 public:	// from CCoeControl
       
   110 	void GetColorUseListL(CArrayFix<TCoeColorUse>& aColorUseList) const; // not available before Release 005u
       
   111 	void HandleResourceChange(TInt aType);			// not available before Release 005u
       
   112 private: // from CCoeControl
       
   113 	void Draw(const TRect& aRect) const;
       
   114 	TInt CountComponentControls() const;
       
   115 	CCoeControl* ComponentControl(TInt aIndex) const;
       
   116 private:
       
   117     enum { EMaxTextLength = 20 };
       
   118 	CEikLabel* iLabel;
       
   119 	};
       
   120 
       
   121 
       
   122 
       
   123 #endif