dataquery.rss

来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· RSS 代码 · 共 143 行

RSS
143
字号
/**
* 
* @brief Resource file for DataQuery application
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/

//  RESOURCE IDENTIFIER
NAME    QUE1 // 4 letter ID

//  INCLUDES
#include <avkon.mbg>
#include <avkon.rsg>
#include <avkon.rh>
#include <eikon.rh>

#include "dataquery.hrh"
#include "dataquery.loc"

//  RESOURCE DEFINITIONS 

RESOURCE RSS_SIGNATURE { }

RESOURCE TBUF { buf="DataQuery"; }

RESOURCE EIK_APP_INFO
{
    cba=R_AVKON_SOFTKEYS_OPTIONS_BACK;
    menubar = r_dataquery_menu_bar;
}

//----------------------------------------------------
//   
//    r_dataquery_menu_bar
//    options menu for the application
//
//----------------------------------------------------
//
RESOURCE MENU_BAR r_dataquery_menu_bar
{
    titles=
    {
        MENU_TITLE 
        {
            txt = ""; // the text is not used in Series 60
            menu_pane = r_dataquery_menu_pane;
        }
    };
}


//----------------------------------------------------
//   
//    r_dataquery_menu_pane
//    options menu pane for the application
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_dataquery_menu_pane
{
    items =
    {
        MENU_ITEM
        {
            command = EAknCmdExit;
            txt = EXIT_TEXT;
        }
    };
}

//----------------------------------------------------
//   
//    r_dataquery_confirmation_query
//    confirmation query for the application
//
//----------------------------------------------------
//
RESOURCE DIALOG r_dataquery_confirmation_query
{
    flags=EGeneralQueryFlags;
    buttons = R_AVKON_SOFTKEYS_YES_NO;
    items =
    {
        DLG_LINE
        {
            type = EAknCtQuery;
            id = EDataQueryDlgCIdConfirmationQuery;
            control = AVKON_CONFIRMATION_QUERY
            {
                layout = EConfirmationQueryLayout;
                label = SAVE_GAME_TEXT;
            };
        }
    };
}

//----------------------------------------------------
//   
//    r_dataquery_data_query
//    data query for the application
//
//----------------------------------------------------
//
RESOURCE DIALOG r_dataquery_data_query
{
    flags=EGeneralQueryFlags; 
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
    items =
    {
        DLG_LINE
        {
            type = EAknCtQuery;
            id = EDataQueryDlgCIdDataQuery;
            control = AVKON_DATA_QUERY
            {
                layout = EDataLayout;
                control = 
                    EDWIN
                    {
                        width = KMaxGameNameLength;
                        lines = 1;
                        maxlength = KMaxGameNameLength;
                    };
            };
        }
    };
}


// ---------------------------------------------------------
//   
//    Strings used by the application
//
// ---------------------------------------------------------
//
RESOURCE TBUF R_DATA_QUERY_PROMPT
{    
    buf = DATA_QUERY_PROMPT; 
}

// End of File

⌨️ 快捷键说明

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