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

📄 demonsym.rss

📁 symbian下的一个例子
💻 RSS
字号:
/*
============================================================================
 Name        : Demonsym.rss
 Author      : huhao
 Version     :
 Copyright   : baidu
 Description : This file contains all the resources for the Demonsym.
============================================================================
*/

//  RESOURCE IDENTIFIER
NAME    AWIZ // 4 letter ID

//  INCLUDES

#include <eikon.rh>
#include "Demonsym.hrh"
#include "Demonsym.rls"
#include <avkon.rsg>
#include <avkon.rh>
#include <avkon.mbg>
#include <appinfo.rh>

//  RESOURCE DEFINITIONS 
// -----------------------------------------------------------------------------
//
//    Define the resource file signature
//    This resource should be empty.
//
// -----------------------------------------------------------------------------
//
RESOURCE RSS_SIGNATURE { }

// -----------------------------------------------------------------------------
//
//    Default Document Name
//
// -----------------------------------------------------------------------------
//
RESOURCE TBUF { buf = "Demonsym"; }

// -----------------------------------------------------------------------------
//
//    Define default menu and CBA key.
//
// -----------------------------------------------------------------------------
//
RESOURCE EIK_APP_INFO
	{
	status_pane = r_demonsym_status_pane;
	}

// -----------------------------------------------------------------------------
//
//    Localizable application information
//
// -----------------------------------------------------------------------------
//
RESOURCE LOCALISABLE_APP_INFO r_demonsym_localisable_app_info
	{
	short_caption = qtn_app_short_caption_string;
	caption_and_icon = 
	CAPTION_AND_ICON_INFO
		{
		caption = qtn_app_caption_string;

		number_of_icons = 1;
		icon_file = "\\resource\\apps\\Demonsym.mif";
		};
	}

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

//----------------------------------------------------
//   
//    r_demonsym_view1
//
//----------------------------------------------------
//
RESOURCE AVKON_VIEW r_demonsym_view1
	{
	hotkeys = r_demonsym_hotkeys;
	menubar = r_demonsym_menubar_view1;  
	cba     = r_demonsym_app_cba;    
	}
	

RESOURCE CBA r_demonsym_app_cba
{
    buttons =
        {
            AVKON_CBA_BUTTON
            {
                id = ESoftkeyMenu;
                txt = qtn_softkey_showmenu;
            },

            AVKON_CBA_BUTTON
            {
                id = EExit;
                txt = qtn_softkey_Exit;
            }
        };
}

//----------------------------------------------------
//   
//    r_demonsym_menubar_view1
//
//----------------------------------------------------
//MENU_TITLE { menu_pane = r_demonsym_app_menu; txt = "App"; },
RESOURCE MENU_BAR r_demonsym_menubar_view1
	{
	titles =
		{
		MENU_TITLE { menu_pane = r_demonsym_view_menu; txt = "View"; }
		};
	}

//----------------------------------------------------
//   
//    r_demonsym_view_menu
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_demonsym_view_menu
	{
	items =
		{
		MENU_ITEM { command = EDemonsymCmdGotoBaidu; txt = qtn_view_Menu_Baidu; },
		MENU_ITEM { command = EDemonsymCmdGotoSina; txt = qtn_view_Menu_Sina; },
		MENU_ITEM { command = EDemonsymCmdGotoElse; txt = qtn_view_Menu_Else; }
		};
	}

//----------------------------------------------------
//   
//    r_demonsym_view2
//
//----------------------------------------------------
//
RESOURCE AVKON_VIEW r_demonsym_view2
	{
	hotkeys = r_demonsym_hotkeys;
	menubar = r_demonsym_menubar_view2;  
	cba     = R_AVKON_SOFTKEYS_SELECTION_LIST; 
	}

//----------------------------------------------------
//   
//    r_demonsym_menubar_view2
//
//----------------------------------------------------
//
RESOURCE MENU_BAR r_demonsym_menubar_view2
	{
	titles =
		{
		MENU_TITLE { menu_pane = r_demonsym_view_menu; txt = "View"; }
		};
	}



RESOURCE STATUS_PANE_APP_MODEL r_demonsym_status_pane
	{
	panes =
		{
		SPANE_PANE
			{
			id = EEikStatusPaneUidNavi;
			type = EAknCtNaviPane;
			resource = r_demonsym_navi_decorator;
			}
		};
	}

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

// -----------------------------------------------------------------------------
//
// About dialog resource.
//
// -----------------------------------------------------------------------------
//
RESOURCE DIALOG r_about_query_dialog
	{
	flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
	buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
	items=
		{
		DLG_LINE 
			{
			type = EAknCtPopupHeadingPane;
			id = EAknMessageQueryHeaderId;
			itemflags = EEikDlgItemNonFocusing;
			control = AVKON_HEADING
				{
				};
			},
		DLG_LINE
			{
			type = EAknCtMessageQuery;
			id = EAknMessageQueryContentId;
			control = AVKON_MESSAGE_QUERY
				{
				};
			}
		};
	}

// -----------------------------------------------------------------------------
//
// Privacy statement dialog resource.
//
// -----------------------------------------------------------------------------
//
RESOURCE DIALOG r_privstmt_dialog {
	flags = EAknDialogGenericQueryFlags;
	buttons = R_AVKON_SOFTKEYS_YES_NO;
	items = {
		DLG_LINE {
			type = EAknCtPopupHeadingPane;
			id = EAknMessageQueryHeaderId;
			itemflags = EEikDlgItemNonFocusing;
			control = AVKON_HEADING {
				label = qtn_privacy_statement_header;
			};
		},
		DLG_LINE {
			type = EAknCtMessageQuery;
			id = EAknMessageQueryContentId;
			control = AVKON_MESSAGE_QUERY {
			};
		}
	};
}

// -----------------------------------------------------------------------------
//
// Resources for messages.
//
// -----------------------------------------------------------------------------
//
RESOURCE TBUF32 r_about_dialog_title { buf=qtn_about_dialog_title; }
RESOURCE TBUF r_about_dialog_text { buf=qtn_about_dialog_text; }
RESOURCE TBUF r_privacy_statement_filename { buf=qtn_privacy_statement_filename; }

⌨️ 快捷键说明

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