examples/sfexamples/OandXViewArch/S60/group/oandx.rss

00001 /*
00002 Copyright (c) 2002-2011 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
00003 
00004 Redistribution and use in source and binary forms, with or without
00005 modification, are permitted provided that the following conditions are met:
00006 
00007 * Redistributions of source code must retain the above copyright notice, this
00008   list of conditions and the following disclaimer.
00009 * Redistributions in binary form must reproduce the above copyright notice,
00010   this list of conditions and the following disclaimer in the documentation
00011   and/or other materials provided with the distribution.
00012 * Neither the name of Nokia Corporation nor the names of its contributors
00013   may be used to endorse or promote products derived from this software
00014   without specific prior written permission.
00015 
00016 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00017 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00018 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00019 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
00020 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00021 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00022 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00023 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00024 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00025 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00026 
00027 Description:  
00028 */
00029 
00030 NAME OANX
00031 
00032 #include <eikon.rh>
00033 #include <avkon.rh>
00034 #include <avkon.rsg>
00035 #include <appinfo.rh>
00036 #include <oandx.mbg>
00037 #include "OandX.hrh"
00038 
00039 RESOURCE RSS_SIGNATURE
00040         {
00041         }
00042 
00043 RESOURCE TBUF r_default_document_name
00044         {
00045         buf="Oandx";
00046         }
00047 
00048 RESOURCE EIK_APP_INFO
00049         {
00050         menubar = r_oandx_game_menubar;
00051         cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
00052         }
00053 
00054 RESOURCE AVKON_VIEW r_oandx_game_view
00055     {
00056     menubar = r_oandx_game_menubar;  
00057     cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;  
00058     }
00059 
00060 RESOURCE AVKON_VIEW r_oandx_history_view
00061     {
00062     menubar = r_oandx_history_menubar;  
00063     cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;  
00064     }
00065 
00066 RESOURCE MENU_BAR r_oandx_game_menubar
00067         {
00068         titles =
00069                 {
00070                 MENU_TITLE
00071                         {
00072                         menu_pane = r_oandx_game_menu;
00073                         }
00074                 };
00075         }
00076 
00077 RESOURCE MENU_PANE r_oandx_game_menu
00078         {
00079         items = 
00080                 {
00081                 MENU_ITEM
00082                         {
00083                         command = EOandXNewGame;
00084                         txt = "New game";
00085                         },
00086                 MENU_ITEM
00087                         {
00088                         command = EOandXFirstPlayer;
00089                         txt = "Noughts move first";
00090                         },
00091                 MENU_ITEM
00092                         {
00093                         command = EOandXDisplayStats;
00094                         txt = "Game statistics";
00095                         },
00096                 MENU_ITEM
00097                         {
00098                         command = EOandXDisplayHistory;
00099                         txt = "Game history";
00100                         }
00101                 };
00102         }
00103 
00104 RESOURCE MENU_BAR r_oandx_history_menubar
00105         {
00106         titles =
00107                 {
00108                 MENU_TITLE
00109                         {
00110                         menu_pane = r_oandx_history_menu;
00111                         }
00112                 };
00113         }
00114 
00115 RESOURCE MENU_PANE r_oandx_history_menu
00116         {
00117         items = 
00118                 {
00119                 MENU_ITEM
00120                         {
00121                         command = EOandXDisplayStats;
00122                         txt = "Game statistics";
00123                         },
00124                 MENU_ITEM
00125                         {
00126                         command = EOandXDisplayHistory;
00127                         txt = "Game history";
00128                         },
00129                 MENU_ITEM
00130                         {
00131                         command = EOandXDisplayGame;
00132                         txt = "Show game";
00133                         },
00134                 MENU_ITEM
00135                         {
00136                         command = EOandXResetHistory;
00137                         txt = "Reset history";
00138                         }
00139                 };
00140         }
00141 
00142 
00143 RESOURCE TBUF r_oandx_o_wins
00144         {
00145         buf = "Noughts win"; // Maximum 40 characters - has to fit in an information note
00146         }
00147 
00148 RESOURCE TBUF r_oandx_x_wins
00149         {
00150         buf = "Crosses win"; // Maximum 40 characters - has to fit in an information note
00151         }
00152 
00153 RESOURCE TBUF r_oandx_who_starts
00154         {
00155         buf = "First move";
00156         }
00157 
00158 RESOURCE TBUF r_oandx_o_moves_first
00159         {
00160         buf = "Noughts move first";
00161         }
00162 
00163 RESOURCE TBUF r_oandx_x_moves_first
00164         {
00165         buf = "Crosses move first";
00166         }
00167 
00169 // History/statistics View text //
00171 
00172 // Title text, for label control
00173 RESOURCE TBUF r_history_view_stats_title
00174         {
00175         buf = "Statistics";
00176         }
00177 RESOURCE TBUF r_history_view_history_title
00178         {
00179         buf = "History";
00180         }
00181 
00182 // Text items for Statistics display
00183 RESOURCE TBUF r_history_view_games_text
00184         {
00185         buf = "%d games played";
00186         }
00187 
00188 RESOURCE TBUF r_history_view_owins_text
00189         {
00190         buf = "%d wins by Noughts";
00191         }
00192 
00193 RESOURCE TBUF r_history_view_xwins_text
00194         {
00195         buf = "%d wins by Crosses";
00196         }
00197 
00198 // Text items for History display
00199 RESOURCE TBUF r_history_view_drawn_text
00200         {
00201         buf = "%d drawn/abandoned";
00202         }
00203         
00204 RESOURCE TBUF r_history_view_o_winner_text
00205         {
00206         buf = "Game %d won by Noughts";
00207         }
00208         
00209 RESOURCE TBUF r_history_view_x_winner_text
00210         {
00211         buf = "Game %d won by Crosses";
00212         }
00213         
00214 RESOURCE TBUF r_history_view_no_winner_text
00215         {
00216         buf = "Game %d drawn/abandoned";
00217         }
00218         
00219 RESOURCE TBUF r_history_view_no_data_text
00220         {
00221         buf = "";
00222         }
00223 
00224 RESOURCE LABEL r_history_view_label
00225         {
00226         }

Generated by  doxygen 1.6.2