calculate24.rss

来自「这是一个基于symbian操作系统的速算24游戏」· RSS 代码 · 共 139 行

RSS
139
字号
/* Copyright (c) 2005, Nokia. All rights reserved */

NAME CALC

#include <eikon.rh>
#include <avkon.rh>
#include <avkon.rsg>

#include "Calculate24.hrh"


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

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

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


// ---------------------------------------------------------
//   
//   r_calculate24_menubar
//   Menubar for Calculate24 example
//
// ---------------------------------------------------------
//
RESOURCE MENU_BAR r_calculate24_menubar
    {
    titles =
        {
        MENU_TITLE
            {
            menu_pane = r_calculate24_menu;
            }
        };
    }


// ---------------------------------------------------------
//   
//   r_calculate24_menu
//   Menu for "Options"
//
// ---------------------------------------------------------
//
RESOURCE MENU_PANE r_calculate24_menu
    {
    items = 
        {
        MENU_ITEM 
            {
            command = ECalculateMalloc;
            txt = "Malloc";
            },
        MENU_ITEM 
            {
            command = ECalculateSetNum1;
            txt = "SetNum1";
            },
        MENU_ITEM 
            {
            command = ECalculateSetNum2;
            txt = "SetNum2";
            },
        MENU_ITEM 
            {
            command = ECalculateSetNum3;
            txt = "SetNum3";
            },
        MENU_ITEM 
            {
            command = ECalculateSetNum4;
            txt = "SetNum4";
            },
        MENU_ITEM 
            {
            command = ECalculateSetTotal;
            txt = "SetTotal";
            },
        MENU_ITEM
            {
            command = EAknSoftkeyExit;
            txt = "Exit";
            }
        };
    }

RESOURCE DIALOG r_dialog_input

    {
    flags = EGeneralQueryFlags;
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
    items =
        {
        DLG_LINE
            {
            type = EAknCtQuery;
            id = EGeneralQuery;
            control= AVKON_DATA_QUERY
                {
                layout = EPhoneLayout;
                label = "Please input number:";
                control = EDWIN
                    {
					maxlength = 3;
                    };
                };
            }
        };
    }

⌨️ 快捷键说明

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