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

📄 oandx.rss

📁 《SymbianOSC手机应用开发》源码
💻 RSS
字号:
// Copyright (c) 2004, Symbian Software Ltd. All rights reserved.

NAME OANX

#include <eikon.rh>
#include <uikon.rh>
#include <controls.rh>
#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;
    }

RESOURCE MENU_BAR r_oandx_menubar
    {
    titles =
        {
        MENU_TITLE
            {
            menu_pane = r_oandx_menu;
            txt="OandX";
            },
        MENU_TITLE
            {
            menu_pane = r_file_menu;
            txt="File";
            }
        };
    }

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

RESOURCE MENU_PANE r_file_menu
    {
    items = 
        {
        MENU_ITEM
            {
            command = EEikCmdExit;
            txt = "Close (Debug)";
            }
        };
    }

// Toolbars
RESOURCE TOOLBAR r_oandx_nought_toolbar
    {
     controls=
        {
		// Button to show it is noughts turn
        TBAR_BUTTON
            {
            id = EShowTurn;
            bmpfile = "\\system\\apps\\oandx\\oandx.mbm";
            bmpid   = EMbmOandxNavio;
            bmpmask = EMbmOandxNaviomask;
            }
        };
    }

RESOURCE TOOLBAR r_oandx_cross_toolbar
    {
     controls=
        {
		// Button to show id is crosses turn
        TBAR_BUTTON
            {
            id = EShowTurn;
            bmpfile = "\\system\\apps\\oandx\\oandx.mbm";
            bmpid   = EMbmOandxNavix;
            bmpmask = EMbmOandxNavixmask;

            }
        };
    }


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

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

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 '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"; }
        };
    }
*/

⌨️ 快捷键说明

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