mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
#ifdef hint config feature
This commit is contained in:
parent
53545e200f
commit
c04c94fb61
2 changed files with 11 additions and 4 deletions
|
@ -54,7 +54,9 @@ BEGIN
|
||||||
BEGIN
|
BEGIN
|
||||||
MENUITEM "Hint" XW_HINT_PULLDOWN_ID "I"
|
MENUITEM "Hint" XW_HINT_PULLDOWN_ID "I"
|
||||||
MENUITEM "Next hint" XW_NEXTHINT_PULLDOWN_ID "M"
|
MENUITEM "Next hint" XW_NEXTHINT_PULLDOWN_ID "M"
|
||||||
|
#ifdef XWFEATURE_HINT_CONFIG
|
||||||
MENUITEM "Configure hint..." XW_HINTCONFIG_PULLDOWN_ID "C"
|
MENUITEM "Configure hint..." XW_HINTCONFIG_PULLDOWN_ID "C"
|
||||||
|
#endif
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "Undo cur. move" XW_UNDOCUR_PULLDOWN_ID "U"
|
MENUITEM "Undo cur. move" XW_UNDOCUR_PULLDOWN_ID "U"
|
||||||
MENUITEM "Undo last move" XW_UNDOLAST_PULLDOWN_ID "Z"
|
MENUITEM "Undo last move" XW_UNDOLAST_PULLDOWN_ID "Z"
|
||||||
|
@ -450,8 +452,9 @@ BEGIN
|
||||||
#endif
|
#endif
|
||||||
END
|
END
|
||||||
|
|
||||||
#define NTILES_TOP 17
|
#ifdef XWFEATURE_HINT_CONFIG
|
||||||
#define NTILES_BUTTON_TOP 60
|
# define NTILES_TOP 17
|
||||||
|
# define NTILES_BUTTON_TOP 60
|
||||||
FORM ID XW_HINTCONFIG_FORM_ID AT ( 2 75 156 82 ) USABLE MODAL SAVEBEHIND
|
FORM ID XW_HINTCONFIG_FORM_ID AT ( 2 75 156 82 ) USABLE MODAL SAVEBEHIND
|
||||||
BEGIN
|
BEGIN
|
||||||
TITLE "Hint parameters"
|
TITLE "Hint parameters"
|
||||||
|
@ -471,7 +474,7 @@ BEGIN
|
||||||
BUTTON "Ok" XW_HINTCONFIG_OK_ID RIGHT@156-10 NTILES_BUTTON_TOP AUTO 12
|
BUTTON "Ok" XW_HINTCONFIG_OK_ID RIGHT@156-10 NTILES_BUTTON_TOP AUTO 12
|
||||||
BUTTON "Cancel" XW_HINTCONFIG_CANCEL_ID RIGHT@PREVLEFT-10 PREVTOP AUTO 12
|
BUTTON "Cancel" XW_HINTCONFIG_CANCEL_ID RIGHT@PREVLEFT-10 PREVTOP AUTO 12
|
||||||
END
|
END
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined OWNER_HASH || defined NO_REG_REQUIRED
|
#if defined OWNER_HASH || defined NO_REG_REQUIRED
|
||||||
FORM ID XW_SAVEDGAMES_DIALOG_ID AT ( 2 2 156 156 )
|
FORM ID XW_SAVEDGAMES_DIALOG_ID AT ( 2 2 156 156 )
|
||||||
|
|
|
@ -1364,6 +1364,7 @@ handleHideTray( PalmAppGlobals* globals )
|
||||||
return draw;
|
return draw;
|
||||||
} /* handleHideTray */
|
} /* handleHideTray */
|
||||||
|
|
||||||
|
#ifdef XWFEATURE_HINT_CONFIG
|
||||||
static Boolean
|
static Boolean
|
||||||
popupLists( EventPtr event )
|
popupLists( EventPtr event )
|
||||||
{
|
{
|
||||||
|
@ -1422,7 +1423,8 @@ doHintConfig( PalmAppGlobals* globals )
|
||||||
|
|
||||||
FrmDeleteForm( form );
|
FrmDeleteForm( form );
|
||||||
FrmSetActiveForm( prevForm );
|
FrmSetActiveForm( prevForm );
|
||||||
} /* palmAskNTiles */
|
} /* doHintConfig */
|
||||||
|
#endif
|
||||||
|
|
||||||
static Boolean
|
static Boolean
|
||||||
handleHintRequest( PalmAppGlobals* globals )
|
handleHintRequest( PalmAppGlobals* globals )
|
||||||
|
@ -2057,9 +2059,11 @@ mainViewHandleEvent( EventPtr event )
|
||||||
draw = handleHintRequest( globals );
|
draw = handleHintRequest( globals );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#ifdef XWFEATURE_HINT_CONFIG
|
||||||
case XW_HINTCONFIG_PULLDOWN_ID:
|
case XW_HINTCONFIG_PULLDOWN_ID:
|
||||||
doHintConfig( globals );
|
doHintConfig( globals );
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
case XW_UNDOCUR_PULLDOWN_ID:
|
case XW_UNDOCUR_PULLDOWN_ID:
|
||||||
draw = board_replaceTiles( globals->game.board );
|
draw = board_replaceTiles( globals->game.board );
|
||||||
|
|
Loading…
Reference in a new issue