graphicexam.rss

来自「国内著名嵌入式培训机构内部资料,内含一些实例代码,包括技术专题书籍」· RSS 代码 · 共 341 行

RSS
341
字号
/*
============================================================================
 Name        : GraphicExam.rss
 Author      : hou maoqing
 Version     :
 Copyright   : Copyright (c) Hou maoqing 2008
 Description : This file contains all the resources for the GraphicExam.
============================================================================
*/

//  RESOURCE IDENTIFIER
NAME    GRAP // 4 letter ID

//  INCLUDES

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

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

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

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

//----------------------------------------------------
//   
//    r_graphicexam_view1
//
//----------------------------------------------------
//
RESOURCE AVKON_VIEW r_graphicexam_view1
	{
	hotkeys = r_graphicexam_hotkeys;
	menubar = r_graphicexam_menubar_view1;  
	cba     = R_AVKON_SOFTKEYS_SELECTION_LIST;    
	}

//----------------------------------------------------
//   
//    r_graphicexam_menubar_view1
//
//----------------------------------------------------
//
RESOURCE MENU_BAR r_graphicexam_menubar_view1
	{
	titles =
		{
		MENU_TITLE { menu_pane = r_graphicexam_app_menu; txt = "App"; },
		MENU_TITLE { menu_pane = r_graphicexam_view1_menu; txt = "View"; }
		};
	}

//----------------------------------------------------
//   
//    r_graphicexam_view1_menu
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_graphicexam_view1_menu
	{
	items =
		{
		MENU_ITEM { command = EGraphicExamCmdAppTest; txt = qtn_view1_option_item; }
		};
	}

//----------------------------------------------------
//   
//    r_graphicexam_view2
//
//----------------------------------------------------
//
RESOURCE AVKON_VIEW r_graphicexam_view2
	{
	hotkeys = r_graphicexam_hotkeys;
	menubar = r_graphicexam_menubar_view2;  
	cba     = R_AVKON_SOFTKEYS_SELECTION_LIST; 
	}

//----------------------------------------------------
//   
//    r_graphicexam_menubar_view2
//
//----------------------------------------------------
//
RESOURCE MENU_BAR r_graphicexam_menubar_view2
	{
	titles =
		{
		MENU_TITLE { menu_pane = r_graphicexam_app_menu; txt = "App"; },
		MENU_TITLE { menu_pane = r_graphicexam_view2_menu; txt = "View"; }
		};
	}

//----------------------------------------------------
//   
//    r_graphicexam_view2_menu
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_graphicexam_view2_menu
	{
	items =
		{
		MENU_ITEM { command = EGraphicExamCmdAppTest; txt = qtn_view2_option_item; }
		};
	}

//----------------------------------------------------
//   
//    r_graphicexam_app_menu
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_graphicexam_app_menu
	{
	items =
		{
		MENU_ITEM { command = EGraphicExamCmdAppTest; 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_graphicexam_status_pane
	{
	panes =
		{
		SPANE_PANE
			{
			id = EEikStatusPaneUidNavi;
			type = EAknCtNaviPane;
			resource = r_graphicexam_navi_decorator;
			}
		};
	}

//----------------------------------------------------
//   
//    r_graphicexam_navi_decorator
//
//----------------------------------------------------
//
RESOURCE NAVI_DECORATOR r_graphicexam_navi_decorator
	{
	type = ENaviDecoratorControlTabGroup;
	control = TAB_GROUP
		{
		tab_width = EAknTabWidthWithTwoTabs;  // two tabs
		active = 0;
		tabs = {
			TAB
				{
				id = EGraphicExamView1Tab; // from application hrh
				txt = qtn_view1_tab;
				},
			TAB
				{
				id = EGraphicExamView2Tab;
				txt = qtn_view2_tab;
				}
				,
			TAB
				{
				id = EGraphicExamView3Tab;
				txt = "Effect";
				}
			};
		};
	}

// -----------------------------------------------------------------------------
//
// 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; }


//----------------------------------------------------------------------
//  r_graphicexam_graphicexameffect_view -- View resources for 'GraphicExamEffect'
//----------------------------------------------------------------------
RESOURCE AVKON_VIEW r_graphicexam_graphicexameffect_view
    {
    menubar = r_graphicexam_graphicexameffect_menubar;  
    cba     = R_AVKON_SOFTKEYS_SELECTION_LIST;    
    }

RESOURCE MENU_BAR r_graphicexam_graphicexameffect_menubar
    {
    titles =
        {
        MENU_TITLE { menu_pane = r_graphicexam_app_menu; txt = "App"; },
        MENU_TITLE { menu_pane = r_graphicexam_graphicexameffect_menu; txt = "View"; }
        };
    }

RESOURCE MENU_PANE r_graphicexam_graphicexameffect_menu
    {
    items =
        {
        MENU_ITEM
			{
			command = EGraphicExamCmdZoomIn;
			txt = "Zoom in";
			}
        };
    items =
            {
            MENU_ITEM
    			{
    			command = EGraphicExamCmdZoomOut;
    			txt = "Zoom out";
    			}
            };
    }

⌨️ 快捷键说明

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