videditor/ManualVideoEditor/inc/VeiSettingsContainer.h
changeset 9 d87d32eab1a9
parent 0 951a5db380a0
equal deleted inserted replaced
0:951a5db380a0 9:d87d32eab1a9
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "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 * Ixonos Plc
       
    14 *
       
    15 * Description:  
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef VEISETTINGSCONTAINER_H
       
    22 #define VEISETTINGSCONTAINER_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <coecntrl.h>
       
    26 
       
    27 // CLASS DECLARATION
       
    28 class CVeiSettingItemList;
       
    29 class TVeiSettings;
       
    30 
       
    31 /**
       
    32  * CVeiSettingsContainer container control class.
       
    33  */
       
    34 class CVeiSettingsContainer: public CCoeControl
       
    35 {
       
    36 public:
       
    37     // Constructors and destructor
       
    38 
       
    39     /**
       
    40      * Default constructor.
       
    41      *
       
    42      * @param aRect Frame rectangle for container.
       
    43      * @param aSettings Reference to application settings.
       
    44      */
       
    45     void ConstructL( const TRect& aRect, TVeiSettings& aSettings );
       
    46 
       
    47     /**
       
    48      * Destructor.
       
    49      */
       
    50     virtual ~CVeiSettingsContainer();
       
    51 
       
    52 public:
       
    53     // New functions
       
    54 
       
    55     /**
       
    56      * This launches the setting page for the highlighted item by calling
       
    57      * <code>EditItemL</code> on it. The responsibility is handled to
       
    58      * <code>CVeiSettingItemList</code>.
       
    59      */
       
    60     void ChangeFocusedItemL();
       
    61 
       
    62 private:
       
    63     // From CCoeControl
       
    64 
       
    65     /**
       
    66      * From <code>CCoeControl</code>, gets the specified component of 
       
    67      * a compound control.
       
    68      *
       
    69      * @param aIndex The index of the control to get.
       
    70      * @return The component control with an index of <code>aIndex</code>.
       
    71      */
       
    72     CCoeControl* ComponentControl( TInt aIndex )const;
       
    73 
       
    74     /**
       
    75      * From <code>CCoeControl</code>, gets the number of controls contained
       
    76      * in a compound control. 
       
    77      *
       
    78      * @return The number of component controls contained by this control.
       
    79      */
       
    80     TInt CountComponentControls()const;
       
    81 
       
    82     /**
       
    83      * From <code>CCoeControl</code>, gets the control's help context. 
       
    84      * Associates this control with a particular Help file and topic in
       
    85      * a context sensitive application. Sets public data members of
       
    86      * <code>aContext</code> to the required Help file UID (iMajor) and
       
    87      * context descriptor (iContext).
       
    88      *
       
    89      * @param aContext The control's help context.
       
    90      */
       
    91     void GetHelpContext( TCoeHelpContext& aContext )const;
       
    92 
       
    93     /**
       
    94      * From <code>CoeControl</code>, handles key events by passing them to
       
    95      * <code>CVeiSettingItemList</code>.
       
    96      *
       
    97      * @param aKeyEvent The key event.
       
    98      * @param aType The type of key event: <code>EEventKey</code>,
       
    99      *              <code>EEventKeyUp</code> or <code>EEventKeyDown</code>.
       
   100      * @return Indicates whether or not the key event was used by this
       
   101      *         control.
       
   102      */
       
   103     TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
       
   104 
       
   105     void HandleResourceChange( TInt aType );
       
   106 
       
   107     void SizeChanged();
       
   108 
       
   109 private:
       
   110     // Data
       
   111 
       
   112     /**
       
   113      * Setting item list for handling all the setting items.
       
   114      */
       
   115     CVeiSettingItemList* iSettingItemList;
       
   116 
       
   117 };
       
   118 
       
   119 #endif // VEISETTINGSCONTAINER_H
       
   120 
       
   121 // End of File