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

📄 aknexlistbaseview.h

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

#ifndef __AKNEXLISTBASEVIEW_H__
#define __AKNEXLISTBASEVIEW_H__

// INCLUDES
#include <aknview.h>

// CONSTANTS
const TInt KAknExListInitTitleId = 0; // for initialization.
// CONSTANTS
const TInt KAknExListTitleBufLength( 256 ); // for lenght.

// UID of each view
const TUid KAknExListColumnViewId = { 1 };
const TUid KAknExListFormViewId = { 2 };
const TUid KAknExListSettingViewId = { 3 };
const TUid KAknExListMarkViewId = { 4 };
const TUid KAknExListFlagTestViewId = { 5 };
const TUid KAknExListSetPageViewId = { 6 };

// FORWARD DECLARATIONS
class CAknTitlePane;
class CAknNavigationControlContainer;
class CAknNavigationDecorator;
class CAknTabGroup;

// CLASS DECLARATION

/**
* CAknExListBaseView view class.
*/
class CAknExListBaseView : public CAknView
    {
    protected: // Constructors and destructor

        /**
        * CAknExListBaseView
        * Default constructor.
        */
        CAknExListBaseView();

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

    public: // New functions

        /**
        * TabGroup
        * Returns pointer to tab group object.
        * @return Pointer to tab group object.
        */
        CAknTabGroup* TabGroup();

        /**
        * SwitchDisplayOutlineL
        * Switches screen by outline.
        * @param aOutlineId The ID of outline to displayed next.
        */
        void SwitchDisplayOutlineL( const TInt aOutlineId );

        /**
        * DisplayNextOutlineL
        * Sets ID of outline to displayed next.
        */
        void DisplayNextOutlineL();

        /**
        * IndicateTitlePaneTextL
        * Sets text to titie pane.
        * @param aTitle Text of title pane.
        */
        void IndicateTitlePaneTextL( const TDesC& aTitle );


    public: // From CAknView

        /**
        * From CAknView, HandleCommandL.
        * Handles the commands. If the command is command which is require to
        * display outline-screen, the command display outline-screen
        * corresponded to required.
        * @param aCommand Command to be handled.
        */
        void HandleCommandL( TInt aCommand );

    protected: // New functions

        /**
        * IndicateTitlePaneTextL
        * Sets text by resource ID in title pane.
        * @param aResourceId The ID of outline number to displayed next.
        */
        void IndicateTitlePaneTextL( const TInt aResourceId );

        /**
        * DisplayInitOutlineL
        * Displays initial outline when view changed.
        */
        void DisplayInitOutlineL();

    private: // New functions

        /**
        * SetNavigationPaneL
        * Sets Navigation pane.
        */
        void SetNavigationPaneL();

        /**
        * SetTitlePaneL
        * Sets text of title pane by outline ID.
        * @param aOutlineId The ID of outline to displayed next.
        */
        virtual void SetTitlePaneL( const TInt aOutlineId );

        /**
        * DisplayListBoxL
        * This function makes container class display listbox.
        * This is pure virtual function.
        * @param aOutlineId The ID of outline to displayed next.
        */
        virtual void DisplayListBoxL( const TInt aOutlineId ) = 0;

        /**
        * DeleteTabGroup
        * Deletes tab group.
        */
        void DeleteTabGroup();

    private: // Data

        /**
        * iNaviPane
        * Does not own.
        */
        CAknNavigationControlContainer* iNaviPane;

        /**
        * iDecoratedTabGroup
        * Owned by CAknExListBaseView object.
        */
        CAknNavigationDecorator* iDecoratedTabGroup;

        /**
        * iTabGroup
        * Does not own.
        */
        CAknTabGroup* iTabGroup;

    };

#endif // __AKNEXLISTBASEVIEW_H__

// End of File

⌨️ 快捷键说明

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