os/textandloc/fontservices/textshaperplugin/test/S60HindiDemo/inc/HindiDemocontainer.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/textandloc/fontservices/textshaperplugin/test/S60HindiDemo/inc/HindiDemocontainer.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,123 @@
     1.4 +/*
     1.5 +* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description: 
    1.18 +* Series 60 version of Hindi Demo application
    1.19 +*
    1.20 +*/
    1.21 +
    1.22 +
    1.23 +
    1.24 +#ifndef __HINDIDEMO_CONTAINER_H__
    1.25 +#define __HINDIDEMO_CONTAINER_H__
    1.26 +
    1.27 +#include "HindiDemo.hrh"
    1.28 +
    1.29 +#include <aknsettingitemlist.h>
    1.30 +#include <akncontext.h>
    1.31 +#include <aknnavi.h>
    1.32 +#include <aknnavide.h>
    1.33 +#include <akntitle.h>
    1.34 +#include <avkon.rsg>
    1.35 +#include <barsread.h>
    1.36 +#include <eikspane.h>
    1.37 +
    1.38 +const TInt KLengthOfNaviTempString = 100;
    1.39 +
    1.40 +#if !defined(KSettingEdwinMaxValueLength)
    1.41 +#define KSettingEdwinMaxValueLength 50
    1.42 +#endif
    1.43 +
    1.44 +#if !defined(KSettingSecretMaxLabelLength)
    1.45 +#define KSettingSecretMaxLabelLength 20
    1.46 +#endif
    1.47 +
    1.48 +
    1.49 +// -----------------------------------------------------------------------
    1.50 +// CHindiDemoContainer
    1.51 +// -----------------------------------------------------------------------
    1.52 +class CHindiDemoContainer : public CAknSettingItemList {
    1.53 +
    1.54 +public:
    1.55 +
    1.56 +  ~CHindiDemoContainer();
    1.57 +
    1.58 +  // ------------------------------------------------------------------------------------------------
    1.59 +  // Framework method to create a setting item based upon the user id aSettingId. The
    1.60 +  // client code decides what type to construct.  new (ELeave) must then be used and the resulting
    1.61 +  // pointer returned. Ownership is thereafter base class's responsibility.
    1.62 +  //
    1.63 +  // @param aSettingId	ID to use to determine the type of the setting item
    1.64 +  // @return a constructed (not 2nd-stage constructed) setting item.
    1.65 +  // ------------------------------------------------------------------------------------------------
    1.66 +  CAknSettingItem* CreateSettingItemL(TInt aSettingId);
    1.67 +
    1.68 +  // ------------------------------------------------------------------------------------------------
    1.69 +  // This launches the setting page for the current item by calling EditItemL on it
    1.70 +  //
    1.71 +  // @param aIndex - current item's (Visible) index in the list
    1.72 +  // @param aCalledFromMenu - ignored in most classes; may alter the behaviour of the setting page
    1.73 +  // ------------------------------------------------------------------------------------------------
    1.74 +  void EditItemL(TInt aIndex, TBool aCalledFromMenu);
    1.75 +
    1.76 +  // -----------------------------------------------------------------------
    1.77 +  // Routine that dispatches Command events to individual handlers
    1.78 +  // -----------------------------------------------------------------------
    1.79 +  bool DispatchViewCommandEvents(TInt aCommand);
    1.80 +
    1.81 +  // -----------------------------------------------------------------------
    1.82 +  // Routine that initializes components owned by this Container
    1.83 +  // -----------------------------------------------------------------------
    1.84 +  void InitComponentsL();
    1.85 +
    1.86 +  	void Draw(const TRect& aRect) const;
    1.87 +
    1.88 +private:
    1.89 +
    1.90 +  // -----------------------------------------------------------------------
    1.91 +  // Routine that cleans up components owned by this container
    1.92 +  // -----------------------------------------------------------------------
    1.93 +  void CleanupComponents();
    1.94 +
    1.95 +  // -----------------------------------------------------------------------
    1.96 +  // Handles keys sent to this control
    1.97 +  // -----------------------------------------------------------------------
    1.98 +  TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
    1.99 +
   1.100 +  // -----------------------------------------------------------------------
   1.101 +  // Responds to size changes to sets the size and position of the contents of this control
   1.102 +  // -----------------------------------------------------------------------
   1.103 +  void SizeChanged();
   1.104 +
   1.105 + private:
   1.106 +  // -----------------------------------------------------------------------
   1.107 +  //  CAknNavigationControlContainer* iNaviPane;
   1.108 +  //  CAknNavigationDecorator* iNaviDecorator;
   1.109 +  // -----------------------------------------------------------------------
   1.110 +
   1.111 +private:
   1.112 +  // -----------------------------------------------------------------------
   1.113 +  // NOTE: The following section is managed by the C++Builder IDE - DO NOT MODIFY
   1.114 +  //IDE-MANAGED-START
   1.115 +  /* 13/08/05 20:28 */
   1.116 +  CAknContextPane * iContextPane;
   1.117 +  CAknTitlePane * iTitlePane;
   1.118 +  CAknNavigationControlContainer * iNaviPane;
   1.119 +  CAknNavigationDecorator * iNaviDecorator;
   1.120 +  //IDE-MANAGED-END
   1.121 +
   1.122 +
   1.123 +  // -----------------------------------------------------------------------
   1.124 +};
   1.125 +
   1.126 +#endif // __HINDIDEMO_CONTAINER_H__