oandx.rss

来自「Symbian OS C++ 手机应用开发(第一卷)部分事例代码」· RSS 代码 · 共 159 行

RSS
159
字号
// Copyright (c) 2004, Symbian Software Ltd. All rights reserved.

NAME OANX

#include <eikon.rh>
#include <avkon.rh>
#include <avkon.rsg>
#include <oandx.mbg>
#include "OandX.hrh"

RESOURCE RSS_SIGNATURE
    {
    }

RESOURCE TBUF r_default_document_name
    {
    buf="Oandx";
    }

RESOURCE EIK_APP_INFO
    {
    menubar = r_oandx_menubar;
    cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
    }

RESOURCE MENU_BAR r_oandx_menubar
    {
    titles =
        {
        MENU_TITLE
            {
            menu_pane = r_oandx_menu;
            }
        };
    }

RESOURCE MENU_PANE r_oandx_menu
    {
    items = 
        {
        MENU_ITEM
            {
            command = EOandXNewGame;
            txt = "New game";
            }
        };
    }

RESOURCE TBUF r_oandx_o_wins
    {
    buf = "Noughts win"; // Maximum 40 characters - has to fit in an information note
    }

RESOURCE TBUF r_oandx_x_wins
    {
    buf = "Crosses win"; // Maximum 40 characters - has to fit in an information note
    }

RESOURCE TBUF r_oandx_who_starts
    {
    buf = "First move";
    }

// For 'menu only' first player selection
RESOURCE TBUF r_oandx_o_moves_first
    {
    buf = "Noughts move first";
    }

// For 'menu only' first player selection
RESOURCE TBUF r_oandx_x_moves_first
    {
    buf = "Crosses move first";
    }

// For first player selection by dialog
RESOURCE TBUF r_oandx_who_moves_first
    {
    buf = "First player";
    }

// Use the next two resources for Series60-specific listbox dialog processing
/*
RESOURCE DIALOG r_oandx_first_move_dialog
    {
    flags = EAknDialogSelectionList;
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
    items =
        {
        DLG_LINE
            {
            type = EAknCtSingleListBox;
            id = ESelectionListControl;
            control = LISTBOX
                {
                flags = EAknListBoxSelectionList;
                };
            }
        };
    }

RESOURCE MENU_BAR r_oandx_first_move_menubar
    {
    titles = 
        {
        MENU_TITLE
            {
            menu_pane = R_AVKON_MENUPANE_SELECTION_LIST;
            }
        };
    }
*/

// Use the next two resources for 'standard' dialog procesing
/*
RESOURCE DIALOG r_oandx_first_move_dialog
    {
    title = "First player";
    flags = EAknDialogSelectionList;
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
    items =
        {
        DLG_LINE
            {
            type = EAknCtSingleListBox;
            id = EOandXPlayerListControl;
            control = LISTBOX
                {
                flags = EAknListBoxSelectionList;
                array_id = r_oandx_player_list;
                };
            }
        };
    }

RESOURCE ARRAY r_oandx_player_list
    {
    items =
        {
        LBUF { txt= "\tNoughts first"; },
        LBUF { txt= "\tCrosses first"; }
        };
    }
*/

RESOURCE NAVI_IMAGE r_oandx_navio_image_resource
    {
    bmpfile = "\\system\\apps\\oandx\\oandx.mbm";
    bmpid   = EMbmOandxNavio;
    bmpmask = EMbmOandxNaviomask;
    }

RESOURCE NAVI_IMAGE r_oandx_navix_image_resource
    {
    bmpfile = "\\system\\apps\\oandx\\oandx.mbm";
    bmpid   = EMbmOandxNavix;
    bmpmask = EMbmOandxNavixmask;
    }

⌨️ 快捷键说明

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