first checked in. Won't work yet.

This commit is contained in:
ehouse 2004-03-02 06:18:10 +00:00
parent 3f7a8cce61
commit 72b72f35b4
4 changed files with 1180 additions and 0 deletions

155
palm/l10n/StrRes_es_CT.pre Normal file
View file

@ -0,0 +1,155 @@
/* -*- mode: c; -*- */
/*
* Copyright 1997 - 2002 by Eric House (fixin@peak.org) and others. All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* This table is where English user-visible strings come from (all
* strings meant to wind up in a str# resource, actually. Each entry
* is a pair of strings, first the constant name and then the string
* itself. The build system creats a str# resource with the latter
* and generates a .h file of #defines using the former. */
{ "STR_COMMIT_CONFIRM", "Acceptes la jugada?\n\n" },
{ "STR_NOT_YOUR_TURN", "No ho pots fer; no és el teu torn!" },
{ "STR_NO_PEEK_ROBOT_TILES", "No miris les fitxes de la màquina!" },
#ifndef XWFEATURE_STANDALONE_ONLY
{ "STR_NO_PEEK_REMOTE_TILES", "No miris les fitxes dels altres!" },
{ "STR_SERVER_DICT_WINS",
"Conflicte de diccionaris: mana el del servidor." },
{ "STR_REG_UNEXPECTED_USER", "Jugador inesperat: no s'accepta" },
{ "STR_RESEND_IR", "Error enviant el missatge; ¿reenviar?" },
#endif
{ "STR_TOO_FEW_TILES", "No hi ha prou fitxes." },
{ "STR_VALUES_TITLE", "Quantitat i Valor" },
{ "STR_VALUES_HEADER", "Quantitat[Queden] i Valor\n" },
{ "STR_DOUBLE_LETTER", "Doble de lletra" },
{ "STR_DOUBLE_WORD", "Doble de paraula" },
{ "STR_TRIPLE_LETTER", "Triple de lletra" },
{ "STR_TRIPLE_WORD", "Triple de paraula" },
{ "STR_REMTILES", "Hi ha:%d" },
/* { "STR_NO_TILES_IN_POOL", "No hi ha prou fitxes a la bossa." }, */
{ "STR_CANT_TRADE_MIDTURN", "Encara tens fitxes al tauler."},
{ "STR_ASK_REPLACE_GAME", "Vols sobreescriure la partida?" },
{ "STR_NO", "No" },
/* { "STR_CONFIRM_ERASE_GAME", "Segur que vols\n" \ */
/* "esborrar la partida?" }, */
{ "STR_ABOUT_TITLE", "Sobre Crosswords" },
{ "STR_DEFAULT_NAME", "Jugador %d" },
{ "STR_ABOUT_CONTENT",
"Crosswords " XW_PALM_VERSION_STRING ".\n" \
"Copyright 1998-2003 by Eric House. "\
"Tots els drets reservats.\n\n"\
"El manual és a www.peak.org/~fixin/xwords\n\n" \
"Aquest programa és postalware.\nSi el fas servir, " \
"envia una postal a:\n" \
"The Houses\n" \
"124 NW 7th St. No. 310\n" \
"Corvallis, OR 97330 USA\n\n"
"Escrit sobre Debian GNU/Linux usant les prc-tools.\n\n" \
"Versió catalana de F. Xavier Gil\n(setimig@wanadooadsl.net)." \
},
{ "STR_CONFIRM_END_GAME", "Segur que vols acabar la partida?"},
/* { "STR_TOO_MANY_TILES_SEL", "Has triat massa fitxes." }, */
/* { "STR_CONFIRM_DISCARD", "Segur que vols canviar\n" \ */
/* "les fitxes marcades?" }, */
{ "STR_CONFIRM_TRADE", "Segur que vols usar el teu torn " \
"per canviar fitxes?" },
{ "STR_TRADING_REMINDER", "Prem D per acabar." },
#ifndef NO_REG_REQUIRED
{ "STR_NOT_UNREG_VERS", "Només funciona a la versió registrada." },
#endif
/* { "STRS_LANGUAGE_NAME", "Diccionari: %s\n" }, */
{ "STR_NONLOCAL_NAME", "%s (remot)" },
/* { "STR_FINALSCORE_TITLE", "\n\nPuntuació final\n" }, */
/* { "STR_NO_HISTORY", "No hi ha jugades." }, */
{ "STR_HISTORY_TITLE", "Jugades" },
/* { "STRS_NO_SCORE_MID_PICK", "No es pot puntuar mentre %s " \ */
/* "estigui jugant." }, */
{ "STRD_REMAINING_TILES_ADD", "+ %d [fitxes sobreres]" },
{ "STRD_UNUSED_TILES_SUB", "- %d [fitxes no usades]" },
/* { "STR_MOVESCORE_TITLE", "Punts" }, */
/* { "STR_ZERO_SCORE", "Punts: 0 (No hi ha jugada.)" }, */
{ "STR_BONUS_ALL", "Per usar les set fitxes: 50\n" },
{ "STRD_TURN_SCORE", "Parcial de la jugada: %d\n" },
/* { "STRSD_RUNNING_TOTAL", "\nAcumulat per a %s: %d" }, */
{ "STR_ALL_IN_LINE_ERR", "Les fitxes no estan en línia." },
{ "STR_NO_EMPTIES_ERR", "Les fitxes s'han de tocar." },
{ "STR_FIRST_MOVE_ERR", "Has de posar dues o mes fitxes a " \
"la primera jugada." },
{ "STR_MUST_CONTACT_ERR", "Les fitxes n'han de tocar d'altres (o " \
"el quadre central a la primera jugada)." },
/* { "STR_EDIT", "Editar" }, */
/* { "STR_USE", "Usar" }, */
//{ "STRC_BAD_BLANK_VAL", "\"%c\" no és una fitxa." },
{ "STR_PTS", "Punts:" },
/* { "STR_NA", "N/A" }, */
{ "STR_CONFIRM_DEL_GAME", "Segur que la vols esborrar?" },
/* { "STR_REPLACE_STR", "Canviar" }, */
/* { "STR_NEW_OR_QUIT", "El diccionari no s'ha trobat.\n" \ */
/* "Surt si no vols modificar\n" \ */
/* "la partida." }, */
{ "STRD_TIME_PENALTY_SUB", " - %d [per temps]" },
{ "STR_NO_DICT_INSTALLED", "Crosswords 4 necessita algun diccionari." },
/* { "STR_PASS", "No s'ha trobat cap jugada."}, */
/* { "STR_TRADED", "El robot canvia fitxes."}, */
{ "STR_ILLEGAL_WORD", "Ep!, %s no està al diccionari." },
{ "STR_FINAL_SCORES_TITLE", "Puntuació final"},
{ "STRD_CUMULATIVE_SCORE", "Acumulat: %d\n" },
{ "STRS_TRAY_AT_START", "Faristol inicial: %s\n" },
{ "STRS_MOVE_ACROSS", "jugada (%s, horitzontal)\n" },
{ "STRS_MOVE_DOWN", "jugada (%s, vertical)\n" },
{ "STRS_NEW_TILES", "Noves fitxes: %s\n" },
{ "STRSS_TRADED_FOR", "Canvi de %s per %s." },
{ "STR_PASS", "passa\n" },
{ "STR_PHONY_REJECTED", "Mot incorrecte; torn perdut!\n" },
{ "STR_ROBOT_MOVED", "The robot made this move:\n" },
{ "STR_REMOTE_MOVED", "Remote player made this move:\n" },
{ "STRD_ROBOT_TRADED", "%d tiles traded this turn." },
{ "STR_ROBOT_TITLE", "Punts del robot" },
{ "STR_PICK_BLANK", "Select the letter for your blank." },
#ifdef FEATURE_TRAY_EDIT
{ "STRS_PICK_TILE", "Choose a new tile for %s." },
#endif
#ifdef NODE_CAN_4
{ "STR_CONFIRM_CONVERTDICT", "Do you want to convert any existing Crosswords " \
"dictionaries to the new format? " \
"The change is not reversible." },
{ "STRS_CONFIRM_ONEDICT", "Convert dictionary %s?" },
#endif

142
palm/l10n/StrRes_es_ES.pre Normal file
View file

@ -0,0 +1,142 @@
/* -*- mode: c; -*- */
/*
* Copyright 1997 - 2002 by Eric House (fixin@peak.org) and others. All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* This table is where English user-visible strings come from (all
* strings meant to wind up in a str# resource, actually. Each entry
* is a pair of strings, first the constant name and then the string
* itself. The build system creats a str# resource with the latter
* and generates a .h file of #defines using the former. */
{ "STR_COMMIT_CONFIRM", "¿Aceptas la jugada?\n\n" },
{ "STR_NOT_YOUR_TURN", "¡No puedes hacer eso; no es tu turno!" },
{ "STR_NO_PEEK_ROBOT_TILES", "¡No mires las fichas de la máquina!" },
#ifndef XWFEATURE_STANDALONE_ONLY
{ "STR_NO_PEEK_REMOTE_TILES", "¡No mires las fichas de los demás!" },
{ "STR_SERVER_DICT_WINS",
"Conflicto entre diccionarios: manda el del servidor." },
{ "STR_REG_UNEXPECTED_USER", "Jugador inesperado: no se acepta" },
{ "STR_RESEND_IR", "Error enviando el mensaje; ¿reenviar" },
#endif
{ "STR_TOO_FEW_TILES", "Ho quedan tantas fichas." },
{ "STR_VALUES_TITLE", "Cantidad y Valor" },
{ "STR_VALUES_HEADER", "Cantidad[Quedan] y Valor\n" },
{ "STR_DOUBLE_LETTER", "Doble de letra" },
{ "STR_DOUBLE_WORD", "Doble de palabra" },
{ "STR_TRIPLE_LETTER", "Triple de letra" },
{ "STR_TRIPLE_WORD", "Triple de palabra" },
{ "STR_REMTILES", "Hay:%d" },
/* { "STR_NO_TILES_IN_POOL", "No hay tantas fichas en la bolsa." }, */
{ "STR_CANT_TRADE_MIDTURN", "Aún tienes fichas en el tablero."},
{ "STR_ASK_REPLACE_GAME", "¿Quieres sobreescribir la partida?" },
{ "STR_NO", "No" },
/* { "STR_CONFIRM_ERASE_GAME", "¿Seguro que quieres\n" \ */
/* "borrar la partida?" }, */
{ "STR_ABOUT_TITLE", "Acerca de Crosswords" },
{ "STR_DEFAULT_NAME", "Jugador %d" },
{ "STR_ABOUT_CONTENT",
"Crosswords " XW_PALM_VERSION_STRING ".\n" \
"Copyright 1998-2003 by Eric House. "\
"Todos los derechos reservados.\n\n"\
"El manual está en www.peak.org/~fixin/xwords\n\n" \
"Este programa es postalware.\nSi lo usas " \
"manda una postal a:\n" \
"The Houses\n" \
"124 NW 7th St. No. 310\n" \
"Corvallis, OR 97330 USA\n\n"
"Escrito sobre Debian GNU/Linux usando las prc-tools.\n\n"\
"Versión española por F. Xavier Gil\n(setimig@wanadooadsl.net)." \
},
{ "STR_CONFIRM_END_GAME", "¿Seguro que quieres terminar la partida?"},
/* { "STR_TOO_MANY_TILES_SEL", "Has escogido demasiadas fichas." }, */
/* { "STR_CONFIRM_DISCARD", "¿Seguro que quieres cambiar\n" \ */
/* "las fichas seleccionadas?" }, */
{ "STR_CONFIRM_TRADE", "¿Seguro que quieres usar tu turno " \
"para cambiar fichas?" },
{ "STR_TRADING_REMINDER", "Pulsa D para terminar." },
#ifndef NO_REG_REQUIRED
{ "STR_NOT_UNREG_VERS", "Sólo funciona en la versión registrada." },
#endif
/* { "STRS_LANGUAGE_NAME", "Diccionario: %s\n" }, */
{ "STR_NONLOCAL_NAME", "%s (remoto)" },
/* { "STR_FINALSCORE_TITLE", "\n\nPuntuación final\n" }, */
/* { "STR_NO_HISTORY", "No hay jugadas." }, */
{ "STR_HISTORY_TITLE", "Jugadas" },
/* { "STRS_NO_SCORE_MID_PICK", "No se puede puntuar mientras %s " \ */
/* "esté jugando." }, */
{ "STRD_REMAINING_TILES_ADD", "+ %d [fichas sobrantes]" },
{ "STRD_UNUSED_TILES_SUB", "- %d [fichas no usadas]" },
/* { "STR_MOVESCORE_TITLE", "Puntos" }, */
/* { "STR_ZERO_SCORE", "Puntos: 0 (No hay jugada.)" }, */
{ "STR_BONUS_ALL", "Por usar las siete fichas: 50\n" },
{ "STRD_TURN_SCORE", "Parcial de la jugada: %d\n" },
/* { "STRSD_RUNNING_TOTAL", "\nAcumulado para %s: %d" }, */
{ "STR_ALL_IN_LINE_ERR", "Las fichas no están en línea." },
{ "STR_NO_EMPTIES_ERR", "Las fichas deben tocarse." },
{ "STR_FIRST_MOVE_ERR", "Debes usar dos o más fichas en " \
"la primera jugada." },
{ "STR_MUST_CONTACT_ERR", "Las fichas deben tocar otras (o el " \
"cuadrado central en la primera jugada)." },
/* { "STR_EDIT", "Editar" }, */
/* { "STR_USE", "Usar" }, */
//{ "STRC_BAD_BLANK_VAL", "\"%c\" no es una ficha." },
{ "STR_PTS", "Puntos:" },
/* { "STR_NA", "N/A" }, */
{ "STR_CONFIRM_DEL_GAME", "¿Seguro que quieres borrarla?" },
/* { "STR_REPLACE_STR", "Cambiar" }, */
/* { "STR_NEW_OR_QUIT", "El diccionario no se encuentra.\n" \ */
/* "Sal si no quieres modificar\n" \ */
/* "la partida." }, */
{ "STRD_TIME_PENALTY_SUB", " - %d [por tiempo]" },
{ "STR_NO_DICT_INSTALLED", "Crosswords 4 necesita algún diccionario." },
/* { "STR_PASS", "No se ha encontrado ninguna jugada."}, */
/* { "STR_TRADED", "El robot cambia fichas."}, */
{ "STR_ILLEGAL_WORD", "¡Ei!, %s no está en el diccionario." },
{ "STR_FINAL_SCORES_TITLE", "Puntuación final"},
{ "STRD_CUMULATIVE_SCORE", "Acumulado: %d\n" },
{ "STRS_TRAY_AT_START", "Atril inicial: %s\n" },
{ "STRS_MOVE_ACROSS", "jugada (%s, horizontal)\n" },
{ "STRS_MOVE_DOWN", "jugada (%s, vertical)\n" },
{ "STRS_NEW_TILES", "Nuevas fichas: %s\n" },
{ "STRSS_TRADED_FOR", "Cambio de %s por %s." },
{ "STR_PASS", "pasa\n" },
{ "STR_PHONY_REJECTED", "Palabra incorrecta; ¡turno perdido!\n" },
{ "STR_ROBOT_DONE", "El robot ha jugado:\n" },
{ "STR_ROBOT_TRADED", "El robot cambió fichas." },
{ "STR_ROBOT_TITLE", "Puntos del robot" },

View file

@ -0,0 +1,448 @@
/* -*-mode: c; fill-column: 78; -*- */
/*****************************************************************************
* Copyright 1999 - 2002 by Eric House (fixin@peak.org) and others. All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
****************************************************************************/
#define DEFINES_ONLY 1
#include "xwords4defines.h"
#include "common.rcp.pre" /* these don't need localization */
#define LEFTMARGIN 5
MENU XW_MAIN_MENU_ID
BEGIN
PULLDOWN "Fitxer"
BEGIN
MENUITEM "Nova partida..." XW_NEWGAME_PULLDOWN_ID "N"
MENUITEM "Partides..." XW_SAVEDGAMES_PULLDOWN_ID "S"
MENUITEM "Preferències..." XW_PREFS_PULLDOWN_ID "P"
MENUITEM SEPARATOR
MENUITEM "Enviar diccionari" XW_BEAMDICT_PULLDOWN_ID
MENUITEM "Enviar tauler i colors" XW_BEAMBOARD_PULLDOWN_ID
MENUITEM SEPARATOR
MENUITEM "Sobre Crosswords..." XW_ABOUT_PULLDOWN_ID "A"
END
PULLDOWN "Partida"
BEGIN
MENUITEM "Bossa de fitxes" XW_TILEVALUES_PULLDOWN_ID "V"
MENUITEM "Opcions..." XW_PASSWORDS_PULLDOWN_ID "G"
MENUITEM "Jugades" XW_HISTORY_PULLDOWN_ID "Y"
MENUITEM "Puntuació" XW_FINISH_PULLDOWN_ID "F"
#ifndef XWFEATURE_STANDALONE_ONLY
MENUITEM SEPARATOR
MENUITEM "Reenviar missatge" XW_RESENDIR_PULLDOWN_ID
#endif
END
PULLDOWN "Jugada"
BEGIN
MENUITEM "Pista" XW_HINT_PULLDOWN_ID "I"
MENUITEM "Més pistes" XW_NEXTHINT_PULLDOWN_ID "M"
MENUITEM SEPARATOR
MENUITEM "Descartar l'actual" XW_UNDOCUR_PULLDOWN_ID "U"
MENUITEM "Descartar la prèvia" XW_UNDOLAST_PULLDOWN_ID "Z"
MENUITEM SEPARATOR
MENUITEM "D'acord" XW_DONE_PULLDOWN_ID "D"
MENUITEM "Remenar el faristol" XW_JUGGLE_PULLDOWN_ID "J"
MENUITEM "Canviar fitxes" XW_TRADEIN_PULLDOWN_ID "T"
MENUITEM "Amagar el faristol" XW_HIDETRAY_PULLDOWN_ID "H"
END
#ifdef FOR_GREMLINS
PULLDOWN "Gremlins"
BEGIN
MENUITEM "divider right" XW_GREMLIN_DIVIDER_RIGHT
MENUITEM "divider left" XW_GREMLIN_DIVIDER_LEFT
END
#endif
#ifndef FOR_GREMLINS
#ifdef DEBUG
PULLDOWN "DBG"
BEGIN
MENUITEM "Show debugstrs" XW_DEBUGSHOW_PULLDOWN_ID
MENUITEM "Hide debugstrs" XW_DEBUGHIDE_PULLDOWN_ID
/* MENUITEM "Reset game" XW_RESET_PULLDOWN_ID */
MENUITEM "Network stats..." XW_NETSTATS_PULLDOWN_ID
#ifdef MEM_DEBUG
MENUITEM "Mem stats..." XW_MEMSTATS_PULLDOWN_ID
#endif
END
#endif
#endif /* FOR_GREMLINS */
// <EEH> NO NEED TO TRANSLATE GREMLINS or DEBUG stuff
#ifdef FOR_GREMLINS
/* PULLDOWN "Gremlins" */
/* BEGIN */
/* MENUITEM "Divider left" GREMLIN_DIVIDER_LEFT */
/* MENUITEM "Divider right" GREMLIN_DIVIDER_RIGHT */
/* END */
#endif
END
MENU XW_ASK_MENU_ID
BEGIN
PULLDOWN "Editar"
BEGIN
MENUITEM "Copiar" ASK_COPY_PULLDOWN_ID
MENUITEM "Seleccionar tot" ASK_SELECTALL_PULLDOWN_ID
END
END
FORM ID XW_MAIN_FORM AT (0 0 160 160)
USABLE
NOFRAME
MENUID XW_MAIN_MENU_ID
BEGIN
GADGET REFCON_GADGET_ID AT ( 0 0 1 1 )
BUTTON "" XW_MAIN_FLIP_BUTTON_ID
AT (PALM_FLIP_LEFT PALM_BOARD_TOP FLIP_BUTTON_WIDTH
FLIP_BUTTON_HEIGHT) NOFRAME
BUTTON "" XW_MAIN_VALUE_BUTTON_ID
AT (PALM_FLIP_LEFT PREVBOTTOM+2
FLIP_BUTTON_WIDTH FLIP_BUTTON_HEIGHT+2) NOFRAME
BUTTON "" XW_MAIN_HINT_BUTTON_ID
AT (PALM_FLIP_LEFT PREVBOTTOM+2 FLIP_BUTTON_WIDTH
FLIP_BUTTON_HEIGHT+3) NOFRAME
SCROLLBAR ID XW_MAIN_SCROLLBAR_ID
AT ( PREVLEFT PREVBOTTOM+5 RECOMMENDED_SBAR_WIDTH
160-TRAY_HEIGHT-PREVBOTTOM-IR_STATUS_HEIGHT-5)
USABLE VALUE SBAR_START_VALUE MIN SBAR_MIN MAX SBAR_MIN
PAGESIZE SBAR_PAGESIZE
BUTTON "" XW_MAIN_SHOWTRAY_BUTTON_ID
AT (PALM_FLIP_LEFT 160-FLIP_BUTTON_HEIGHT-5
FLIP_BUTTON_WIDTH FLIP_BUTTON_WIDTH+4) NOFRAME
#ifndef EIGHT_TILES
BUTTON "" XW_MAIN_HIDE_BUTTON_ID
AT(PALM_TRAY_BUTTON_LEFT 160-TRAY_HEIGHT TRAY_BUTTON_WIDTH
TRAY_BUTTON_HEIGHT) NOFRAME
BUTTON "" XW_MAIN_JUGGLE_BUTTON_ID
AT(PREVRIGHT PREVTOP TRAY_BUTTON_WIDTH TRAY_BUTTON_HEIGHT) NOFRAME
BUTTON "" XW_MAIN_TRADE_BUTTON_ID
AT(PALM_TRAY_BUTTON_LEFT PREVBOTTOM TRAY_BUTTON_WIDTH
TRAY_BUTTON_HEIGHT) NOFRAME
BUTTON "" XW_MAIN_DONE_BUTTON_ID
AT(PREVRIGHT PREVTOP TRAY_BUTTON_WIDTH TRAY_BUTTON_HEIGHT) NOFRAME
#endif
#ifdef FOR_GREMLINS
GADGET GREMLIN_BOARD_GADGET_IDAUTOID AT ( 0 5 152 135 )
GADGET GREMLIN_TRAY_GADGET_IDAUTOID AT ( 0 140 145 20 )
#endif
END
#ifdef XWFEATURE_STANDALONE_ONLY
# define NPLAYERS_TOP 15
# define FORM_TOP 34
# define FORM_HEIGHT 124
#else
# define SERVER_TOP 15
# define NPLAYERS_TOP (SERVER_TOP+18)
# define FORM_TOP 16
# define FORM_HEIGHT 142
#endif
#define LABEL_TOP (NPLAYERS_TOP+18)
#define LEFTCOL 4
#define REMOTE_COL LEFTCOL
#define NAME_COL 50
#define ROBOT_COL 98
#define PASSWD_COL RIGHT@156
#ifndef XWFEATURE_STANDALONE_ONLY
#define PLAYER_REMOTECHECK( num, offset ) \
CHECKBOX "" ID XW_REMOTE_##num##_CHECKBOX_ID \
AT (LEFTCOL PREVBOTTOM+offset AUTO AUTO) USABLE
#else
#define PLAYER_REMOTECHECK( num, offset )
#endif
#ifndef XWFEATURE_STANDALONE_ONLY
#define PLAYER_NAMEFIELD( num, offset ) \
FIELD XW_PLAYERNAME_##num##_FIELD_ID \
AT (PREVRIGHT PREVTOP 100 AUTO ) \
UNDERLINED EDITABLE SINGLELINE MAXCHARS MAX_PLAYERNAME_LENGTH
#else
#define PLAYER_NAMEFIELD( num, offset ) \
FIELD XW_PLAYERNAME_##num##_FIELD_ID \
AT (LEFTCOL+10 PREVBOTTOM+offset 100 AUTO ) \
UNDERLINED EDITABLE SINGLELINE MAXCHARS MAX_PLAYERNAME_LENGTH
#endif
#define PLAYER_ROBCHECK( num, offset ) \
CHECKBOX "" ID XW_ROBOT_##num##_CHECKBOX_ID \
AT (PREVRIGHT PREVTOP AUTO AUTO) USABLE RIGHTANCHOR
#define PLAYER_PASSFIELD( num, offset ) \
SELECTORTRIGGER "" XW_PLAYERPASSWD_##num##_TRIGGER_ID \
AT (PREVRIGHT PREVTOP 12 11)
/* FIELD XW_PLAYERPASSWD_##num##_FIELD_ID PREVRIGHT PREVTOP 20 \ */
/* AUTO UNDERLINED EDITABLE SINGLELINE MAXCHARS 4 */
#define PLAYER_ROW( num, offset ) \
PLAYER_REMOTECHECK( num, offset ) \
PLAYER_NAMEFIELD( num, offset ) \
PLAYER_ROBCHECK( num, offset ) \
PLAYER_PASSFIELD( num, offset )
//#define SERVER_GROUP_ID 2000
#define SERVER_HEIGHT 12
#define PLAYER_SEL_LEFT 64
FORM ID XW_NEWGAMES_FORM AT (2 FORM_TOP 156 FORM_HEIGHT)
USABLE MODAL SAVEBEHIND DEFAULTBTNID XW_OK_BUTTON_ID
BEGIN
TITLE "Opcions"
#ifndef XWFEATURE_STANDALONE_ONLY
LABEL "Connexió:" AUTOID AT (LEFTCOL SERVER_TOP)
GADGET ID XW_SOLO_GADGET_ID AT (PREVRIGHT+2 SERVER_TOP 53 SERVER_HEIGHT)
USABLE
GADGET ID XW_SERVER_GADGET_ID
AT (PREVRIGHT+1 SERVER_TOP 22 SERVER_HEIGHT) USABLE
GADGET ID XW_CLIENT_GADGET_ID
AT (PREVRIGHT+1 SERVER_TOP 28 SERVER_HEIGHT) USABLE
LIST "Sense" "Servidor" "Client" XW_SERVERTYPES_LIST_ID
AT (0 0 1 1) VISIBLEITEMS 3 NONUSABLE
#endif
/* Pick number of players here */
#ifndef XWFEATURE_STANDALONE_ONLY
LABEL "Locals: " XW_LOCALP_LABEL_ID AT (LEFTCOL NPLAYERS_TOP)
LABEL "Jugadors: " XW_TOTALP_LABEL_ID AT (LEFTCOL NPLAYERS_TOP)
#else
LABEL "Jugadors: " AUTOID AT (LEFTCOL NPLAYERS_TOP)
#endif
SELECTORTRIGGER "" XW_NPLAYERS_SELECTOR_ID \
AT (PLAYER_SEL_LEFT NPLAYERS_TOP AUTO AUTO) USABLE LEFTANCHOR
LIST "1" "2" "3" "4" XW_NPLAYERS_LIST_ID AT (PREVLEFT PREVTOP 10 1) \
VISIBLEITEMS 4 NONUSABLE
BUTTON "Més opcions..." XW_PREFS_BUTTON_ID RIGHT@154 NPLAYERS_TOP AUTO AUTO
#ifndef XWFEATURE_STANDALONE_ONLY
LABEL "Client" XW_LOCAL_LABEL_ID REMOTE_COL LABEL_TOP FONT 1
#endif
LABEL "Nom" AUTOID NAME_COL LABEL_TOP FONT 1
LABEL "Robot" AUTOID ROBOT_COL LABEL_TOP FONT 1
LABEL "Pwd" AUTOID PASSWD_COL LABEL_TOP FONT 1
PLAYER_ROW( 1, 2 )
PLAYER_ROW( 2, 2 )
PLAYER_ROW( 3, 2 )
PLAYER_ROW( 4, 2 )
GRAFFITISTATEINDICATOR 2 PREVBOTTOM+10
SELECTORTRIGGER "Diccionari..." XW_DICT_SELECTOR_ID \
AT (PREVRIGHT+12 PREVTOP AUTO AUTO) USABLE LEFTANCHOR
/* BUTTON "Dicc..." XW_DICT_BUTTON_ID */
BUTTON "D'acord" XW_OK_BUTTON_ID RIGHT@154 PREVTOP 36 AUTO
BUTTON "Sortir" XW_CANCEL_BUTTON_ID RIGHT@PREVLEFT-3 PREVTOP 39 AUTO
END /* FORM XW_PLAYERINFO_FORM */
#define LEFTCOL 4
#define PREFS_MODE_TOP 15
#define PREFS_TOP 30
#define TIMER_TOP 84
#define BUTTON_TOP 102
FORM ID XW_PREFS_FORM AT (2 39 156 119)
USABLE MODAL SAVEBEHIND DEFAULTBTNID XW_PREFS_CANCEL_BUTTON_ID
BEGIN
TITLE "Preferències"
GADGET ID XW_PREFS_APPWIDE_CHECKBX_ID
AT (LEFTCOL+8 PREFS_MODE_TOP 75 SERVER_HEIGHT) USABLE
GADGET ID XW_PREFS_ONEGAME_CHECKBX_ID
AT (PREVRIGHT+1 PREVTOP 50 SERVER_HEIGHT) USABLE
LIST "Del programa" "De la partida" XW_PREFS_TYPES_LIST_ID
AT (0 0 1 1) VISIBLEITEMS 2 NONUSABLE
/* global prefs */
CHECKBOX "Acolorir fitxes segons el jugador" ID XW_PREFS_PLAYERCOLORS_CHECKBOX_ID \
AT (LEFTCOL PREFS_TOP AUTO AUTO) NONUSABLE
CHECKBOX "Mostrar la barra de progrés" ID XW_PREFS_PROGRESSBAR_CHECKBOX_ID \
AT (LEFTCOL PREVBOTTOM AUTO AUTO) NONUSABLE
CHECKBOX "Dibuixar el tauler gran" ID XW_PREFS_SHOWGRID_CHECKBOX_ID \
AT (LEFTCOL PREVBOTTOM AUTO AUTO) NONUSABLE
CHECKBOX "Activar el cursor" ID XW_PREFS_SHOWARROW_CHECKBOX_ID \
AT (LEFTCOL PREVBOTTOM AUTO AUTO) NONUSABLE
CHECKBOX "Veure jugada del robot" ID XW_PREFS_ROBOTSCORE_CHECKBOX_ID \
AT (LEFTCOL PREVBOTTOM AUTO AUTO) NONUSABLE
/* single-game prefs */
CHECKBOX "El robot mai no falla" ID XW_PREFS_ROBOTSMART_CHECKBOX_ID \
AT (LEFTCOL PREFS_TOP AUTO AUTO) NONUSABLE
CHECKBOX "Desactivar pistes" ID XW_PREFS_NOHINTS_CHECKBOX_ID \
AT (LEFTCOL PREVBOTTOM AUTO AUTO) NONUSABLE
LABEL "Si no troba:" XW_PREFS_PHONIES_LABEL_ID AT (LEFTCOL PREVBOTTOM+2)
POPUPTRIGGER "" ID XW_PREFS_PHONIES_TRIGGER_ID
AT (PREVRIGHT+5 PREVTOP 72 12) LEFTANCHOR
LABEL "Tauler de: " XW_PREFS_BDSIZE_LABEL_ID
AT (LEFTCOL PREVBOTTOM+2)
SELECTORTRIGGER "" XW_PREFS_BDSIZE_SELECTOR_ID \
AT (PREVRIGHT PREVTOP AUTO AUTO) USABLE LEFTANCHOR
LIST "Ignora" "Avisa" "No permet" ID XW_PREFS_PHONIES_LIST_ID
AT (PREVLEFT PREVTOP 72 12) NONUSABLE VISIBLEITEMS 3
POPUPLIST XW_PREFS_PHONIES_TRIGGER_ID XW_PREFS_PHONIES_LIST_ID
LIST "15x15" "13x13" "11x11" \
XW_PREFS_BDSIZE_LIST_ID AT (PREVLEFT PREVTOP 30 1) \
NONUSABLE VISIBLEITEMS NUM_BOARD_SIZES
CHECKBOX "Activar rellotge (minuts): " ID XW_PREFS_TIMERON_CHECKBOX_ID \
AT (LEFTCOL TIMER_TOP AUTO AUTO) NONUSABLE
FIELD XW_PREFS_TIMER_FIELD_ID PREVRIGHT+5 PREVTOP 15 AUTO UNDERLINED \
EDITABLE SINGLELINE NUMERIC MAXCHARS 3
#ifdef FEATURE_TRAY_EDIT
CHECKBOX "Allow pick tiles" ID XW_PREFS_PICKTILES_CHECKBOX_ID \
AT (LEFTCOL PREVBOTTOM AUTO AUTO) NONUSABLE
#endif
/* buttons at the bottom */
BUTTON "Sortir" XW_PREFS_CANCEL_BUTTON_ID 42 BUTTON_TOP AUTO AUTO
BUTTON "D'acord" XW_PREFS_OK_BUTTON_ID PREVRIGHT+10 PREVTOP AUTO AUTO
END
#define LEFT_EDGE 10
FORM ID XW_DICTINFO_FORM AT (2 111 156 47)
USABLE MODAL DEFAULTBTNID XW_DICTINFO_CANCEL_BUTTON_ID
BEGIN
TITLE "Diccionaris"
LABEL "Nom:" AUTOID AT (LEFT_EDGE 15)
POPUPTRIGGER "" ID XW_DICTINFO_TRIGGER_ID
AT (PREVRIGHT+5 PREVTOP 72 12) LEFTANCHOR
LIST "" ID XW_DICTINFO_LIST_ID AT (PREVLEFT PREVTOP 72 1)
NONUSABLE VISIBLEITEMS 4
POPUPLIST XW_DICTINFO_TRIGGER_ID XW_DICTINFO_LIST_ID
BUTTON "D'acord" XW_DICTINFO_DONE_BUTTON_ID 25 31 AUTO AUTO
BUTTON "Enviar" XW_DICTINFO_BEAM_BUTTON_ID 22 PREVTOP AUTO AUTO
BUTTON "Sortir" XW_DICTINFO_CANCEL_BUTTON_ID PREVRIGHT+20 PREVTOP
AUTO AUTO
END
FORM ID XW_ASK_FORM_ID AT (2 70 156 88)
USABLE MODAL SAVEBEHIND DEFAULTBTNID XW_ASK_CANCEL_BUTTON_ID
MENUID XW_ASK_MENU_ID
BEGIN
TITLE "Pregunta"
FIELD XW_ASK_TXT_FIELD_ID LEFT_EDGE-5 15 135 52 \
NONEDITABLE MULTIPLELINES
SCROLLBAR ID XW_ASK_SCROLLBAR_ID
AT ( PREVRIGHT+2 PREVTOP RECOMMENDED_SBAR_WIDTH
PREVBOTTOM - PREVTOP) USABLE
BUTTON "D'acord" XW_ASK_OK_BUTTON_ID RIGHT@(156/2)-10 PREVBOTTOM+2 AUTO AUTO
BUTTON "Sortir" XW_ASK_CANCEL_BUTTON_ID 156/2+10 PREVTOP
AUTO AUTO
END
FORM ID XW_PASSWORD_DIALOG_ID AT ( 2 88 156 70 )
MODAL SAVEBEHIND DEFAULTBTNID XW_PASSWORD_CANCEL_BUTTON
BEGIN
TITLE "Password"
LABEL "Entra el password per:" XW_PASSWORD_NAME_LABEL 10 18 FONT 1 NONUSABLE
LABEL "Entra el nou password per:" XW_PASSWORD_NEWNAME_LABEL 10 18 FONT 1
NONUSABLE
FIELD XW_PASSWORD_NAME_FIELD AT (PREVLEFT PREVBOTTOM+3 90 12) NONEDITABLE
SINGLELINE MAXCHARS MAX_PLAYERNAME_LENGTH
FIELD XW_PASSWORD_PASS_FIELD \
AT (PREVRIGHT+10 PREVTOP MAX_PASSWORD_LENGTH*6 12) \
EDITABLE SINGLELINE UNDERLINED MAXCHARS MAX_PASSWORD_LENGTH
GRAFFITISTATEINDICATOR 2 PREVBOTTOM+8
BUTTON "D'acord" XW_PASSWORD_OK_BUTTON 45 PREVTOP AUTO AUTO
BUTTON "Sortir" XW_PASSWORD_CANCEL_BUTTON PREVRIGHT+10 PREVTOP AUTO AUTO
END
#define BLANK_PICK_TOP 15
FORM ID XW_BLANK_DIALOG_ID AT ( 2 74 156 83 ) USABLE
MODAL SAVEBEHIND
#ifdef FEATURE_TRAY_EDIT
DEFAULTBTNID XW_BLANK_PICK_BUTTON_ID
#endif
BEGIN
TITLE "Tile picker"
FIELD XW_BLANK_LABEL_FIELD_ID AT (10 BLANK_PICK_TOP 110 39)
NONEDITABLE MULTIPLELINES
LIST "" ID XW_BLANK_LIST_ID AT (PREVRIGHT+2 BLANK_PICK_TOP 28 72)
USABLE VISIBLEITEMS 6
BUTTON "Ok" XW_BLANK_OK_BUTTON_ID RIGHT@PREVLEFT-10 65 AUTO AUTO
#ifdef FEATURE_TRAY_EDIT
BUTTON "Pick all!" XW_BLANK_PICK_BUTTON_ID 5 65 AUTO AUTO
#endif
END
#if defined OWNER_HASH || defined NO_REG_REQUIRED
FORM ID XW_SAVEDGAMES_DIALOG_ID AT ( 2 2 156 156 )
USABLE MODAL DEFAULTBTNID XW_SAVEDGAMES_DONE_BUTTON
BEGIN
TITLE "Partides"
LIST "" ID XW_SAVEDGAMES_LIST_ID AT (2 15 140 60) \
USABLE ENABLED VISIBLEITEMS 1
GRAFFITISTATEINDICATOR 2 120
FIELD XW_SAVEDGAMES_NAME_FIELD AT (PREVRIGHT+10 PREVTOP 108 AUTO)
EDITABLE SINGLELINE UNDERLINED MAXCHARS MAX_GAMENAME_LENGTH
BUTTON "Modif." XW_SAVEDGAMES_USE_BUTTON RIGHT@154 PREVTOP 30 AUTO
BUTTON "Duplic." XW_SAVEDGAMES_DUPE_BUTTON 2 PREVBOTTOM+5 33 AUTO
BUTTON "Esborrar" XW_SAVEDGAMES_DELETE_BUTTON PREVRIGHT+5 PREVTOP 41 AUTO
BUTTON "Triar" XW_SAVEDGAMES_OPEN_BUTTON PREVRIGHT+5 PREVTOP 28 AUTO
BUTTON "Tancar" XW_SAVEDGAMES_DONE_BUTTON PREVRIGHT+5 PREVTOP 33 AUTO
END
#endif
ALERT XW_ERROR_ALERT_ID
ERROR
BEGIN
TITLE "Alerta!"
MESSAGE "^1"
BUTTONS "D'acord"
END
#ifdef FOR_GREMLINS
FORM ID XW_GREMLIN_WARN_FORM_ID AT ( 2 60 156 98 )
USABLE MODAL
BEGIN
TITLE "Gremlin Oops"
FIELD XW_GREMLIN_WARN_FIELD_ID AT (2 15 150 75)
NONEDITABLE MULTIPLELINES
END
#endif

View file

@ -0,0 +1,435 @@
/* -*-mode: c; fill-column: 78; -*- */
/*****************************************************************************
* Copyright 1999 - 2002 by Eric House (fixin@peak.org) and others. All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
****************************************************************************/
#define DEFINES_ONLY 1
#include "xwords4defines.h"
#include "Common.rcp.pre" /* these don't need localization */
#define LEFTMARGIN 5
MENU XW_MAIN_MENU_ID
BEGIN
PULLDOWN "Fichero"
BEGIN
MENUITEM "Nueva partida..." XW_NEWGAME_PULLDOWN_ID "N"
MENUITEM "Partidas..." XW_SAVEDGAMES_PULLDOWN_ID "S"
MENUITEM "Preferencias..." XW_PREFS_PULLDOWN_ID "P"
MENUITEM SEPARATOR
MENUITEM "Enviar diccionario" XW_BEAMDICT_PULLDOWN_ID
MENUITEM "Enviar tablero y colores" XW_BEAMBOARD_PULLDOWN_ID
MENUITEM SEPARATOR
MENUITEM "Acerca de Crosswords..." XW_ABOUT_PULLDOWN_ID "A"
END
PULLDOWN "Partida"
BEGIN
MENUITEM "Bolsa de fichas" XW_TILEVALUES_PULLDOWN_ID "V"
MENUITEM "Opciones..." XW_PASSWORDS_PULLDOWN_ID "G"
MENUITEM "Jugadas" XW_HISTORY_PULLDOWN_ID "Y"
MENUITEM "Puntuación" XW_FINISH_PULLDOWN_ID "F"
#ifndef XWFEATURE_STANDALONE_ONLY
MENUITEM SEPARATOR
MENUITEM "Reenviar mensajes" XW_RESENDIR_PULLDOWN_ID
#endif
END
PULLDOWN "Jugada"
BEGIN
MENUITEM "Pista" XW_HINT_PULLDOWN_ID "I"
MENUITEM "Más pistas" XW_NEXTHINT_PULLDOWN_ID "M"
MENUITEM SEPARATOR
MENUITEM "Descartar la actual" XW_UNDOCUR_PULLDOWN_ID "U"
MENUITEM "Descartar la previa" XW_UNDOLAST_PULLDOWN_ID "Z"
MENUITEM SEPARATOR
MENUITEM "Aceptar" XW_DONE_PULLDOWN_ID "D"
MENUITEM "Remover el atril" XW_JUGGLE_PULLDOWN_ID "J"
MENUITEM "Cambiar fichas" XW_TRADEIN_PULLDOWN_ID "T"
MENUITEM "Ocultar el atril" XW_HIDETRAY_PULLDOWN_ID "H"
END
#ifdef FOR_GREMLINS
PULLDOWN "Gremlins"
BEGIN
MENUITEM "divider right" XW_GREMLIN_DIVIDER_RIGHT
MENUITEM "divider left" XW_GREMLIN_DIVIDER_LEFT
END
#endif
#ifndef FOR_GREMLINS
#ifdef DEBUG
PULLDOWN "Debug"
BEGIN
MENUITEM "Show debugstrs" XW_DEBUGSHOW_PULLDOWN_ID
MENUITEM "Hide debugstrs" XW_DEBUGHIDE_PULLDOWN_ID
/* MENUITEM "Reset game" XW_RESET_PULLDOWN_ID */
MENUITEM "Network stats..." XW_NETSTATS_PULLDOWN_ID
#ifdef MEM_DEBUG
MENUITEM "Mem stats..." XW_MEMSTATS_PULLDOWN_ID
#endif
END
#endif
#endif /* FOR_GREMLINS */
// <EEH> NO NEED TO TRANSLATE GREMLINS or DEBUG stuff
#ifdef FOR_GREMLINS
/* PULLDOWN "Gremlins" */
/* BEGIN */
/* MENUITEM "Divider left" GREMLIN_DIVIDER_LEFT */
/* MENUITEM "Divider right" GREMLIN_DIVIDER_RIGHT */
/* END */
#endif
END
MENU XW_ASK_MENU_ID
BEGIN
PULLDOWN "Editar"
BEGIN
MENUITEM "Copiar" ASK_COPY_PULLDOWN_ID
MENUITEM "Seleccionar todo" ASK_SELECTALL_PULLDOWN_ID
END
END
FORM ID XW_MAIN_FORM AT (0 0 160 160)
USABLE
NOFRAME
MENUID XW_MAIN_MENU_ID
BEGIN
GADGET REFCON_GADGET_ID AT ( 0 0 1 1 )
BUTTON "" XW_MAIN_FLIP_BUTTON_ID
AT (PALM_FLIP_LEFT PALM_BOARD_TOP FLIP_BUTTON_WIDTH
FLIP_BUTTON_HEIGHT) NOFRAME
BUTTON "" XW_MAIN_VALUE_BUTTON_ID
AT (PALM_FLIP_LEFT PREVBOTTOM+2
FLIP_BUTTON_WIDTH FLIP_BUTTON_HEIGHT+2) NOFRAME
BUTTON "" XW_MAIN_HINT_BUTTON_ID
AT (PALM_FLIP_LEFT PREVBOTTOM+2 FLIP_BUTTON_WIDTH
FLIP_BUTTON_HEIGHT+3) NOFRAME
SCROLLBAR ID XW_MAIN_SCROLLBAR_ID
AT ( PREVLEFT PREVBOTTOM+5 RECOMMENDED_SBAR_WIDTH
160-TRAY_HEIGHT-PREVBOTTOM-IR_STATUS_HEIGHT-5)
USABLE VALUE SBAR_START_VALUE MIN SBAR_MIN MAX SBAR_MIN
PAGESIZE SBAR_PAGESIZE
BUTTON "" XW_MAIN_SHOWTRAY_BUTTON_ID
AT (PALM_FLIP_LEFT 160-FLIP_BUTTON_HEIGHT-5
FLIP_BUTTON_WIDTH FLIP_BUTTON_WIDTH+4) NOFRAME
#ifndef EIGHT_TILES
BUTTON "" XW_MAIN_HIDE_BUTTON_ID
AT(PALM_TRAY_BUTTON_LEFT 160-TRAY_HEIGHT TRAY_BUTTON_WIDTH
TRAY_BUTTON_HEIGHT) NOFRAME
BUTTON "" XW_MAIN_JUGGLE_BUTTON_ID
AT(PREVRIGHT PREVTOP TRAY_BUTTON_WIDTH TRAY_BUTTON_HEIGHT) NOFRAME
BUTTON "" XW_MAIN_TRADE_BUTTON_ID
AT(PALM_TRAY_BUTTON_LEFT PREVBOTTOM TRAY_BUTTON_WIDTH
TRAY_BUTTON_HEIGHT) NOFRAME
BUTTON "" XW_MAIN_DONE_BUTTON_ID
AT(PREVRIGHT PREVTOP TRAY_BUTTON_WIDTH TRAY_BUTTON_HEIGHT) NOFRAME
#endif
#ifdef FOR_GREMLINS
GADGET GREMLIN_BOARD_GADGET_IDAUTOID AT ( 0 5 152 135 )
GADGET GREMLIN_TRAY_GADGET_IDAUTOID AT ( 0 140 145 20 )
#endif
END
#ifdef XWFEATURE_STANDALONE_ONLY
# define NPLAYERS_TOP 15
# define FORM_TOP 34
# define FORM_HEIGHT 124
#else
# define SERVER_TOP 15
# define NPLAYERS_TOP (SERVER_TOP+18)
# define FORM_TOP 16
# define FORM_HEIGHT 142
#endif
#define LABEL_TOP (NPLAYERS_TOP+18)
#define LEFTCOL 4
#define REMOTE_COL LEFTCOL
#define NAME_COL 50
#define ROBOT_COL 98
#define PASSWD_COL RIGHT@156
#ifndef XWFEATURE_STANDALONE_ONLY
#define PLAYER_REMOTECHECK( num, offset ) \
CHECKBOX "" ID XW_REMOTE_##num##_CHECKBOX_ID \
AT (LEFTCOL PREVBOTTOM+offset AUTO AUTO) USABLE
#else
#define PLAYER_REMOTECHECK( num, offset )
#endif
#ifndef XWFEATURE_STANDALONE_ONLY
#define PLAYER_NAMEFIELD( num, offset ) \
FIELD XW_PLAYERNAME_##num##_FIELD_ID \
AT (PREVRIGHT PREVTOP 100 AUTO ) \
UNDERLINED EDITABLE SINGLELINE MAXCHARS MAX_PLAYERNAME_LENGTH
#else
#define PLAYER_NAMEFIELD( num, offset ) \
FIELD XW_PLAYERNAME_##num##_FIELD_ID \
AT (LEFTCOL+10 PREVBOTTOM+offset 100 AUTO ) \
UNDERLINED EDITABLE SINGLELINE MAXCHARS MAX_PLAYERNAME_LENGTH
#endif
#define PLAYER_ROBCHECK( num, offset ) \
CHECKBOX "" ID XW_ROBOT_##num##_CHECKBOX_ID \
AT (PREVRIGHT PREVTOP AUTO AUTO) USABLE RIGHTANCHOR
#define PLAYER_PASSFIELD( num, offset ) \
SELECTORTRIGGER "" XW_PLAYERPASSWD_##num##_TRIGGER_ID \
AT (PREVRIGHT PREVTOP 12 11)
/* FIELD XW_PLAYERPASSWD_##num##_FIELD_ID PREVRIGHT PREVTOP 20 \ */
/* AUTO UNDERLINED EDITABLE SINGLELINE MAXCHARS 4 */
#define PLAYER_ROW( num, offset ) \
PLAYER_REMOTECHECK( num, offset ) \
PLAYER_NAMEFIELD( num, offset ) \
PLAYER_ROBCHECK( num, offset ) \
PLAYER_PASSFIELD( num, offset )
//#define SERVER_GROUP_ID 2000
#define SERVER_HEIGHT 12
#define PLAYER_SEL_LEFT 64
FORM ID XW_NEWGAMES_FORM AT (2 FORM_TOP 156 FORM_HEIGHT)
USABLE MODAL SAVEBEHIND DEFAULTBTNID XW_OK_BUTTON_ID
BEGIN
TITLE "Opciones"
#ifndef XWFEATURE_STANDALONE_ONLY
LABEL "Conexión:" AUTOID AT (LEFTCOL SERVER_TOP)
GADGET ID XW_SOLO_GADGET_ID AT (PREVRIGHT+2 SERVER_TOP 53 SERVER_HEIGHT)
USABLE
GADGET ID XW_SERVER_GADGET_ID
AT (PREVRIGHT+1 SERVER_TOP 22 SERVER_HEIGHT) USABLE
GADGET ID XW_CLIENT_GADGET_ID
AT (PREVRIGHT+1 SERVER_TOP 28 SERVER_HEIGHT) USABLE
LIST "Sin" "Servidor" "Cliente" XW_SERVERTYPES_LIST_ID
AT (0 0 1 1) VISIBLEITEMS 3 NONUSABLE
#endif
/* Pick number of players here */
#ifndef XWFEATURE_STANDALONE_ONLY
LABEL "Locales: " XW_LOCALP_LABEL_ID AT (LEFTCOL NPLAYERS_TOP)
LABEL "Jugadores: " XW_TOTALP_LABEL_ID AT (LEFTCOL NPLAYERS_TOP)
#else
LABEL "Jugadores: " AUTOID AT (LEFTCOL NPLAYERS_TOP)
#endif
SELECTORTRIGGER "" XW_NPLAYERS_SELECTOR_ID \
AT (PLAYER_SEL_LEFT NPLAYERS_TOP AUTO AUTO) USABLE LEFTANCHOR
LIST "1" "2" "3" "4" XW_NPLAYERS_LIST_ID AT (PREVLEFT PREVTOP 10 1) \
VISIBLEITEMS 4 NONUSABLE
BUTTON "Más opciones..." XW_PREFS_BUTTON_ID RIGHT@154 NPLAYERS_TOP AUTO AUTO
#ifndef XWFEATURE_STANDALONE_ONLY
LABEL "Cliente" XW_LOCAL_LABEL_ID REMOTE_COL LABEL_TOP FONT 1
#endif
LABEL "Nombre" AUTOID NAME_COL LABEL_TOP FONT 1
LABEL "Robot" AUTOID ROBOT_COL LABEL_TOP FONT 1
LABEL "Pwd" AUTOID PASSWD_COL LABEL_TOP FONT 1
PLAYER_ROW( 1, 2 )
PLAYER_ROW( 2, 2 )
PLAYER_ROW( 3, 2 )
PLAYER_ROW( 4, 2 )
GRAFFITISTATEINDICATOR 2 PREVBOTTOM+10
SELECTORTRIGGER "Diccionario..." XW_DICT_SELECTOR_ID \
AT (PREVRIGHT+12 PREVTOP AUTO AUTO) USABLE LEFTANCHOR
/* BUTTON "Dicc..." XW_DICT_BUTTON_ID */
BUTTON "Aceptar" XW_OK_BUTTON_ID RIGHT@154 PREVTOP 36 AUTO
BUTTON "Cancelar" XW_CANCEL_BUTTON_ID RIGHT@PREVLEFT-3 PREVTOP 37 AUTO
END /* FORM XW_PLAYERINFO_FORM */
#define LEFTCOL 4
#define PREFS_MODE_TOP 15
#define PREFS_TOP 30
#define TIMER_TOP 84
#define BUTTON_TOP 102
FORM ID XW_PREFS_FORM AT (2 39 156 119)
USABLE MODAL SAVEBEHIND DEFAULTBTNID XW_PREFS_CANCEL_BUTTON_ID
BEGIN
TITLE "Preferencias"
GADGET ID XW_PREFS_APPWIDE_CHECKBX_ID
AT (LEFTCOL+8 PREFS_MODE_TOP 75 SERVER_HEIGHT) USABLE
GADGET ID XW_PREFS_ONEGAME_CHECKBX_ID
AT (PREVRIGHT+1 PREVTOP 50 SERVER_HEIGHT) USABLE
LIST "Del programa" "De la partida" XW_PREFS_TYPES_LIST_ID
AT (0 0 1 1) VISIBLEITEMS 2 NONUSABLE
/* global prefs */
CHECKBOX "Colorear fichas según el jugador" ID XW_PREFS_PLAYERCOLORS_CHECKBOX_ID \
AT (LEFTCOL PREFS_TOP AUTO AUTO) NONUSABLE
CHECKBOX "Mostrar la barra de progreso" ID XW_PREFS_PROGRESSBAR_CHECKBOX_ID \
AT (LEFTCOL PREVBOTTOM AUTO AUTO) NONUSABLE
CHECKBOX "Dibujar el tablero grande" ID XW_PREFS_SHOWGRID_CHECKBOX_ID \
AT (LEFTCOL PREVBOTTOM AUTO AUTO) NONUSABLE
CHECKBOX "Activar cursor" ID XW_PREFS_SHOWARROW_CHECKBOX_ID \
AT (LEFTCOL PREVBOTTOM AUTO AUTO) NONUSABLE
CHECKBOX "Ver jugada del robot" ID XW_PREFS_ROBOTSCORE_CHECKBOX_ID \
AT (LEFTCOL PREVBOTTOM AUTO AUTO) NONUSABLE
/* single-game prefs */
CHECKBOX "El robot nunca falla" ID XW_PREFS_ROBOTSMART_CHECKBOX_ID \
AT (LEFTCOL PREFS_TOP AUTO AUTO) NONUSABLE
CHECKBOX "Desactivar pistas" ID XW_PREFS_NOHINTS_CHECKBOX_ID \
AT (LEFTCOL PREVBOTTOM AUTO AUTO) NONUSABLE
LABEL "Si no encuentra:" XW_PREFS_PHONIES_LABEL_ID AT (LEFTCOL PREVBOTTOM+2)
POPUPTRIGGER "" ID XW_PREFS_PHONIES_TRIGGER_ID
AT (PREVRIGHT+5 PREVTOP 72 12) LEFTANCHOR
LABEL "Tablero de: " XW_PREFS_BDSIZE_LABEL_ID
AT (LEFTCOL PREVBOTTOM+2)
SELECTORTRIGGER "" XW_PREFS_BDSIZE_SELECTOR_ID \
AT (PREVRIGHT PREVTOP AUTO AUTO) USABLE LEFTANCHOR
LIST "Ignora" "Avisa" "No permite" ID XW_PREFS_PHONIES_LIST_ID
AT (PREVLEFT PREVTOP 72 12) NONUSABLE VISIBLEITEMS 3
POPUPLIST XW_PREFS_PHONIES_TRIGGER_ID XW_PREFS_PHONIES_LIST_ID
LIST "15x15" "13x13" "11x11" \
XW_PREFS_BDSIZE_LIST_ID AT (PREVLEFT PREVTOP 30 1) \
NONUSABLE VISIBLEITEMS NUM_BOARD_SIZES
CHECKBOX "Activar reloj (minutos): " ID XW_PREFS_TIMERON_CHECKBOX_ID \
AT (LEFTCOL TIMER_TOP AUTO AUTO) NONUSABLE
FIELD XW_PREFS_TIMER_FIELD_ID PREVRIGHT+5 PREVTOP 15 AUTO UNDERLINED \
EDITABLE SINGLELINE NUMERIC MAXCHARS 3
/* buttons at the bottom */
BUTTON "Cancelar" XW_PREFS_CANCEL_BUTTON_ID 42 BUTTON_TOP AUTO AUTO
BUTTON "Aceptar" XW_PREFS_OK_BUTTON_ID PREVRIGHT+10 PREVTOP AUTO AUTO
END
#define LEFT_EDGE 10
FORM ID XW_DICTINFO_FORM AT (2 111 156 47)
USABLE MODAL DEFAULTBTNID XW_DICTINFO_CANCEL_BUTTON_ID
BEGIN
TITLE "Diccionarios"
LABEL "Nombre:" AUTOID AT (LEFT_EDGE 15)
POPUPTRIGGER "" ID XW_DICTINFO_TRIGGER_ID
AT (PREVRIGHT+5 PREVTOP 72 12) LEFTANCHOR
LIST "" ID XW_DICTINFO_LIST_ID AT (PREVLEFT PREVTOP 72 1)
NONUSABLE VISIBLEITEMS 4
POPUPLIST XW_DICTINFO_TRIGGER_ID XW_DICTINFO_LIST_ID
BUTTON "Aceptar" XW_DICTINFO_DONE_BUTTON_ID 25 31 AUTO AUTO
BUTTON "Enviar" XW_DICTINFO_BEAM_BUTTON_ID 22 PREVTOP AUTO AUTO
BUTTON "Cancelar" XW_DICTINFO_CANCEL_BUTTON_ID PREVRIGHT+20 PREVTOP
AUTO AUTO
END
FORM ID XW_ASK_FORM_ID AT (2 70 156 88)
USABLE MODAL SAVEBEHIND DEFAULTBTNID XW_ASK_CANCEL_BUTTON_ID
MENUID XW_ASK_MENU_ID
BEGIN
TITLE "Pregunta"
FIELD XW_ASK_TXT_FIELD_ID LEFT_EDGE-5 15 135 52 \
NONEDITABLE MULTIPLELINES
SCROLLBAR ID XW_ASK_SCROLLBAR_ID
AT ( PREVRIGHT+2 PREVTOP RECOMMENDED_SBAR_WIDTH
PREVBOTTOM - PREVTOP) USABLE
BUTTON "Aceptar" XW_ASK_OK_BUTTON_ID RIGHT@(156/2)-10 PREVBOTTOM+2 AUTO AUTO
BUTTON "Cancelar" XW_ASK_CANCEL_BUTTON_ID 156/2+10 PREVTOP
AUTO AUTO
END
FORM ID XW_PASSWORD_DIALOG_ID AT ( 2 88 156 70 )
MODAL SAVEBEHIND DEFAULTBTNID XW_PASSWORD_CANCEL_BUTTON
BEGIN
TITLE "Password"
LABEL "Entra el password para:" XW_PASSWORD_NAME_LABEL 10 18 FONT 1 NONUSABLE
LABEL "Entra el nuevo password para:" XW_PASSWORD_NEWNAME_LABEL 10 18 FONT 1
NONUSABLE
FIELD XW_PASSWORD_NAME_FIELD AT (PREVLEFT PREVBOTTOM+3 90 12) NONEDITABLE
SINGLELINE MAXCHARS MAX_PLAYERNAME_LENGTH
FIELD XW_PASSWORD_PASS_FIELD \
AT (PREVRIGHT+10 PREVTOP MAX_PASSWORD_LENGTH*6 12) \
EDITABLE SINGLELINE UNDERLINED MAXCHARS MAX_PASSWORD_LENGTH
GRAFFITISTATEINDICATOR 2 PREVBOTTOM+8
BUTTON "Aceptar" XW_PASSWORD_OK_BUTTON 45 PREVTOP AUTO AUTO
BUTTON "Cancelar" XW_PASSWORD_CANCEL_BUTTON PREVRIGHT+10 PREVTOP AUTO AUTO
END
FORM ID XW_BLANK_DIALOG_ID AT ( 2 89 156 69 ) USABLE
MODAL SAVEBEHIND DEFAULTBTNID XW_BLANK_OK_BUTTON_ID
BEGIN
TITLE "Comodín"
LABEL "Escoge la ficha que" AUTOID 10 20 FONT 1
LABEL "quieres usar:" AUTOID PREVLEFT PREVBOTTOM FONT 1
POPUPTRIGGER "" ID XW_BLANK_TRIGGER_ID AT (125 20 32 12)
LEFTANCHOR
LIST "" ID XW_BLANK_LIST_ID AT (PREVLEFT PREVTOP 32 1)
NONUSABLE VISIBLEITEMS 14
POPUPLIST XW_BLANK_TRIGGER_ID XW_BLANK_LIST_ID
BUTTON "Aceptar" XW_BLANK_OK_BUTTON_ID CENTER 50 AUTO AUTO
END
#if defined OWNER_HASH || defined NO_REG_REQUIRED
FORM ID XW_SAVEDGAMES_DIALOG_ID AT ( 2 2 156 156 )
USABLE MODAL DEFAULTBTNID XW_SAVEDGAMES_DONE_BUTTON
BEGIN
TITLE "Partidas"
LIST "" ID XW_SAVEDGAMES_LIST_ID AT (2 15 140 60) \
USABLE ENABLED VISIBLEITEMS 1
GRAFFITISTATEINDICATOR 2 120
FIELD XW_SAVEDGAMES_NAME_FIELD AT (PREVRIGHT+10 PREVTOP 108 AUTO)
EDITABLE SINGLELINE UNDERLINED MAXCHARS MAX_GAMENAME_LENGTH
BUTTON "Modif." XW_SAVEDGAMES_USE_BUTTON RIGHT@154 PREVTOP 30 AUTO
BUTTON "Duplic." XW_SAVEDGAMES_DUPE_BUTTON 2 PREVBOTTOM+5 33 AUTO
BUTTON "Borrar" XW_SAVEDGAMES_DELETE_BUTTON PREVRIGHT+5 PREVTOP 33 AUTO
BUTTON "Escoger" XW_SAVEDGAMES_OPEN_BUTTON PREVRIGHT+5 PREVTOP 37 AUTO
BUTTON "Cerrar" XW_SAVEDGAMES_DONE_BUTTON PREVRIGHT+5 PREVTOP 33 AUTO
END
#endif
ALERT XW_ERROR_ALERT_ID
ERROR
BEGIN
TITLE "¡Atención!"
MESSAGE "^1"
BUTTONS "De acuerdo"
END
#ifdef FOR_GREMLINS
FORM ID XW_GREMLIN_WARN_FORM_ID AT ( 2 60 156 98 )
USABLE MODAL
BEGIN
TITLE "Gremlin Oops"
FIELD XW_GREMLIN_WARN_FIELD_ID AT (2 15 150 75)
NONEDITABLE MULTIPLELINES
END
#endif