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

📄 controlexam.rss

📁 国内著名嵌入式培训机构内部资料,内含一些实例代码,包括技术专题书籍
💻 RSS
字号:
/*
============================================================================
 Name        : ControlExam.rss
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : This file contains all the resources for the ControlExam.
============================================================================
*/

//  RESOURCE IDENTIFIER
NAME    AWIZ // 4 letter ID

//  INCLUDES

#include <eikon.rh>
#include "ControlExam.hrh"
#include "ControlExam.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 = "ControlExam"; }

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

// -----------------------------------------------------------------------------
//
//    Localizable application information
//
// -----------------------------------------------------------------------------
//
RESOURCE LOCALISABLE_APP_INFO r_controlexam_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\\ControlExam.mif";
		};
	}

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

//----------------------------------------------------
//   
//    r_controlexam_view1
//
//----------------------------------------------------
//
RESOURCE AVKON_VIEW r_controlexam_view1
	{
	hotkeys = r_controlexam_hotkeys;
	menubar = r_controlexam_menubar_view1;  
	cba     = R_AVKON_SOFTKEYS_SELECTION_LIST;    
	}

//----------------------------------------------------
//   
//    r_controlexam_menubar_view1
//
//----------------------------------------------------
//
RESOURCE MENU_BAR r_controlexam_menubar_view1
	{
	titles =
		{
		MENU_TITLE { menu_pane = r_controlexam_app_menu; txt = "App"; },
		MENU_TITLE { menu_pane = r_controlexam_view1_menu; txt = "View"; }
		};
	}

//----------------------------------------------------
//   
//    r_controlexam_view1_menu
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_controlexam_view1_menu
	{
	items =
		{
		MENU_ITEM { command = EControlExamCmdAppTest; txt = qtn_view1_option_item; }
		};
	}

//----------------------------------------------------
//   
//    r_controlexam_view2
//
//----------------------------------------------------
//
RESOURCE AVKON_VIEW r_controlexam_view2
	{
	hotkeys = r_controlexam_hotkeys;
	menubar = r_controlexam_menubar_view2;  
	cba     = R_AVKON_SOFTKEYS_SELECTION_LIST; 
	}

//----------------------------------------------------
//   
//    r_controlexam_menubar_view2
//
//----------------------------------------------------
//
RESOURCE MENU_BAR r_controlexam_menubar_view2
	{
	titles =
		{
		MENU_TITLE { menu_pane = r_controlexam_app_menu; txt = "App"; },
		MENU_TITLE { menu_pane = r_controlexam_view2_menu; txt = "View"; }
		};
	}

//----------------------------------------------------
//   
//    r_controlexam_view2_menu
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_controlexam_view2_menu
	{
	items =
		{
		MENU_ITEM { command = EControlExamCmdAppTest; txt = qtn_view2_option_item; }
		};
	}

//----------------------------------------------------
//   
//    r_controlexam_app_menu
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_controlexam_app_menu
	{
	items =
		{
		MENU_ITEM { command = EControlExamCmdAppTest; txt = qtn_appl_option_item; },
		MENU_ITEM { command = EHelp; txt = qtn_appl_help; },
		MENU_ITEM { command = EAbout; txt = qtn_appl_about; },
		MENU_ITEM { command = EAknCmdExit; txt = qtn_appl_exit; }
		};
	}

RESOURCE STATUS_PANE_APP_MODEL r_controlexam_status_pane
	{
	panes =
		{
		SPANE_PANE
			{
			id = EEikStatusPaneUidNavi;
			type = EAknCtNaviPane;
			resource = r_controlexam_navi_decorator;
			}
		};
	}

//----------------------------------------------------
//   
//    r_controlexam_navi_decorator
//
//----------------------------------------------------
//
RESOURCE NAVI_DECORATOR r_controlexam_navi_decorator
	{
	type = ENaviDecoratorControlTabGroup;
	control = TAB_GROUP
		{
		tab_width = EAknTabWidthWithTwoTabs;  // two tabs
		active = 0;
		tabs = {
			TAB
				{
				id = EControlExamView1Tab; // from application hrh
				txt = qtn_view1_tab;
				},
			TAB
				{
				id = EControlExamView2Tab;
				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 + -