⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aknexlistsettingcontainer.h

📁 symbian ui的 例子 初学者可以 好好看看,这个是培训的资料,应该比较宝贵
💻 H
字号:
/*  Copyright (c) 2005, Nokia. All rights reserved */

#ifndef __AKNEXLISTSETTINGCONTAINER_H__
#define __AKNEXLISTSETTINGCONTAINER_H__

// INCLUDES
#include "AknExListBaseContainer.h"

// CONSTANTS
const TInt KAknExListInitCount = 0; // for initialization.

// FORWARD DECLARATIONS
class CEikFormattedCellListBox;
class CAknExListSettingView;

// CLASS DECLARATION

/**
* CAknExListSettingContainer  container control class.
*/
class CAknExListSettingContainer : public CAknExListBaseContainer
    {
    
    private: // Enumerations

        enum TAknExListComponentControls
            {
            EKAknExListComponentListBox
            };

    public: // Constructors and destructor

        /**
        * CAknExListSettingContainer
        * Copy constructor.
        * @param aView Pointer of CAknExListFormView class.
        */
        CAknExListSettingContainer( CAknExListSettingView* aView );

        /**
        * ConstructL
        * Symbian constructor.
        * @param aRect Frame rectangle for container.
        */
        void ConstructL( const TRect& aRect );

        /**
        * ~CAknExListSettingContainer
        * Destructor.
        */
        virtual ~CAknExListSettingContainer();

    public: // New functions

        /**
        * DisplayListBoxL
        * Displays the listbox by outline ID.
        * @param aOutlineId The ID of outline to displayed next.
        */
        void DisplayListBoxL( const TInt aOutlineId );

    public: // Functions from base classes

        /**
        * From CoeControl, OfferKeyEventL.
        * Handles the key-events.
        * @return If key-event is consumed, EKeyWasConsumed. Else
        * EKeyWasNotConsumed.
        * @param aKeyEvent Key event.
        * @param aType Type of key event( EEventKey, EEventKeyUp or
        * EEventKeyDown ).
        */
        TKeyResponse OfferKeyEventL( 
            const TKeyEvent& aKeyEvent,
            TEventCode aType );

    private: // New functions

        /**
        * SetCountAndAddItemL
        * Sets count of added list items and calls AddItemL().
        * @param aKeyEvent Key event.
        */
        void SetCountAndAddItemL( const TKeyEvent& aKeyEvent );

        /**
        * SetCountAndRemoveItemL
        * Sets count of removed list items and calls RemoveItemL().
        * @param aKeyEvent Key event.
        */
        void SetCountAndRemoveItemL( const TKeyEvent& aKeyEvent );

    private: // From CAknExListBaseContainer

        /**
        * GraphicIconL
        * Appends graphics data.
        * @param Pointer of icon using graphics for listbox.
        */
        void GraphicIconL( CArrayPtr<CGulIcon>* aIcons );

    private: // From CoeControl

        /**
        * From CoeControl, SizeChanged.
        * Called by framework when the view size is changed.
        */
        void SizeChanged();

        /**
        * From CoeControl, CountComponentControls.
        * Returns number of components.
        * @return Number of controls.
        */
        TInt CountComponentControls() const;

        /**
        * From CCoeControl, ComponentControl.
        * Returns pointer to particular component.
        * @return Pointer to Control's component control, identified by index.
        * @param aIndex Index of the control.
        */
        CCoeControl* ComponentControl( TInt aIndex ) const;

        /**
        * From CoeControl, HandleResourceChange.
        * Called by framework when the view layout is changed.
        */
        virtual void HandleResourceChange(TInt aType);
        
    private: // Data

        /**
        * iListBox
        * Owned by CAknExListSettingContainer object.
        */
        CEikFormattedCellListBox* iListBox;

        /**
        * iView
        * Does not own.
        */
        CAknExListSettingView* iView;

        /**
        * iOutlineId
        */
        TInt iOutlineId;

    };

#endif // __AKNEXLISTSETTINGCONTAINER_H__

// End of File

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -