⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 oandx.rss

📁 一个类似黑白棋的软件源码,可用再symbina上.不错的
💻 RSS
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -