17 |
/* along with this program; if not, write to the Free Software */ |
/* along with this program; if not, write to the Free Software */ |
18 |
/* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ |
/* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ |
19 |
|
|
|
/* $Id$ */ |
|
|
|
|
20 |
/** |
/** |
21 |
* \file auxframes.cc |
* \file auxframes.cc |
22 |
* \brief Window Frames used in Eliot |
* \brief Window Frames used in Eliot |
39 |
#include "dic.h" |
#include "dic.h" |
40 |
#include "dic_search.h" |
#include "dic_search.h" |
41 |
#include "training.h" |
#include "training.h" |
42 |
|
#include "player.h" |
43 |
#include "game.h" |
#include "game.h" |
44 |
|
|
45 |
#include "configdb.h" |
#include "configdb.h" |
347 |
listbox->Show(TRUE); |
listbox->Show(TRUE); |
348 |
} |
} |
349 |
|
|
350 |
void |
void |
351 |
AuxFrameList::Refresh(refresh_t force) |
AuxFrameList::Refresh(refresh_t force) |
352 |
{ |
{ |
353 |
//debug(" %s : Refresh start\n",(const char*)name.mb_str()); |
//debug(" %s : Refresh start\n",(const char*)name.mb_str()); |
400 |
return; |
return; |
401 |
} |
} |
402 |
savedword = rack; |
savedword = rack; |
403 |
|
|
404 |
char buff[DIC_LETTERS][RES_7PL1_MAX][DIC_WORD_MAX]; |
char buff[DIC_LETTERS][RES_7PL1_MAX][DIC_WORD_MAX]; |
405 |
Dic_search_7pl1(game->getDic(), rack.c_str(), buff, config.getJokerPlus1()); |
Dic_search_7pl1(game->getDic(), rack.c_str(), buff, config.getJokerPlus1()); |
406 |
|
|
443 |
//debug(" BenjFrame::refresh : %s\n",word.c_str()); |
//debug(" BenjFrame::refresh : %s\n",word.c_str()); |
444 |
char wordlist[RES_BENJ_MAX][DIC_WORD_MAX]; |
char wordlist[RES_BENJ_MAX][DIC_WORD_MAX]; |
445 |
Dic_search_Benj(game->getDic(), word.c_str(), wordlist); |
Dic_search_Benj(game->getDic(), word.c_str(), wordlist); |
446 |
|
|
447 |
wxString res[RES_BENJ_MAX]; |
wxString res[RES_BENJ_MAX]; |
448 |
int resnum = 0; |
int resnum = 0; |
449 |
for (int i = 0; (i < RES_BENJ_MAX) && (wordlist[i][0]); i++) |
for (int i = 0; (i < RES_BENJ_MAX) && (wordlist[i][0]); i++) |
570 |
ResultFrame::Refresh(refresh_t WXUNUSED(force)) |
ResultFrame::Refresh(refresh_t WXUNUSED(force)) |
571 |
{ |
{ |
572 |
if (reslist != NULL) |
if (reslist != NULL) |
573 |
{ |
{ |
574 |
reslist->Show(false); |
reslist->Show(false); |
575 |
//debug("ResultFrame refresh\n"); |
//debug("ResultFrame refresh\n"); |
576 |
reslist->Refresh(); |
reslist->Refresh(); |