00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
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";
00146 }
00147
00148 RESOURCE TBUF r_oandx_x_wins
00149 {
00150 buf = "Crosses win";
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
00171
00172
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
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
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 }