listquery.rss

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

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

//  RESOURCE IDENTIFIER
NAME    QUE2 // 4 letter ID

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

#include "listquery.hrh"
#include "listquery.loc"

//  RESOURCE DEFINITIONS 

RESOURCE RSS_SIGNATURE { }

RESOURCE TBUF { buf="ListQuery"; }

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

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


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

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

//----------------------------------------------------
//   
//    r_listquery_list_query
//    list query for the application
//
//----------------------------------------------------
//
RESOURCE AVKON_LIST_QUERY r_listquery_list_query
{
    items =
    {
        AVKON_LIST_QUERY_DLG_LINE
        {
            control = AVKON_LIST_QUERY_CONTROL
            {
                listtype = EAknCtSinglePopupMenuListBox;
                heading = SELECT_GAME_TEXT;
                listbox = AVKON_LIST_QUERY_LIST
                {
                    // array of items will be defined dynamically
                };
            };
        }
    };
}

// ---------------------------------------------------------
//   
//    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 + -
显示快捷键?