serviceexplorerapp.rss

来自「演示如何使用的symbian v9服务器应用框架」· RSS 代码 · 共 122 行

RSS
122
字号
// Copyright (c) 2006 Murray Read, All rights reserved

NAME SVXA

#include <eikon.rh>
#include <eikon.rsg>
#include <avkon.rh>
#include <avkon.rsg>
#include <appinfo.rh>
#include <SvexService.hrh>
#include "ServiceExplorerApp.hrh"


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

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

// ---------------------------------------------------------
//   
//    Define default menu and CBA key.
//
// ---------------------------------------------------------
//
RESOURCE EIK_APP_INFO
    {
    menubar = r_ServiceExplorerApp_menubar;
    cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
    }


// ---------------------------------------------------------
//   
//   r_ServiceExplorerApp_menubar
//   Menubar for ServiceExplorerApp example
//
// ---------------------------------------------------------
//
RESOURCE MENU_BAR r_ServiceExplorerApp_menubar
    {
    titles =
        {
        MENU_TITLE {menu_pane = r_ServiceExplorerApp_menu;}
        };
    }


// ---------------------------------------------------------
//   
//   r_ServiceExplorerApp_menu
//   Menu for "Options"
//
// ---------------------------------------------------------
//
RESOURCE MENU_PANE r_ServiceExplorerApp_menu
    {
    items = 
        {
        MENU_ITEM {command = KSvexCmdIdOpen;  txt = "Open";},
        MENU_ITEM {command = EServiceExplorerAppCommandServiceView;  txt = "Services";},
        MENU_ITEM {command = EServiceExplorerAppCommandAppsView;  txt = "Apps";},
        MENU_ITEM {command = EAknCmdExit;   txt = "Exit";}
        };
    }

RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info
    {
    short_caption = "ServiceExplorerApp";
    caption_and_icon = CAPTION_AND_ICON_INFO
        {
        caption = "ServiceExplorerApp";
        };
    }


RESOURCE DIALOG r_ServiceExplorerApp_AppService_dialog
	{
    flags = EEikDialogFlagNoDrag | EEikDialogFlagNoTitleBar |
			EEikDialogFlagCbaButtons | EEikDialogFlagFillAppClientRect | 
			EEikDialogFlagNoBorder | EEikDialogFlagNoShadow | 
			EEikDialogFlagWait;
    buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK;
    items =
    	{
        DLG_LINE
        	{
            type = EServiceExplorerControlId;
            id = EServiceExplorerLineId;
        	}
	    };
	}

RESOURCE MENU_BAR r_ServiceExplorerApp_AppService_menubar
	{
	titles =
		{
		MENU_TITLE { menu_pane = r_ServiceExplorerApp_AppService_menupane; txt = "No title"; }
		};
	}

RESOURCE MENU_PANE r_ServiceExplorerApp_AppService_menupane
	{
	items =
		{
		MENU_ITEM { command = KSvexCmdIdOpen;	txt = "Open"; },
		MENU_ITEM { command = EAknCmdExit;          			txt = "Exit"; }
		};
	}

⌨️ 快捷键说明

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