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

📄 helloworld2.rss

📁 《基于symbian手机开发与应用》一书的源代码
💻 RSS
字号:
/*
* ============================================================================
*  Name     : HelloWorld2.rss
*  Part of  : HelloWorld2
*  Created  : 2006-3-14 by 
*  Description:
*     This file contains all the resources for the HelloWorld2.
*     Initial content was generated by Series 60 AppWizard.
*  Version  :
*  Copyright: 
* ============================================================================
*/

//  RESOURCE IDENTIFIER
NAME    AWIZ // 4 letter ID

//  INCLUDES

#include <eikon.rh>
#include "helloworld2.hrh"
#include "helloworld2.loc"
#include <avkon.rsg>
#include <avkon.rh>
#include <avkon.mbg>
#include <avkon.loc>



//  RESOURCE DEFINITIONS 

RESOURCE RSS_SIGNATURE { }

RESOURCE TBUF { buf = "HelloWorld2"; }

RESOURCE EIK_APP_INFO
    {
    status_pane = r_helloworld2_status_pane;
    }

//----------------------------------------------------
//   
//    r_helloworld2_hotkeys
//
//----------------------------------------------------
//
RESOURCE HOTKEYS r_helloworld2_hotkeys
    {
    control =
        {
        HOTKEY { command = EAknCmdExit; key = 'e'; }
        };
    }

//----------------------------------------------------
//   
//    r_helloworld2_view1
//
//----------------------------------------------------
//
RESOURCE AVKON_VIEW r_helloworld2_view1
    {
    hotkeys = r_helloworld2_hotkeys;
    menubar = r_helloworld2_menubar_view1;  
    cba     = R_AVKON_SOFTKEYS_SELECTION_LIST;    
    }

//----------------------------------------------------
//   
//    r_helloworld2_menubar_view1
//
//----------------------------------------------------
//
RESOURCE MENU_BAR r_helloworld2_menubar_view1
    {
    titles =
        {
        MENU_TITLE { menu_pane = r_helloworld2_app_menu; txt = "App"; },
        MENU_TITLE { menu_pane = r_helloworld2_view1_menu; txt = "View"; }
        };
    }

//----------------------------------------------------
//   
//    r_helloworld2_view1_menu
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_helloworld2_view1_menu
    {
    items =
        {
        MENU_ITEM { command = EHelloWorld2CmdAppTest; txt = qtn_view1_option_item; }
        };
    }

//----------------------------------------------------
//   
//    r_helloworld2_view2
//
//----------------------------------------------------
//
RESOURCE AVKON_VIEW r_helloworld2_view2
    {
    hotkeys = r_helloworld2_hotkeys;
    menubar = r_helloworld2_menubar_view2;  
    cba     = R_AVKON_SOFTKEYS_SELECTION_LIST; 
    }

//----------------------------------------------------
//   
//    r_helloworld2_menubar_view2
//
//----------------------------------------------------
//
RESOURCE MENU_BAR r_helloworld2_menubar_view2
    {
    titles =
        {
        MENU_TITLE { menu_pane = r_helloworld2_app_menu; txt = "App"; },
        MENU_TITLE { menu_pane = r_helloworld2_view2_menu; txt = "View"; }
        };
    }

//----------------------------------------------------
//   
//    r_helloworld2_view2_menu
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_helloworld2_view2_menu
    {
    items =
        {
        MENU_ITEM { command = EHelloWorld2CmdAppTest; txt = qtn_view2_option_item; }
        };
    }

//----------------------------------------------------
//   
//    r_helloworld2_app_menu
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_helloworld2_app_menu
    {
    items =
        {
        MENU_ITEM { command = EHelloWorld2CmdAppTest; txt = qtn_appl_option_item; },
        MENU_ITEM { command = EAknCmdExit; txt = qtn_options_exit; }
        };
    }

RESOURCE STATUS_PANE_APP_MODEL r_helloworld2_status_pane
    {
	panes =
		{
		SPANE_PANE
			{
			id = EEikStatusPaneUidNavi;
			type = EAknCtNaviPane;
			resource = r_helloworld2_navi_decorator;
			}
		};
    }

//----------------------------------------------------
//   
//    r_helloworld2_navi_decorator
//
//----------------------------------------------------
//
RESOURCE NAVI_DECORATOR r_helloworld2_navi_decorator
    {
    type = ENaviDecoratorControlTabGroup;
    control = TAB_GROUP
		{
		tab_width = EAknTabWidthWithTwoTabs;  // two tabs
		active = 0;
		tabs = {
			TAB
				{
                id = EHelloWorld2View1Tab; // from application hrh
                txt = qtn_view1_tab;
                },
			TAB
				{
                id = EHelloWorld2View2Tab;
                txt = qtn_view2_tab;
				}
			};
		};
	}


            
// End of File

⌨️ 快捷键说明

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