email/imum/Utils/Inc/IMSWTextEditorPage.h
branchRCL_3
changeset 27 7fdbb852d323
parent 0 72b543305e3a
equal deleted inserted replaced
26:ebe688cedc25 27:7fdbb852d323
       
     1 /*
       
     2 * Copyright (c) 2006 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:  IMSWTextEditorPage.h
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef IMSWTEXTEDITORPAGE_H
       
    21 #define IMSWTEXTEDITORPAGE_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <aknsettingpage.h>
       
    26 #include <akntextsettingpage.h>
       
    27 #include <aknnavilabel.h>
       
    28 
       
    29 // CONSTANTS
       
    30 // MACROS
       
    31 // DATA TYPES
       
    32 // FUNCTION PROTOTYPES
       
    33 // FORWARD DECLARATIONS
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 *  ?one_line_short_description.
       
    38 *  ?other_description_lines
       
    39 *
       
    40 *  @lib ?library
       
    41 *  @since S60 3.0
       
    42 */
       
    43 class CIMSSettingsWizardEditTextPage :
       
    44     public CAknTextSettingPage
       
    45     {
       
    46     public: // Constructors and destructor
       
    47 
       
    48         /**
       
    49         * Destructor
       
    50         * @since S60 3.0
       
    51         */
       
    52         virtual ~CIMSSettingsWizardEditTextPage();
       
    53 
       
    54         /**
       
    55         *
       
    56         * @since S60 3.0
       
    57         */
       
    58         static CIMSSettingsWizardEditTextPage* NewL(
       
    59             CIMSSettingsWizard& aWizard,
       
    60             TInt aResourceId,
       
    61             TDes& aText,
       
    62             TDesC& aPageText,
       
    63             TInt aTextSettingPageFlags = 0 );
       
    64 
       
    65         /**
       
    66         *
       
    67         * @since S60 3.0
       
    68         */
       
    69         static CIMSSettingsWizardEditTextPage* NewLC(
       
    70             CIMSSettingsWizard& aWizard,
       
    71             TInt aResourceId,
       
    72             TDes& aText,
       
    73             TDesC& aPageText,
       
    74             TInt aTextSettingPageFlags = 0 );
       
    75 
       
    76     public: // New functions
       
    77 
       
    78         /**
       
    79         *
       
    80         * @since S60 3.0
       
    81         */
       
    82         void KeyPressedNextL();
       
    83 
       
    84         /**
       
    85         *
       
    86         * @since S60 3.0
       
    87         */
       
    88         void KeyPressedBackL();
       
    89 
       
    90         /**
       
    91         *
       
    92         * @since S60 3.0
       
    93         */
       
    94         void KeyPressedSelectL();
       
    95 
       
    96         /**
       
    97         *
       
    98         * @since S60 3.0
       
    99         */
       
   100         TKeyResponse OfferKeyEventL(
       
   101             const TKeyEvent& /*aKeyEvent*/,
       
   102             TEventCode /*aType*/ );
       
   103 
       
   104 
       
   105     public: // Functions from base classes
       
   106 
       
   107     protected: // Constructors
       
   108 
       
   109         /**
       
   110         *
       
   111         * @since S60 3.0
       
   112         */
       
   113         CIMSSettingsWizardEditTextPage(
       
   114             CIMSSettingsWizard& aWizard,
       
   115             TInt aResourceId,
       
   116             TDes& aText,
       
   117             TDesC& aPageText,
       
   118             TInt aTextSettingPageFlags = 0 );
       
   119 
       
   120         /**
       
   121         *
       
   122         * @since S60 3.0
       
   123         */
       
   124         void ConstructL();
       
   125 
       
   126     protected:  // New virtual functions
       
   127     protected:  // New functions
       
   128     protected:  // Functions from base classes
       
   129 
       
   130         virtual void ProcessCommandL( TInt aCommandId );
       
   131 
       
   132         virtual TBool PostDisplayCheckL();
       
   133 
       
   134 #ifdef RD_SCALABLE_UI_V2
       
   135         /**
       
   136         * Function for handling pointer (stylus) events
       
   137         * @since S60 v3.2
       
   138         * @param aPointerEvent, type of pointer actions
       
   139         */
       
   140         void HandlePointerEventL(const TPointerEvent& aPointerEvent);
       
   141 
       
   142         /**
       
   143         * Function for handling commands from Stylus popup menu
       
   144         * @since S60 v3.2
       
   145         * @param aControl
       
   146         * @param aEventType, type of event
       
   147         */
       
   148         void HandleControlEventL(CCoeControl* aControl, TCoeEvent aEventType );
       
   149 
       
   150 #endif  //RD_SCALABLE_UI_V2
       
   151 
       
   152     private:  // New virtual functions
       
   153     private:  // New functions
       
   154     private:  // Functions from base classes
       
   155 
       
   156     public:     // Data
       
   157     protected:  // Data
       
   158 
       
   159         /**
       
   160         *
       
   161         * @since S60 3.0
       
   162         */
       
   163         void UpdateIndicatorL();
       
   164 
       
   165         /**
       
   166         *
       
   167         * @since S60 3.0
       
   168         */
       
   169         void UpdateTextEditorL();
       
   170 
       
   171     private:    // Data
       
   172 
       
   173         // Reference to owner
       
   174         CIMSSettingsWizard& iWizard;
       
   175         //
       
   176         TDes&               iText;
       
   177         //
       
   178         TDesC&              iPageText;
       
   179     };
       
   180 
       
   181 #endif      // IMSWTEXTEDITORPAGE_H
       
   182 
       
   183 // End of File