sysanadatacapture/piprofiler/piprofilerui/gui/inc/profiler_gui_maincontainer.h
changeset 1 3ff3fecb12fe
equal deleted inserted replaced
0:f0f2b8682603 1:3ff3fecb12fe
       
     1 /*
       
     2 * Copyright (c) 2009 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 
       
    20 #ifndef PROFILER_GUI_VALUESCONTAINER_H
       
    21 #define PROFILER_GUI_VALUESCONTAINER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <coecntrl.h>
       
    25 #include <eiklbo.h> 
       
    26 #include <aknlists.h> 
       
    27 #include <akninfopopupnotecontroller.h> 
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CProfilerGuiModel;
       
    31 class CAknInfoPopupNoteController;
       
    32 
       
    33 // CLASS DECLARATIONS
       
    34 
       
    35 class CProfilerGuiMainContainer : public CCoeControl, MCoeControlObserver, MEikListBoxObserver
       
    36     {
       
    37 public:
       
    38     void ConstructL(const TRect& aRect);
       
    39     ~CProfilerGuiMainContainer();
       
    40 
       
    41 private:
       
    42     void SizeChanged();  
       
    43     TInt CountComponentControls() const;
       
    44     CCoeControl* ComponentControl(TInt aIndex) const;
       
    45     void Draw(const TRect& aRect) const;
       
    46     void HandleResourceChange(TInt aType);
       
    47     void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType);  // From MEikListBoxObserver
       
    48     void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);  // From MCoeControlObserver
       
    49 	TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
       
    50 
       
    51 public:
       
    52     const CArrayFix<TInt>* ListBoxSelectionIndexes();
       
    53     TInt ListBoxSelectionIndexesCount();
       
    54     void SetDefaultTitlePaneTextL();
       
    55     TInt CurrentListBoxItemIndex();
       
    56     void SetListBoxTextArrayL(CDesCArray* aTextArray);
       
    57     inline CAknSingleGraphicStyleListBox* ListBox() { return iListBox; }
       
    58     void ShowWriterInfoPopupL(const TDesC& aNote);
       
    59 private:
       
    60     CProfilerGuiModel*                              iModel;
       
    61     CAknSingleGraphicStyleListBox*      			iListBox;
       
    62     CAknInfoPopupNoteController*        			iInfoPopup;
       
    63     };
       
    64 
       
    65 #endif
       
    66 
       
    67 // End of File