navigationpane.rss

来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· RSS 代码 · 共 218 行

RSS
218
字号
/**
* 
* @brief Resource file for NavigationPane application
*
* Copyright (c)  EMCC Software Ltd
* @version 1.0
*/

//  RESOURCE IDENTIFIER
NAME    SPA4 // 4 letter ID

//  INCLUDES

#include <avkon.mbg>
#include <avkon.rh>
#include <avkon.rsg>
#include <eikon.rh>
#include <eikon.rsg>

#include "NavigationPane.hrh"
#include "NavigationPane.loc"

//  RESOURCE DEFINITIONS 

RESOURCE RSS_SIGNATURE { }

RESOURCE TBUF {buf = "NavigationPane"; }

RESOURCE EIK_APP_INFO
{
    status_pane = r_navigationpane_status_pane;
}

// ---------------------------------------------------------
//   
//    r_navigationpane_view1
//    Define view 1
//
// ---------------------------------------------------------
//
RESOURCE AVKON_VIEW r_navigationpane_view1
{
    menubar = r_navigationpane_menubar;
    cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
}


// ---------------------------------------------------------
//   
//   r_navigationpane_menubar
//   Menu title definition
//
// ---------------------------------------------------------
//
RESOURCE MENU_BAR r_navigationpane_menubar
{
    titles =
    {
        MENU_TITLE 
        {
            menu_pane = r_navigationpane_menu_pane;
        }
    };
}

// ---------------------------------------------------------
//   
//   r_navigationpane_menu_pane
//   Menu for "Options"
//
// ---------------------------------------------------------
//
RESOURCE MENU_PANE r_navigationpane_menu_pane
{
    items = 
    {
        MENU_ITEM
        {
            command = ENavigationPaneSetNaviPane;
            txt = SET_NAVIPANE_TABS;
        },
        MENU_ITEM
        {
            command = ENavigationPaneSetNaviPaneLabel;
            txt = SET_NAVIPANE_LABEL;
        },
        MENU_ITEM
        {
            command = ENavigationPaneSetNaviPaneImage;
            txt = SET_NAVIPANE_IMAGE;
        },
        MENU_ITEM 
        {
            command = EAknCmdExit;   
            txt = EXIT_TEXT;
        }
    };
}

// ---------------------------------------------------------
//   
//   r_navigationpane_status_pane
//   Status pane definition
//
// ---------------------------------------------------------
//
RESOURCE STATUS_PANE_APP_MODEL r_navigationpane_status_pane
{
    panes=
    {
        SPANE_PANE
        {
            id = EEikStatusPaneUidNavi;
            type = EAknCtNaviPane;
            resource = r_navigationpane_navi_tabgroup;
        }
    };
}

// ---------------------------------------------------------
//   
//   r_navigationpane_tabgroup
//   Tab group definition, loaded when menu item selected
//
// ---------------------------------------------------------
//
RESOURCE TAB_GROUP r_navigationpane_tabgroup
{
    tab_width = EAknTabWidthWithTwoTabs;  // display two tabs
    active = 0;
    tabs = {
        TAB
        {
            id = ENavigationPaneTab1;
            txt = TAB1_TEXT;
        },
        TAB
        {
            id = ENavigationPaneTab2;
            txt = TAB2_TEXT;
        }
    };
}

// ---------------------------------------------------------
//   
//   r_navigationpane_navi_tabgroup
//   Tab group definition, displayed when program starts
//
// ---------------------------------------------------------
//
RESOURCE NAVI_DECORATOR r_navigationpane_navi_tabgroup
{
    type = ENaviDecoratorControlTabGroup;
    control = TAB_GROUP
    {
        tab_width = EAknTabWidthWithTwoTabs;  // display two tabs
        active = 0;
        tabs = {
            TAB
            {
                id = ENavigationPaneTab1;
                txt = TAB1_TEXT;
            },
            TAB
            {
                id = ENavigationPaneTab2;
                txt = TAB2_TEXT;
            }
        };
    };
}


// ---------------------------------------------------------
//   
//   r_navigationpane_navi_text
//   Navigation pane label definition
//
// ---------------------------------------------------------
//
RESOURCE NAVI_LABEL r_navigationpane_navi_text
{
    txt = LABEL_TEXT;
}

// ---------------------------------------------------------
//   
//   r_navigationpane_navi_imagedec
//   Navigation pane decorator image definition
//
// ---------------------------------------------------------
//
RESOURCE NAVI_DECORATOR r_navigationpane_navi_imagedec
{
    type = ENaviDecoratorImage;
    control = NAVI_IMAGE
    {
        bmpfile = "z:\\system\data\avkon.mbm";
        bmpid = EMbmAvkonQgn_stat_keyguard;
    };
}

// ---------------------------------------------------------
//   
//   r_navigationpane_navi_image
//   Navigation pane image definition
//
// ---------------------------------------------------------
//
RESOURCE NAVI_IMAGE r_navigationpane_navi_image
{
    bmpfile = "z:\\system\data\avkon.mbm";
    bmpid = EMbmAvkonQgn_stat_keyguard;
}

// End of File

⌨️ 快捷键说明

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