- /*
- * ==============================================================================
- * Name : TicTacToe.rss
- * Part of : TicTacToe
- * Description :
- * Version :
- *
- * Copyright (c) 2005 Nokia Corporation.
- * ==============================================================================
- */
- // RESOURCE IDENTIFIER
- NAME TTTO
- // INCLUDES
- #include <eikon.rh>
- #include <avkon.rh>
- #include <avkon.rsg>
- #include "TicTacToe.hrh"
- // ---------------------------------------------------------
- //
- // Define the resource file signature
- // This resource should be empty.
- //
- // ---------------------------------------------------------
- //
- RESOURCE RSS_SIGNATURE
- {
- }
- // ---------------------------------------------------------
- //
- // Default Document Name
- //
- // ---------------------------------------------------------
- //
- RESOURCE TBUF r_default_document_name
- {
- buf="";
- }
- // ---------------------------------------------------------
- //
- // Define default menu and CBA key.
- //
- // ---------------------------------------------------------
- //
- RESOURCE EIK_APP_INFO
- {
- menubar = r_tictactoe_menubar;
- cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
- }
- // ---------------------------------------------------------
- //
- // r_tictactoe_menubar
- //
- // ---------------------------------------------------------
- //
- RESOURCE MENU_BAR r_tictactoe_menubar
- {
- titles =
- {
- MENU_TITLE
- {
- menu_pane = r_tictactoe_menu;
- }
- };
- }
- // ---------------------------------------------------------
- //
- // r_tictactoe_menu
- // Menu for "Options"
- //
- // ---------------------------------------------------------
- //
- RESOURCE MENU_PANE r_tictactoe_menu
- {
- items =
- {
- MENU_ITEM
- {
- command = ETicTacToeNewGame;
- txt = "New Game";
- },
- MENU_ITEM
- {
- cascade = r_tictactoe_graphics_menu;
- txt = "Graphics";
- },
- MENU_ITEM
- {
- command = EAknSoftkeyExit;
- txt = "Exit";
- }
- };
- }
- // ---------------------------------------------------------
- //
- // r_tictactoe_graphics_menu
- // Submenu for "Graphics"
- //
- // ---------------------------------------------------------
- //
- RESOURCE MENU_PANE r_tictactoe_graphics_menu
- {
- items =
- {
- MENU_ITEM
- {
- command = ETicTacToeGraphics1;
- txt = "Set 1";
- },
- MENU_ITEM
- {
- command = ETicTacToeGraphics2;
- txt = "Set 2";
- }
- };
- }
- // ---------------------------------------------------------
- //
- // r_tictactoe_winner_str
- //
- // ---------------------------------------------------------
- //
- RESOURCE TBUF r_tictactoe_winner_str
- {
- buf = "Congratulations!n%U's have won.";
- }
- // ---------------------------------------------------------
- //
- // r_tictactoe_draw_str
- //
- // ---------------------------------------------------------
- //
- RESOURCE TBUF r_tictactoe_draw_str
- {
- buf = "It's a draw!";
- }
- // End of File